2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1577 extrasub
='/^VPATH[ ]*=/c\
1578 vpath %.c $(srcdir)\
1579 vpath %.h $(srcdir)\
1580 vpath %.y $(srcdir)\
1581 vpath %.l $(srcdir)\
1582 vpath %.s $(srcdir)\
1583 vpath %.in $(srcdir)\
1584 vpath %.texi $(srcdir)'
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1593 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1594 if test -f $ac_dir/install-sh
; then
1596 ac_install_sh
="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh
; then
1600 ac_install_sh
="$ac_aux_dir/install.sh -c"
1602 elif test -f $ac_dir/shtool
; then
1604 ac_install_sh
="$ac_aux_dir/shtool install -c"
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias
=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias
=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias
=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias
=$ac_cv_build_alias
1657 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 configuration
=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine
='' opsys
='' unported
=no
1700 case "${canonical}" in
1705 case "${canonical}" in
1706 alpha
*-*-freebsd*) machine
=alpha
;;
1707 i
[3456]86-*-freebsd*) machine
=intel386
;;
1714 if test -f /usr
/lib
/crti.o
; then
1716 cat >>confdefs.h
<<\_ACEOF
1722 case "${canonical}" in
1723 alpha
*-*-netbsd*) machine
=alpha
;;
1724 i
[3456]86-*-netbsd*) machine
=intel386
;;
1726 # This is somewhat bogus.
1727 machine
=hp9000s300
;;
1728 powerpc-apple-netbsd
*) machine
=macppc
;;
1729 mips-
*-netbsd*) machine
=pmax
;;
1730 mipsel-
*-netbsd*) machine
=pmax
;;
1731 mipseb-
*-netbsd*) machine
=pmax
;;
1732 ns32k-
*-netbsd*) machine
=ns32000
;;
1733 powerpc-
*-netbsd*) machine
=macppc
;;
1734 sparc
*-*-netbsd*) machine
=sparc
;;
1735 vax-
*-netbsd*) machine
=vax
;;
1736 arm-
*-netbsd*) machine
=arm
;;
1743 case "${canonical}" in
1744 alpha
*-*-openbsd*) machine
=alpha
;;
1745 i386-
*-openbsd*) machine
=intel386
;;
1746 m68k-
*-openbsd*) machine
=hp9000s300
;;
1747 mipsel-
*-openbsd*) machine
=pmax
;;
1748 ns32k-
*-openbsd*) machine
=ns32000
;;
1749 sparc-
*-openbsd*) machine
=sparc
;;
1750 vax-
*-openbsd*) machine
=vax
;;
1755 arm-acorn-riscix1.1
* )
1756 machine
=acorn opsys
=riscix1-1
1758 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine
=acorn opsys
=riscix12
1767 case "${canonical}" in
1768 i
[345]86-*-bsdi*) machine
=intel386
;;
1769 sparc-
*-bsdi*) machine
=sparc
;;
1770 powerpc-
*-bsdi*) machine
=macppc
;;
1772 case "${canonical}" in
1773 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1774 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1775 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1776 *-*-bsdi3* ) opsys
=bsdos3
;;
1777 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1788 machine
=alliant4 opsys
=bsd4-2
1791 machine
=alliant-2800 opsys
=bsd4-3
1794 ## Alpha (DEC) machines.
1796 machine
=alpha opsys
=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1799 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP
=/usr
/bin
/cpp
1805 case "${canonical}" in
1806 alpha
*-dec-osf[5-9]*)
1811 alpha
*-*-linux-gnu* )
1812 machine
=alpha opsys
=gnu-linux
1816 machine
=arm opsys
=gnu-linux
1821 machine
=macppc opsys
=gnu-linux
1826 machine
=altos opsys
=usg5-2
1831 machine
=amdahl opsys
=usg5-2-2
1834 ## Apollo, Domain/OS
1836 machine
=apollo opsys
=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1841 machine
=att3b opsys
=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1846 machine
=7300 opsys
=usg5-2-2
1851 machine
=ibmrs6000 opsys
=aix3-2
1856 machine
=dpx2 opsys
=usg5-3
1861 machine
=sps7 opsys
=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd
* )
1871 machine
=celerity opsys
=bsd4-2
1875 ## What operating systems does this chip run that Emacs has been
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1884 mips-compaq-nonstopux
* )
1885 machine
=nonstopux opsys
=nonstopux
1889 *-convex-bsd* |
*-convex-convexos* )
1890 machine
=convex opsys
=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP
="cc -E -P"
1896 i
[3456]86-cubix-sysv* )
1897 machine
=intel386 opsys
=usg5-3
1901 cydra
*-cydrome-sysv* )
1902 machine
=cydra5 opsys
=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1912 machine
=aviion opsys
=dgux4
1914 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine
=aviion opsys
=dgux5-4-3
1919 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1920 machine
=aviion opsys
=dgux5-4r2
1923 machine
=aviion opsys
=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i
[345]86-dg-dguxR4* )
1930 machine
=aviion-intel opsys
=dgux4
1934 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1935 machine
=pmax opsys
=bsd4-2
1937 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1938 machine
=pmax opsys
=bsd4-3
1941 machine
=pmax opsys
=ultrix4-3
1944 machine
=pmax opsys
=osf1
1946 mips-dec-mach_bsd4.3
* )
1947 machine
=pmax opsys
=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1952 machine
=delta opsys
=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1955 if test -s /etc
/167config
1956 then CC
="gnucc -m68040"
1957 else CC
="gnucc -m68881"
1960 if test -z "`type gcc | grep 'not found'`"
1966 m88k-motorola-sysv4
* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine
=delta88k opsys
=usg5-4-2
1973 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1974 machine
=delta88k opsys
=usg5-3
1979 machine
=dual opsys
=usg5-2
1981 m68
*-dual-uniplus* )
1982 machine
=dual opsys
=unipl5-2
1987 machine
=elxsi opsys
=usg5-2
1992 machine
=ns16000 opsys
=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
2000 machine
=gould opsys
=bsd4-2
2003 machine
=gould opsys
=bsd4-3
2006 machine
=gould-np1 opsys
=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2015 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2017 NON_GNU_CPP
="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2021 machine
=nh3000 opsys
=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix
)
2025 machine
=nh6000 opsys
=powerunix
2026 NON_GNU_CPP
="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1
-hitachi-hiuxmpp* )
2030 machine
=sr2k opsys
=hiuxmpp
2032 hppa1.1
-hitachi-hiuxwe2* )
2033 machine
=sr2k opsys
=hiuxwe2
2036 xps
*-honeywell-sysv* )
2037 machine
=xps100 opsys
=usg5-2
2040 ## HP 9000 series 200 or 300
2042 machine
=hp9000s300 opsys
=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2050 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2051 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2052 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2053 *) machine
=hp9000s300 opsys
=hpux
;;
2057 ## HP 9000 series 700 and 800, running HP/UX
2059 machine
=hp800 opsys
=hpux
2062 machine
=hp800 opsys
=hpux8
2064 hppa
*-hp-hpux9shr* )
2065 machine
=hp800 opsys
=hpux9shr
2068 machine
=hp800 opsys
=hpux9
2070 hppa
*-hp-hpux10.2
* )
2071 machine
=hp800 opsys
=hpux10-20
2074 machine
=hp800 opsys
=hpux10
2076 hppa
*-hp-hpux1[1-9]* )
2077 machine
=hp800 opsys
=hpux11
2080 hppa
*-*-linux-gnu* )
2081 machine
=hp800 opsys
=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2093 *) machine
=hp800 opsys
=hpux10
;;
2097 machine
=hp800 opsys
=nextstep
2102 machine
=orion opsys
=bsd4-2
2104 clipper-orion-bsd
* )
2105 machine
=orion105 opsys
=bsd4-2
2109 i
[3456]86-ibm-aix1.1
* )
2110 machine
=ibmps2-aix opsys
=usg5-2-2
2112 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2113 machine
=ibmps2-aix opsys
=usg5-3
2116 machine
=ibm370aix opsys
=usg5-3
2119 machine
=ibms390 opsys
=gnu-linux
2121 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2122 machine
=ibmrs6000 opsys
=aix3-1
2124 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2125 machine
=ibmrs6000 opsys
=aix3-2-5
2127 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2128 machine
=ibmrs6000 opsys
=aix4-1
2130 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2131 machine
=ibmrs6000 opsys
=aix4-2
2133 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2134 machine
=ibmrs6000 opsys
=aix4-2
2136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2137 machine
=ibmrs6000 opsys
=aix4
2139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2140 machine
=ibmrs6000 opsys
=aix4-1
2142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2143 machine
=ibmrs6000 opsys
=aix3-2
2146 machine
=ibmrt opsys
=bsd4-3
2149 machine
=ibmrt opsys
=bsd4-2
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt opsys
=bsd4-2
2158 machine
=ibmrt opsys
=bsd4-3
2161 machine
=ibmrt opsys
=bsd4-3
2164 machine
=ibmrt-aix opsys
=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2169 machine
=isi-ov opsys
=bsd4-2
2172 machine
=isi-ov opsys
=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i
[3456]86-intsys-sysv* )
2177 machine
=is386 opsys
=usg5-2-2
2181 i
[3456]86-prime-sysv* )
2182 machine
=i386 opsys
=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i
[3456]86-sequent-bsd* )
2187 machine
=symmetry opsys
=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2192 machine
=sequent-ptx opsys
=ptx4
2193 NON_GNU_CPP
=/lib
/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i
[3456]86-sequent-ptx* )
2199 machine
=sequent-ptx opsys
=ptx
2200 NON_GNU_CPP
="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i
[3456]86-ncr-sysv4.3
)
2205 machine
=ncr386 opsys
=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i
[3456]86-ncr-sysv* )
2211 machine
=ncr386 opsys
=usg5-4-2
2214 ## Intel Paragon OSF/1
2216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2221 machine
=i860 opsys
=usg5-4
2222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc
*-*-linux-gnu* )
2228 machine
=macppc opsys
=gnu-linux
2231 ## Masscomp machines
2232 m68
*-masscomp-rtu* )
2233 machine
=masscomp opsys
=rtu
2236 ## Megatest machines
2237 m68
*-megatest-bsd* )
2238 machine
=mega68 opsys
=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4
* )
2257 machine
=mips4 opsys
=bsd4-3
2258 NON_GNU_CC
="cc -systype bsd43"
2259 NON_GNU_CPP
="cc -systype bsd43 -E"
2261 mips-mips-riscos5
* )
2262 machine
=mips4 opsys
=riscos5
2263 NON_GNU_CC
="cc -systype bsd43"
2264 NON_GNU_CPP
="cc -systype bsd43 -E"
2267 machine
=mips opsys
=bsd4-3
2270 machine
=mips opsys
=usg5-2-2
2274 m68
*-next-* | m68k-
*-nextstep* )
2275 machine
=m68k opsys
=nextstep
2278 ## The complete machine from National Semiconductor
2280 machine
=ns32000 opsys
=usg5-2
2284 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2285 machine
=tower32 opsys
=usg5-2-2
2287 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2288 machine
=tower32v3 opsys
=usg5-3
2293 machine
=ews4800 opsys
=ux4800
2296 ## Nixdorf Targon 31
2297 m68
*-nixdorf-sysv* )
2298 machine
=targon31 opsys
=usg5-2-2
2303 machine
=nu opsys
=usg5-2
2308 machine
=plexus opsys
=usg5-2
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd
* )
2315 machine
=pyramid opsys
=bsd4-2
2319 ns32k-sequent-bsd4.2
* )
2320 machine
=sequent opsys
=bsd4-2
2322 ns32k-sequent-bsd4.3
* )
2323 machine
=sequent opsys
=bsd4-3
2327 mips-siemens-sysv
* | mips-sni-sysv
*)
2328 machine
=mips-siemens opsys
=usg5-4
2329 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2336 machine
=irist opsys
=iris3-5
2338 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2339 machine
=irist opsys
=iris3-6
2343 machine
=iris4d opsys
=irix3-3
2346 machine
=iris4d opsys
=irix4-0
2349 machine
=iris4d opsys
=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2357 machine
=iris4d opsys
=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS
=-32
2364 mips-sgi-irix5.
[01]* )
2365 machine
=iris4d opsys
=irix5-0
2367 mips-sgi-irix5
* | mips-sgi-irix
* )
2368 machine
=iris4d opsys
=irix5-2
2373 machine
=news opsys
=bsd4-2
2376 machine
=news opsys
=bsd4-3
2378 m68
*-sony-newsos3* | m68
*-sony-news3*)
2379 machine
=news opsys
=bsd4-3
2381 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2382 machine
=news-risc opsys
=bsd4-3
2384 mips-sony-newsos6
* )
2385 machine
=news-r6 opsys
=newsos6
2388 machine
=news-risc opsys
=newsos5
2393 machine
=stride opsys
=usg5-2
2397 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2398 machine
=sparc opsys
=gnu-linux
2401 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2402 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2403 | rs6000-
*-solaris2*)
2404 case "${canonical}" in
2405 m68
*-sunos1* ) machine
=sun1
;;
2406 m68
*-sunos2* ) machine
=sun2
;;
2407 m68
* ) machine
=sun3
;;
2408 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2409 i
[3456]86-*-* ) machine
=intel386
;;
2410 powerpcle
* ) machine
=powerpcle
;;
2411 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2412 sparc
* ) machine
=sparc
;;
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2418 *-sunos4.0
* ) opsys
=sunos4-0
;;
2419 *-sunos4.1.
[3-9]*noshare
)
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2423 NON_GNU_CPP
=/usr
/lib
/cpp
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2429 NON_GNU_CPP
=/usr
/lib
/cpp
2431 *-sunos4* |
*-sunos )
2433 NON_GCC_TEST_OPTIONS
=-Bstatic
2434 GCC_TEST_OPTIONS
=-static
2436 *-sunos5.3
* |
*-solaris2.3
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2440 *-sunos5.4
* |
*-solaris2.4
* )
2442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2445 *-sunos5.5
* |
*-solaris2.5
* )
2447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2450 *-sunos5.6
* |
*-solaris2.6
* )
2452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2455 *-sunos5* |
*-solaris* )
2457 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* |
*-sunos5* )
2464 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2474 machine
=sparc opsys
=nextstep
2478 m68
*-tadpole-sysv* )
2479 machine
=tad68k opsys
=usg5-3
2483 tahoe-tahoe-bsd4.2
* )
2484 machine
=tahoe opsys
=bsd4-2
2486 tahoe-tahoe-bsd4.3
* )
2487 machine
=tahoe opsys
=bsd4-3
2490 ## Tandem Integrity S2
2492 machine
=tandem-s2 opsys
=usg5-3
2496 m88k-tektronix-sysv3
* )
2497 machine
=tekxd88 opsys
=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd
* )
2502 machine
=ns16000 opsys
=bsd4-2
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68
*-tektronix-bsd* )
2507 machine
=tek4300 opsys
=bsd4-3
2511 ## We seem to have lost the machine-description file titan.h!
2513 machine
=titan opsys
=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68
*-unisys-uniplus* )
2518 machine
=ustation opsystem
=unipl5-2
2524 case "${canonical}" in
2525 *-bsd4.1
* ) opsys
=bsd4-1
;;
2526 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2527 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2528 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2529 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2530 *-vms* ) opsys
=vms
;;
2536 ns16k-whitechapel-
* )
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2544 machine
=wicat opsys
=usg5-2
2549 machine
=ia64 opsys
=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2555 case "${canonical}" in
2556 *-cygwin ) opsys
=cygwin
;;
2557 *-lynxos* ) opsys
=lynxos
;;
2558 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2559 *-isc2.2
* ) opsys
=isc2-2
;;
2560 *-isc4.0
* ) opsys
=isc4-0
;;
2561 *-isc4.
* ) opsys
=isc4-1
2562 GCC_TEST_OPTIONS
=-posix
2563 NON_GCC_TEST_OPTIONS
=-Xp
2565 *-isc* ) opsys
=isc3-0
;;
2566 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2567 *-esix* ) opsys
=esix
;;
2568 *-xenix* ) opsys
=xenix
;;
2569 *-linux-gnu* ) opsys
=gnu-linux
;;
2570 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-sco3.2v5
* ) opsys
=sco5
2572 NON_GNU_CPP
=/lib
/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS
=" "
2577 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2578 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2579 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2580 *-386bsd* ) opsys
=386bsd
;;
2581 *-nextstep* ) opsys
=nextstep
;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2586 ## m68k Linux-based GNU system
2588 machine
=m68k opsys
=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2593 machine
=mips opsys
=gnu-linux
2597 sparc-fujitsu-sysv4
* )
2598 machine
=sparc opsys
=uxpds
2599 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2604 f301-fujitsu-uxpv4.1
)
2605 machine
=f301 opsys
=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin
* )
2610 machine
=powermac opsys
=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP
="${CC-cc} -E -no-cpp-precomp"
2615 ## AMD x86-64 Linux-based GNU system
2616 x86_64-
*-linux-gnu* )
2617 machine
=amdx86-64 opsys
=gnu-linux
2625 ### If the code above didn't choose an operating system, just choose
2626 ### an operating system based on the configuration name. You really
2627 ### only want to use this when you have no idea what the right
2628 ### operating system is; if you know what operating systems a machine
2629 ### runs, it's cleaner to make it explicit in the case statement
2631 if test x
"${opsys}" = x
; then
2632 case "${canonical}" in
2633 *-gnu* ) opsys
=gnu
;;
2634 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2635 *-bsd4.2
) opsys
=bsd4-2
;;
2636 *-bsd4.3
) opsys
=bsd4-3
;;
2637 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2638 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2639 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2640 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2641 *-sysv4.2uw
* ) opsys
=unixware
;;
2642 *-sysv5uw* ) opsys
=unixware
;;
2643 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2644 *-sysv4.1
* |
*-sysvr4.1
* )
2645 NON_GNU_CPP
=/usr
/lib
/cpp
2647 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2648 if [ x
$NON_GNU_CPP = x
]; then
2649 if [ -f /usr
/ccs
/lib
/cpp
]; then
2650 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2652 NON_GNU_CPP
=/lib
/cpp
2656 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2665 if test $unported = yes; then
2666 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2667 Check \`etc/MACHINES' for recognized configuration names." >&5
2668 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2669 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2670 { (exit 1); exit 1; }; }
2673 machfile
="m/${machine}.h"
2674 opsysfile
="s/${opsys}.h"
2677 #### Choose a compiler.
2678 test -n "$CC" && cc_specified
=yes
2680 # Save the value of CFLAGS that the user specified.
2681 SPECIFIED_CFLAGS
="$CFLAGS"
2684 "yes" ) CC
="gcc" GCC
=yes ;;
2685 "no" ) : ${CC=cc} ;;
2689 ac_cpp
='$CPP $CPPFLAGS'
2690 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC
="$CC" # Let the user override the test.
2704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir
=.
2709 for ac_exec_ext
in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2730 if test -z "$ac_cv_prog_CC"; then
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733 set dummy gcc
; ac_word
=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir
=.
2747 for ac_exec_ext
in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC
="gcc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2772 if test -z "$CC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2775 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC
="$CC" # Let the user override the test.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$CC"; then
2802 echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2810 if test -z "$ac_cv_prog_CC"; then
2812 # Extract the first word of "cc", so it can be a program name with args.
2813 set dummy cc
; ac_word
=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir
=.
2827 for ac_exec_ext
in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC
="cc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc
; ac_word
=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC
="$CC" # Let the user override the test.
2865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir
=.
2870 for ac_exec_ext
in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected
=yes
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test $ac_prog_rejected = yes; then
2884 # We found a bogon in the path, so make sure we never use it.
2885 set dummy
$ac_cv_prog_CC
2887 if test $# != 0; then
2888 # We chose a different compiler from the bogus one.
2889 # However, it has the same basename, so the bogon will be chosen
2890 # first if we set CC to just the basename; use the full file name.
2892 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2898 if test -n "$CC"; then
2899 echo "$as_me:$LINENO: result: $CC" >&5
2900 echo "${ECHO_T}$CC" >&6
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC
="$CC" # Let the user override the test.
2921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir
=.
2926 for ac_exec_ext
in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 echo "$as_me:$LINENO: result: $CC" >&5
2940 echo "${ECHO_T}$CC" >&6
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 test -n "$CC" && break
2949 if test -z "$CC"; then
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy
$ac_prog; ac_word
=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir
=.
2968 for ac_exec_ext
in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CC
="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 test -n "$ac_ct_CC" && break
2997 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3003 # Provide some information about the compiler.
3004 echo "$as_me:$LINENO:" \
3005 "checking for C compiler version" >&5
3006 ac_compiler
=`set X $ac_compile; echo $2`
3007 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3008 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }
3012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3013 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3018 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3023 cat >conftest.
$ac_ext <<_ACEOF
3026 cat confdefs.h
>>conftest.
$ac_ext
3027 cat >>conftest.
$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 ac_clean_files_save
=$ac_clean_files
3039 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3040 # Try to create an executable without -o first, disregard a.out.
3041 # It will help us diagnose broken compilers, and finding out an intuition
3043 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3044 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3045 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3047 (eval $ac_link_default) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 # Find the output, starting from the most likely. This scheme is
3052 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3055 # Be careful to initialize this variable, since it used to be cached.
3056 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3058 # b.out is created by i960 compilers.
3059 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3061 test -f "$ac_file" ||
continue
3063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3066 # This is the source file.
3069 # We found the default executable, but exeext='' is most
3073 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # FIXME: I believe we export ac_cv_exeext for Libtool,
3075 # but it would be cool to find out if it's true. Does anybody
3076 # maintain Libtool? --akim.
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.
$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091 { (exit 77); exit 77; }; }
3094 ac_exeext
=$ac_cv_exeext
3095 echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6
3098 # Check the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105 if { ac_try
='./$ac_file'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 if test "$cross_compiling" = maybe
; then
3116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot run C compiled programs.
3120 If you meant to cross compile, use \`--host'.
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6
3129 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3130 ac_clean_files
=$ac_clean_files_save
3131 # Check the compiler produces executables we can run. If not, either
3132 # the compiler is broken, or we cross compile.
3133 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3134 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3135 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3136 echo "${ECHO_T}$cross_compiling" >&6
3138 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3139 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 for ac_file
in conftest.exe conftest conftest.
*; do
3150 test -f "$ac_file" ||
continue
3152 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3153 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3167 rm -f conftest
$ac_cv_exeext
3168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3169 echo "${ECHO_T}$ac_cv_exeext" >&6
3171 rm -f conftest.
$ac_ext
3172 EXEEXT
=$ac_cv_exeext
3174 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3175 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3176 if test "${ac_cv_objext+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 cat >conftest.
$ac_ext <<_ACEOF
3182 cat confdefs.h
>>conftest.
$ac_ext
3183 cat >>conftest.
$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.o conftest.obj
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; then
3200 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3202 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3203 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.
$ac_ext >&5
3211 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3218 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3220 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221 echo "${ECHO_T}$ac_cv_objext" >&6
3222 OBJEXT
=$ac_cv_objext
3224 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 cat >conftest.
$ac_ext <<_ACEOF
3232 cat confdefs.h
>>conftest.
$ac_ext
3233 cat >>conftest.
$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3247 rm -f conftest.
$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>conftest.er1
3251 grep -v '^ *+' conftest.er1
>conftest.err
3253 cat conftest.err
>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try
='test -z "$ac_c_werror_flag"
3257 || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try
='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.
$ac_ext >&5
3276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3277 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3282 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3283 ac_test_CFLAGS
=${CFLAGS+set}
3284 ac_save_CFLAGS
=$CFLAGS
3286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3288 if test "${ac_cv_prog_cc_g+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.
$ac_ext <<_ACEOF
3294 cat confdefs.h
>>conftest.
$ac_ext
3295 cat >>conftest.
$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3306 rm -f conftest.
$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1
>conftest.err
3312 cat conftest.err
>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try
='test -z "$ac_c_werror_flag"
3316 || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try
='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.
$ac_ext >&5
3335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS
=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3348 if test "$GCC" = yes; then
3354 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3355 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 ac_cv_prog_cc_stdc
=no
3361 cat >conftest.
$ac_ext <<_ACEOF
3364 cat confdefs.h
>>conftest.
$ac_ext
3365 cat >>conftest.
$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3385 s = g (p, va_arg (v,int));
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std1 is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std1. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 # Don't try gcc -ansi; that turns off useful extensions and
3414 # breaks some systems' header files.
3415 # AIX -qlanglvl=ansi
3416 # Ultrix and OSF/1 -std1
3417 # HP-UX 10.20 and later -Ae
3418 # HP-UX older versions -Aa -D_HPUX_SOURCE
3419 # SVR4 -Xc -D__EXTENSIONS__
3420 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC
="$ac_save_CC $ac_arg"
3423 rm -f conftest.
$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1
>conftest.err
3429 cat conftest.err
>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -z "$ac_c_werror_flag"
3433 || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try
='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_prog_cc_stdc
=$ac_arg
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.
$ac_ext >&5
3452 rm -f conftest.err conftest.
$ac_objext
3454 rm -f conftest.
$ac_ext conftest.
$ac_objext
3459 case "x$ac_cv_prog_cc_stdc" in
3461 echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6 ;;
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3466 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3469 # Some people use a C++ compiler to compile C. Since we use `exit',
3470 # in C++ we need to declare it. In case someone uses the same compiler
3471 # for both compiling C and C++ we need to have the C++ compiler decide
3472 # the declaration of exit, since it's the most demanding environment.
3473 cat >conftest.
$ac_ext <<_ACEOF
3478 rm -f conftest.
$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3482 grep -v '^ *+' conftest.er1
>conftest.err
3484 cat conftest.err
>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try
='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try
='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 for ac_declaration
in \
3502 'extern "C" void std::exit (int) throw (); using std::exit;' \
3503 'extern "C" void std::exit (int); using std::exit;' \
3504 'extern "C" void exit (int) throw ();' \
3505 'extern "C" void exit (int);' \
3508 cat >conftest.
$ac_ext <<_ACEOF
3511 cat confdefs.h
>>conftest.
$ac_ext
3512 cat >>conftest.
$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3524 rm -f conftest.
$ac_objext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1
>conftest.err
3530 cat conftest.err
>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try
='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try
='test -s conftest.$ac_objext'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.
$ac_ext >&5
3553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3554 cat >conftest.
$ac_ext <<_ACEOF
3557 cat confdefs.h
>>conftest.
$ac_ext
3558 cat >>conftest.
$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3569 rm -f conftest.
$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3573 grep -v '^ *+' conftest.er1
>conftest.err
3575 cat conftest.err
>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try
='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try
='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.
$ac_ext >&5
3597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3600 if test -n "$ac_declaration"; then
3601 echo '#ifdef __cplusplus' >>confdefs.h
3602 echo $ac_declaration >>confdefs.h
3603 echo '#endif' >>confdefs.h
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.
$ac_ext >&5
3611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3613 ac_cpp
='$CPP $CPPFLAGS'
3614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3619 # On Suns, sometimes $CPP names a directory.
3620 if test -n "$CPP" && test -d "$CPP"; then
3624 #### Some systems specify a CPP to use unless we are using GCC.
3625 #### Now that we know whether we are using GCC, we can decide whether
3626 #### to use that one.
3627 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3632 #### Some systems specify a CC to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3636 test x
$cc_specified != xyes
3641 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3643 CC
="$CC $GCC_TEST_OPTIONS"
3646 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3648 CC
="$CC $NON_GCC_TEST_OPTIONS"
3651 #### Some other nice autoconf tests.
3653 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3656 if test "$LN_S" = "ln -s"; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6
3660 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3661 echo "${ECHO_T}no, using $LN_S" >&6
3665 ac_cpp
='$CPP $CPPFLAGS'
3666 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3669 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3675 if test -z "$CPP"; then
3676 if test "${ac_cv_prog_CPP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 # Double quotes because CPP needs to be expanded
3680 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3683 for ac_c_preproc_warn_flag
in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.
$ac_ext <<_ACEOF
3694 cat confdefs.h
>>conftest.
$ac_ext
3695 cat >>conftest.
$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3698 # include <limits.h>
3700 # include <assert.h>
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev
/null
; then
3712 if test -s conftest.err
; then
3713 ac_cpp_err
=$ac_c_preproc_warn_flag
3714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3721 if test -z "$ac_cpp_err"; then
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.
$ac_ext >&5
3727 # Broken: fails on valid input.
3730 rm -f conftest.err conftest.
$ac_ext
3732 # OK, works on sane cases. Now check whether non-existent headers
3733 # can be detected and how.
3734 cat >conftest.
$ac_ext <<_ACEOF
3737 cat confdefs.h
>>conftest.
$ac_ext
3738 cat >>conftest.
$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <ac_nonexistent.h>
3742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3743 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1
>conftest.err
3747 cat conftest.err
>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } >/dev
/null
; then
3750 if test -s conftest.err
; then
3751 ac_cpp_err
=$ac_c_preproc_warn_flag
3752 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3759 if test -z "$ac_cpp_err"; then
3760 # Broken: success on invalid input.
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.
$ac_ext >&5
3766 # Passes both tests.
3770 rm -f conftest.err conftest.
$ac_ext
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.err conftest.
$ac_ext
3775 if $ac_preproc_ok; then
3787 echo "$as_me:$LINENO: result: $CPP" >&5
3788 echo "${ECHO_T}$CPP" >&6
3790 for ac_c_preproc_warn_flag
in '' yes
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat >conftest.
$ac_ext <<_ACEOF
3801 cat confdefs.h
>>conftest.
$ac_ext
3802 cat >>conftest.
$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3805 # include <limits.h>
3807 # include <assert.h>
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3814 grep -v '^ *+' conftest.er1
>conftest.err
3816 cat conftest.err
>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev
/null
; then
3819 if test -s conftest.err
; then
3820 ac_cpp_err
=$ac_c_preproc_warn_flag
3821 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3828 if test -z "$ac_cpp_err"; then
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.
$ac_ext >&5
3834 # Broken: fails on valid input.
3837 rm -f conftest.err conftest.
$ac_ext
3839 # OK, works on sane cases. Now check whether non-existent headers
3840 # can be detected and how.
3841 cat >conftest.
$ac_ext <<_ACEOF
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev
/null
; then
3857 if test -s conftest.err
; then
3858 ac_cpp_err
=$ac_c_preproc_warn_flag
3859 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3866 if test -z "$ac_cpp_err"; then
3867 # Broken: success on invalid input.
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.
$ac_ext >&5
3873 # Passes both tests.
3877 rm -f conftest.err conftest.
$ac_ext
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.
$ac_ext
3882 if $ac_preproc_ok; then
3885 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3893 ac_cpp
='$CPP $CPPFLAGS'
3894 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3898 # Find a good install program. We prefer a C program (faster),
3899 # so one script is as good as another. But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # OS/2's system install, which has a completely different semantic
3910 # ./install, which can be erroneously created by make from ./install.sh.
3911 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3913 if test -z "$INSTALL"; then
3914 if test "${ac_cv_path_install+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir
=.
3922 # Account for people who put trailing slashes in PATH elements.
3924 .
/ | .
// |
/cC
/* | \
3925 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3926 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3929 # OSF1 and SCO ODT 3.0 have their own names for install.
3930 # Don't use installbsd from OSF since it installs stuff as root
3932 for ac_prog
in ginstall scoinst
install; do
3933 for ac_exec_ext
in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3935 if test $ac_prog = install &&
3936 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3937 # AIX install. It has an incompatible calling convention.
3939 elif test $ac_prog = install &&
3940 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3941 # program-specific install script used by HP pwplus--don't use.
3944 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3956 if test "${ac_cv_path_install+set}" = set; then
3957 INSTALL
=$ac_cv_path_install
3959 # As a last resort, use the slow shell script. We don't cache a
3960 # path for INSTALL within a source directory, because that will
3961 # break other packages using the cache if that directory is
3962 # removed, or if the path is relative.
3963 INSTALL
=$ac_install_sh
3966 echo "$as_me:$LINENO: result: $INSTALL" >&5
3967 echo "${ECHO_T}$INSTALL" >&6
3969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3970 # It thinks the first close brace ends the variable substitution.
3971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3975 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3977 if test "x$RANLIB" = x
; then
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3980 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_RANLIB+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if test -n "$RANLIB"; then
3987 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 RANLIB
=$ac_cv_prog_RANLIB
4006 if test -n "$RANLIB"; then
4007 echo "$as_me:$LINENO: result: $RANLIB" >&5
4008 echo "${ECHO_T}$RANLIB" >&6
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4015 if test -z "$ac_cv_prog_RANLIB"; then
4016 ac_ct_RANLIB
=$RANLIB
4017 # Extract the first word of "ranlib", so it can be a program name with args.
4018 set dummy ranlib
; ac_word
=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 if test -n "$ac_ct_RANLIB"; then
4025 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4044 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4045 if test -n "$ac_ct_RANLIB"; then
4046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4053 RANLIB
=$ac_ct_RANLIB
4055 RANLIB
="$ac_cv_prog_RANLIB"
4059 # Extract the first word of "install-info", so it can be a program name with args.
4060 set dummy install-info
; ac_word
=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 case $INSTALL_INFO in
4068 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir
=.
4076 for ac_exec_ext
in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4090 if test -n "$INSTALL_INFO"; then
4091 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4092 echo "${ECHO_T}$INSTALL_INFO" >&6
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4098 # Extract the first word of "install-info", so it can be a program name with args.
4099 set dummy install-info
; ac_word
=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 case $INSTALL_INFO in
4107 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4111 for as_dir
in /usr
/sbin
4114 test -z "$as_dir" && as_dir
=.
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4129 if test -n "$INSTALL_INFO"; then
4130 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4131 echo "${ECHO_T}$INSTALL_INFO" >&6
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4137 # Extract the first word of "install-info", so it can be a program name with args.
4138 set dummy install-info
; ac_word
=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 case $INSTALL_INFO in
4146 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir
=.
4154 for ac_exec_ext
in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4167 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4179 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4181 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4184 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4186 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4191 echo "$as_me:$LINENO: checking for egrep" >&5
4192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4193 if test "${ac_cv_prog_egrep+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4197 then ac_cv_prog_egrep
='grep -E'
4198 else ac_cv_prog_egrep
='egrep'
4201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4203 EGREP
=$ac_cv_prog_egrep
4207 echo "$as_me:$LINENO: checking for AIX" >&5
4208 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4209 cat >conftest.
$ac_ext <<_ACEOF
4212 cat confdefs.h
>>conftest.
$ac_ext
4213 cat >>conftest.
$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "yes" >/dev
/null
2>&1; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 cat >>confdefs.h
<<\_ACEOF
4225 #define _ALL_SOURCE 1
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4236 #### Extract some information from the operating system and machine files.
4238 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4239 - which libraries the lib-src programs will want, and
4240 - whether the GNU malloc routines are usable..." >&5
4241 echo "$as_me: checking the machine- and system-dependent files to find out
4242 - which libraries the lib-src programs will want, and
4243 - whether the GNU malloc routines are usable..." >&6;}
4245 ### First figure out CFLAGS (which we use for running the compiler here)
4246 ### and REAL_CFLAGS (which we use for real compilation).
4247 ### The two are the same except on a few systems, where they are made
4248 ### different to work around various lossages. For example,
4249 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4250 ### as implying static linking.
4252 ### If the CFLAGS env var is specified, we use that value
4253 ### instead of the default.
4255 ### It's not important that this name contain the PID; you can't run
4256 ### two configures in the same directory and have anything work
4258 tempcname
="conftest.c"
4261 #include "'${srcdir}'/src/'${opsysfile}'"
4262 #include "'${srcdir}'/src/'${machfile}'"
4263 #ifndef LIBS_MACHINE
4264 #define LIBS_MACHINE
4269 #ifndef C_SWITCH_SYSTEM
4270 #define C_SWITCH_SYSTEM
4272 #ifndef C_SWITCH_MACHINE
4273 #define C_SWITCH_MACHINE
4275 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4276 configure___ c_switch_system=C_SWITCH_SYSTEM
4277 configure___ c_switch_machine=C_SWITCH_MACHINE
4280 #define LIB_X11_LIB -lX11
4283 #ifndef LIBX11_MACHINE
4284 #define LIBX11_MACHINE
4287 #ifndef LIBX11_SYSTEM
4288 #define LIBX11_SYSTEM
4290 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4293 configure___ unexec=UNEXEC
4295 configure___ unexec=unexec.o
4298 #ifdef SYSTEM_MALLOC
4299 configure___ system_malloc=yes
4301 configure___ system_malloc=no
4304 #ifdef USE_MMAP_FOR_BUFFERS
4305 configure___ use_mmap_for_buffers=yes
4307 configure___ use_mmap_for_buffers=no
4310 #ifndef C_DEBUG_SWITCH
4311 #define C_DEBUG_SWITCH -g
4314 #ifndef C_OPTIMIZE_SWITCH
4316 #define C_OPTIMIZE_SWITCH -O2
4318 #define C_OPTIMIZE_SWITCH -O
4322 #ifndef LD_SWITCH_MACHINE
4323 #define LD_SWITCH_MACHINE
4326 #ifndef LD_SWITCH_SYSTEM
4327 #define LD_SWITCH_SYSTEM
4330 #ifndef LD_SWITCH_X_SITE_AUX
4331 #define LD_SWITCH_X_SITE_AUX
4334 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4335 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4337 #ifdef THIS_IS_CONFIGURE
4339 /* Get the CFLAGS for tests in configure. */
4341 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4343 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4346 #else /* not THIS_IS_CONFIGURE */
4348 /* Get the CFLAGS for real compilation. */
4350 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4352 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4355 #endif /* not THIS_IS_CONFIGURE */
4358 # The value of CPP is a quoted variable reference, so we need to do this
4359 # to get its actual value...
4360 CPP
=`eval "echo $CPP"`
4361 eval `${CPP} -Isrc ${tempcname} \
4362 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4363 if test "x$SPECIFIED_CFLAGS" = x
; then
4364 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4365 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4367 REAL_CFLAGS
="$CFLAGS"
4371 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4373 ### Make sure subsequent tests use flags consistent with the build flags.
4375 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4376 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4378 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4384 cat >>confdefs.h
<<\_ACEOF
4385 #define _GNU_SOURCE 1
4390 # Check whether --enable-largefile or --disable-largefile was given.
4391 if test "${enable_largefile+set}" = set; then
4392 enableval
="$enable_largefile"
4395 if test "$enable_largefile" != no
; then
4397 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4398 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4399 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 ac_cv_sys_largefile_CC
=no
4403 if test "$GCC" != yes; then
4406 # IRIX 6.2 and later do not support large files by default,
4407 # so use the C compiler's -n32 option if that helps.
4408 cat >conftest.
$ac_ext <<_ACEOF
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4431 rm -f conftest.
$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4435 grep -v '^ *+' conftest.er1
>conftest.err
4437 cat conftest.err
>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try
='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try
='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.
$ac_ext >&5
4459 rm -f conftest.err conftest.
$ac_objext
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try
='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try
='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_sys_largefile_CC
=' -n32'; break
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4489 rm -f conftest.err conftest.
$ac_objext
4493 rm -f conftest.
$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4497 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4498 if test "$ac_cv_sys_largefile_CC" != no
; then
4499 CC
=$CC$ac_cv_sys_largefile_CC
4502 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4503 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_cv_sys_file_offset_bits
=no
4509 cat >conftest.
$ac_ext <<_ACEOF
4512 cat confdefs.h
>>conftest.
$ac_ext
4513 cat >>conftest.
$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <sys/types.h>
4516 /* Check that off_t can represent 2**63 - 1 correctly.
4517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4518 since some C++ compilers masquerading as C compilers
4519 incorrectly reject 9223372036854775807. */
4520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4522 && LARGE_OFF_T % 2147483647 == 1)
4532 rm -f conftest.
$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1
>conftest.err
4538 cat conftest.err
>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try
='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try
='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.
$ac_ext >&5
4560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4561 cat >conftest.
$ac_ext <<_ACEOF
4564 cat confdefs.h
>>conftest.
$ac_ext
4565 cat >>conftest.
$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #define _FILE_OFFSET_BITS 64
4568 #include <sys/types.h>
4569 /* Check that off_t can represent 2**63 - 1 correctly.
4570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4571 since some C++ compilers masquerading as C compilers
4572 incorrectly reject 9223372036854775807. */
4573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4575 && LARGE_OFF_T % 2147483647 == 1)
4585 rm -f conftest.
$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4589 grep -v '^ *+' conftest.er1
>conftest.err
4591 cat conftest.err
>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try
='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try
='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_sys_file_offset_bits
=64; break
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.
$ac_ext >&5
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4618 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4619 if test "$ac_cv_sys_file_offset_bits" != no
; then
4621 cat >>confdefs.h
<<_ACEOF
4622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4627 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4628 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4629 if test "${ac_cv_sys_large_files+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 ac_cv_sys_large_files
=no
4634 cat >conftest.
$ac_ext <<_ACEOF
4637 cat confdefs.h
>>conftest.
$ac_ext
4638 cat >>conftest.
$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 /* Check that off_t can represent 2**63 - 1 correctly.
4642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4643 since some C++ compilers masquerading as C compilers
4644 incorrectly reject 9223372036854775807. */
4645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4647 && LARGE_OFF_T % 2147483647 == 1)
4657 rm -f conftest.
$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4661 grep -v '^ *+' conftest.er1
>conftest.err
4663 cat conftest.err
>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try
='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try
='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.
$ac_ext >&5
4685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4686 cat >conftest.
$ac_ext <<_ACEOF
4689 cat confdefs.h
>>conftest.
$ac_ext
4690 cat >>conftest.
$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #define _LARGE_FILES 1
4693 #include <sys/types.h>
4694 /* Check that off_t can represent 2**63 - 1 correctly.
4695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4696 since some C++ compilers masquerading as C compilers
4697 incorrectly reject 9223372036854775807. */
4698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4700 && LARGE_OFF_T % 2147483647 == 1)
4710 rm -f conftest.
$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4714 grep -v '^ *+' conftest.er1
>conftest.err
4716 cat conftest.err
>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try
='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try
='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_sys_large_files
=1; break
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.
$ac_ext >&5
4738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4742 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4743 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4744 if test "$ac_cv_sys_large_files" != no
; then
4746 cat >>confdefs.h
<<_ACEOF
4747 #define _LARGE_FILES $ac_cv_sys_large_files
4755 if test "${with_sound}" != "no"; then
4756 # Sound support for GNU/Linux and the free BSDs.
4757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 cat >conftest.
$ac_ext <<_ACEOF
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4781 rm -f conftest.
$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try
='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_header_stdc
=yes
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.
$ac_ext >&5
4808 ac_cv_header_stdc
=no
4810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat >conftest.
$ac_ext <<_ACEOF
4817 cat confdefs.h
>>conftest.
$ac_ext
4818 cat >>conftest.
$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "memchr" >/dev
/null
2>&1; then
4827 ac_cv_header_stdc
=no
4833 if test $ac_cv_header_stdc = yes; then
4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "free" >/dev
/null
2>&1; then
4848 ac_cv_header_stdc
=no
4854 if test $ac_cv_header_stdc = yes; then
4855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4856 if test "$cross_compiling" = yes; then
4859 cat >conftest.
$ac_ext <<_ACEOF
4862 cat confdefs.h
>>conftest.
$ac_ext
4863 cat >>conftest.
$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 #if ((' ' & 0x0FF) == 0x020)
4867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4870 # define ISLOWER(c) \
4871 (('a' <= (c) && (c) <= 'i') \
4872 || ('j' <= (c) && (c) <= 'r') \
4873 || ('s' <= (c) && (c) <= 'z'))
4874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4882 for (i = 0; i < 256; i++)
4883 if (XOR (islower (i), ISLOWER (i))
4884 || toupper (i) != TOUPPER (i))
4889 rm -f conftest
$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4902 echo "$as_me: program exited with status $ac_status" >&5
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.
$ac_ext >&5
4907 ac_cv_header_stdc
=no
4909 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4914 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4915 if test $ac_cv_header_stdc = yes; then
4917 cat >>confdefs.h
<<\_ACEOF
4918 #define STDC_HEADERS 1
4923 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4933 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4934 inttypes.h stdint.h unistd.h
4936 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 echo "$as_me:$LINENO: checking for $ac_header" >&5
4938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 cat >conftest.
$ac_ext <<_ACEOF
4945 cat confdefs.h
>>conftest.
$ac_ext
4946 cat >>conftest.
$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 #include <$ac_header>
4952 rm -f conftest.
$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1
>conftest.err
4958 cat conftest.err
>&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try
='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try
='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 eval "$as_ac_Header=yes"
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.
$ac_ext >&5
4979 eval "$as_ac_Header=no"
4981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4986 cat >>confdefs.h
<<_ACEOF
4987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4998 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5000 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5002 echo "$as_me:$LINENO: checking for $ac_header" >&5
5003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5010 # Is the header compilable?
5011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5013 cat >conftest.
$ac_ext <<_ACEOF
5016 cat confdefs.h
>>conftest.
$ac_ext
5017 cat >>conftest.
$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 #include <$ac_header>
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try
='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_header_compiler
=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5049 ac_header_compiler
=no
5051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 echo "${ECHO_T}$ac_header_compiler" >&6
5055 # Is the header present?
5056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5058 cat >conftest.
$ac_ext <<_ACEOF
5061 cat confdefs.h
>>conftest.
$ac_ext
5062 cat >>conftest.
$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <$ac_header>
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1
>conftest.err
5071 cat conftest.err
>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev
/null
; then
5074 if test -s conftest.err
; then
5075 ac_cpp_err
=$ac_c_preproc_warn_flag
5076 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5083 if test -z "$ac_cpp_err"; then
5084 ac_header_preproc
=yes
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5089 ac_header_preproc
=no
5091 rm -f conftest.err conftest.
$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5093 echo "${ECHO_T}$ac_header_preproc" >&6
5095 # So? What about this header?
5096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5102 ac_header_preproc
=yes
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5119 ## ------------------------------------------ ##
5120 ## Report this to the AC_PACKAGE_NAME lists. ##
5121 ## ------------------------------------------ ##
5124 sed "s/^/$as_me: WARNING: /" >&2
5127 echo "$as_me:$LINENO: checking for $ac_header" >&5
5128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 eval "$as_ac_Header=\$ac_header_preproc"
5134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139 cat >>confdefs.h
<<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147 # Emulation library used on NetBSD.
5148 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5149 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5150 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_check_lib_save_LIBS
=$LIBS
5154 LIBS
="-lossaudio $LIBS"
5155 cat >conftest.
$ac_ext <<_ACEOF
5158 cat confdefs.h
>>conftest.
$ac_ext
5159 cat >>conftest.
$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5162 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5177 rm -f conftest.
$ac_objext conftest
$ac_exeext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 (eval $ac_link) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1
>conftest.err
5183 cat conftest.err
>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try
='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try
='test -s conftest$ac_exeext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_lib_ossaudio__oss_ioctl
=yes
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.
$ac_ext >&5
5204 ac_cv_lib_ossaudio__oss_ioctl
=no
5206 rm -f conftest.err conftest.
$ac_objext \
5207 conftest
$ac_exeext conftest.
$ac_ext
5208 LIBS
=$ac_check_lib_save_LIBS
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5244 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5245 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5246 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5247 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5249 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5251 echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5259 # Is the header compilable?
5260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5262 cat >conftest.
$ac_ext <<_ACEOF
5265 cat confdefs.h
>>conftest.
$ac_ext
5266 cat >>conftest.
$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 #include <$ac_header>
5271 rm -f conftest.
$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>conftest.er1
5275 grep -v '^ *+' conftest.er1
>conftest.err
5277 cat conftest.err
>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try
='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try
='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_header_compiler
=yes
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.
$ac_ext >&5
5298 ac_header_compiler
=no
5300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5302 echo "${ECHO_T}$ac_header_compiler" >&6
5304 # Is the header present?
5305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5307 cat >conftest.
$ac_ext <<_ACEOF
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <$ac_header>
5315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5318 grep -v '^ *+' conftest.er1
>conftest.err
5320 cat conftest.err
>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } >/dev
/null
; then
5323 if test -s conftest.err
; then
5324 ac_cpp_err
=$ac_c_preproc_warn_flag
5325 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5332 if test -z "$ac_cpp_err"; then
5333 ac_header_preproc
=yes
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5338 ac_header_preproc
=no
5340 rm -f conftest.err conftest.
$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5342 echo "${ECHO_T}$ac_header_preproc" >&6
5344 # So? What about this header?
5345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5351 ac_header_preproc
=yes
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5368 ## ------------------------------------------ ##
5369 ## Report this to the AC_PACKAGE_NAME lists. ##
5370 ## ------------------------------------------ ##
5373 sed "s/^/$as_me: WARNING: /" >&2
5376 echo "$as_me:$LINENO: checking for $ac_header" >&5
5377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 eval "$as_ac_Header=\$ac_header_preproc"
5383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5388 cat >>confdefs.h
<<_ACEOF
5389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397 for ac_header
in term.h
5399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1
>conftest.err
5418 cat conftest.err
>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev
/null
; then
5421 if test -s conftest.err
; then
5422 ac_cpp_err
=$ac_c_preproc_warn_flag
5423 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 eval "$as_ac_Header=yes"
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 eval "$as_ac_Header=no"
5438 rm -f conftest.err conftest.
$ac_ext
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h
<<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5453 if test "${ac_cv_header_stdc+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5475 rm -f conftest.
$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1
>conftest.err
5481 cat conftest.err
>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try
='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try
='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_header_stdc
=yes
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.
$ac_ext >&5
5502 ac_cv_header_stdc
=no
5504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5506 if test $ac_cv_header_stdc = yes; then
5507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5508 cat >conftest.
$ac_ext <<_ACEOF
5511 cat confdefs.h
>>conftest.
$ac_ext
5512 cat >>conftest.
$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev
/null
2>&1; then
5521 ac_cv_header_stdc
=no
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat >conftest.
$ac_ext <<_ACEOF
5532 cat confdefs.h
>>conftest.
$ac_ext
5533 cat >>conftest.
$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev
/null
2>&1; then
5542 ac_cv_header_stdc
=no
5548 if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then
5553 cat >conftest.
$ac_ext <<_ACEOF
5556 cat confdefs.h
>>conftest.
$ac_ext
5557 cat >>conftest.
$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5560 #if ((' ' & 0x0FF) == 0x020)
5561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5564 # define ISLOWER(c) \
5565 (('a' <= (c) && (c) <= 'i') \
5566 || ('j' <= (c) && (c) <= 'r') \
5567 || ('s' <= (c) && (c) <= 'z'))
5568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5576 for (i = 0; i < 256; i++)
5577 if (XOR (islower (i), ISLOWER (i))
5578 || toupper (i) != TOUPPER (i))
5583 rm -f conftest
$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5596 echo "$as_me: program exited with status $ac_status" >&5
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.
$ac_ext >&5
5601 ac_cv_header_stdc
=no
5603 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5609 if test $ac_cv_header_stdc = yes; then
5611 cat >>confdefs.h
<<\_ACEOF
5612 #define STDC_HEADERS 1
5617 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5618 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5619 if test "${ac_cv_header_time+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.
$ac_ext <<_ACEOF
5625 cat confdefs.h
>>conftest.
$ac_ext
5626 cat >>conftest.
$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 #include <sys/time.h>
5635 if ((struct tm *) 0)
5641 rm -f conftest.
$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try
='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try
='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_header_time
=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5668 ac_cv_header_time
=no
5670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5673 echo "${ECHO_T}$ac_cv_header_time" >&6
5674 if test $ac_cv_header_time = yes; then
5676 cat >>confdefs.h
<<\_ACEOF
5677 #define TIME_WITH_SYS_TIME 1
5682 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5683 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5684 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5698 char *p = (char *) sys_siglist;
5705 rm -f conftest.
$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1
>conftest.err
5711 cat conftest.err
>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try
='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try
='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_have_decl_sys_siglist
=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.
$ac_ext >&5
5732 ac_cv_have_decl_sys_siglist
=no
5734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5737 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5738 if test $ac_cv_have_decl_sys_siglist = yes; then
5740 cat >>confdefs.h
<<_ACEOF
5741 #define HAVE_DECL_SYS_SIGLIST 1
5746 cat >>confdefs.h
<<_ACEOF
5747 #define HAVE_DECL_SYS_SIGLIST 0
5754 if test $ac_cv_have_decl_sys_siglist != yes; then
5755 # For Tru64, at least:
5756 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5757 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5758 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5764 cat confdefs.h
>>conftest.
$ac_ext
5765 cat >>conftest.
$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5771 #ifndef __sys_siglist
5772 char *p = (char *) __sys_siglist;
5779 rm -f conftest.
$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1
>conftest.err
5785 cat conftest.err
>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try
='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try
='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_have_decl___sys_siglist
=yes
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.
$ac_ext >&5
5806 ac_cv_have_decl___sys_siglist
=no
5808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5810 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5811 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5812 if test $ac_cv_have_decl___sys_siglist = yes; then
5814 cat >>confdefs.h
<<_ACEOF
5815 #define HAVE_DECL___SYS_SIGLIST 1
5820 cat >>confdefs.h
<<_ACEOF
5821 #define HAVE_DECL___SYS_SIGLIST 0
5828 if test $ac_cv_have_decl___sys_siglist = yes; then
5830 cat >>confdefs.h
<<\_ACEOF
5831 #define sys_siglist __sys_siglist
5836 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5837 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5838 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <sys/types.h>
5848 #include <sys/wait.h>
5850 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5853 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5861 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5866 rm -f conftest.
$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try
='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_header_sys_wait_h
=yes
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5893 ac_cv_header_sys_wait_h
=no
5895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5899 if test $ac_cv_header_sys_wait_h = yes; then
5901 cat >>confdefs.h
<<\_ACEOF
5902 #define HAVE_SYS_WAIT_H 1
5908 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5909 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5910 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifdef TIME_WITH_SYS_TIME
5920 #include <sys/time.h>
5923 #ifdef HAVE_SYS_TIME_H
5924 #include <sys/time.h>
5935 static struct utimbuf x; x.actime = x.modtime;
5940 rm -f conftest.
$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
5944 grep -v '^ *+' conftest.er1
>conftest.err
5946 cat conftest.err
>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try
='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try
='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 emacs_cv_struct_utimbuf
=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.
$ac_ext >&5
5967 emacs_cv_struct_utimbuf
=no
5969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5971 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5972 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5973 if test $emacs_cv_struct_utimbuf = yes; then
5975 cat >>confdefs.h
<<\_ACEOF
5976 #define HAVE_STRUCT_UTIMBUF 1
5981 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5982 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5983 if test "${ac_cv_type_signal+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 cat >conftest.
$ac_ext <<_ACEOF
5989 cat confdefs.h
>>conftest.
$ac_ext
5990 cat >>conftest.
$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5998 extern "C" void (*signal (int, void (*)(int)))(int);
6000 void (*signal ()) ();
6011 rm -f conftest.
$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1
>conftest.err
6017 cat conftest.err
>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try
='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try
='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_type_signal
=void
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6038 ac_cv_type_signal
=int
6040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6043 echo "${ECHO_T}$ac_cv_type_signal" >&6
6045 cat >>confdefs.h
<<_ACEOF
6046 #define RETSIGTYPE $ac_cv_type_signal
6051 echo "$as_me:$LINENO: checking for speed_t" >&5
6052 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6053 if test "${emacs_cv_speed_t+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <termios.h>
6071 rm -f conftest.
$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6075 grep -v '^ *+' conftest.er1
>conftest.err
6077 cat conftest.err
>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try
='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try
='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 emacs_cv_speed_t
=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6103 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6104 if test $emacs_cv_speed_t = yes; then
6106 cat >>confdefs.h
<<\_ACEOF
6107 #define HAVE_SPEED_T 1
6112 echo "$as_me:$LINENO: checking for struct timeval" >&5
6113 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6114 if test "${emacs_cv_struct_timeval+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 cat >conftest.
$ac_ext <<_ACEOF
6120 cat confdefs.h
>>conftest.
$ac_ext
6121 cat >>conftest.
$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #ifdef TIME_WITH_SYS_TIME
6124 #include <sys/time.h>
6127 #ifdef HAVE_SYS_TIME_H
6128 #include <sys/time.h>
6136 static struct timeval x; x.tv_sec = x.tv_usec;
6141 rm -f conftest.
$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6145 grep -v '^ *+' conftest.er1
>conftest.err
6147 cat conftest.err
>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try
='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try
='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 emacs_cv_struct_timeval
=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6168 emacs_cv_struct_timeval
=no
6170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6173 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6174 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6175 if test $emacs_cv_struct_timeval = yes; then
6177 cat >>confdefs.h
<<\_ACEOF
6178 #define HAVE_TIMEVAL 1
6183 echo "$as_me:$LINENO: checking for struct exception" >&5
6184 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6185 if test "${emacs_cv_struct_exception+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6198 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6203 rm -f conftest.
$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1
>conftest.err
6209 cat conftest.err
>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 emacs_cv_struct_exception
=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 emacs_cv_struct_exception
=no
6232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6234 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6235 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6236 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6237 if test $emacs_cv_struct_exception != yes; then
6239 cat >>confdefs.h
<<\_ACEOF
6240 #define NO_MATHERR 1
6246 for ac_header
in sys
/socket.h
6248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258 # Is the header compilable?
6259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6268 #include <$ac_header>
6270 rm -f conftest.
$ac_objext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6274 grep -v '^ *+' conftest.er1
>conftest.err
6276 cat conftest.err
>&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try
='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try
='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_header_compiler
=yes
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.
$ac_ext >&5
6297 ac_header_compiler
=no
6299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301 echo "${ECHO_T}$ac_header_compiler" >&6
6303 # Is the header present?
6304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6306 cat >conftest.
$ac_ext <<_ACEOF
6309 cat confdefs.h
>>conftest.
$ac_ext
6310 cat >>conftest.
$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <$ac_header>
6314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev
/null
; then
6322 if test -s conftest.err
; then
6323 ac_cpp_err
=$ac_c_preproc_warn_flag
6324 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6331 if test -z "$ac_cpp_err"; then
6332 ac_header_preproc
=yes
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6337 ac_header_preproc
=no
6339 rm -f conftest.err conftest.
$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341 echo "${ECHO_T}$ac_header_preproc" >&6
6343 # So? What about this header?
6344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc
=yes
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 ## ------------------------------------------ ##
6368 ## Report this to the AC_PACKAGE_NAME lists. ##
6369 ## ------------------------------------------ ##
6372 sed "s/^/$as_me: WARNING: /" >&2
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h
<<_ACEOF
6388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 for ac_header
in net
/if.h
6398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 echo "$as_me:$LINENO: checking for $ac_header" >&5
6400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 cat >conftest.
$ac_ext <<_ACEOF
6407 cat confdefs.h
>>conftest.
$ac_ext
6408 cat >>conftest.
$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 $ac_includes_default
6411 #if HAVE_SYS_SOCKET_H
6412 #include <sys/socket.h>
6415 #include <$ac_header>
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 eval "$as_ac_Header=yes"
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 eval "$as_ac_Header=no"
6446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h
<<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6460 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6461 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6462 if test "${ac_cv_struct_tm+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 cat >conftest.
$ac_ext <<_ACEOF
6468 cat confdefs.h
>>conftest.
$ac_ext
6469 cat >>conftest.
$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <sys/types.h>
6477 struct tm *tp; tp->tm_sec;
6482 rm -f conftest.
$ac_objext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>conftest.er1
6486 grep -v '^ *+' conftest.er1
>conftest.err
6488 cat conftest.err
>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try
='test -z "$ac_c_werror_flag"
6492 || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try
='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_struct_tm
=time.h
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.
$ac_ext >&5
6509 ac_cv_struct_tm
=sys
/time.h
6511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6513 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6514 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6515 if test $ac_cv_struct_tm = sys
/time.h
; then
6517 cat >>confdefs.h
<<\_ACEOF
6518 #define TM_IN_SYS_TIME 1
6523 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6524 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6525 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 cat >conftest.
$ac_ext <<_ACEOF
6531 cat confdefs.h
>>conftest.
$ac_ext
6532 cat >>conftest.
$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 #include <sys/types.h>
6535 #include <$ac_cv_struct_tm>
6541 static struct tm ac_aggr;
6542 if (ac_aggr.tm_zone)
6548 rm -f conftest.
$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try
='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try
='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_cv_member_struct_tm_tm_zone
=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 cat >conftest.
$ac_ext <<_ACEOF
6578 cat confdefs.h
>>conftest.
$ac_ext
6579 cat >>conftest.
$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #include <sys/types.h>
6582 #include <$ac_cv_struct_tm>
6588 static struct tm ac_aggr;
6589 if (sizeof ac_aggr.tm_zone)
6595 rm -f conftest.
$ac_objext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597 (eval $ac_compile) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1
>conftest.err
6601 cat conftest.err
>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try
='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try
='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_member_struct_tm_tm_zone
=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.
$ac_ext >&5
6622 ac_cv_member_struct_tm_tm_zone
=no
6624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6629 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6630 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6632 cat >>confdefs.h
<<_ACEOF
6633 #define HAVE_STRUCT_TM_TM_ZONE 1
6639 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6641 cat >>confdefs.h
<<\_ACEOF
6642 #define HAVE_TM_ZONE 1
6646 echo "$as_me:$LINENO: checking for tzname" >&5
6647 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6648 if test "${ac_cv_var_tzname+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 cat >conftest.
$ac_ext <<_ACEOF
6654 cat confdefs.h
>>conftest.
$ac_ext
6655 cat >>conftest.
$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 #ifndef tzname /* For SGI. */
6659 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6670 rm -f conftest.
$ac_objext conftest
$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1
>conftest.err
6676 cat conftest.err
>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try
='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try
='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_var_tzname
=yes
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.
$ac_ext >&5
6699 rm -f conftest.err conftest.
$ac_objext \
6700 conftest
$ac_exeext conftest.
$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6703 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6704 if test $ac_cv_var_tzname = yes; then
6706 cat >>confdefs.h
<<\_ACEOF
6707 #define HAVE_TZNAME 1
6713 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6714 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6715 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.
$ac_ext <<_ACEOF
6721 cat confdefs.h
>>conftest.
$ac_ext
6722 cat >>conftest.
$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6729 static struct tm ac_aggr;
6730 if (ac_aggr.tm_gmtoff)
6736 rm -f conftest.
$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6740 grep -v '^ *+' conftest.er1
>conftest.err
6742 cat conftest.err
>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try
='test -z "$ac_c_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try
='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_member_struct_tm_tm_gmtoff
=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.
$ac_ext >&5
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6774 static struct tm ac_aggr;
6775 if (sizeof ac_aggr.tm_gmtoff)
6781 rm -f conftest.
$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>conftest.er1
6785 grep -v '^ *+' conftest.er1
>conftest.err
6787 cat conftest.err
>&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try
='test -z "$ac_c_werror_flag"
6791 || test ! -s conftest.err'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; } &&
6797 { ac_try
='test -s conftest.$ac_objext'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 ac_cv_member_struct_tm_tm_gmtoff
=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.
$ac_ext >&5
6808 ac_cv_member_struct_tm_tm_gmtoff
=no
6810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6815 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6816 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6818 cat >>confdefs.h
<<\_ACEOF
6819 #define HAVE_TM_GMTOFF 1
6824 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6825 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6826 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 cat >conftest.
$ac_ext <<_ACEOF
6832 cat confdefs.h
>>conftest.
$ac_ext
6833 cat >>conftest.
$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6836 #if HAVE_SYS_SOCKET_H
6837 #include <sys/socket.h>
6846 static struct ifreq ac_aggr;
6847 if (ac_aggr.ifr_flags)
6853 rm -f conftest.
$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>conftest.er1
6857 grep -v '^ *+' conftest.er1
>conftest.err
6859 cat conftest.err
>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try
='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try
='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_member_struct_ifreq_ifr_flags
=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6880 cat >conftest.
$ac_ext <<_ACEOF
6883 cat confdefs.h
>>conftest.
$ac_ext
6884 cat >>conftest.
$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 $ac_includes_default
6887 #if HAVE_SYS_SOCKET_H
6888 #include <sys/socket.h>
6897 static struct ifreq ac_aggr;
6898 if (sizeof ac_aggr.ifr_flags)
6904 rm -f conftest.
$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6908 grep -v '^ *+' conftest.er1
>conftest.err
6910 cat conftest.err
>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try
='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try
='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_member_struct_ifreq_ifr_flags
=yes
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6931 ac_cv_member_struct_ifreq_ifr_flags
=no
6933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6938 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6939 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6941 cat >>confdefs.h
<<_ACEOF
6942 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6947 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6948 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6949 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 cat >conftest.
$ac_ext <<_ACEOF
6955 cat confdefs.h
>>conftest.
$ac_ext
6956 cat >>conftest.
$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6959 #if HAVE_SYS_SOCKET_H
6960 #include <sys/socket.h>
6969 static struct ifreq ac_aggr;
6970 if (ac_aggr.ifr_hwaddr)
6976 rm -f conftest.
$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try
='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try
='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 cat >conftest.
$ac_ext <<_ACEOF
7006 cat confdefs.h
>>conftest.
$ac_ext
7007 cat >>conftest.
$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 #if HAVE_SYS_SOCKET_H
7011 #include <sys/socket.h>
7020 static struct ifreq ac_aggr;
7021 if (sizeof ac_aggr.ifr_hwaddr)
7027 rm -f conftest.
$ac_objext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029 (eval $ac_compile) 2>conftest.er1
7031 grep -v '^ *+' conftest.er1
>conftest.err
7033 cat conftest.err
>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try
='test -z "$ac_c_werror_flag"
7037 || test ! -s conftest.err'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; } &&
7043 { ac_try
='test -s conftest.$ac_objext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7049 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.
$ac_ext >&5
7054 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7060 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7061 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7062 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7064 cat >>confdefs.h
<<_ACEOF
7065 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7070 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7071 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7072 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 cat >conftest.
$ac_ext <<_ACEOF
7078 cat confdefs.h
>>conftest.
$ac_ext
7079 cat >>conftest.
$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 $ac_includes_default
7082 #if HAVE_SYS_SOCKET_H
7083 #include <sys/socket.h>
7092 static struct ifreq ac_aggr;
7093 if (ac_aggr.ifr_netmask)
7099 rm -f conftest.
$ac_objext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>conftest.er1
7103 grep -v '^ *+' conftest.er1
>conftest.err
7105 cat conftest.err
>&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try
='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try
='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.
$ac_ext >&5
7126 cat >conftest.
$ac_ext <<_ACEOF
7129 cat confdefs.h
>>conftest.
$ac_ext
7130 cat >>conftest.
$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 $ac_includes_default
7133 #if HAVE_SYS_SOCKET_H
7134 #include <sys/socket.h>
7143 static struct ifreq ac_aggr;
7144 if (sizeof ac_aggr.ifr_netmask)
7150 rm -f conftest.
$ac_objext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7152 (eval $ac_compile) 2>conftest.er1
7154 grep -v '^ *+' conftest.er1
>conftest.err
7156 cat conftest.err
>&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try
='test -z "$ac_c_werror_flag"
7160 || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try
='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.
$ac_ext >&5
7177 ac_cv_member_struct_ifreq_ifr_netmask
=no
7179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7184 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7185 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7187 cat >>confdefs.h
<<_ACEOF
7188 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7193 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7194 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7195 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 cat >conftest.
$ac_ext <<_ACEOF
7201 cat confdefs.h
>>conftest.
$ac_ext
7202 cat >>conftest.
$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7205 #if HAVE_SYS_SOCKET_H
7206 #include <sys/socket.h>
7215 static struct ifreq ac_aggr;
7216 if (ac_aggr.ifr_broadaddr)
7222 rm -f conftest.
$ac_objext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>conftest.er1
7226 grep -v '^ *+' conftest.er1
>conftest.err
7228 cat conftest.err
>&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try
='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try
='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.
$ac_ext >&5
7249 cat >conftest.
$ac_ext <<_ACEOF
7252 cat confdefs.h
>>conftest.
$ac_ext
7253 cat >>conftest.
$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 #if HAVE_SYS_SOCKET_H
7257 #include <sys/socket.h>
7266 static struct ifreq ac_aggr;
7267 if (sizeof ac_aggr.ifr_broadaddr)
7273 rm -f conftest.
$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1
>conftest.err
7279 cat conftest.err
>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try
='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try
='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.
$ac_ext >&5
7300 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7306 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7307 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7308 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7310 cat >>confdefs.h
<<_ACEOF
7311 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7316 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7317 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7318 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 cat >conftest.
$ac_ext <<_ACEOF
7324 cat confdefs.h
>>conftest.
$ac_ext
7325 cat >>conftest.
$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7328 #if HAVE_SYS_SOCKET_H
7329 #include <sys/socket.h>
7338 static struct ifreq ac_aggr;
7339 if (ac_aggr.ifr_addr)
7345 rm -f conftest.
$ac_objext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7347 (eval $ac_compile) 2>conftest.er1
7349 grep -v '^ *+' conftest.er1
>conftest.err
7351 cat conftest.err
>&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try
='test -z "$ac_c_werror_flag"
7355 || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try
='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_member_struct_ifreq_ifr_addr
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 cat >conftest.
$ac_ext <<_ACEOF
7375 cat confdefs.h
>>conftest.
$ac_ext
7376 cat >>conftest.
$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #if HAVE_SYS_SOCKET_H
7380 #include <sys/socket.h>
7389 static struct ifreq ac_aggr;
7390 if (sizeof ac_aggr.ifr_addr)
7396 rm -f conftest.
$ac_objext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398 (eval $ac_compile) 2>conftest.er1
7400 grep -v '^ *+' conftest.er1
>conftest.err
7402 cat conftest.err
>&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try
='test -z "$ac_c_werror_flag"
7406 || test ! -s conftest.err'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try
='test -s conftest.$ac_objext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 ac_cv_member_struct_ifreq_ifr_addr
=yes
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.
$ac_ext >&5
7423 ac_cv_member_struct_ifreq_ifr_addr
=no
7425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7429 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7430 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7431 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7433 cat >>confdefs.h
<<_ACEOF
7434 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7442 echo "$as_me:$LINENO: checking for function prototypes" >&5
7443 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7444 if test "$ac_cv_prog_cc_stdc" != no
; then
7445 echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7448 cat >>confdefs.h
<<\_ACEOF
7449 #define PROTOTYPES 1
7453 cat >>confdefs.h
<<\_ACEOF
7454 #define __PROTOTYPES 1
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7462 echo "$as_me:$LINENO: checking for working volatile" >&5
7463 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7464 if test "${ac_cv_c_volatile+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 cat >conftest.
$ac_ext <<_ACEOF
7470 cat confdefs.h
>>conftest.
$ac_ext
7471 cat >>conftest.
$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7484 rm -f conftest.
$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>conftest.er1
7488 grep -v '^ *+' conftest.er1
>conftest.err
7490 cat conftest.err
>&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } &&
7493 { ac_try
='test -z "$ac_c_werror_flag"
7494 || test ! -s conftest.err'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; } &&
7500 { ac_try
='test -s conftest.$ac_objext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 ac_cv_c_volatile
=yes
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.
$ac_ext >&5
7513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7516 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7517 if test $ac_cv_c_volatile = no
; then
7519 cat >>confdefs.h
<<\_ACEOF
7525 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7526 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7527 if test "${ac_cv_c_const+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.
$ac_ext <<_ACEOF
7533 cat confdefs.h
>>conftest.
$ac_ext
7534 cat >>conftest.
$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7540 /* FIXME: Include the comments suggested by Paul. */
7542 /* Ultrix mips cc rejects this. */
7543 typedef int charset[2];
7545 /* SunOS 4.1.1 cc rejects this. */
7546 char const *const *ccp;
7548 /* NEC SVR4.0.2 mips cc rejects this. */
7549 struct point {int x, y;};
7550 static struct point const zero = {0,0};
7551 /* AIX XL C 1.02.0.0 rejects this.
7552 It does not let you subtract one const X* pointer from another in
7553 an arm of an if-expression whose if-part is not a constant
7555 const char *g = "string";
7556 ccp = &g + (g ? g-g : 0);
7557 /* HPUX 7.0 cc rejects these. */
7560 ccp = (char const *const *) p;
7561 { /* SCO 3.2v4 cc rejects this. */
7563 char const *s = 0 ? (char *) 0 : (char const *) 0;
7567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7569 const int *foo = &x[0];
7572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7573 typedef const int *iptr;
7577 { /* AIX XL C 1.02.0.0 rejects this saying
7578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7579 struct s { int j; const int *ap[3]; };
7580 struct s *b; b->j = 5;
7582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7591 rm -f conftest.
$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7595 grep -v '^ *+' conftest.er1
>conftest.err
7597 cat conftest.err
>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try
='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try
='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.
$ac_ext >&5
7620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7623 echo "${ECHO_T}$ac_cv_c_const" >&6
7624 if test $ac_cv_c_const = no
; then
7626 cat >>confdefs.h
<<\_ACEOF
7632 echo "$as_me:$LINENO: checking for void * support" >&5
7633 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7634 if test "${emacs_cv_void_star+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat >conftest.
$ac_ext <<_ACEOF
7640 cat confdefs.h
>>conftest.
$ac_ext
7641 cat >>conftest.
$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7652 rm -f conftest.
$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7656 grep -v '^ *+' conftest.er1
>conftest.err
7658 cat conftest.err
>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try
='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try
='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 emacs_cv_void_star
=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7679 emacs_cv_void_star
=no
7681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7684 echo "${ECHO_T}$emacs_cv_void_star" >&6
7685 if test $emacs_cv_void_star = yes; then
7686 cat >>confdefs.h
<<\_ACEOF
7687 #define POINTER_TYPE void
7691 cat >>confdefs.h
<<\_ACEOF
7692 #define POINTER_TYPE char
7699 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7700 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7701 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7702 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 cat >conftest.
make <<\_ACEOF
7707 @
echo 'ac_maketemp="$(MAKE)"'
7709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7710 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7711 if test -n "$ac_maketemp"; then
7712 eval ac_cv_prog_make_
${ac_make}_set
=yes
7714 eval ac_cv_prog_make_
${ac_make}_set
=no
7718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7719 echo "$as_me:$LINENO: result: yes" >&5
7720 echo "${ECHO_T}yes" >&6
7723 echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6
7725 SET_MAKE
="MAKE=${MAKE-make}"
7729 echo "$as_me:$LINENO: checking for long file names" >&5
7730 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7731 if test "${ac_cv_sys_long_file_names+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 ac_cv_sys_long_file_names
=yes
7735 # Test for long file names in all the places we know might matter:
7736 # . the current directory, where building will happen
7737 # $prefix/lib where we will be installing things
7738 # $exec_prefix/lib likewise
7739 # eval it to expand exec_prefix.
7740 # $TMPDIR if set, where it might want to write temporary files
7741 # if $TMPDIR is not set:
7742 # /tmp where it might want to write temporary files
7745 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7748 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7750 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7751 test -d $ac_dir ||
continue
7752 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7753 ac_xdir
=$ac_dir/cf$$
7754 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7755 ac_tf1
=$ac_xdir/conftest9012345
7756 ac_tf2
=$ac_xdir/conftest9012346
7757 (echo 1 >$ac_tf1) 2>/dev
/null
7758 (echo 2 >$ac_tf2) 2>/dev
/null
7759 ac_val
=`cat $ac_tf1 2>/dev/null`
7760 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7761 ac_cv_sys_long_file_names
=no
7762 rm -rf $ac_xdir 2>/dev
/null
7765 rm -rf $ac_xdir 2>/dev
/null
7768 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7769 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7770 if test $ac_cv_sys_long_file_names = yes; then
7772 cat >>confdefs.h
<<\_ACEOF
7773 #define HAVE_LONG_FILE_NAMES 1
7779 #### Choose a window system.
7781 echo "$as_me:$LINENO: checking for X" >&5
7782 echo $ECHO_N "checking for X... $ECHO_C" >&6
7785 # Check whether --with-x or --without-x was given.
7786 if test "${with_x+set}" = set; then
7790 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7791 if test "x$with_x" = xno
; then
7792 # The user explicitly disabled X.
7795 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7796 # Both variables are already set.
7799 if test "${ac_cv_have_x+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 # One or both of the vars are not set, and there is no cached value.
7803 ac_x_includes
=no ac_x_libraries
=no
7805 if mkdir conftest.dir
; then
7807 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7808 cat >Imakefile
<<'_ACEOF'
7810 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7812 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7814 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7815 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7816 for ac_extension
in a so sl
; do
7817 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7818 test -f $ac_im_libdir/libX11.
$ac_extension; then
7819 ac_im_usrlibdir
=$ac_im_libdir; break
7822 # Screen out bogus values from the imake configuration. They are
7823 # bogus both because they are the default anyway, and because
7824 # using them would break gcc on systems where it needs fixed includes.
7825 case $ac_im_incroot in
7827 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7829 case $ac_im_usrlibdir in
7831 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7838 # Standard set of common directories for X headers.
7839 # Check X11 before X11Rn because it is often a symlink to the current release.
7851 /usr/local/X11/include
7852 /usr/local/X11R6/include
7853 /usr/local/X11R5/include
7854 /usr/local/X11R4/include
7856 /usr/local/include/X11
7857 /usr/local/include/X11R6
7858 /usr/local/include/X11R5
7859 /usr/local/include/X11R4
7863 /usr/XFree86/include/X11
7867 /usr/unsupported/include
7869 /usr/local/x11r5/include
7870 /usr/lpp/Xamples/include
7872 /usr/openwin/include
7873 /usr/openwin/share/include'
7875 if test "$ac_x_includes" = no
; then
7876 # Guess where to find include files, by looking for Intrinsic.h.
7877 # First, try using that file with no special directory specified.
7878 cat >conftest.
$ac_ext <<_ACEOF
7881 cat confdefs.h
>>conftest.
$ac_ext
7882 cat >>conftest.
$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <X11/Intrinsic.h>
7886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7887 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7889 grep -v '^ *+' conftest.er1
>conftest.err
7891 cat conftest.err
>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } >/dev
/null
; then
7894 if test -s conftest.err
; then
7895 ac_cpp_err
=$ac_c_preproc_warn_flag
7896 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7903 if test -z "$ac_cpp_err"; then
7904 # We can compile using X headers with no special include directory.
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.
$ac_ext >&5
7910 for ac_dir
in $ac_x_header_dirs; do
7911 if test -r "$ac_dir/X11/Intrinsic.h"; then
7912 ac_x_includes
=$ac_dir
7917 rm -f conftest.err conftest.
$ac_ext
7918 fi # $ac_x_includes = no
7920 if test "$ac_x_libraries" = no
; then
7921 # Check for the libraries.
7922 # See if we find them without any special options.
7923 # Don't add to $LIBS permanently.
7926 cat >conftest.
$ac_ext <<_ACEOF
7929 cat confdefs.h
>>conftest.
$ac_ext
7930 cat >>conftest.
$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <X11/Intrinsic.h>
7941 rm -f conftest.
$ac_objext conftest
$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>conftest.er1
7945 grep -v '^ *+' conftest.er1
>conftest.err
7947 cat conftest.err
>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try
='test -z "$ac_c_werror_flag"
7951 || test ! -s conftest.err'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try
='test -s conftest$ac_exeext'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7964 # We can link X programs with no special library path.
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.
$ac_ext >&5
7971 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7973 # Don't even attempt the hair of trying to link an X program!
7974 for ac_extension
in a so sl
; do
7975 if test -r $ac_dir/libXt.
$ac_extension; then
7976 ac_x_libraries
=$ac_dir
7982 rm -f conftest.err conftest.
$ac_objext \
7983 conftest
$ac_exeext conftest.
$ac_ext
7984 fi # $ac_x_libraries = no
7986 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7987 # Didn't find X anywhere. Cache the known absence of X.
7988 ac_cv_have_x
="have_x=no"
7990 # Record where we found X for the cache.
7991 ac_cv_have_x
="have_x=yes \
7992 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7997 eval "$ac_cv_have_x"
8000 if test "$have_x" != yes; then
8001 echo "$as_me:$LINENO: result: $have_x" >&5
8002 echo "${ECHO_T}$have_x" >&6
8005 # If each of the values was on the command line, it overrides each guess.
8006 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8007 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8008 # Update the cache value to reflect the command line values.
8009 ac_cv_have_x
="have_x=yes \
8010 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8011 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8012 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8015 if test "$no_x" = yes; then
8021 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8022 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8023 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8024 x_default_search_path
=""
8025 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8027 ${x_library}/X11/%L/%T/%N%C%S:\
8028 ${x_library}/X11/%l/%T/%N%C%S:\
8029 ${x_library}/X11/%T/%N%C%S:\
8030 ${x_library}/X11/%L/%T/%N%S:\
8031 ${x_library}/X11/%l/%T/%N%S:\
8032 ${x_library}/X11/%T/%N%S"
8033 if test x
"${x_default_search_path}" = x
; then
8034 x_default_search_path
=${x_search_path}
8036 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8040 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8041 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8044 if test x
"${x_includes}" = x
; then
8045 bitmapdir
=/usr
/include
/X11
/bitmaps
8047 # accumulate include directories that have X11 bitmap subdirectories
8049 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8050 if test -d "${bmd}/X11/bitmaps"; then
8051 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8053 if test -d "${bmd}/bitmaps"; then
8054 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8057 if test ${bmd_acc} != "dummyval"; then
8058 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8062 case "${window_system}" in
8066 case "${with_x_toolkit}" in
8067 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8068 motif
) USE_X_TOOLKIT
=MOTIF
;;
8070 USE_X_TOOLKIT
=none
;;
8071 no
) USE_X_TOOLKIT
=none
;;
8072 * ) USE_X_TOOLKIT
=maybe
;;
8082 ### If we're using X11, we should use the X menu package.
8085 yes ) HAVE_MENUS
=yes ;;
8088 if test "${opsys}" = "hpux9"; then
8089 case "${x_libraries}" in
8091 opsysfile
="s/hpux9-x11r4.h"
8096 if test "${opsys}" = "hpux9shr"; then
8097 case "${x_libraries}" in
8099 opsysfile
="s/hpux9shxr4.h"
8104 ### Compute the unexec source name from the object name.
8105 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8107 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8108 # Assume not, until told otherwise.
8111 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8112 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8113 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.
$ac_ext <<_ACEOF
8119 cat confdefs.h
>>conftest.
$ac_ext
8120 cat >>conftest.
$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8124 #define malloc_get_state innocuous_malloc_get_state
8126 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char malloc_get_state (); below.
8128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129 <limits.h> exists even on freestanding compilers. */
8132 # include <limits.h>
8134 # include <assert.h>
8137 #undef malloc_get_state
8139 /* Override any gcc2 internal prototype to avoid an error. */
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8146 char malloc_get_state ();
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8153 char (*f) () = malloc_get_state;
8162 return f != malloc_get_state;
8167 rm -f conftest.
$ac_objext conftest
$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1
>conftest.err
8173 cat conftest.err
>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try
='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try
='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_func_malloc_get_state
=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.
$ac_ext >&5
8194 ac_cv_func_malloc_get_state
=no
8196 rm -f conftest.err conftest.
$ac_objext \
8197 conftest
$ac_exeext conftest.
$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8200 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8201 if test $ac_cv_func_malloc_get_state = yes; then
8207 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8208 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8209 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 cat >conftest.
$ac_ext <<_ACEOF
8215 cat confdefs.h
>>conftest.
$ac_ext
8216 cat >>conftest.
$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8220 #define malloc_set_state innocuous_malloc_set_state
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char malloc_set_state (); below.
8224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8225 <limits.h> exists even on freestanding compilers. */
8228 # include <limits.h>
8230 # include <assert.h>
8233 #undef malloc_set_state
8235 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char malloc_set_state ();
8243 /* The GNU C library defines this for functions which it implements
8244 to always fail with ENOSYS. Some functions are actually named
8245 something starting with __ and the normal name is an alias. */
8246 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8249 char (*f) () = malloc_set_state;
8258 return f != malloc_set_state;
8263 rm -f conftest.
$ac_objext conftest
$ac_exeext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8265 (eval $ac_link) 2>conftest.er1
8267 grep -v '^ *+' conftest.er1
>conftest.err
8269 cat conftest.err
>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try
='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try
='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_func_malloc_set_state
=yes
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.
$ac_ext >&5
8290 ac_cv_func_malloc_set_state
=no
8292 rm -f conftest.err conftest.
$ac_objext \
8293 conftest
$ac_exeext conftest.
$ac_ext
8295 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8296 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8297 if test $ac_cv_func_malloc_set_state = yes; then
8303 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8304 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8305 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.
$ac_ext <<_ACEOF
8311 cat confdefs.h
>>conftest.
$ac_ext
8312 cat >>conftest.
$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 extern void (* __after_morecore_hook)();
8318 __after_morecore_hook = 0
8323 rm -f conftest.
$ac_objext conftest
$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1
>conftest.err
8329 cat conftest.err
>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try
='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try
='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 emacs_cv_var___after_morecore_hook
=yes
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.
$ac_ext >&5
8350 emacs_cv_var___after_morecore_hook
=no
8352 rm -f conftest.err conftest.
$ac_objext \
8353 conftest
$ac_exeext conftest.
$ac_ext
8355 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8356 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8357 if test $emacs_cv_var___after_morecore_hook = no
; then
8360 if test "${system_malloc}" = "yes"; then
8363 (The GNU allocators don't work with this system configuration.)"
8365 if test "$doug_lea_malloc" = "yes" ; then
8366 if test "$GNU_MALLOC" = yes ; then
8368 (Using Doug Lea's new malloc from the GNU C Library.)"
8371 cat >>confdefs.h
<<\_ACEOF
8372 #define DOUG_LEA_MALLOC 1
8377 if test x
"${REL_ALLOC}" = x
; then
8378 REL_ALLOC
=${GNU_MALLOC}
8384 for ac_header
in stdlib.h unistd.h
8386 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo "$as_me:$LINENO: checking for $ac_header" >&5
8389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 # Is the header compilable?
8397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #include <$ac_header>
8408 rm -f conftest.
$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8412 grep -v '^ *+' conftest.er1
>conftest.err
8414 cat conftest.err
>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try
='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try
='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_header_compiler
=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8435 ac_header_compiler
=no
8437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8444 cat >conftest.
$ac_ext <<_ACEOF
8447 cat confdefs.h
>>conftest.
$ac_ext
8448 cat >>conftest.
$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <$ac_header>
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8455 grep -v '^ *+' conftest.er1
>conftest.err
8457 cat conftest.err
>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev
/null
; then
8460 if test -s conftest.err
; then
8461 ac_cpp_err
=$ac_c_preproc_warn_flag
8462 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8469 if test -z "$ac_cpp_err"; then
8470 ac_header_preproc
=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.
$ac_ext >&5
8475 ac_header_preproc
=no
8477 rm -f conftest.err conftest.
$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479 echo "${ECHO_T}$ac_header_preproc" >&6
8481 # So? What about this header?
8482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc
=yes
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8505 ## ------------------------------------------ ##
8506 ## Report this to the AC_PACKAGE_NAME lists. ##
8507 ## ------------------------------------------ ##
8510 sed "s/^/$as_me: WARNING: /" >&2
8513 echo "$as_me:$LINENO: checking for $ac_header" >&5
8514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 eval "$as_ac_Header=\$ac_header_preproc"
8520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525 cat >>confdefs.h
<<_ACEOF
8526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8534 for ac_func
in getpagesize
8536 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8537 echo "$as_me:$LINENO: checking for $ac_func" >&5
8538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8539 if eval "test \"\${$as_ac_var+set}\" = set"; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 cat >conftest.
$ac_ext <<_ACEOF
8545 cat confdefs.h
>>conftest.
$ac_ext
8546 cat >>conftest.
$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8550 #define $ac_func innocuous_$ac_func
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char $ac_func (); below.
8554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8555 <limits.h> exists even on freestanding compilers. */
8558 # include <limits.h>
8560 # include <assert.h>
8565 /* Override any gcc2 internal prototype to avoid an error. */
8570 /* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */
8573 /* The GNU C library defines this for functions which it implements
8574 to always fail with ENOSYS. Some functions are actually named
8575 something starting with __ and the normal name is an alias. */
8576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8579 char (*f) () = $ac_func;
8588 return f != $ac_func;
8593 rm -f conftest.
$ac_objext conftest
$ac_exeext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595 (eval $ac_link) 2>conftest.er1
8597 grep -v '^ *+' conftest.er1
>conftest.err
8599 cat conftest.err
>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try
='test -z "$ac_c_werror_flag"
8603 || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try
='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 eval "$as_ac_var=yes"
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.
$ac_ext >&5
8620 eval "$as_ac_var=no"
8622 rm -f conftest.err conftest.
$ac_objext \
8623 conftest
$ac_exeext conftest.
$ac_ext
8625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8627 if test `eval echo '${'$as_ac_var'}'` = yes; then
8628 cat >>confdefs.h
<<_ACEOF
8629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8635 echo "$as_me:$LINENO: checking for working mmap" >&5
8636 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8637 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 if test "$cross_compiling" = yes; then
8641 ac_cv_func_mmap_fixed_mapped
=no
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 $ac_includes_default
8650 /* malloc might have been renamed as rpl_malloc. */
8653 /* Thanks to Mike Haertel and Jim Avera for this test.
8654 Here is a matrix of mmap possibilities:
8655 mmap private not fixed
8656 mmap private fixed at somewhere currently unmapped
8657 mmap private fixed at somewhere already mapped
8658 mmap shared not fixed
8659 mmap shared fixed at somewhere currently unmapped
8660 mmap shared fixed at somewhere already mapped
8661 For private mappings, we should verify that changes cannot be read()
8662 back from the file, nor mmap's back from the file at a different
8663 address. (There have been systems where private was not correctly
8664 implemented like the infamous i386 svr4.0, and systems where the
8665 VM page cache was not coherent with the file system buffer cache
8666 like early versions of FreeBSD and possibly contemporary NetBSD.)
8667 For shared mappings, we should conversely verify that changes get
8668 propagated back to all the places they're supposed to be.
8670 Grep wants private fixed already mapped.
8671 The main things grep needs to know about mmap are:
8672 * does it exist and is it safe to write into the mmap'd area
8673 * how to use it (BSD variants) */
8676 #include <sys/mman.h>
8678 #if !STDC_HEADERS && !HAVE_STDLIB_H
8682 /* This mess was copied from the GNU getpagesize.h. */
8683 #if !HAVE_GETPAGESIZE
8684 /* Assume that all systems that can run configure have sys/param.h. */
8685 # if !HAVE_SYS_PARAM_H
8686 # define HAVE_SYS_PARAM_H 1
8689 # ifdef _SC_PAGESIZE
8690 # define getpagesize() sysconf(_SC_PAGESIZE)
8691 # else /* no _SC_PAGESIZE */
8692 # if HAVE_SYS_PARAM_H
8693 # include <sys/param.h>
8694 # ifdef EXEC_PAGESIZE
8695 # define getpagesize() EXEC_PAGESIZE
8696 # else /* no EXEC_PAGESIZE */
8698 # define getpagesize() NBPG * CLSIZE
8701 # endif /* no CLSIZE */
8702 # else /* no NBPG */
8704 # define getpagesize() NBPC
8705 # else /* no NBPC */
8707 # define getpagesize() PAGESIZE
8708 # endif /* PAGESIZE */
8709 # endif /* no NBPC */
8710 # endif /* no NBPG */
8711 # endif /* no EXEC_PAGESIZE */
8712 # else /* no HAVE_SYS_PARAM_H */
8713 # define getpagesize() 8192 /* punt totally */
8714 # endif /* no HAVE_SYS_PARAM_H */
8715 # endif /* no _SC_PAGESIZE */
8717 #endif /* no HAVE_GETPAGESIZE */
8722 char *data, *data2, *data3;
8726 pagesize = getpagesize ();
8728 /* First, make a file with some known garbage in it. */
8729 data = (char *) malloc (pagesize);
8732 for (i = 0; i < pagesize; ++i)
8733 *(data + i) = rand ();
8735 fd = creat ("conftest.mmap", 0600);
8738 if (write (fd, data, pagesize) != pagesize)
8742 /* Next, try to mmap the file at a fixed address which already has
8743 something else allocated at it. If we can, also make sure that
8744 we see the same garbage. */
8745 fd = open ("conftest.mmap", O_RDWR);
8748 data2 = (char *) malloc (2 * pagesize);
8751 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8752 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8755 for (i = 0; i < pagesize; ++i)
8756 if (*(data + i) != *(data2 + i))
8759 /* Finally, make sure that changes to the mapped area do not
8760 percolate back to the file as seen by read(). (This is a bug on
8761 some variants of i386 svr4.0.) */
8762 for (i = 0; i < pagesize; ++i)
8763 *(data2 + i) = *(data2 + i) + 1;
8764 data3 = (char *) malloc (pagesize);
8767 if (read (fd, data3, pagesize) != pagesize)
8769 for (i = 0; i < pagesize; ++i)
8770 if (*(data + i) != *(data3 + i))
8776 rm -f conftest
$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778 (eval $ac_link) 2>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_func_mmap_fixed_mapped
=yes
8789 echo "$as_me: program exited with status $ac_status" >&5
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.
$ac_ext >&5
8794 ac_cv_func_mmap_fixed_mapped
=no
8796 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8800 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8801 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8803 cat >>confdefs.h
<<\_ACEOF
8810 if test $use_mmap_for_buffers = yes; then
8814 LIBS
="$libsrc_libs $LIBS"
8817 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8818 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8819 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 ac_check_lib_save_LIBS
=$LIBS
8824 cat >conftest.
$ac_ext <<_ACEOF
8827 cat confdefs.h
>>conftest.
$ac_ext
8828 cat >>conftest.
$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8831 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8846 rm -f conftest.
$ac_objext conftest
$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8850 grep -v '^ *+' conftest.er1
>conftest.err
8852 cat conftest.err
>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try
='test -z "$ac_c_werror_flag"
8856 || test ! -s conftest.err'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try
='test -s conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_lib_dnet_dnet_ntoa
=yes
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.
$ac_ext >&5
8873 ac_cv_lib_dnet_dnet_ntoa
=no
8875 rm -f conftest.err conftest.
$ac_objext \
8876 conftest
$ac_exeext conftest.
$ac_ext
8877 LIBS
=$ac_check_lib_save_LIBS
8879 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8880 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8881 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8882 cat >>confdefs.h
<<_ACEOF
8883 #define HAVE_LIBDNET 1
8891 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8892 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8893 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 ac_check_lib_save_LIBS
=$LIBS
8898 cat >conftest.
$ac_ext <<_ACEOF
8901 cat confdefs.h
>>conftest.
$ac_ext
8902 cat >>conftest.
$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8914 rm -f conftest.
$ac_objext conftest
$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8918 grep -v '^ *+' conftest.er1
>conftest.err
8920 cat conftest.err
>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try
='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try
='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_lib_Xbsd_main
=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 ac_cv_lib_Xbsd_main
=no
8943 rm -f conftest.err conftest.
$ac_objext \
8944 conftest
$ac_exeext conftest.
$ac_ext
8945 LIBS
=$ac_check_lib_save_LIBS
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8948 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8949 if test $ac_cv_lib_Xbsd_main = yes; then
8950 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8955 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8956 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8957 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 ac_check_lib_save_LIBS
=$LIBS
8961 LIBS
="-lpthreads $LIBS"
8962 cat >conftest.
$ac_ext <<_ACEOF
8965 cat confdefs.h
>>conftest.
$ac_ext
8966 cat >>conftest.
$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8984 rm -f conftest.
$ac_objext conftest
$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8988 grep -v '^ *+' conftest.er1
>conftest.err
8990 cat conftest.err
>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try
='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try
='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_pthreads_cma_open
=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.
$ac_ext >&5
9011 ac_cv_lib_pthreads_cma_open
=no
9013 rm -f conftest.err conftest.
$ac_objext \
9014 conftest
$ac_exeext conftest.
$ac_ext
9015 LIBS
=$ac_check_lib_save_LIBS
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9018 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9019 if test $ac_cv_lib_pthreads_cma_open = yes; then
9020 cat >>confdefs.h
<<_ACEOF
9021 #define HAVE_LIBPTHREADS 1
9024 LIBS
="-lpthreads $LIBS"
9029 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9030 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9031 if test -d /usr
/X386
/include
; then
9033 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9037 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9038 echo "${ECHO_T}$HAVE_XFREE386" >&6
9043 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9044 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9045 if test "${gdb_cv_bigtoc+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9051 *) gdb_cv_bigtoc
=-bbigtoc ;;
9054 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9055 cat >conftest.
$ac_ext <<_ACEOF
9058 cat confdefs.h
>>conftest.
$ac_ext
9059 cat >>conftest.
$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9070 rm -f conftest.
$ac_objext conftest
$ac_exeext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9072 (eval $ac_link) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest$ac_exeext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9099 rm -f conftest.err conftest.
$ac_objext \
9100 conftest
$ac_exeext conftest.
$ac_ext
9103 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9104 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9108 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9109 # used for the tests that follow. We set them back to REAL_CFLAGS and
9110 # REAL_CPPFLAGS later on.
9112 REAL_CPPFLAGS
="$CPPFLAGS"
9114 if test "${HAVE_X11}" = "yes"; then
9115 DEFS
="$C_SWITCH_X_SITE $DEFS"
9116 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9118 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9119 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9121 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9122 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9123 # but it's more convenient here to set LD_RUN_PATH
9124 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9125 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9126 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9130 if test "${opsys}" = "gnu-linux"; then
9131 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9132 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9133 cat >conftest.
$ac_ext <<_ACEOF
9136 cat confdefs.h
>>conftest.
$ac_ext
9137 cat >>conftest.
$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9143 XOpenDisplay ("foo");
9148 rm -f conftest.
$ac_objext conftest
$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try
='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try
='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 xlinux_first_failure
=no
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9175 xlinux_first_failure
=yes
9177 rm -f conftest.err conftest.
$ac_objext \
9178 conftest
$ac_exeext conftest.
$ac_ext
9179 if test "${xlinux_first_failure}" = "yes"; then
9180 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9181 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9182 OLD_CPPFLAGS
="$CPPFLAGS"
9184 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9185 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9186 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9187 LIBS
="$LIBS -b i486-linuxaout"
9188 cat >conftest.
$ac_ext <<_ACEOF
9191 cat confdefs.h
>>conftest.
$ac_ext
9192 cat >>conftest.
$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9198 XOpenDisplay ("foo");
9203 rm -f conftest.
$ac_objext conftest
$ac_exeext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205 (eval $ac_link) 2>conftest.er1
9207 grep -v '^ *+' conftest.er1
>conftest.err
9209 cat conftest.err
>&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try
='test -z "$ac_c_werror_flag"
9213 || test ! -s conftest.err'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try
='test -s conftest$ac_exeext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 xlinux_second_failure
=no
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.
$ac_ext >&5
9230 xlinux_second_failure
=yes
9232 rm -f conftest.err conftest.
$ac_objext \
9233 conftest
$ac_exeext conftest.
$ac_ext
9234 if test "${xlinux_second_failure}" = "yes"; then
9235 # If we get the same failure with -b, there is no use adding -b.
9236 # So take it out. This plays safe.
9237 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9238 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9239 CPPFLAGS
="$OLD_CPPFLAGS"
9241 echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6
9244 echo "$as_me:$LINENO: result: yes" >&5
9245 echo "${ECHO_T}yes" >&6
9248 echo "$as_me:$LINENO: result: no" >&5
9249 echo "${ECHO_T}no" >&6
9253 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9254 # header files included from there.
9255 echo "$as_me:$LINENO: checking for Xkb" >&5
9256 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9257 cat >conftest.
$ac_ext <<_ACEOF
9260 cat confdefs.h
>>conftest.
$ac_ext
9261 cat >>conftest.
$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 #include <X11/Xlib.h>
9264 #include <X11/XKBlib.h>
9268 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9273 rm -f conftest.
$ac_objext conftest
$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>conftest.er1
9277 grep -v '^ *+' conftest.er1
>conftest.err
9279 cat conftest.err
>&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try
='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try
='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.
$ac_ext >&5
9302 rm -f conftest.err conftest.
$ac_objext \
9303 conftest
$ac_exeext conftest.
$ac_ext
9304 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9305 echo "${ECHO_T}$emacs_xkb" >&6
9306 if test $emacs_xkb = yes; then
9308 cat >>confdefs.h
<<\_ACEOF
9309 #define HAVE_XKBGETKEYBOARD 1
9318 for ac_func
in XrmSetDatabase XScreenResourceString \
9319 XScreenNumberOfScreen XSetWMProtocols
9321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9322 echo "$as_me:$LINENO: checking for $ac_func" >&5
9323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9324 if eval "test \"\${$as_ac_var+set}\" = set"; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 cat >conftest.
$ac_ext <<_ACEOF
9330 cat confdefs.h
>>conftest.
$ac_ext
9331 cat >>conftest.
$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9335 #define $ac_func innocuous_$ac_func
9337 /* System header to define __stub macros and hopefully few prototypes,
9338 which can conflict with char $ac_func (); below.
9339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340 <limits.h> exists even on freestanding compilers. */
9343 # include <limits.h>
9345 # include <assert.h>
9350 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9364 char (*f) () = $ac_func;
9373 return f != $ac_func;
9378 rm -f conftest.
$ac_objext conftest
$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1
>conftest.err
9384 cat conftest.err
>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try
='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try
='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 eval "$as_ac_var=yes"
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.
$ac_ext >&5
9405 eval "$as_ac_var=no"
9407 rm -f conftest.err conftest.
$ac_objext \
9408 conftest
$ac_exeext conftest.
$ac_ext
9410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9412 if test `eval echo '${'$as_ac_var'}'` = yes; then
9413 cat >>confdefs.h
<<_ACEOF
9414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9422 if test "${window_system}" = "x11"; then
9423 echo "$as_me:$LINENO: checking X11 version 6" >&5
9424 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9425 if test "${emacs_cv_x11_version_6+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 cat >conftest.
$ac_ext <<_ACEOF
9431 cat confdefs.h
>>conftest.
$ac_ext
9432 cat >>conftest.
$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9438 #if XlibSpecificationRelease < 6
9446 rm -f conftest.
$ac_objext conftest
$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>conftest.er1
9450 grep -v '^ *+' conftest.er1
>conftest.err
9452 cat conftest.err
>&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try
='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try
='test -s conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 emacs_cv_x11_version_6
=yes
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.
$ac_ext >&5
9473 emacs_cv_x11_version_6
=no
9475 rm -f conftest.err conftest.
$ac_objext \
9476 conftest
$ac_exeext conftest.
$ac_ext
9479 if test $emacs_cv_x11_version_6 = yes; then
9480 echo "$as_me:$LINENO: result: 6 or newer" >&5
9481 echo "${ECHO_T}6 or newer" >&6
9483 cat >>confdefs.h
<<\_ACEOF
9484 #define HAVE_X11R6 1
9488 echo "$as_me:$LINENO: result: before 6" >&5
9489 echo "${ECHO_T}before 6" >&6
9493 if test "${window_system}" = "x11"; then
9494 echo "$as_me:$LINENO: checking X11 version 5" >&5
9495 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9496 if test "${emacs_cv_x11_version_5+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 cat >conftest.
$ac_ext <<_ACEOF
9502 cat confdefs.h
>>conftest.
$ac_ext
9503 cat >>conftest.
$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 #include <X11/Xlib.h>
9509 #if XlibSpecificationRelease < 5
9517 rm -f conftest.
$ac_objext conftest
$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>conftest.er1
9521 grep -v '^ *+' conftest.er1
>conftest.err
9523 cat conftest.err
>&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try
='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try
='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 emacs_cv_x11_version_5
=yes
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.
$ac_ext >&5
9544 emacs_cv_x11_version_5
=no
9546 rm -f conftest.err conftest.
$ac_objext \
9547 conftest
$ac_exeext conftest.
$ac_ext
9550 if test $emacs_cv_x11_version_5 = yes; then
9551 echo "$as_me:$LINENO: result: 5 or newer" >&5
9552 echo "${ECHO_T}5 or newer" >&6
9555 cat >>confdefs.h
<<\_ACEOF
9556 #define HAVE_X11R5 1
9561 echo "$as_me:$LINENO: result: before 5" >&5
9562 echo "${ECHO_T}before 5" >&6
9569 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9570 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9571 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9572 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9573 { (exit 1); exit 1; }; };
9577 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9579 if test "X${with_pkg_config_prog}" != X
; then
9580 PKG_CONFIG
="${with_pkg_config_prog}"
9585 if test -z "$PKG_CONFIG"; then
9586 # Extract the first word of "pkg-config", so it can be a program name with args.
9587 set dummy pkg-config
; ac_word
=$2
9588 echo "$as_me:$LINENO: checking for $ac_word" >&5
9589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9602 test -z "$as_dir" && as_dir
=.
9603 for ac_exec_ext
in '' $ac_executable_extensions; do
9604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9616 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9618 if test -n "$PKG_CONFIG"; then
9619 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9620 echo "${ECHO_T}$PKG_CONFIG" >&6
9622 echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6
9628 if test "$PKG_CONFIG" = "no" ; then
9629 echo "*** The pkg-config script could not be found. Make sure it is"
9630 echo "*** in your path, or give the full path to pkg-config with"
9631 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9632 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9634 PKG_CONFIG_MIN_VERSION
=0.9.0
9635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9636 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9637 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9639 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9640 echo "$as_me:$LINENO: result: yes" >&5
9641 echo "${ECHO_T}yes" >&6
9644 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9645 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9646 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9647 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9648 echo "${ECHO_T}$GTK_CFLAGS" >&6
9650 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9651 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9652 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9653 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9654 echo "${ECHO_T}$GTK_LIBS" >&6
9658 ## If we have a custom action on failure, don't print errors, but
9659 ## do set a variable so people can do so.
9660 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9661 echo $GTK_PKG_ERRORS
9667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9672 if test $succeeded = yes; then
9675 { { 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
9676 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;}
9677 { (exit 1); exit 1; }; }
9682 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9683 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9684 LIBS
="$GTK_LIBS $LIBS"
9687 cat >>confdefs.h
<<\_ACEOF
9693 with_toolkit_scroll_bars
=yes
9695 HAVE_GTK_MULTIDISPLAY
=no
9697 for ac_func
in gdk_display_open
9699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9700 echo "$as_me:$LINENO: checking for $ac_func" >&5
9701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9702 if eval "test \"\${$as_ac_var+set}\" = set"; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 cat >conftest.
$ac_ext <<_ACEOF
9708 cat confdefs.h
>>conftest.
$ac_ext
9709 cat >>conftest.
$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713 #define $ac_func innocuous_$ac_func
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char $ac_func (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9721 # include <limits.h>
9723 # include <assert.h>
9728 /* Override any gcc2 internal prototype to avoid an error. */
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9742 char (*f) () = $ac_func;
9751 return f != $ac_func;
9756 rm -f conftest.
$ac_objext conftest
$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9760 grep -v '^ *+' conftest.er1
>conftest.err
9762 cat conftest.err
>&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try
='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try
='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 eval "$as_ac_var=yes"
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.
$ac_ext >&5
9783 eval "$as_ac_var=no"
9785 rm -f conftest.err conftest.
$ac_objext \
9786 conftest
$ac_exeext conftest.
$ac_ext
9788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9790 if test `eval echo '${'$as_ac_var'}'` = yes; then
9791 cat >>confdefs.h
<<_ACEOF
9792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9794 HAVE_GTK_MULTIDISPLAY
=yes
9798 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9800 cat >>confdefs.h
<<\_ACEOF
9801 #define HAVE_GTK_MULTIDISPLAY 1
9807 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9808 if test x
"${HAVE_X11R5}" = xyes
; then
9809 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9810 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9811 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9821 #include <X11/Intrinsic.h>
9822 #include <X11/Xaw/Simple.h>
9831 rm -f conftest.
$ac_objext conftest
$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try
='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try
='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 emacs_cv_x11_version_5_with_xaw
=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.
$ac_ext >&5
9858 emacs_cv_x11_version_5_with_xaw
=no
9860 rm -f conftest.err conftest.
$ac_objext \
9861 conftest
$ac_exeext conftest.
$ac_ext
9864 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9865 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9866 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9869 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9870 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9878 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9880 if test "${USE_X_TOOLKIT}" != "none"; then
9881 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9882 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9883 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 cat >conftest.
$ac_ext <<_ACEOF
9889 cat confdefs.h
>>conftest.
$ac_ext
9890 cat >>conftest.
$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 #include <X11/Intrinsic.h>
9896 #if XtSpecificationRelease < 6
9904 rm -f conftest.
$ac_objext conftest
$ac_exeext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>conftest.er1
9908 grep -v '^ *+' conftest.er1
>conftest.err
9910 cat conftest.err
>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try
='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try
='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 emacs_cv_x11_toolkit_version_6
=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.
$ac_ext >&5
9931 emacs_cv_x11_toolkit_version_6
=no
9933 rm -f conftest.err conftest.
$ac_objext \
9934 conftest
$ac_exeext conftest.
$ac_ext
9937 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9938 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9939 echo "$as_me:$LINENO: result: 6 or newer" >&5
9940 echo "${ECHO_T}6 or newer" >&6
9942 cat >>confdefs.h
<<\_ACEOF
9943 #define HAVE_X11XTR6 1
9947 echo "$as_me:$LINENO: result: before 6" >&5
9948 echo "${ECHO_T}before 6" >&6
9952 if test x
$HAVE_X11XTR6 = xyes
; then
9953 LIBS
="-lXt -lSM -lICE $LIBS"
9958 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9959 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9960 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_check_lib_save_LIBS
=$LIBS
9965 cat >conftest.
$ac_ext <<_ACEOF
9968 cat confdefs.h
>>conftest.
$ac_ext
9969 cat >>conftest.
$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978 char XmuConvertStandardSelection ();
9982 XmuConvertStandardSelection ();
9987 rm -f conftest.
$ac_objext conftest
$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1
>conftest.err
9993 cat conftest.err
>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try
='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try
='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.
$ac_ext >&5
10014 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10016 rm -f conftest.err conftest.
$ac_objext \
10017 conftest
$ac_exeext conftest.
$ac_ext
10018 LIBS
=$ac_check_lib_save_LIBS
10020 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10021 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10022 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10023 cat >>confdefs.h
<<_ACEOF
10024 #define HAVE_LIBXMU 1
10031 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10034 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10035 if test "${HAVE_X11}" = "yes"; then
10036 if test "${USE_X_TOOLKIT}" != "none"; then
10038 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10039 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10040 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 ac_check_lib_save_LIBS
=$LIBS
10044 LIBS
="-lXext $LIBS"
10045 cat >conftest.
$ac_ext <<_ACEOF
10048 cat confdefs.h
>>conftest.
$ac_ext
10049 cat >>conftest.
$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10052 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10058 char XShapeQueryExtension ();
10062 XShapeQueryExtension ();
10067 rm -f conftest.
$ac_objext conftest
$ac_exeext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>conftest.er1
10071 grep -v '^ *+' conftest.er1
>conftest.err
10073 cat conftest.err
>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try
='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try
='test -s conftest$ac_exeext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10094 ac_cv_lib_Xext_XShapeQueryExtension
=no
10096 rm -f conftest.err conftest.
$ac_objext \
10097 conftest
$ac_exeext conftest.
$ac_ext
10098 LIBS
=$ac_check_lib_save_LIBS
10100 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10101 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10102 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10103 cat >>confdefs.h
<<_ACEOF
10104 #define HAVE_LIBXEXT 1
10107 LIBS
="-lXext $LIBS"
10114 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10115 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10116 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10117 if test "${emacs_cv_lesstif+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 # We put this in CFLAGS temporarily to precede other -I options
10121 # that might be in CFLAGS temporarily.
10122 # We put this in CPPFLAGS where it precedes the other -I options.
10123 OLD_CPPFLAGS
=$CPPFLAGS
10125 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10126 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10127 cat >conftest.
$ac_ext <<_ACEOF
10130 cat confdefs.h
>>conftest.
$ac_ext
10131 cat >>conftest.
$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10142 rm -f conftest.
$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1
>conftest.err
10148 cat conftest.err
>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try
='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try
='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 emacs_cv_lesstif
=yes
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.
$ac_ext >&5
10169 emacs_cv_lesstif
=no
10171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10173 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10174 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10175 if test $emacs_cv_lesstif = yes; then
10176 # Make sure this -I option remains in CPPFLAGS after it is set
10177 # back to REAL_CPPFLAGS.
10178 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10179 # have those other -I options anyway. Ultimately, having this
10180 # directory ultimately in CPPFLAGS will be enough.
10181 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10182 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10185 CPPFLAGS
=$OLD_CPPFLAGS
10187 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10188 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10189 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.
$ac_ext <<_ACEOF
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10202 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10205 Motif version prior to 2.1.
10211 rm -f conftest.
$ac_objext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>conftest.er1
10215 grep -v '^ *+' conftest.er1
>conftest.err
10217 cat conftest.err
>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try
='test -z "$ac_c_werror_flag"
10221 || test ! -s conftest.err'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try
='test -s conftest.$ac_objext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 emacs_cv_motif_version_2_1
=yes
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.
$ac_ext >&5
10238 emacs_cv_motif_version_2_1
=no
10240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10242 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10243 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10244 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10245 if test $emacs_cv_motif_version_2_1 = yes; then
10248 cat >>confdefs.h
<<\_ACEOF
10249 #define HAVE_MOTIF_2_1 1
10252 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10253 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10254 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS
=$LIBS
10259 cat >conftest.
$ac_ext <<_ACEOF
10262 cat confdefs.h
>>conftest.
$ac_ext
10263 cat >>conftest.
$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any gcc2 internal prototype to avoid an error. */
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272 char XpCreateContext ();
10276 XpCreateContext ();
10281 rm -f conftest.
$ac_objext conftest
$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1
>conftest.err
10287 cat conftest.err
>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try
='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try
='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_lib_Xp_XpCreateContext
=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.
$ac_ext >&5
10308 ac_cv_lib_Xp_XpCreateContext
=no
10310 rm -f conftest.err conftest.
$ac_objext \
10311 conftest
$ac_exeext conftest.
$ac_ext
10312 LIBS
=$ac_check_lib_save_LIBS
10314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10315 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10316 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10320 if test ${HAVE_LIBXP} = yes; then
10322 cat >>confdefs.h
<<\_ACEOF
10323 #define HAVE_LIBXP 1
10330 ### Is -lXaw3d available?
10332 if test "${HAVE_X11}" = "yes"; then
10333 if test "${USE_X_TOOLKIT}" != "none"; then
10334 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10335 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10336 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.
$ac_ext <<_ACEOF
10342 cat confdefs.h
>>conftest.
$ac_ext
10343 cat >>conftest.
$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <X11/Xaw3d/Scrollbar.h>
10347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10350 grep -v '^ *+' conftest.er1
>conftest.err
10352 cat conftest.err
>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } >/dev
/null
; then
10355 if test -s conftest.err
; then
10356 ac_cpp_err
=$ac_c_preproc_warn_flag
10357 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10364 if test -z "$ac_cpp_err"; then
10365 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.
$ac_ext >&5
10370 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10372 rm -f conftest.err conftest.
$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10375 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10376 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10377 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10378 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10379 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 ac_check_lib_save_LIBS
=$LIBS
10383 LIBS
="-lXaw3d $LIBS"
10384 cat >conftest.
$ac_ext <<_ACEOF
10387 cat confdefs.h
>>conftest.
$ac_ext
10388 cat >>conftest.
$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10391 /* Override any gcc2 internal prototype to avoid an error. */
10395 /* We use char because int might match the return type of a gcc2
10396 builtin and then its argument prototype would still apply. */
10397 char XawScrollbarSetThumb ();
10401 XawScrollbarSetThumb ();
10406 rm -f conftest.
$ac_objext conftest
$ac_exeext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>conftest.er1
10410 grep -v '^ *+' conftest.er1
>conftest.err
10412 cat conftest.err
>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try
='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
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); }; } &&
10422 { ac_try
='test -s conftest$ac_exeext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.
$ac_ext >&5
10433 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10435 rm -f conftest.err conftest.
$ac_objext \
10436 conftest
$ac_exeext conftest.
$ac_ext
10437 LIBS
=$ac_check_lib_save_LIBS
10439 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10440 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10441 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10448 if test "${HAVE_XAW3D}" = "yes"; then
10450 cat >>confdefs.h
<<\_ACEOF
10451 #define HAVE_XAW3D 1
10460 USE_TOOLKIT_SCROLL_BARS
=no
10461 if test "${with_toolkit_scroll_bars}" != "no"; then
10462 if test "${USE_X_TOOLKIT}" != "none"; then
10463 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10464 cat >>confdefs.h
<<\_ACEOF
10465 #define USE_TOOLKIT_SCROLL_BARS 1
10469 USE_TOOLKIT_SCROLL_BARS
=yes
10470 elif test "${HAVE_XAW3D}" = "yes"; then
10471 cat >>confdefs.h
<<\_ACEOF
10472 #define USE_TOOLKIT_SCROLL_BARS 1
10475 USE_TOOLKIT_SCROLL_BARS
=yes
10477 elif test "${HAVE_GTK}" = "yes"; then
10478 cat >>confdefs.h
<<\_ACEOF
10479 #define USE_TOOLKIT_SCROLL_BARS 1
10482 USE_TOOLKIT_SCROLL_BARS
=yes
10486 cat >conftest.
$ac_ext <<_ACEOF
10489 cat confdefs.h
>>conftest.
$ac_ext
10490 cat >>conftest.
$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10493 #include <X11/Xlib.h>
10494 #include <X11/Xresource.h>
10503 rm -f conftest.
$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>conftest.er1
10507 grep -v '^ *+' conftest.er1
>conftest.err
10509 cat conftest.err
>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try
='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try
='test -s conftest.$ac_objext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10527 cat >>confdefs.h
<<\_ACEOF
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.
$ac_ext >&5
10537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10540 if test "${with_xim}" != "no"; then
10542 cat >>confdefs.h
<<\_ACEOF
10549 if test "${HAVE_XIM}" != "no"; then
10550 late_CFLAGS
=$CFLAGS
10551 if test "$GCC" = yes; then
10552 CFLAGS
="$CFLAGS --pedantic-errors"
10554 cat >conftest.
$ac_ext <<_ACEOF
10557 cat confdefs.h
>>conftest.
$ac_ext
10558 cat >>conftest.
$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10561 #include <X11/Xlib.h>
10562 #include <X11/Xresource.h>
10571 XPointer *client_data;
10573 /* If we're not using GCC, it's probably not XFree86, and this is
10574 probably right, but we can't use something like --pedantic-errors. */
10575 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10576 char*, XIMProc, XPointer*);
10578 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10584 rm -f conftest.
$ac_objext
10585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586 (eval $ac_compile) 2>conftest.er1
10588 grep -v '^ *+' conftest.er1
>conftest.err
10590 cat conftest.err
>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try
='test -z "$ac_c_werror_flag"
10594 || test ! -s conftest.err'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; } &&
10600 { ac_try
='test -s conftest.$ac_objext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 emacs_cv_arg6_star
=yes
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.
$ac_ext >&5
10612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10614 if test "$emacs_cv_arg6_star" = yes; then
10615 cat >>confdefs.h
<<\_ACEOF
10616 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10620 cat >>confdefs.h
<<\_ACEOF
10621 #define XRegisterIMInstantiateCallback_arg6 XPointer
10625 CFLAGS
=$late_CFLAGS
10628 ### Use -lXpm if available, unless `--with-xpm=no'.
10630 if test "${HAVE_X11}" = "yes"; then
10631 if test "${with_xpm}" != "no"; then
10632 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10633 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10634 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10635 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10639 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10641 # Is the header compilable?
10642 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10643 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10644 cat >conftest.
$ac_ext <<_ACEOF
10647 cat confdefs.h
>>conftest.
$ac_ext
10648 cat >>conftest.
$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 $ac_includes_default
10651 #include <X11/xpm.h>
10653 rm -f conftest.
$ac_objext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>conftest.er1
10657 grep -v '^ *+' conftest.er1
>conftest.err
10659 cat conftest.err
>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try
='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try
='test -s conftest.$ac_objext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_header_compiler
=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.
$ac_ext >&5
10680 ac_header_compiler
=no
10682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10684 echo "${ECHO_T}$ac_header_compiler" >&6
10686 # Is the header present?
10687 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10688 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10689 cat >conftest.
$ac_ext <<_ACEOF
10692 cat confdefs.h
>>conftest.
$ac_ext
10693 cat >>conftest.
$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 #include <X11/xpm.h>
10697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10698 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10700 grep -v '^ *+' conftest.er1
>conftest.err
10702 cat conftest.err
>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } >/dev
/null
; then
10705 if test -s conftest.err
; then
10706 ac_cpp_err
=$ac_c_preproc_warn_flag
10707 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10714 if test -z "$ac_cpp_err"; then
10715 ac_header_preproc
=yes
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.
$ac_ext >&5
10720 ac_header_preproc
=no
10722 rm -f conftest.err conftest.
$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724 echo "${ECHO_T}$ac_header_preproc" >&6
10726 # So? What about this header?
10727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10729 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10730 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10732 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10733 ac_header_preproc
=yes
10736 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10737 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10739 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10741 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10743 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10745 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10747 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10750 ## ------------------------------------------ ##
10751 ## Report this to the AC_PACKAGE_NAME lists. ##
10752 ## ------------------------------------------ ##
10755 sed "s/^/$as_me: WARNING: /" >&2
10758 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10759 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10760 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10765 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10766 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10769 if test $ac_cv_header_X11_xpm_h = yes; then
10770 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10771 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10772 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 ac_check_lib_save_LIBS
=$LIBS
10776 LIBS
="-lXpm -lX11 $LIBS"
10777 cat >conftest.
$ac_ext <<_ACEOF
10780 cat confdefs.h
>>conftest.
$ac_ext
10781 cat >>conftest.
$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10784 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char XpmReadFileToPixmap ();
10794 XpmReadFileToPixmap ();
10799 rm -f conftest.
$ac_objext conftest
$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>conftest.er1
10803 grep -v '^ *+' conftest.er1
>conftest.err
10805 cat conftest.err
>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try
='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try
='test -s conftest$ac_exeext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.
$ac_ext >&5
10826 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10828 rm -f conftest.err conftest.
$ac_objext \
10829 conftest
$ac_exeext conftest.
$ac_ext
10830 LIBS
=$ac_check_lib_save_LIBS
10832 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10833 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10834 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10841 if test "${HAVE_XPM}" = "yes"; then
10842 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10843 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10844 cat >conftest.
$ac_ext <<_ACEOF
10847 cat confdefs.h
>>conftest.
$ac_ext
10848 cat >>conftest.
$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include "X11/xpm.h"
10851 #ifndef XpmReturnAllocPixels
10852 no_return_alloc_pixels
10856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10857 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10865 if test "${HAVE_XPM}" = "yes"; then
10866 echo "$as_me:$LINENO: result: yes" >&5
10867 echo "${ECHO_T}yes" >&6
10869 echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6
10875 if test "${HAVE_XPM}" = "yes"; then
10877 cat >>confdefs.h
<<\_ACEOF
10884 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10886 if test "${HAVE_X11}" = "yes"; then
10887 if test "${with_jpeg}" != "no"; then
10888 if test "${ac_cv_header_jerror_h+set}" = set; then
10889 echo "$as_me:$LINENO: checking for jerror.h" >&5
10890 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10891 if test "${ac_cv_header_jerror_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10895 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10897 # Is the header compilable?
10898 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10899 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10900 cat >conftest.
$ac_ext <<_ACEOF
10903 cat confdefs.h
>>conftest.
$ac_ext
10904 cat >>conftest.
$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <jerror.h>
10909 rm -f conftest.
$ac_objext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10911 (eval $ac_compile) 2>conftest.er1
10913 grep -v '^ *+' conftest.er1
>conftest.err
10915 cat conftest.err
>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try
='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try
='test -s conftest.$ac_objext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_header_compiler
=yes
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.
$ac_ext >&5
10936 ac_header_compiler
=no
10938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10940 echo "${ECHO_T}$ac_header_compiler" >&6
10942 # Is the header present?
10943 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10944 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10945 cat >conftest.
$ac_ext <<_ACEOF
10948 cat confdefs.h
>>conftest.
$ac_ext
10949 cat >>conftest.
$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <jerror.h>
10953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10956 grep -v '^ *+' conftest.er1
>conftest.err
10958 cat conftest.err
>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } >/dev
/null
; then
10961 if test -s conftest.err
; then
10962 ac_cpp_err
=$ac_c_preproc_warn_flag
10963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10970 if test -z "$ac_cpp_err"; then
10971 ac_header_preproc
=yes
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.
$ac_ext >&5
10976 ac_header_preproc
=no
10978 rm -f conftest.err conftest.
$ac_ext
10979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10980 echo "${ECHO_T}$ac_header_preproc" >&6
10982 # So? What about this header?
10983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10985 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10986 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10988 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10989 ac_header_preproc
=yes
10992 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10993 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10995 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
10997 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
10999 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11001 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11003 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11006 ## ------------------------------------------ ##
11007 ## Report this to the AC_PACKAGE_NAME lists. ##
11008 ## ------------------------------------------ ##
11011 sed "s/^/$as_me: WARNING: /" >&2
11014 echo "$as_me:$LINENO: checking for jerror.h" >&5
11015 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11016 if test "${ac_cv_header_jerror_h+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 ac_cv_header_jerror_h
=$ac_header_preproc
11021 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11022 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11025 if test $ac_cv_header_jerror_h = yes; then
11026 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11027 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11028 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 ac_check_lib_save_LIBS
=$LIBS
11032 LIBS
="-ljpeg $LIBS"
11033 cat >conftest.
$ac_ext <<_ACEOF
11036 cat confdefs.h
>>conftest.
$ac_ext
11037 cat >>conftest.
$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 /* Override any gcc2 internal prototype to avoid an error. */
11044 /* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */
11046 char jpeg_destroy_compress ();
11050 jpeg_destroy_compress ();
11055 rm -f conftest.
$ac_objext conftest
$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11059 grep -v '^ *+' conftest.er1
>conftest.err
11061 cat conftest.err
>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try
='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try
='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.
$ac_ext >&5
11082 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11084 rm -f conftest.err conftest.
$ac_objext \
11085 conftest
$ac_exeext conftest.
$ac_ext
11086 LIBS
=$ac_check_lib_save_LIBS
11088 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11089 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11090 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11100 if test "${HAVE_JPEG}" = "yes"; then
11101 cat >>confdefs.h
<<\_ACEOF
11102 #define HAVE_JPEG 1
11105 cat >conftest.
$ac_ext <<_ACEOF
11108 cat confdefs.h
>>conftest.
$ac_ext
11109 cat >>conftest.
$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <jpeglib.h>
11112 version=JPEG_LIB_VERSION
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11117 cat >>confdefs.h
<<\_ACEOF
11118 #define HAVE_JPEG 1
11122 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11123 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11131 ### Use -lpng if available, unless `--with-png=no'.
11133 if test "${HAVE_X11}" = "yes"; then
11134 if test "${with_png}" != "no"; then
11135 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11136 # in /usr/include/libpng.
11139 for ac_header
in png.h libpng
/png.h
11141 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11143 echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11151 # Is the header compilable?
11152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11154 cat >conftest.
$ac_ext <<_ACEOF
11157 cat confdefs.h
>>conftest.
$ac_ext
11158 cat >>conftest.
$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 $ac_includes_default
11161 #include <$ac_header>
11163 rm -f conftest.
$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11167 grep -v '^ *+' conftest.er1
>conftest.err
11169 cat conftest.err
>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try
='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try
='test -s conftest.$ac_objext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_header_compiler
=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.
$ac_ext >&5
11190 ac_header_compiler
=no
11192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11194 echo "${ECHO_T}$ac_header_compiler" >&6
11196 # Is the header present?
11197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11199 cat >conftest.
$ac_ext <<_ACEOF
11202 cat confdefs.h
>>conftest.
$ac_ext
11203 cat >>conftest.
$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <$ac_header>
11207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11208 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11210 grep -v '^ *+' conftest.er1
>conftest.err
11212 cat conftest.err
>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev
/null
; then
11215 if test -s conftest.err
; then
11216 ac_cpp_err
=$ac_c_preproc_warn_flag
11217 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11224 if test -z "$ac_cpp_err"; then
11225 ac_header_preproc
=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.
$ac_ext >&5
11230 ac_header_preproc
=no
11232 rm -f conftest.err conftest.
$ac_ext
11233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11234 echo "${ECHO_T}$ac_header_preproc" >&6
11236 # So? What about this header?
11237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11243 ac_header_preproc
=yes
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260 ## ------------------------------------------ ##
11261 ## Report this to the AC_PACKAGE_NAME lists. ##
11262 ## ------------------------------------------ ##
11265 sed "s/^/$as_me: WARNING: /" >&2
11268 echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 eval "$as_ac_Header=\$ac_header_preproc"
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h
<<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11289 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11290 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11291 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 ac_check_lib_save_LIBS
=$LIBS
11295 LIBS
="-lpng -lz -lm $LIBS"
11296 cat >conftest.
$ac_ext <<_ACEOF
11299 cat confdefs.h
>>conftest.
$ac_ext
11300 cat >>conftest.
$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11303 /* Override any gcc2 internal prototype to avoid an error. */
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309 char png_get_channels ();
11313 png_get_channels ();
11318 rm -f conftest.
$ac_objext conftest
$ac_exeext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11320 (eval $ac_link) 2>conftest.er1
11322 grep -v '^ *+' conftest.er1
>conftest.err
11324 cat conftest.err
>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try
='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try
='test -s conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_lib_png_png_get_channels
=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.
$ac_ext >&5
11345 ac_cv_lib_png_png_get_channels
=no
11347 rm -f conftest.err conftest.
$ac_objext \
11348 conftest
$ac_exeext conftest.
$ac_ext
11349 LIBS
=$ac_check_lib_save_LIBS
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11352 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11353 if test $ac_cv_lib_png_png_get_channels = yes; then
11360 if test "${HAVE_PNG}" = "yes"; then
11362 cat >>confdefs.h
<<\_ACEOF
11369 ### Use -ltiff if available, unless `--with-tiff=no'.
11371 if test "${HAVE_X11}" = "yes"; then
11372 if test "${with_tiff}" != "no"; then
11373 if test "${ac_cv_header_tiffio_h+set}" = set; then
11374 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11375 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11376 if test "${ac_cv_header_tiffio_h+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11380 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11382 # Is the header compilable?
11383 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11384 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11385 cat >conftest.
$ac_ext <<_ACEOF
11388 cat confdefs.h
>>conftest.
$ac_ext
11389 cat >>conftest.
$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 #include <tiffio.h>
11394 rm -f conftest.
$ac_objext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>conftest.er1
11398 grep -v '^ *+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try
='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try
='test -s conftest.$ac_objext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_header_compiler
=yes
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.
$ac_ext >&5
11421 ac_header_compiler
=no
11423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11425 echo "${ECHO_T}$ac_header_compiler" >&6
11427 # Is the header present?
11428 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11429 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11430 cat >conftest.
$ac_ext <<_ACEOF
11433 cat confdefs.h
>>conftest.
$ac_ext
11434 cat >>conftest.
$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 #include <tiffio.h>
11438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11439 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
11446 if test -s conftest.err
; then
11447 ac_cpp_err
=$ac_c_preproc_warn_flag
11448 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11455 if test -z "$ac_cpp_err"; then
11456 ac_header_preproc
=yes
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.
$ac_ext >&5
11461 ac_header_preproc
=no
11463 rm -f conftest.err conftest.
$ac_ext
11464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6
11467 # So? What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc
=yes
11477 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11491 ## ------------------------------------------ ##
11492 ## Report this to the AC_PACKAGE_NAME lists. ##
11493 ## ------------------------------------------ ##
11496 sed "s/^/$as_me: WARNING: /" >&2
11499 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11500 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11501 if test "${ac_cv_header_tiffio_h+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 ac_cv_header_tiffio_h
=$ac_header_preproc
11506 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11507 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11510 if test $ac_cv_header_tiffio_h = yes; then
11512 # At least one tiff package requires the jpeg library.
11513 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11514 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11515 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11516 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 ac_check_lib_save_LIBS
=$LIBS
11520 LIBS
="-ltiff $tifflibs $LIBS"
11521 cat >conftest.
$ac_ext <<_ACEOF
11524 cat confdefs.h
>>conftest.
$ac_ext
11525 cat >>conftest.
$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11528 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char TIFFGetVersion ();
11543 rm -f conftest.
$ac_objext conftest
$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>conftest.er1
11547 grep -v '^ *+' conftest.er1
>conftest.err
11549 cat conftest.err
>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try
='test -z "$ac_c_werror_flag"
11553 || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try
='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_lib_tiff_TIFFGetVersion
=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.
$ac_ext >&5
11570 ac_cv_lib_tiff_TIFFGetVersion
=no
11572 rm -f conftest.err conftest.
$ac_objext \
11573 conftest
$ac_exeext conftest.
$ac_ext
11574 LIBS
=$ac_check_lib_save_LIBS
11576 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11577 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11578 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11587 if test "${HAVE_TIFF}" = "yes"; then
11589 cat >>confdefs.h
<<\_ACEOF
11590 #define HAVE_TIFF 1
11596 ### Use -lgif if available, unless `--with-gif=no'.
11598 if test "${HAVE_X11}" = "yes"; then
11599 if test "${with_gif}" != "no"; then
11600 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11601 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11602 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11603 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11607 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11609 # Is the header compilable?
11610 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11611 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11612 cat >conftest.
$ac_ext <<_ACEOF
11615 cat confdefs.h
>>conftest.
$ac_ext
11616 cat >>conftest.
$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11619 #include <gif_lib.h>
11621 rm -f conftest.
$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1
>conftest.err
11627 cat conftest.err
>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try
='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try
='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_header_compiler
=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.
$ac_ext >&5
11648 ac_header_compiler
=no
11650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6
11654 # Is the header present?
11655 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11656 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11657 cat >conftest.
$ac_ext <<_ACEOF
11660 cat confdefs.h
>>conftest.
$ac_ext
11661 cat >>conftest.
$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <gif_lib.h>
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1
>conftest.err
11670 cat conftest.err
>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev
/null
; then
11673 if test -s conftest.err
; then
11674 ac_cpp_err
=$ac_c_preproc_warn_flag
11675 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11682 if test -z "$ac_cpp_err"; then
11683 ac_header_preproc
=yes
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.
$ac_ext >&5
11688 ac_header_preproc
=no
11690 rm -f conftest.err conftest.
$ac_ext
11691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 echo "${ECHO_T}$ac_header_preproc" >&6
11694 # So? What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11698 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11700 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc
=yes
11704 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11705 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11707 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11709 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11711 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11713 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11715 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11718 ## ------------------------------------------ ##
11719 ## Report this to the AC_PACKAGE_NAME lists. ##
11720 ## ------------------------------------------ ##
11723 sed "s/^/$as_me: WARNING: /" >&2
11726 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11727 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11728 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 ac_cv_header_gif_lib_h
=$ac_header_preproc
11733 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11734 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11737 if test $ac_cv_header_gif_lib_h = yes; then
11738 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11739 # Earlier versions can crash Emacs.
11740 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11741 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11742 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 ac_check_lib_save_LIBS
=$LIBS
11746 LIBS
="-lungif $LIBS"
11747 cat >conftest.
$ac_ext <<_ACEOF
11750 cat confdefs.h
>>conftest.
$ac_ext
11751 cat >>conftest.
$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11754 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11760 char EGifPutExtensionLast ();
11764 EGifPutExtensionLast ();
11769 rm -f conftest.
$ac_objext conftest
$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>conftest.er1
11773 grep -v '^ *+' conftest.er1
>conftest.err
11775 cat conftest.err
>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try
='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try
='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.
$ac_ext >&5
11796 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11798 rm -f conftest.err conftest.
$ac_objext \
11799 conftest
$ac_exeext conftest.
$ac_ext
11800 LIBS
=$ac_check_lib_save_LIBS
11802 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11803 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11804 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11813 if test "${HAVE_GIF}" = "yes"; then
11815 cat >>confdefs.h
<<\_ACEOF
11822 ### Use Mac OS X Carbon API to implement GUI.
11824 if test "${with_carbon}" != "no"; then
11825 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11826 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11827 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11828 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11832 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11834 # Is the header compilable?
11835 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11836 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11837 cat >conftest.
$ac_ext <<_ACEOF
11840 cat confdefs.h
>>conftest.
$ac_ext
11841 cat >>conftest.
$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 $ac_includes_default
11844 #include <Carbon/Carbon.h>
11846 rm -f conftest.
$ac_objext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>conftest.er1
11850 grep -v '^ *+' conftest.er1
>conftest.err
11852 cat conftest.err
>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try
='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try
='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_header_compiler
=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.
$ac_ext >&5
11873 ac_header_compiler
=no
11875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6
11879 # Is the header present?
11880 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11881 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11882 cat >conftest.
$ac_ext <<_ACEOF
11885 cat confdefs.h
>>conftest.
$ac_ext
11886 cat >>conftest.
$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 #include <Carbon/Carbon.h>
11890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1
>conftest.err
11895 cat conftest.err
>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev
/null
; then
11898 if test -s conftest.err
; then
11899 ac_cpp_err
=$ac_c_preproc_warn_flag
11900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11907 if test -z "$ac_cpp_err"; then
11908 ac_header_preproc
=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.
$ac_ext >&5
11913 ac_header_preproc
=no
11915 rm -f conftest.err conftest.
$ac_ext
11916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6
11919 # So? What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11922 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11923 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11925 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11926 ac_header_preproc
=yes
11929 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11930 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11932 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11934 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11936 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11938 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11940 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11943 ## ------------------------------------------ ##
11944 ## Report this to the AC_PACKAGE_NAME lists. ##
11945 ## ------------------------------------------ ##
11948 sed "s/^/$as_me: WARNING: /" >&2
11951 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11952 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11953 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
11958 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11959 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11962 if test $ac_cv_header_Carbon_Carbon_h = yes; then
11969 if test "${HAVE_CARBON}" = "yes"; then
11971 cat >>confdefs.h
<<\_ACEOF
11972 #define HAVE_CARBON 1
11976 ## Specify the install directory
11978 if test "${carbon_appdir_x}" != ""; then
11979 case ${carbon_appdir_x} in
11980 y | ye |
yes) carbon_appdir
=/Applications
;;
11981 * ) carbon_appdir
=${carbon_appdir_x} ;;
11984 # We also have mouse menus.
11988 ### Use session management (-lSM -lICE) if available
11990 if test "${HAVE_X11}" = "yes"; then
11991 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11992 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11993 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11994 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11998 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12000 # Is the header compilable?
12001 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12002 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12003 cat >conftest.
$ac_ext <<_ACEOF
12006 cat confdefs.h
>>conftest.
$ac_ext
12007 cat >>conftest.
$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 #include <X11/SM/SMlib.h>
12012 rm -f conftest.
$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>conftest.er1
12016 grep -v '^ *+' conftest.er1
>conftest.err
12018 cat conftest.err
>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try
='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try
='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_header_compiler
=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.
$ac_ext >&5
12039 ac_header_compiler
=no
12041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12043 echo "${ECHO_T}$ac_header_compiler" >&6
12045 # Is the header present?
12046 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12047 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12048 cat >conftest.
$ac_ext <<_ACEOF
12051 cat confdefs.h
>>conftest.
$ac_ext
12052 cat >>conftest.
$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 #include <X11/SM/SMlib.h>
12056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12059 grep -v '^ *+' conftest.er1
>conftest.err
12061 cat conftest.err
>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev
/null
; then
12064 if test -s conftest.err
; then
12065 ac_cpp_err
=$ac_c_preproc_warn_flag
12066 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12073 if test -z "$ac_cpp_err"; then
12074 ac_header_preproc
=yes
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.
$ac_ext >&5
12079 ac_header_preproc
=no
12081 rm -f conftest.err conftest.
$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 echo "${ECHO_T}$ac_header_preproc" >&6
12085 # So? What about this header?
12086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12088 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12089 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12091 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12092 ac_header_preproc
=yes
12095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12096 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12098 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12100 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12102 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12104 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12106 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12109 ## ------------------------------------------ ##
12110 ## Report this to the AC_PACKAGE_NAME lists. ##
12111 ## ------------------------------------------ ##
12114 sed "s/^/$as_me: WARNING: /" >&2
12117 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12118 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12119 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12124 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12125 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12128 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12129 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12130 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12131 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 ac_check_lib_save_LIBS
=$LIBS
12135 LIBS
="-lSM -lICE $LIBS"
12136 cat >conftest.
$ac_ext <<_ACEOF
12139 cat confdefs.h
>>conftest.
$ac_ext
12140 cat >>conftest.
$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12143 /* Override any gcc2 internal prototype to avoid an error. */
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char SmcOpenConnection ();
12153 SmcOpenConnection ();
12158 rm -f conftest.
$ac_objext conftest
$ac_exeext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>conftest.er1
12162 grep -v '^ *+' conftest.er1
>conftest.err
12164 cat conftest.err
>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try
='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try
='test -s conftest$ac_exeext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_lib_SM_SmcOpenConnection
=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.
$ac_ext >&5
12185 ac_cv_lib_SM_SmcOpenConnection
=no
12187 rm -f conftest.err conftest.
$ac_objext \
12188 conftest
$ac_exeext conftest.
$ac_ext
12189 LIBS
=$ac_check_lib_save_LIBS
12191 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12192 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12193 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12201 if test "${HAVE_X_SM}" = "yes"; then
12203 cat >>confdefs.h
<<\_ACEOF
12204 #define HAVE_X_SM 1
12209 *) LIBS
="-lSM -lICE $LIBS" ;;
12214 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12215 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12216 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12217 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.
$ac_ext <<_ACEOF
12223 cat confdefs.h
>>conftest.
$ac_ext
12224 cat >>conftest.
$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12235 rm -f conftest.
$ac_objext conftest
$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>conftest.er1
12239 grep -v '^ *+' conftest.er1
>conftest.err
12241 cat conftest.err
>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try
='test -z "$ac_c_werror_flag"
12245 || test ! -s conftest.err'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try
='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 emacs_cv_netdb_declares_h_errno
=yes
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.
$ac_ext >&5
12262 emacs_cv_netdb_declares_h_errno
=no
12264 rm -f conftest.err conftest.
$ac_objext \
12265 conftest
$ac_exeext conftest.
$ac_ext
12267 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12268 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12269 if test $emacs_cv_netdb_declares_h_errno = yes; then
12271 cat >>confdefs.h
<<\_ACEOF
12272 #define HAVE_H_ERRNO 1
12277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12278 # for constant arguments. Useless!
12279 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12280 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12281 if test "${ac_cv_working_alloca_h+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <alloca.h>
12294 char *p = (char *) alloca (2 * sizeof (int));
12299 rm -f conftest.
$ac_objext conftest
$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12303 grep -v '^ *+' conftest.er1
>conftest.err
12305 cat conftest.err
>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try
='test -z "$ac_c_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try
='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_working_alloca_h
=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.
$ac_ext >&5
12326 ac_cv_working_alloca_h
=no
12328 rm -f conftest.err conftest.
$ac_objext \
12329 conftest
$ac_exeext conftest.
$ac_ext
12331 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12333 if test $ac_cv_working_alloca_h = yes; then
12335 cat >>confdefs.h
<<\_ACEOF
12336 #define HAVE_ALLOCA_H 1
12341 echo "$as_me:$LINENO: checking for alloca" >&5
12342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12343 if test "${ac_cv_func_alloca_works+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.
$ac_ext <<_ACEOF
12349 cat confdefs.h
>>conftest.
$ac_ext
12350 cat >>conftest.
$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12353 # define alloca __builtin_alloca
12356 # include <malloc.h>
12357 # define alloca _alloca
12360 # include <alloca.h>
12365 # ifndef alloca /* predefined by HP cc +Olibcalls */
12376 char *p = (char *) alloca (1);
12381 rm -f conftest.
$ac_objext conftest
$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12385 grep -v '^ *+' conftest.er1
>conftest.err
12387 cat conftest.err
>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try
='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try
='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_func_alloca_works
=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.
$ac_ext >&5
12408 ac_cv_func_alloca_works
=no
12410 rm -f conftest.err conftest.
$ac_objext \
12411 conftest
$ac_exeext conftest.
$ac_ext
12413 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12416 if test $ac_cv_func_alloca_works = yes; then
12418 cat >>confdefs.h
<<\_ACEOF
12419 #define HAVE_ALLOCA 1
12423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12424 # that cause trouble. Some versions do not even contain alloca or
12425 # contain a buggy version. If you still want to use their alloca,
12426 # use ar to extract alloca.o from them instead of compiling alloca.c.
12428 ALLOCA
=alloca.
$ac_objext
12430 cat >>confdefs.h
<<\_ACEOF
12435 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12437 if test "${ac_cv_os_cray+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 cat >conftest.
$ac_ext <<_ACEOF
12443 cat confdefs.h
>>conftest.
$ac_ext
12444 cat >>conftest.
$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #if defined(CRAY) && ! defined(CRAY2)
12453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12454 $EGREP "webecray" >/dev
/null
2>&1; then
12462 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12463 echo "${ECHO_T}$ac_cv_os_cray" >&6
12464 if test $ac_cv_os_cray = yes; then
12465 for ac_func
in _getb67 GETB67 getb67
; do
12466 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467 echo "$as_me:$LINENO: checking for $ac_func" >&5
12468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12469 if eval "test \"\${$as_ac_var+set}\" = set"; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 cat >conftest.
$ac_ext <<_ACEOF
12475 cat confdefs.h
>>conftest.
$ac_ext
12476 cat >>conftest.
$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define $ac_func innocuous_$ac_func
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12488 # include <limits.h>
12490 # include <assert.h>
12495 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12509 char (*f) () = $ac_func;
12518 return f != $ac_func;
12523 rm -f conftest.
$ac_objext conftest
$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1
>conftest.err
12529 cat conftest.err
>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try
='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try
='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 eval "$as_ac_var=yes"
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.
$ac_ext >&5
12550 eval "$as_ac_var=no"
12552 rm -f conftest.err conftest.
$ac_objext \
12553 conftest
$ac_exeext conftest.
$ac_ext
12555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12559 cat >>confdefs.h
<<_ACEOF
12560 #define CRAY_STACKSEG_END $ac_func
12569 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12570 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12571 if test "${ac_cv_c_stack_direction+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 if test "$cross_compiling" = yes; then
12575 ac_cv_c_stack_direction
=0
12577 cat >conftest.
$ac_ext <<_ACEOF
12580 cat confdefs.h
>>conftest.
$ac_ext
12581 cat >>conftest.
$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12584 find_stack_direction ()
12586 static char *addr = 0;
12591 return find_stack_direction ();
12594 return (&dummy > addr) ? 1 : -1;
12600 exit (find_stack_direction () < 0);
12603 rm -f conftest
$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_c_stack_direction
=1
12616 echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.
$ac_ext >&5
12620 ( exit $ac_status )
12621 ac_cv_c_stack_direction
=-1
12623 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12627 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12629 cat >>confdefs.h
<<_ACEOF
12630 #define STACK_DIRECTION $ac_cv_c_stack_direction
12637 # fmod, logb, and frexp are found in -lm on most systems.
12638 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12640 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12641 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12642 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_check_lib_save_LIBS
=$LIBS
12647 cat >conftest.
$ac_ext <<_ACEOF
12650 cat confdefs.h
>>conftest.
$ac_ext
12651 cat >>conftest.
$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 /* Override any gcc2 internal prototype to avoid an error. */
12658 /* We use char because int might match the return type of a gcc2
12659 builtin and then its argument prototype would still apply. */
12669 rm -f conftest.
$ac_objext conftest
$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>conftest.er1
12673 grep -v '^ *+' conftest.er1
>conftest.err
12675 cat conftest.err
>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try
='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try
='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_lib_m_sqrt
=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.
$ac_ext >&5
12696 ac_cv_lib_m_sqrt
=no
12698 rm -f conftest.err conftest.
$ac_objext \
12699 conftest
$ac_exeext conftest.
$ac_ext
12700 LIBS
=$ac_check_lib_save_LIBS
12702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12703 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12704 if test $ac_cv_lib_m_sqrt = yes; then
12705 cat >>confdefs.h
<<_ACEOF
12706 #define HAVE_LIBM 1
12714 # Check for mail-locking functions in a "mail" library. Probably this should
12715 # have the same check as for liblockfile below.
12717 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12718 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12719 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_check_lib_save_LIBS
=$LIBS
12723 LIBS
="-lmail $LIBS"
12724 cat >conftest.
$ac_ext <<_ACEOF
12727 cat confdefs.h
>>conftest.
$ac_ext
12728 cat >>conftest.
$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12731 /* Override any gcc2 internal prototype to avoid an error. */
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12746 rm -f conftest.
$ac_objext conftest
$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>conftest.er1
12750 grep -v '^ *+' conftest.er1
>conftest.err
12752 cat conftest.err
>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try
='test -z "$ac_c_werror_flag"
12756 || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try
='test -s conftest$ac_exeext'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_lib_mail_maillock
=yes
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.
$ac_ext >&5
12773 ac_cv_lib_mail_maillock
=no
12775 rm -f conftest.err conftest.
$ac_objext \
12776 conftest
$ac_exeext conftest.
$ac_ext
12777 LIBS
=$ac_check_lib_save_LIBS
12779 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12780 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12781 if test $ac_cv_lib_mail_maillock = yes; then
12782 cat >>confdefs.h
<<_ACEOF
12783 #define HAVE_LIBMAIL 1
12786 LIBS
="-lmail $LIBS"
12791 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12792 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12793 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 ac_check_lib_save_LIBS
=$LIBS
12797 LIBS
="-llockfile $LIBS"
12798 cat >conftest.
$ac_ext <<_ACEOF
12801 cat confdefs.h
>>conftest.
$ac_ext
12802 cat >>conftest.
$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any gcc2 internal prototype to avoid an error. */
12809 /* We use char because int might match the return type of a gcc2
12810 builtin and then its argument prototype would still apply. */
12820 rm -f conftest.
$ac_objext conftest
$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>conftest.er1
12824 grep -v '^ *+' conftest.er1
>conftest.err
12826 cat conftest.err
>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try
='test -z "$ac_c_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try
='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_lib_lockfile_maillock
=yes
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.
$ac_ext >&5
12847 ac_cv_lib_lockfile_maillock
=no
12849 rm -f conftest.err conftest.
$ac_objext \
12850 conftest
$ac_exeext conftest.
$ac_ext
12851 LIBS
=$ac_check_lib_save_LIBS
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12854 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12855 if test $ac_cv_lib_lockfile_maillock = yes; then
12856 cat >>confdefs.h
<<_ACEOF
12857 #define HAVE_LIBLOCKFILE 1
12860 LIBS
="-llockfile $LIBS"
12864 # If we have the shared liblockfile, assume we must use it for mail
12865 # locking (e.g. Debian). If we couldn't link against liblockfile
12866 # (no liblockfile.a installed), ensure that we don't need to.
12867 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12868 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12869 set dummy liblockfile.so
; ac_word
=$2
12870 echo "$as_me:$LINENO: checking for $ac_word" >&5
12871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12872 if test "${ac_cv_prog_liblockfile+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 if test -n "$liblockfile"; then
12876 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12879 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12880 for as_dir
in $as_dummy
12883 test -z "$as_dir" && as_dir
=.
12884 for ac_exec_ext
in '' $ac_executable_extensions; do
12885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886 ac_cv_prog_liblockfile
="yes"
12887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12896 liblockfile
=$ac_cv_prog_liblockfile
12897 if test -n "$liblockfile"; then
12898 echo "$as_me:$LINENO: result: $liblockfile" >&5
12899 echo "${ECHO_T}$liblockfile" >&6
12901 echo "$as_me:$LINENO: result: no" >&5
12902 echo "${ECHO_T}no" >&6
12905 if test $ac_cv_prog_liblockfile = yes; then
12906 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12907 This probably means that movemail could lose mail.
12908 There may be a \`development' package to install containing liblockfile." >&5
12909 echo "$as_me: error: Shared liblockfile found but can't link against it.
12910 This probably means that movemail could lose mail.
12911 There may be a \`development' package to install containing liblockfile." >&2;}
12912 { (exit 1); exit 1; }; }
12917 for ac_func
in touchlock
12919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920 echo "$as_me:$LINENO: checking for $ac_func" >&5
12921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12922 if eval "test \"\${$as_ac_var+set}\" = set"; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 cat >conftest.
$ac_ext <<_ACEOF
12928 cat confdefs.h
>>conftest.
$ac_ext
12929 cat >>conftest.
$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define $ac_func innocuous_$ac_func
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12941 # include <limits.h>
12943 # include <assert.h>
12948 /* Override any gcc2 internal prototype to avoid an error. */
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12962 char (*f) () = $ac_func;
12971 return f != $ac_func;
12976 rm -f conftest.
$ac_objext conftest
$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1
>conftest.err
12982 cat conftest.err
>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try
='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try
='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 eval "$as_ac_var=yes"
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.
$ac_ext >&5
13003 eval "$as_ac_var=no"
13005 rm -f conftest.err conftest.
$ac_objext \
13006 conftest
$ac_exeext conftest.
$ac_ext
13008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13010 if test `eval echo '${'$as_ac_var'}'` = yes; then
13011 cat >>confdefs.h
<<_ACEOF
13012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13019 for ac_header
in maillock.h
13021 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13023 echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13031 # Is the header compilable?
13032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13034 cat >conftest.
$ac_ext <<_ACEOF
13037 cat confdefs.h
>>conftest.
$ac_ext
13038 cat >>conftest.
$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 $ac_includes_default
13041 #include <$ac_header>
13043 rm -f conftest.
$ac_objext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045 (eval $ac_compile) 2>conftest.er1
13047 grep -v '^ *+' conftest.er1
>conftest.err
13049 cat conftest.err
>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try
='test -z "$ac_c_werror_flag"
13053 || test ! -s conftest.err'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try
='test -s conftest.$ac_objext'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_header_compiler
=yes
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.
$ac_ext >&5
13070 ac_header_compiler
=no
13072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13074 echo "${ECHO_T}$ac_header_compiler" >&6
13076 # Is the header present?
13077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13079 cat >conftest.
$ac_ext <<_ACEOF
13082 cat confdefs.h
>>conftest.
$ac_ext
13083 cat >>conftest.
$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 #include <$ac_header>
13087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13088 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13090 grep -v '^ *+' conftest.er1
>conftest.err
13092 cat conftest.err
>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } >/dev
/null
; then
13095 if test -s conftest.err
; then
13096 ac_cpp_err
=$ac_c_preproc_warn_flag
13097 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13104 if test -z "$ac_cpp_err"; then
13105 ac_header_preproc
=yes
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.
$ac_ext >&5
13110 ac_header_preproc
=no
13112 rm -f conftest.err conftest.
$ac_ext
13113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13114 echo "${ECHO_T}$ac_header_preproc" >&6
13116 # So? What about this header?
13117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13123 ac_header_preproc
=yes
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13140 ## ------------------------------------------ ##
13141 ## Report this to the AC_PACKAGE_NAME lists. ##
13142 ## ------------------------------------------ ##
13145 sed "s/^/$as_me: WARNING: /" >&2
13148 echo "$as_me:$LINENO: checking for $ac_header" >&5
13149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 eval "$as_ac_Header=\$ac_header_preproc"
13155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13160 cat >>confdefs.h
<<_ACEOF
13161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13236 for ac_func
in gethostname getdomainname dup2 \
13237 rename closedir mkdir
rmdir sysinfo \
13238 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13239 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13240 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13241 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13242 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13243 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13244 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
13246 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 echo "$as_me:$LINENO: checking for $ac_func" >&5
13248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_var+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 cat >conftest.
$ac_ext <<_ACEOF
13255 cat confdefs.h
>>conftest.
$ac_ext
13256 cat >>conftest.
$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13260 #define $ac_func innocuous_$ac_func
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char $ac_func (); below.
13264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13265 <limits.h> exists even on freestanding compilers. */
13268 # include <limits.h>
13270 # include <assert.h>
13275 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13289 char (*f) () = $ac_func;
13298 return f != $ac_func;
13303 rm -f conftest.
$ac_objext conftest
$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
13309 cat conftest.err
>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try
='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try
='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 eval "$as_ac_var=yes"
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.
$ac_ext >&5
13330 eval "$as_ac_var=no"
13332 rm -f conftest.err conftest.
$ac_objext \
13333 conftest
$ac_exeext conftest.
$ac_ext
13335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13337 if test `eval echo '${'$as_ac_var'}'` = yes; then
13338 cat >>confdefs.h
<<_ACEOF
13339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13347 for ac_header
in sys
/un.h
13349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13351 echo "$as_me:$LINENO: checking for $ac_header" >&5
13352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13359 # Is the header compilable?
13360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13362 cat >conftest.
$ac_ext <<_ACEOF
13365 cat confdefs.h
>>conftest.
$ac_ext
13366 cat >>conftest.
$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 $ac_includes_default
13369 #include <$ac_header>
13371 rm -f conftest.
$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373 (eval $ac_compile) 2>conftest.er1
13375 grep -v '^ *+' conftest.er1
>conftest.err
13377 cat conftest.err
>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try
='test -z "$ac_c_werror_flag"
13381 || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try
='test -s conftest.$ac_objext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_header_compiler
=yes
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.
$ac_ext >&5
13398 ac_header_compiler
=no
13400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13402 echo "${ECHO_T}$ac_header_compiler" >&6
13404 # Is the header present?
13405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13407 cat >conftest.
$ac_ext <<_ACEOF
13410 cat confdefs.h
>>conftest.
$ac_ext
13411 cat >>conftest.
$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 #include <$ac_header>
13415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13418 grep -v '^ *+' conftest.er1
>conftest.err
13420 cat conftest.err
>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } >/dev
/null
; then
13423 if test -s conftest.err
; then
13424 ac_cpp_err
=$ac_c_preproc_warn_flag
13425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13432 if test -z "$ac_cpp_err"; then
13433 ac_header_preproc
=yes
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.
$ac_ext >&5
13438 ac_header_preproc
=no
13440 rm -f conftest.err conftest.
$ac_ext
13441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13442 echo "${ECHO_T}$ac_header_preproc" >&6
13444 # So? What about this header?
13445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13451 ac_header_preproc
=yes
13454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13468 ## ------------------------------------------ ##
13469 ## Report this to the AC_PACKAGE_NAME lists. ##
13470 ## ------------------------------------------ ##
13473 sed "s/^/$as_me: WARNING: /" >&2
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 eval "$as_ac_Header=\$ac_header_preproc"
13483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13488 cat >>confdefs.h
<<_ACEOF
13489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13500 for ac_header
in stdlib.h sys
/time.h unistd.h
13502 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504 echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13512 # Is the header compilable?
13513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13515 cat >conftest.
$ac_ext <<_ACEOF
13518 cat confdefs.h
>>conftest.
$ac_ext
13519 cat >>conftest.
$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13522 #include <$ac_header>
13524 rm -f conftest.
$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>conftest.er1
13528 grep -v '^ *+' conftest.er1
>conftest.err
13530 cat conftest.err
>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try
='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try
='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler
=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.
$ac_ext >&5
13551 ac_header_compiler
=no
13553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6
13557 # Is the header present?
13558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13560 cat >conftest.
$ac_ext <<_ACEOF
13563 cat confdefs.h
>>conftest.
$ac_ext
13564 cat >>conftest.
$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <$ac_header>
13568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13571 grep -v '^ *+' conftest.er1
>conftest.err
13573 cat conftest.err
>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } >/dev
/null
; then
13576 if test -s conftest.err
; then
13577 ac_cpp_err
=$ac_c_preproc_warn_flag
13578 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13585 if test -z "$ac_cpp_err"; then
13586 ac_header_preproc
=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.
$ac_ext >&5
13591 ac_header_preproc
=no
13593 rm -f conftest.err conftest.
$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13604 ac_header_preproc
=yes
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13621 ## ------------------------------------------ ##
13622 ## Report this to the AC_PACKAGE_NAME lists. ##
13623 ## ------------------------------------------ ##
13626 sed "s/^/$as_me: WARNING: /" >&2
13629 echo "$as_me:$LINENO: checking for $ac_header" >&5
13630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 eval "$as_ac_Header=\$ac_header_preproc"
13636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13641 cat >>confdefs.h
<<_ACEOF
13642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13650 for ac_func
in alarm
13652 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13653 echo "$as_me:$LINENO: checking for $ac_func" >&5
13654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13655 if eval "test \"\${$as_ac_var+set}\" = set"; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13666 #define $ac_func innocuous_$ac_func
13668 /* System header to define __stub macros and hopefully few prototypes,
13669 which can conflict with char $ac_func (); below.
13670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13671 <limits.h> exists even on freestanding compilers. */
13674 # include <limits.h>
13676 # include <assert.h>
13681 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13689 /* The GNU C library defines this for functions which it implements
13690 to always fail with ENOSYS. Some functions are actually named
13691 something starting with __ and the normal name is an alias. */
13692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13695 char (*f) () = $ac_func;
13704 return f != $ac_func;
13709 rm -f conftest.
$ac_objext conftest
$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711 (eval $ac_link) 2>conftest.er1
13713 grep -v '^ *+' conftest.er1
>conftest.err
13715 cat conftest.err
>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try
='test -z "$ac_c_werror_flag"
13719 || test ! -s conftest.err'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try
='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$as_ac_var=yes"
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.
$ac_ext >&5
13736 eval "$as_ac_var=no"
13738 rm -f conftest.err conftest.
$ac_objext \
13739 conftest
$ac_exeext conftest.
$ac_ext
13741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13743 if test `eval echo '${'$as_ac_var'}'` = yes; then
13744 cat >>confdefs.h
<<_ACEOF
13745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13751 echo "$as_me:$LINENO: checking for working mktime" >&5
13752 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13753 if test "${ac_cv_func_working_mktime+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 if test "$cross_compiling" = yes; then
13757 ac_cv_func_working_mktime
=no
13759 cat >conftest.
$ac_ext <<_ACEOF
13762 cat confdefs.h
>>conftest.
$ac_ext
13763 cat >>conftest.
$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 /* Test program from Paul Eggert and Tony Leneis. */
13766 #if TIME_WITH_SYS_TIME
13767 # include <sys/time.h>
13770 # if HAVE_SYS_TIME_H
13771 # include <sys/time.h>
13778 # include <stdlib.h>
13782 # include <unistd.h>
13786 # define alarm(X) /* empty */
13789 /* Work around redefinition to rpl_putenv by other config tests. */
13792 static time_t time_t_max;
13793 static time_t time_t_min;
13795 /* Values we'll use to set the TZ environment variable. */
13796 static char *tz_strings[] = {
13797 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13798 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13800 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13802 /* Fail if mktime fails to convert a date in the spring-forward gap.
13803 Based on a problem report from Andreas Jaeger. */
13805 spring_forward_gap ()
13807 /* glibc (up to about 1998-10-07) failed this test. */
13810 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13811 instead of "TZ=America/Vancouver" in order to detect the bug even
13812 on systems that don't support the Olson extension, or don't have the
13813 full zoneinfo tables installed. */
13814 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13823 if (mktime (&tm) == (time_t)-1)
13832 if ((lt = localtime (&now)) && mktime (lt) != now)
13840 mktime_test1 (now);
13841 mktime_test1 ((time_t) (time_t_max - now));
13842 mktime_test1 ((time_t) (time_t_min + now));
13848 /* Based on code from Ariel Faigon. */
13858 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13868 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13869 now = mktime (&tm);
13870 if (now != (time_t) -1)
13872 struct tm *lt = localtime (&now);
13874 && lt->tm_year == tm.tm_year
13875 && lt->tm_mon == tm.tm_mon
13876 && lt->tm_mday == tm.tm_mday
13877 && lt->tm_hour == tm.tm_hour
13878 && lt->tm_min == tm.tm_min
13879 && lt->tm_sec == tm.tm_sec
13880 && lt->tm_yday == tm.tm_yday
13881 && lt->tm_wday == tm.tm_wday
13882 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13883 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13894 /* This test makes some buggy mktime implementations loop.
13895 Give up after 60 seconds; a mktime slower than that
13896 isn't worth using anyway. */
13899 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13902 if ((time_t) -1 < 0)
13903 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13905 delta = time_t_max / 997; /* a suitable prime number */
13906 for (i = 0; i < N_STRINGS; i++)
13909 putenv (tz_strings[i]);
13911 for (t = 0; t <= time_t_max - delta; t += delta)
13913 mktime_test ((time_t) 1);
13914 mktime_test ((time_t) (60 * 60));
13915 mktime_test ((time_t) (60 * 60 * 24));
13917 for (j = 1; 0 < j; j *= 2)
13919 bigtime_test (j - 1);
13922 spring_forward_gap ();
13926 rm -f conftest
$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_func_working_mktime
=yes
13939 echo "$as_me: program exited with status $ac_status" >&5
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.
$ac_ext >&5
13943 ( exit $ac_status )
13944 ac_cv_func_working_mktime
=no
13946 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13950 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13951 if test $ac_cv_func_working_mktime = no
; then
13953 "mktime.$ac_objext" | \
13954 *" mktime.$ac_objext" | \
13955 "mktime.$ac_objext "* | \
13956 *" mktime.$ac_objext "* ) ;;
13957 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
13962 if test "$ac_cv_func_working_mktime" = no
; then
13964 cat >>confdefs.h
<<\_ACEOF
13965 #define BROKEN_MKTIME 1
13970 ac_have_func
=no
# yes means we've found a way to get the load average.
13972 # Make sure getloadavg.c is where it belongs, at configure-time.
13973 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13974 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13975 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13976 { (exit 1); exit 1; }; }
13980 # Check for getloadavg, but be sure not to touch the cache variable.
13981 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13982 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13983 if test "${ac_cv_func_getloadavg+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 cat >conftest.
$ac_ext <<_ACEOF
13989 cat confdefs.h
>>conftest.
$ac_ext
13990 cat >>conftest.
$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13994 #define getloadavg innocuous_getloadavg
13996 /* System header to define __stub macros and hopefully few prototypes,
13997 which can conflict with char getloadavg (); below.
13998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13999 <limits.h> exists even on freestanding compilers. */
14002 # include <limits.h>
14004 # include <assert.h>
14009 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016 char getloadavg ();
14017 /* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14023 char (*f) () = getloadavg;
14032 return f != getloadavg;
14037 rm -f conftest.
$ac_objext conftest
$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039 (eval $ac_link) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1
>conftest.err
14043 cat conftest.err
>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try
='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try
='test -s conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_func_getloadavg
=yes
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.
$ac_ext >&5
14064 ac_cv_func_getloadavg
=no
14066 rm -f conftest.err conftest.
$ac_objext \
14067 conftest
$ac_exeext conftest.
$ac_ext
14069 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14070 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14071 if test $ac_cv_func_getloadavg = yes; then
14076 ) && ac_have_func
=yes
14078 # On HPUX9, an unprivileged user can get load averages through this function.
14080 for ac_func
in pstat_getdynamic
14082 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14083 echo "$as_me:$LINENO: checking for $ac_func" >&5
14084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14085 if eval "test \"\${$as_ac_var+set}\" = set"; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 cat >conftest.
$ac_ext <<_ACEOF
14091 cat confdefs.h
>>conftest.
$ac_ext
14092 cat >>conftest.
$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14096 #define $ac_func innocuous_$ac_func
14098 /* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char $ac_func (); below.
14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14101 <limits.h> exists even on freestanding compilers. */
14104 # include <limits.h>
14106 # include <assert.h>
14111 /* Override any gcc2 internal prototype to avoid an error. */
14116 /* We use char because int might match the return type of a gcc2
14117 builtin and then its argument prototype would still apply. */
14119 /* The GNU C library defines this for functions which it implements
14120 to always fail with ENOSYS. Some functions are actually named
14121 something starting with __ and the normal name is an alias. */
14122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14125 char (*f) () = $ac_func;
14134 return f != $ac_func;
14139 rm -f conftest.
$ac_objext conftest
$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1
>conftest.err
14145 cat conftest.err
>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try
='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try
='test -s conftest$ac_exeext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 eval "$as_ac_var=yes"
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.
$ac_ext >&5
14166 eval "$as_ac_var=no"
14168 rm -f conftest.err conftest.
$ac_objext \
14169 conftest
$ac_exeext conftest.
$ac_ext
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14173 if test `eval echo '${'$as_ac_var'}'` = yes; then
14174 cat >>confdefs.h
<<_ACEOF
14175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14182 # Solaris has libkstat which does not require root.
14184 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14185 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14186 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 ac_check_lib_save_LIBS
=$LIBS
14190 LIBS
="-lkstat $LIBS"
14191 cat >conftest.
$ac_ext <<_ACEOF
14194 cat confdefs.h
>>conftest.
$ac_ext
14195 cat >>conftest.
$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14198 /* Override any gcc2 internal prototype to avoid an error. */
14202 /* We use char because int might match the return type of a gcc2
14203 builtin and then its argument prototype would still apply. */
14204 char kstat_open ();
14213 rm -f conftest.
$ac_objext conftest
$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215 (eval $ac_link) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1
>conftest.err
14219 cat conftest.err
>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try
='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try
='test -s conftest$ac_exeext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_lib_kstat_kstat_open
=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.
$ac_ext >&5
14240 ac_cv_lib_kstat_kstat_open
=no
14242 rm -f conftest.err conftest.
$ac_objext \
14243 conftest
$ac_exeext conftest.
$ac_ext
14244 LIBS
=$ac_check_lib_save_LIBS
14246 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14247 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14248 if test $ac_cv_lib_kstat_kstat_open = yes; then
14249 cat >>confdefs.h
<<_ACEOF
14250 #define HAVE_LIBKSTAT 1
14253 LIBS
="-lkstat $LIBS"
14257 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14259 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14260 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14261 # to get the right answer into the cache.
14262 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14263 if test $ac_have_func = no
; then
14264 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14265 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14266 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 ac_check_lib_save_LIBS
=$LIBS
14271 cat >conftest.
$ac_ext <<_ACEOF
14274 cat confdefs.h
>>conftest.
$ac_ext
14275 cat >>conftest.
$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14278 /* Override any gcc2 internal prototype to avoid an error. */
14282 /* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14293 rm -f conftest.
$ac_objext conftest
$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295 (eval $ac_link) 2>conftest.er1
14297 grep -v '^ *+' conftest.er1
>conftest.err
14299 cat conftest.err
>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try
='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try
='test -s conftest$ac_exeext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 ac_cv_lib_elf_elf_begin
=yes
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.
$ac_ext >&5
14320 ac_cv_lib_elf_elf_begin
=no
14322 rm -f conftest.err conftest.
$ac_objext \
14323 conftest
$ac_exeext conftest.
$ac_ext
14324 LIBS
=$ac_check_lib_save_LIBS
14326 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14327 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14328 if test $ac_cv_lib_elf_elf_begin = yes; then
14333 if test $ac_have_func = no
; then
14334 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14335 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14336 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 ac_check_lib_save_LIBS
=$LIBS
14341 cat >conftest.
$ac_ext <<_ACEOF
14344 cat confdefs.h
>>conftest.
$ac_ext
14345 cat >>conftest.
$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14348 /* Override any gcc2 internal prototype to avoid an error. */
14352 /* We use char because int might match the return type of a gcc2
14353 builtin and then its argument prototype would still apply. */
14363 rm -f conftest.
$ac_objext conftest
$ac_exeext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14365 (eval $ac_link) 2>conftest.er1
14367 grep -v '^ *+' conftest.er1
>conftest.err
14369 cat conftest.err
>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try
='test -z "$ac_c_werror_flag"
14373 || test ! -s conftest.err'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try
='test -s conftest$ac_exeext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_cv_lib_kvm_kvm_open
=yes
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.
$ac_ext >&5
14390 ac_cv_lib_kvm_kvm_open
=no
14392 rm -f conftest.err conftest.
$ac_objext \
14393 conftest
$ac_exeext conftest.
$ac_ext
14394 LIBS
=$ac_check_lib_save_LIBS
14396 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14397 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14398 if test $ac_cv_lib_kvm_kvm_open = yes; then
14402 # Check for the 4.4BSD definition of getloadavg.
14403 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14404 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14405 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 ac_check_lib_save_LIBS
=$LIBS
14409 LIBS
="-lutil $LIBS"
14410 cat >conftest.
$ac_ext <<_ACEOF
14413 cat confdefs.h
>>conftest.
$ac_ext
14414 cat >>conftest.
$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14417 /* Override any gcc2 internal prototype to avoid an error. */
14421 /* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14423 char getloadavg ();
14432 rm -f conftest.
$ac_objext conftest
$ac_exeext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14434 (eval $ac_link) 2>conftest.er1
14436 grep -v '^ *+' conftest.er1
>conftest.err
14438 cat conftest.err
>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try
='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try
='test -s conftest$ac_exeext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_lib_util_getloadavg
=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.
$ac_ext >&5
14459 ac_cv_lib_util_getloadavg
=no
14461 rm -f conftest.err conftest.
$ac_objext \
14462 conftest
$ac_exeext conftest.
$ac_ext
14463 LIBS
=$ac_check_lib_save_LIBS
14465 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14466 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14467 if test $ac_cv_lib_util_getloadavg = yes; then
14468 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14473 if test $ac_have_func = no
; then
14474 # There is a commonly available library for RS/6000 AIX.
14475 # Since it is not a standard part of AIX, it might be installed locally.
14476 ac_getloadavg_LIBS
=$LIBS
14477 LIBS
="-L/usr/local/lib $LIBS"
14478 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14479 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14480 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 ac_check_lib_save_LIBS
=$LIBS
14484 LIBS
="-lgetloadavg $LIBS"
14485 cat >conftest.
$ac_ext <<_ACEOF
14488 cat confdefs.h
>>conftest.
$ac_ext
14489 cat >>conftest.
$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 /* Override any gcc2 internal prototype to avoid an error. */
14496 /* We use char because int might match the return type of a gcc2
14497 builtin and then its argument prototype would still apply. */
14498 char getloadavg ();
14507 rm -f conftest.
$ac_objext conftest
$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>conftest.er1
14511 grep -v '^ *+' conftest.er1
>conftest.err
14513 cat conftest.err
>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try
='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try
='test -s conftest$ac_exeext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_cv_lib_getloadavg_getloadavg
=yes
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.
$ac_ext >&5
14534 ac_cv_lib_getloadavg_getloadavg
=no
14536 rm -f conftest.err conftest.
$ac_objext \
14537 conftest
$ac_exeext conftest.
$ac_ext
14538 LIBS
=$ac_check_lib_save_LIBS
14540 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14541 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14542 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14543 LIBS
="-lgetloadavg $LIBS"
14545 LIBS
=$ac_getloadavg_LIBS
14550 # Make sure it is really in the library, if we think we found it,
14551 # otherwise set up the replacement function.
14553 for ac_func
in getloadavg
14555 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14556 echo "$as_me:$LINENO: checking for $ac_func" >&5
14557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14558 if eval "test \"\${$as_ac_var+set}\" = set"; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 cat >conftest.
$ac_ext <<_ACEOF
14564 cat confdefs.h
>>conftest.
$ac_ext
14565 cat >>conftest.
$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14569 #define $ac_func innocuous_$ac_func
14571 /* System header to define __stub macros and hopefully few prototypes,
14572 which can conflict with char $ac_func (); below.
14573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14574 <limits.h> exists even on freestanding compilers. */
14577 # include <limits.h>
14579 # include <assert.h>
14584 /* Override any gcc2 internal prototype to avoid an error. */
14589 /* We use char because int might match the return type of a gcc2
14590 builtin and then its argument prototype would still apply. */
14592 /* The GNU C library defines this for functions which it implements
14593 to always fail with ENOSYS. Some functions are actually named
14594 something starting with __ and the normal name is an alias. */
14595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14598 char (*f) () = $ac_func;
14607 return f != $ac_func;
14612 rm -f conftest.
$ac_objext conftest
$ac_exeext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>conftest.er1
14616 grep -v '^ *+' conftest.er1
>conftest.err
14618 cat conftest.err
>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try
='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try
='test -s conftest$ac_exeext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 eval "$as_ac_var=yes"
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.
$ac_ext >&5
14639 eval "$as_ac_var=no"
14641 rm -f conftest.err conftest.
$ac_objext \
14642 conftest
$ac_exeext conftest.
$ac_ext
14644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14646 if test `eval echo '${'$as_ac_var'}'` = yes; then
14647 cat >>confdefs.h
<<_ACEOF
14648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14653 "getloadavg.$ac_objext" | \
14654 *" getloadavg.$ac_objext" | \
14655 "getloadavg.$ac_objext "* | \
14656 *" getloadavg.$ac_objext "* ) ;;
14657 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14661 cat >>confdefs.h
<<\_ACEOF
14662 #define C_GETLOADAVG 1
14665 # Figure out what our getloadavg.c needs.
14667 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14668 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14669 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14670 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14674 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14676 # Is the header compilable?
14677 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14678 echo $ECHO_N "checking sys/dg_sys_info.h usability... $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 $ac_includes_default
14686 #include <sys/dg_sys_info.h>
14688 rm -f conftest.
$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14692 grep -v '^ *+' conftest.er1
>conftest.err
14694 cat conftest.err
>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try
='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try
='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_header_compiler
=yes
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.
$ac_ext >&5
14715 ac_header_compiler
=no
14717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14719 echo "${ECHO_T}$ac_header_compiler" >&6
14721 # Is the header present?
14722 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14723 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14724 cat >conftest.
$ac_ext <<_ACEOF
14727 cat confdefs.h
>>conftest.
$ac_ext
14728 cat >>conftest.
$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 #include <sys/dg_sys_info.h>
14732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14733 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14735 grep -v '^ *+' conftest.er1
>conftest.err
14737 cat conftest.err
>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev
/null
; then
14740 if test -s conftest.err
; then
14741 ac_cpp_err
=$ac_c_preproc_warn_flag
14742 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14749 if test -z "$ac_cpp_err"; then
14750 ac_header_preproc
=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.
$ac_ext >&5
14755 ac_header_preproc
=no
14757 rm -f conftest.err conftest.
$ac_ext
14758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14759 echo "${ECHO_T}$ac_header_preproc" >&6
14761 # So? What about this header?
14762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14765 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14767 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14768 ac_header_preproc
=yes
14771 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14772 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14774 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14776 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14778 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14782 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14785 ## ------------------------------------------ ##
14786 ## Report this to the AC_PACKAGE_NAME lists. ##
14787 ## ------------------------------------------ ##
14790 sed "s/^/$as_me: WARNING: /" >&2
14793 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14794 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14795 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14800 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14801 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14804 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14807 cat >>confdefs.h
<<\_ACEOF
14812 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14813 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14814 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 ac_check_lib_save_LIBS
=$LIBS
14819 cat >conftest.
$ac_ext <<_ACEOF
14822 cat confdefs.h
>>conftest.
$ac_ext
14823 cat >>conftest.
$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14826 /* Override any gcc2 internal prototype to avoid an error. */
14830 /* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14832 char dg_sys_info ();
14841 rm -f conftest.
$ac_objext conftest
$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>conftest.er1
14845 grep -v '^ *+' conftest.er1
>conftest.err
14847 cat conftest.err
>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try
='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try
='test -s conftest$ac_exeext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_cv_lib_dgc_dg_sys_info
=yes
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.
$ac_ext >&5
14868 ac_cv_lib_dgc_dg_sys_info
=no
14870 rm -f conftest.err conftest.
$ac_objext \
14871 conftest
$ac_exeext conftest.
$ac_ext
14872 LIBS
=$ac_check_lib_save_LIBS
14874 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14875 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14876 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14877 cat >>confdefs.h
<<_ACEOF
14878 #define HAVE_LIBDGC 1
14889 if test "${ac_cv_header_locale_h+set}" = set; then
14890 echo "$as_me:$LINENO: checking for locale.h" >&5
14891 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14892 if test "${ac_cv_header_locale_h+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14896 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14898 # Is the header compilable?
14899 echo "$as_me:$LINENO: checking locale.h usability" >&5
14900 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14901 cat >conftest.
$ac_ext <<_ACEOF
14904 cat confdefs.h
>>conftest.
$ac_ext
14905 cat >>conftest.
$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 #include <locale.h>
14910 rm -f conftest.
$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>conftest.er1
14914 grep -v '^ *+' conftest.er1
>conftest.err
14916 cat conftest.err
>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try
='test -z "$ac_c_werror_flag"
14920 || test ! -s conftest.err'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try
='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_header_compiler
=yes
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.
$ac_ext >&5
14937 ac_header_compiler
=no
14939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6
14943 # Is the header present?
14944 echo "$as_me:$LINENO: checking locale.h presence" >&5
14945 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14946 cat >conftest.
$ac_ext <<_ACEOF
14949 cat confdefs.h
>>conftest.
$ac_ext
14950 cat >>conftest.
$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <locale.h>
14954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14957 grep -v '^ *+' conftest.er1
>conftest.err
14959 cat conftest.err
>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } >/dev
/null
; then
14962 if test -s conftest.err
; then
14963 ac_cpp_err
=$ac_c_preproc_warn_flag
14964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14971 if test -z "$ac_cpp_err"; then
14972 ac_header_preproc
=yes
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.
$ac_ext >&5
14977 ac_header_preproc
=no
14979 rm -f conftest.err conftest.
$ac_ext
14980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14981 echo "${ECHO_T}$ac_header_preproc" >&6
14983 # So? What about this header?
14984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14986 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14987 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14989 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14990 ac_header_preproc
=yes
14993 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14994 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14996 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
14998 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
14999 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15000 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15002 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15004 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15007 ## ------------------------------------------ ##
15008 ## Report this to the AC_PACKAGE_NAME lists. ##
15009 ## ------------------------------------------ ##
15012 sed "s/^/$as_me: WARNING: /" >&2
15015 echo "$as_me:$LINENO: checking for locale.h" >&5
15016 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15017 if test "${ac_cv_header_locale_h+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 ac_cv_header_locale_h
=$ac_header_preproc
15022 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15023 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15029 for ac_func
in setlocale
15031 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15032 echo "$as_me:$LINENO: checking for $ac_func" >&5
15033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15034 if eval "test \"\${$as_ac_var+set}\" = set"; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 cat >conftest.
$ac_ext <<_ACEOF
15040 cat confdefs.h
>>conftest.
$ac_ext
15041 cat >>conftest.
$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15045 #define $ac_func innocuous_$ac_func
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char $ac_func (); below.
15049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15050 <limits.h> exists even on freestanding compilers. */
15053 # include <limits.h>
15055 # include <assert.h>
15060 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15068 /* The GNU C library defines this for functions which it implements
15069 to always fail with ENOSYS. Some functions are actually named
15070 something starting with __ and the normal name is an alias. */
15071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15074 char (*f) () = $ac_func;
15083 return f != $ac_func;
15088 rm -f conftest.
$ac_objext conftest
$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>conftest.er1
15092 grep -v '^ *+' conftest.er1
>conftest.err
15094 cat conftest.err
>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try
='test -z "$ac_c_werror_flag"
15098 || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try
='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 eval "$as_ac_var=yes"
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.
$ac_ext >&5
15115 eval "$as_ac_var=no"
15117 rm -f conftest.err conftest.
$ac_objext \
15118 conftest
$ac_exeext conftest.
$ac_ext
15120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15122 if test `eval echo '${'$as_ac_var'}'` = yes; then
15123 cat >>confdefs.h
<<_ACEOF
15124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15131 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15132 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15133 # Irix 4.0.5F has the header but not the library.
15134 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15137 cat >>confdefs.h
<<\_ACEOF
15143 if test $ac_have_func = no
; then
15144 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15145 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15146 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15147 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15153 # Is the header compilable?
15154 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15155 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15156 cat >conftest.
$ac_ext <<_ACEOF
15159 cat confdefs.h
>>conftest.
$ac_ext
15160 cat >>conftest.
$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15163 #include <inq_stats/cpustats.h>
15165 rm -f conftest.
$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>conftest.er1
15169 grep -v '^ *+' conftest.er1
>conftest.err
15171 cat conftest.err
>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try
='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try
='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler
=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.
$ac_ext >&5
15192 ac_header_compiler
=no
15194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6
15198 # Is the header present?
15199 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15200 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15201 cat >conftest.
$ac_ext <<_ACEOF
15204 cat confdefs.h
>>conftest.
$ac_ext
15205 cat >>conftest.
$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 #include <inq_stats/cpustats.h>
15209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15212 grep -v '^ *+' conftest.er1
>conftest.err
15214 cat conftest.err
>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } >/dev
/null
; then
15217 if test -s conftest.err
; then
15218 ac_cpp_err
=$ac_c_preproc_warn_flag
15219 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15226 if test -z "$ac_cpp_err"; then
15227 ac_header_preproc
=yes
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.
$ac_ext >&5
15232 ac_header_preproc
=no
15234 rm -f conftest.err conftest.
$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15241 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15244 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15245 ac_header_preproc
=yes
15248 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15249 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15251 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15253 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15255 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15257 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15259 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15262 ## ------------------------------------------ ##
15263 ## Report this to the AC_PACKAGE_NAME lists. ##
15264 ## ------------------------------------------ ##
15267 sed "s/^/$as_me: WARNING: /" >&2
15270 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15271 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15272 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15277 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15278 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15281 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15284 cat >>confdefs.h
<<\_ACEOF
15289 cat >>confdefs.h
<<\_ACEOF
15298 if test $ac_have_func = no
; then
15299 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15300 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15301 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15302 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15306 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15308 # Is the header compilable?
15309 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15310 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15311 cat >conftest.
$ac_ext <<_ACEOF
15314 cat confdefs.h
>>conftest.
$ac_ext
15315 cat >>conftest.
$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 $ac_includes_default
15318 #include <sys/cpustats.h>
15320 rm -f conftest.
$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>conftest.er1
15324 grep -v '^ *+' conftest.er1
>conftest.err
15326 cat conftest.err
>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try
='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try
='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_header_compiler
=yes
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.
$ac_ext >&5
15347 ac_header_compiler
=no
15349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15351 echo "${ECHO_T}$ac_header_compiler" >&6
15353 # Is the header present?
15354 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15355 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15356 cat >conftest.
$ac_ext <<_ACEOF
15359 cat confdefs.h
>>conftest.
$ac_ext
15360 cat >>conftest.
$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <sys/cpustats.h>
15364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1
>conftest.err
15369 cat conftest.err
>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev
/null
; then
15372 if test -s conftest.err
; then
15373 ac_cpp_err
=$ac_c_preproc_warn_flag
15374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15381 if test -z "$ac_cpp_err"; then
15382 ac_header_preproc
=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.
$ac_ext >&5
15387 ac_header_preproc
=no
15389 rm -f conftest.err conftest.
$ac_ext
15390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15391 echo "${ECHO_T}$ac_header_preproc" >&6
15393 # So? What about this header?
15394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15396 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15397 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15399 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15400 ac_header_preproc
=yes
15403 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15404 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15406 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15408 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15410 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15412 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15414 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15417 ## ------------------------------------------ ##
15418 ## Report this to the AC_PACKAGE_NAME lists. ##
15419 ## ------------------------------------------ ##
15422 sed "s/^/$as_me: WARNING: /" >&2
15425 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15426 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15427 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15432 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15433 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15436 if test $ac_cv_header_sys_cpustats_h = yes; then
15437 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15446 if test $ac_have_func = no
; then
15448 for ac_header
in mach
/mach.h
15450 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15452 echo "$as_me:$LINENO: checking for $ac_header" >&5
15453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15460 # Is the header compilable?
15461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15463 cat >conftest.
$ac_ext <<_ACEOF
15466 cat confdefs.h
>>conftest.
$ac_ext
15467 cat >>conftest.
$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 $ac_includes_default
15470 #include <$ac_header>
15472 rm -f conftest.
$ac_objext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15474 (eval $ac_compile) 2>conftest.er1
15476 grep -v '^ *+' conftest.er1
>conftest.err
15478 cat conftest.err
>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try
='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try
='test -s conftest.$ac_objext'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_header_compiler
=yes
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.
$ac_ext >&5
15499 ac_header_compiler
=no
15501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15503 echo "${ECHO_T}$ac_header_compiler" >&6
15505 # Is the header present?
15506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15508 cat >conftest.
$ac_ext <<_ACEOF
15511 cat confdefs.h
>>conftest.
$ac_ext
15512 cat >>conftest.
$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 #include <$ac_header>
15516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15519 grep -v '^ *+' conftest.er1
>conftest.err
15521 cat conftest.err
>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev
/null
; then
15524 if test -s conftest.err
; then
15525 ac_cpp_err
=$ac_c_preproc_warn_flag
15526 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15533 if test -z "$ac_cpp_err"; then
15534 ac_header_preproc
=yes
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.
$ac_ext >&5
15539 ac_header_preproc
=no
15541 rm -f conftest.err conftest.
$ac_ext
15542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15543 echo "${ECHO_T}$ac_header_preproc" >&6
15545 # So? What about this header?
15546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15552 ac_header_preproc
=yes
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15569 ## ------------------------------------------ ##
15570 ## Report this to the AC_PACKAGE_NAME lists. ##
15571 ## ------------------------------------------ ##
15574 sed "s/^/$as_me: WARNING: /" >&2
15577 echo "$as_me:$LINENO: checking for $ac_header" >&5
15578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 eval "$as_ac_Header=\$ac_header_preproc"
15584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15589 cat >>confdefs.h
<<_ACEOF
15590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15600 for ac_header
in nlist.h
15602 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604 echo "$as_me:$LINENO: checking for $ac_header" >&5
15605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15612 # Is the header compilable?
15613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15615 cat >conftest.
$ac_ext <<_ACEOF
15618 cat confdefs.h
>>conftest.
$ac_ext
15619 cat >>conftest.
$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 $ac_includes_default
15622 #include <$ac_header>
15624 rm -f conftest.
$ac_objext
15625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15626 (eval $ac_compile) 2>conftest.er1
15628 grep -v '^ *+' conftest.er1
>conftest.err
15630 cat conftest.err
>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try
='test -z "$ac_c_werror_flag"
15634 || test ! -s conftest.err'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try
='test -s conftest.$ac_objext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_header_compiler
=yes
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.
$ac_ext >&5
15651 ac_header_compiler
=no
15653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15655 echo "${ECHO_T}$ac_header_compiler" >&6
15657 # Is the header present?
15658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15660 cat >conftest.
$ac_ext <<_ACEOF
15663 cat confdefs.h
>>conftest.
$ac_ext
15664 cat >>conftest.
$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 #include <$ac_header>
15668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15669 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15671 grep -v '^ *+' conftest.er1
>conftest.err
15673 cat conftest.err
>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } >/dev
/null
; then
15676 if test -s conftest.err
; then
15677 ac_cpp_err
=$ac_c_preproc_warn_flag
15678 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15685 if test -z "$ac_cpp_err"; then
15686 ac_header_preproc
=yes
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.
$ac_ext >&5
15691 ac_header_preproc
=no
15693 rm -f conftest.err conftest.
$ac_ext
15694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15695 echo "${ECHO_T}$ac_header_preproc" >&6
15697 # So? What about this header?
15698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15704 ac_header_preproc
=yes
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15721 ## ------------------------------------------ ##
15722 ## Report this to the AC_PACKAGE_NAME lists. ##
15723 ## ------------------------------------------ ##
15726 sed "s/^/$as_me: WARNING: /" >&2
15729 echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 eval "$as_ac_Header=\$ac_header_preproc"
15736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15741 cat >>confdefs.h
<<_ACEOF
15742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15744 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15745 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15746 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 cat >conftest.
$ac_ext <<_ACEOF
15752 cat confdefs.h
>>conftest.
$ac_ext
15753 cat >>conftest.
$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15760 static struct nlist ac_aggr;
15761 if (ac_aggr.n_un.n_name)
15767 rm -f conftest.
$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>conftest.er1
15771 grep -v '^ *+' conftest.er1
>conftest.err
15773 cat conftest.err
>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try
='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try
='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_cv_member_struct_nlist_n_un_n_name
=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.
$ac_ext >&5
15794 cat >conftest.
$ac_ext <<_ACEOF
15797 cat confdefs.h
>>conftest.
$ac_ext
15798 cat >>conftest.
$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15805 static struct nlist ac_aggr;
15806 if (sizeof ac_aggr.n_un.n_name)
15812 rm -f conftest.
$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>conftest.er1
15816 grep -v '^ *+' conftest.er1
>conftest.err
15818 cat conftest.err
>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try
='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try
='test -s conftest.$ac_objext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_cv_member_struct_nlist_n_un_n_name
=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.
$ac_ext >&5
15839 ac_cv_member_struct_nlist_n_un_n_name
=no
15841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15846 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15847 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15849 cat >>confdefs.h
<<_ACEOF
15850 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15854 cat >>confdefs.h
<<\_ACEOF
15855 #define NLIST_NAME_UNION 1
15869 # Some definitions of getloadavg require that the program be installed setgid.
15870 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15871 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15872 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 cat >conftest.
$ac_ext <<_ACEOF
15878 cat confdefs.h
>>conftest.
$ac_ext
15879 cat >>conftest.
$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15882 #ifdef LDAV_PRIVILEGED
15883 Yowza Am I SETGID yet
15886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15887 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
15888 ac_cv_func_getloadavg_setgid
=yes
15890 ac_cv_func_getloadavg_setgid
=no
15895 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15896 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15897 if test $ac_cv_func_getloadavg_setgid = yes; then
15900 cat >>confdefs.h
<<\_ACEOF
15901 #define GETLOADAVG_PRIVILEGED 1
15908 if test $ac_cv_func_getloadavg_setgid = yes; then
15909 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15910 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15911 if test "${ac_cv_group_kmem+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15915 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15916 # If we got an error (system does not support symlinks), try without -L.
15917 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15918 ac_cv_group_kmem
=`echo $ac_ls_output \
15919 | sed -ne 's/[ ][ ]*/ /g;
15920 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15924 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15925 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15926 KMEM_GROUP
=$ac_cv_group_kmem
15928 if test "x$ac_save_LIBS" = x
; then
15929 GETLOADAVG_LIBS
=$LIBS
15931 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15937 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15938 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15939 if test "${ac_cv_sys_largefile_source+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 ac_cv_sys_largefile_source
=no
15944 cat >conftest.
$ac_ext <<_ACEOF
15947 cat confdefs.h
>>conftest.
$ac_ext
15948 cat >>conftest.
$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15959 rm -f conftest.
$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1
>conftest.err
15965 cat conftest.err
>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try
='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try
='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.
$ac_ext >&5
15987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15988 cat >conftest.
$ac_ext <<_ACEOF
15991 cat confdefs.h
>>conftest.
$ac_ext
15992 cat >>conftest.
$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 #define _LARGEFILE_SOURCE 1
16004 rm -f conftest.
$ac_objext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006 (eval $ac_compile) 2>conftest.er1
16008 grep -v '^ *+' conftest.er1
>conftest.err
16010 cat conftest.err
>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try
='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try
='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_sys_largefile_source
=1; break
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.
$ac_ext >&5
16032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16036 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16037 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16038 if test "$ac_cv_sys_largefile_source" != no
; then
16040 cat >>confdefs.h
<<_ACEOF
16041 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16047 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16048 # in glibc 2.1.3, but that breaks too many other things.
16049 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16050 echo "$as_me:$LINENO: checking for fseeko" >&5
16051 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16052 if test "${ac_cv_func_fseeko+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 cat >conftest.
$ac_ext <<_ACEOF
16058 cat confdefs.h
>>conftest.
$ac_ext
16059 cat >>conftest.
$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16065 return fseeko && fseeko (stdin, 0, 0);
16070 rm -f conftest.
$ac_objext conftest
$ac_exeext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16072 (eval $ac_link) 2>conftest.er1
16074 grep -v '^ *+' conftest.er1
>conftest.err
16076 cat conftest.err
>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try
='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try
='test -s conftest$ac_exeext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_cv_func_fseeko
=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.
$ac_ext >&5
16097 ac_cv_func_fseeko
=no
16099 rm -f conftest.err conftest.
$ac_objext \
16100 conftest
$ac_exeext conftest.
$ac_ext
16102 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16103 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16104 if test $ac_cv_func_fseeko = yes; then
16106 cat >>confdefs.h
<<\_ACEOF
16107 #define HAVE_FSEEKO 1
16113 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16114 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16115 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 # Use it with a single arg.
16119 cat >conftest.
$ac_ext <<_ACEOF
16122 cat confdefs.h
>>conftest.
$ac_ext
16123 cat >>conftest.
$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 $ac_includes_default
16134 rm -f conftest.
$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16138 grep -v '^ *+' conftest.er1
>conftest.err
16140 cat conftest.err
>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try
='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try
='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_cv_func_getpgrp_void
=no
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.
$ac_ext >&5
16161 ac_cv_func_getpgrp_void
=yes
16163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16167 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16168 if test $ac_cv_func_getpgrp_void = yes; then
16170 cat >>confdefs.h
<<\_ACEOF
16171 #define GETPGRP_VOID 1
16178 for ac_func
in strftime
16180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 echo "$as_me:$LINENO: checking for $ac_func" >&5
16182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16183 if eval "test \"\${$as_ac_var+set}\" = set"; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 cat >conftest.
$ac_ext <<_ACEOF
16189 cat confdefs.h
>>conftest.
$ac_ext
16190 cat >>conftest.
$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16194 #define $ac_func innocuous_$ac_func
16196 /* System header to define __stub macros and hopefully few prototypes,
16197 which can conflict with char $ac_func (); below.
16198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16199 <limits.h> exists even on freestanding compilers. */
16202 # include <limits.h>
16204 # include <assert.h>
16209 /* Override any gcc2 internal prototype to avoid an error. */
16214 /* We use char because int might match the return type of a gcc2
16215 builtin and then its argument prototype would still apply. */
16217 /* The GNU C library defines this for functions which it implements
16218 to always fail with ENOSYS. Some functions are actually named
16219 something starting with __ and the normal name is an alias. */
16220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16223 char (*f) () = $ac_func;
16232 return f != $ac_func;
16237 rm -f conftest.
$ac_objext conftest
$ac_exeext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16239 (eval $ac_link) 2>conftest.er1
16241 grep -v '^ *+' conftest.er1
>conftest.err
16243 cat conftest.err
>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try
='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try
='test -s conftest$ac_exeext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 eval "$as_ac_var=yes"
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.
$ac_ext >&5
16264 eval "$as_ac_var=no"
16266 rm -f conftest.err conftest.
$ac_objext \
16267 conftest
$ac_exeext conftest.
$ac_ext
16269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272 cat >>confdefs.h
<<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277 # strftime is in -lintl on SCO UNIX.
16278 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16279 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16280 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 ac_check_lib_save_LIBS
=$LIBS
16284 LIBS
="-lintl $LIBS"
16285 cat >conftest.
$ac_ext <<_ACEOF
16288 cat confdefs.h
>>conftest.
$ac_ext
16289 cat >>conftest.
$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16292 /* Override any gcc2 internal prototype to avoid an error. */
16296 /* We use char because int might match the return type of a gcc2
16297 builtin and then its argument prototype would still apply. */
16307 rm -f conftest.
$ac_objext conftest
$ac_exeext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>conftest.er1
16311 grep -v '^ *+' conftest.er1
>conftest.err
16313 cat conftest.err
>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try
='test -z "$ac_c_werror_flag"
16317 || test ! -s conftest.err'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try
='test -s conftest$ac_exeext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_lib_intl_strftime
=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.
$ac_ext >&5
16334 ac_cv_lib_intl_strftime
=no
16336 rm -f conftest.err conftest.
$ac_objext \
16337 conftest
$ac_exeext conftest.
$ac_ext
16338 LIBS
=$ac_check_lib_save_LIBS
16340 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16341 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16342 if test $ac_cv_lib_intl_strftime = yes; then
16343 cat >>confdefs.h
<<\_ACEOF
16344 #define HAVE_STRFTIME 1
16347 LIBS
="-lintl $LIBS"
16356 for ac_func
in grantpt
16358 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16359 echo "$as_me:$LINENO: checking for $ac_func" >&5
16360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16361 if eval "test \"\${$as_ac_var+set}\" = set"; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.
$ac_ext <<_ACEOF
16367 cat confdefs.h
>>conftest.
$ac_ext
16368 cat >>conftest.
$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16372 #define $ac_func innocuous_$ac_func
16374 /* System header to define __stub macros and hopefully few prototypes,
16375 which can conflict with char $ac_func (); below.
16376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16377 <limits.h> exists even on freestanding compilers. */
16380 # include <limits.h>
16382 # include <assert.h>
16387 /* Override any gcc2 internal prototype to avoid an error. */
16392 /* We use char because int might match the return type of a gcc2
16393 builtin and then its argument prototype would still apply. */
16395 /* The GNU C library defines this for functions which it implements
16396 to always fail with ENOSYS. Some functions are actually named
16397 something starting with __ and the normal name is an alias. */
16398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16401 char (*f) () = $ac_func;
16410 return f != $ac_func;
16415 rm -f conftest.
$ac_objext conftest
$ac_exeext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417 (eval $ac_link) 2>conftest.er1
16419 grep -v '^ *+' conftest.er1
>conftest.err
16421 cat conftest.err
>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try
='test -z "$ac_c_werror_flag"
16425 || test ! -s conftest.err'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try
='test -s conftest$ac_exeext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 eval "$as_ac_var=yes"
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.
$ac_ext >&5
16442 eval "$as_ac_var=no"
16444 rm -f conftest.err conftest.
$ac_objext \
16445 conftest
$ac_exeext conftest.
$ac_ext
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450 cat >>confdefs.h
<<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 # PTY-related GNU extensions.
16460 for ac_func
in getpt
16462 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16463 echo "$as_me:$LINENO: checking for $ac_func" >&5
16464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16465 if eval "test \"\${$as_ac_var+set}\" = set"; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 cat >conftest.
$ac_ext <<_ACEOF
16471 cat confdefs.h
>>conftest.
$ac_ext
16472 cat >>conftest.
$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476 #define $ac_func innocuous_$ac_func
16478 /* System header to define __stub macros and hopefully few prototypes,
16479 which can conflict with char $ac_func (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16484 # include <limits.h>
16486 # include <assert.h>
16491 /* Override any gcc2 internal prototype to avoid an error. */
16496 /* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
16499 /* The GNU C library defines this for functions which it implements
16500 to always fail with ENOSYS. Some functions are actually named
16501 something starting with __ and the normal name is an alias. */
16502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16505 char (*f) () = $ac_func;
16514 return f != $ac_func;
16519 rm -f conftest.
$ac_objext conftest
$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1
>conftest.err
16525 cat conftest.err
>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try
='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try
='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 eval "$as_ac_var=yes"
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.
$ac_ext >&5
16546 eval "$as_ac_var=no"
16548 rm -f conftest.err conftest.
$ac_objext \
16549 conftest
$ac_exeext conftest.
$ac_ext
16551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16553 if test `eval echo '${'$as_ac_var'}'` = yes; then
16554 cat >>confdefs.h
<<_ACEOF
16555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16562 # Check this now, so that we will NOT find the above functions in ncurses.
16563 # That is because we have not set up to link ncurses in lib-src.
16564 # It's better to believe a function is not available
16565 # than to expect to find it in ncurses.
16567 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16568 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16569 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 ac_check_lib_save_LIBS
=$LIBS
16573 LIBS
="-lncurses $LIBS"
16574 cat >conftest.
$ac_ext <<_ACEOF
16577 cat confdefs.h
>>conftest.
$ac_ext
16578 cat >>conftest.
$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16581 /* Override any gcc2 internal prototype to avoid an error. */
16585 /* We use char because int might match the return type of a gcc2
16586 builtin and then its argument prototype would still apply. */
16596 rm -f conftest.
$ac_objext conftest
$ac_exeext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16598 (eval $ac_link) 2>conftest.er1
16600 grep -v '^ *+' conftest.er1
>conftest.err
16602 cat conftest.err
>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try
='test -z "$ac_c_werror_flag"
16606 || test ! -s conftest.err'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try
='test -s conftest$ac_exeext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_lib_ncurses_tparm
=yes
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.
$ac_ext >&5
16623 ac_cv_lib_ncurses_tparm
=no
16625 rm -f conftest.err conftest.
$ac_objext \
16626 conftest
$ac_exeext conftest.
$ac_ext
16627 LIBS
=$ac_check_lib_save_LIBS
16629 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16630 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16631 if test $ac_cv_lib_ncurses_tparm = yes; then
16632 cat >>confdefs.h
<<_ACEOF
16633 #define HAVE_LIBNCURSES 1
16636 LIBS
="-lncurses $LIBS"
16641 # Do we need the Hesiod library to provide the support routines?
16642 if test "$with_hesiod" = yes ; then
16643 # Don't set $LIBS here -- see comments above.
16645 echo "$as_me:$LINENO: checking for res_send" >&5
16646 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16647 if test "${ac_cv_func_res_send+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 cat >conftest.
$ac_ext <<_ACEOF
16653 cat confdefs.h
>>conftest.
$ac_ext
16654 cat >>conftest.
$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16658 #define res_send innocuous_res_send
16660 /* System header to define __stub macros and hopefully few prototypes,
16661 which can conflict with char res_send (); below.
16662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16663 <limits.h> exists even on freestanding compilers. */
16666 # include <limits.h>
16668 # include <assert.h>
16673 /* Override any gcc2 internal prototype to avoid an error. */
16678 /* We use char because int might match the return type of a gcc2
16679 builtin and then its argument prototype would still apply. */
16681 /* The GNU C library defines this for functions which it implements
16682 to always fail with ENOSYS. Some functions are actually named
16683 something starting with __ and the normal name is an alias. */
16684 #if defined (__stub_res_send) || defined (__stub___res_send)
16687 char (*f) () = res_send;
16696 return f != res_send;
16701 rm -f conftest.
$ac_objext conftest
$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16705 grep -v '^ *+' conftest.er1
>conftest.err
16707 cat conftest.err
>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try
='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try
='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_cv_func_res_send
=yes
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.
$ac_ext >&5
16728 ac_cv_func_res_send
=no
16730 rm -f conftest.err conftest.
$ac_objext \
16731 conftest
$ac_exeext conftest.
$ac_ext
16733 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16734 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16735 if test $ac_cv_func_res_send = yes; then
16738 echo "$as_me:$LINENO: checking for __res_send" >&5
16739 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16740 if test "${ac_cv_func___res_send+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 cat >conftest.
$ac_ext <<_ACEOF
16746 cat confdefs.h
>>conftest.
$ac_ext
16747 cat >>conftest.
$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16751 #define __res_send innocuous___res_send
16753 /* System header to define __stub macros and hopefully few prototypes,
16754 which can conflict with char __res_send (); below.
16755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16756 <limits.h> exists even on freestanding compilers. */
16759 # include <limits.h>
16761 # include <assert.h>
16766 /* Override any gcc2 internal prototype to avoid an error. */
16771 /* We use char because int might match the return type of a gcc2
16772 builtin and then its argument prototype would still apply. */
16773 char __res_send ();
16774 /* The GNU C library defines this for functions which it implements
16775 to always fail with ENOSYS. Some functions are actually named
16776 something starting with __ and the normal name is an alias. */
16777 #if defined (__stub___res_send) || defined (__stub_____res_send)
16780 char (*f) () = __res_send;
16789 return f != __res_send;
16794 rm -f conftest.
$ac_objext conftest
$ac_exeext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796 (eval $ac_link) 2>conftest.er1
16798 grep -v '^ *+' conftest.er1
>conftest.err
16800 cat conftest.err
>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try
='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try
='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_cv_func___res_send
=yes
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.
$ac_ext >&5
16821 ac_cv_func___res_send
=no
16823 rm -f conftest.err conftest.
$ac_objext \
16824 conftest
$ac_exeext conftest.
$ac_ext
16826 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16827 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16828 if test $ac_cv_func___res_send = yes; then
16831 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16832 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16833 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_check_lib_save_LIBS
=$LIBS
16837 LIBS
="-lresolv $LIBS"
16838 cat >conftest.
$ac_ext <<_ACEOF
16841 cat confdefs.h
>>conftest.
$ac_ext
16842 cat >>conftest.
$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16845 /* Override any gcc2 internal prototype to avoid an error. */
16849 /* We use char because int might match the return type of a gcc2
16850 builtin and then its argument prototype would still apply. */
16860 rm -f conftest.
$ac_objext conftest
$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>conftest.er1
16864 grep -v '^ *+' conftest.er1
>conftest.err
16866 cat conftest.err
>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try
='test -z "$ac_c_werror_flag"
16870 || test ! -s conftest.err'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try
='test -s conftest$ac_exeext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_cv_lib_resolv_res_send
=yes
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.
$ac_ext >&5
16887 ac_cv_lib_resolv_res_send
=no
16889 rm -f conftest.err conftest.
$ac_objext \
16890 conftest
$ac_exeext conftest.
$ac_ext
16891 LIBS
=$ac_check_lib_save_LIBS
16893 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16894 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16895 if test $ac_cv_lib_resolv_res_send = yes; then
16898 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16899 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16900 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 ac_check_lib_save_LIBS
=$LIBS
16904 LIBS
="-lresolv $LIBS"
16905 cat >conftest.
$ac_ext <<_ACEOF
16908 cat confdefs.h
>>conftest.
$ac_ext
16909 cat >>conftest.
$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any gcc2 internal prototype to avoid an error. */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16918 char __res_send ();
16927 rm -f conftest.
$ac_objext conftest
$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>conftest.er1
16931 grep -v '^ *+' conftest.er1
>conftest.err
16933 cat conftest.err
>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try
='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try
='test -s conftest$ac_exeext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_cv_lib_resolv___res_send
=yes
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.
$ac_ext >&5
16954 ac_cv_lib_resolv___res_send
=no
16956 rm -f conftest.err conftest.
$ac_objext \
16957 conftest
$ac_exeext conftest.
$ac_ext
16958 LIBS
=$ac_check_lib_save_LIBS
16960 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16961 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16962 if test $ac_cv_lib_resolv___res_send = yes; then
16972 if test "$resolv" = yes ; then
16975 cat >>confdefs.h
<<\_ACEOF
16976 #define HAVE_LIBRESOLV 1
16982 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16983 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16984 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 cat >conftest.
$ac_ext <<_ACEOF
16990 cat confdefs.h
>>conftest.
$ac_ext
16991 cat >>conftest.
$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16995 #define hes_getmailhost innocuous_hes_getmailhost
16997 /* System header to define __stub macros and hopefully few prototypes,
16998 which can conflict with char hes_getmailhost (); below.
16999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17000 <limits.h> exists even on freestanding compilers. */
17003 # include <limits.h>
17005 # include <assert.h>
17008 #undef hes_getmailhost
17010 /* Override any gcc2 internal prototype to avoid an error. */
17015 /* We use char because int might match the return type of a gcc2
17016 builtin and then its argument prototype would still apply. */
17017 char hes_getmailhost ();
17018 /* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
17021 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17024 char (*f) () = hes_getmailhost;
17033 return f != hes_getmailhost;
17038 rm -f conftest.
$ac_objext conftest
$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>conftest.er1
17042 grep -v '^ *+' conftest.er1
>conftest.err
17044 cat conftest.err
>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try
='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try
='test -s conftest$ac_exeext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_cv_func_hes_getmailhost
=yes
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.
$ac_ext >&5
17065 ac_cv_func_hes_getmailhost
=no
17067 rm -f conftest.err conftest.
$ac_objext \
17068 conftest
$ac_exeext conftest.
$ac_ext
17070 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17071 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17072 if test $ac_cv_func_hes_getmailhost = yes; then
17075 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17076 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17077 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 ac_check_lib_save_LIBS
=$LIBS
17081 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17082 cat >conftest.
$ac_ext <<_ACEOF
17085 cat confdefs.h
>>conftest.
$ac_ext
17086 cat >>conftest.
$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 /* Override any gcc2 internal prototype to avoid an error. */
17093 /* We use char because int might match the return type of a gcc2
17094 builtin and then its argument prototype would still apply. */
17095 char hes_getmailhost ();
17099 hes_getmailhost ();
17104 rm -f conftest.
$ac_objext conftest
$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1
>conftest.err
17110 cat conftest.err
>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try
='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try
='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_lib_hesiod_hes_getmailhost
=yes
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.
$ac_ext >&5
17131 ac_cv_lib_hesiod_hes_getmailhost
=no
17133 rm -f conftest.err conftest.
$ac_objext \
17134 conftest
$ac_exeext conftest.
$ac_ext
17135 LIBS
=$ac_check_lib_save_LIBS
17137 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17138 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17139 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17141 cat >>confdefs.h
<<\_ACEOF
17142 #define HAVE_LIBHESIOD 1
17153 # These tell us which Kerberos-related libraries to use.
17154 if test "${with_kerberos+set}" = set; then
17156 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17157 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17158 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 ac_check_lib_save_LIBS
=$LIBS
17162 LIBS
="-lcom_err $LIBS"
17163 cat >conftest.
$ac_ext <<_ACEOF
17166 cat confdefs.h
>>conftest.
$ac_ext
17167 cat >>conftest.
$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any gcc2 internal prototype to avoid an error. */
17174 /* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17185 rm -f conftest.
$ac_objext conftest
$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>conftest.er1
17189 grep -v '^ *+' conftest.er1
>conftest.err
17191 cat conftest.err
>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try
='test -z "$ac_c_werror_flag"
17195 || test ! -s conftest.err'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try
='test -s conftest$ac_exeext'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_cv_lib_com_err_com_err
=yes
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.
$ac_ext >&5
17212 ac_cv_lib_com_err_com_err
=no
17214 rm -f conftest.err conftest.
$ac_objext \
17215 conftest
$ac_exeext conftest.
$ac_ext
17216 LIBS
=$ac_check_lib_save_LIBS
17218 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17219 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17220 if test $ac_cv_lib_com_err_com_err = yes; then
17221 cat >>confdefs.h
<<_ACEOF
17222 #define HAVE_LIBCOM_ERR 1
17225 LIBS
="-lcom_err $LIBS"
17230 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17231 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17232 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 ac_check_lib_save_LIBS
=$LIBS
17236 LIBS
="-lk5crypto $LIBS"
17237 cat >conftest.
$ac_ext <<_ACEOF
17240 cat confdefs.h
>>conftest.
$ac_ext
17241 cat >>conftest.
$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any gcc2 internal prototype to avoid an error. */
17248 /* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250 char mit_des_cbc_encrypt ();
17254 mit_des_cbc_encrypt ();
17259 rm -f conftest.
$ac_objext conftest
$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>conftest.er1
17263 grep -v '^ *+' conftest.er1
>conftest.err
17265 cat conftest.err
>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try
='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try
='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.
$ac_ext >&5
17286 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17288 rm -f conftest.err conftest.
$ac_objext \
17289 conftest
$ac_exeext conftest.
$ac_ext
17290 LIBS
=$ac_check_lib_save_LIBS
17292 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17293 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17294 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17295 cat >>confdefs.h
<<_ACEOF
17296 #define HAVE_LIBK5CRYPTO 1
17299 LIBS
="-lk5crypto $LIBS"
17304 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17305 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17306 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 ac_check_lib_save_LIBS
=$LIBS
17310 LIBS
="-lcrypto $LIBS"
17311 cat >conftest.
$ac_ext <<_ACEOF
17314 cat confdefs.h
>>conftest.
$ac_ext
17315 cat >>conftest.
$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any gcc2 internal prototype to avoid an error. */
17322 /* We use char because int might match the return type of a gcc2
17323 builtin and then its argument prototype would still apply. */
17324 char mit_des_cbc_encrypt ();
17328 mit_des_cbc_encrypt ();
17333 rm -f conftest.
$ac_objext conftest
$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335 (eval $ac_link) 2>conftest.er1
17337 grep -v '^ *+' conftest.er1
>conftest.err
17339 cat conftest.err
>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try
='test -z "$ac_c_werror_flag"
17343 || test ! -s conftest.err'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try
='test -s conftest$ac_exeext'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.
$ac_ext >&5
17360 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17362 rm -f conftest.err conftest.
$ac_objext \
17363 conftest
$ac_exeext conftest.
$ac_ext
17364 LIBS
=$ac_check_lib_save_LIBS
17366 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17367 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17368 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17369 cat >>confdefs.h
<<_ACEOF
17370 #define HAVE_LIBCRYPTO 1
17373 LIBS
="-lcrypto $LIBS"
17378 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17379 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17380 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 ac_check_lib_save_LIBS
=$LIBS
17384 LIBS
="-lkrb5 $LIBS"
17385 cat >conftest.
$ac_ext <<_ACEOF
17388 cat confdefs.h
>>conftest.
$ac_ext
17389 cat >>conftest.
$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17392 /* Override any gcc2 internal prototype to avoid an error. */
17396 /* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17398 char krb5_init_context ();
17402 krb5_init_context ();
17407 rm -f conftest.
$ac_objext conftest
$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>conftest.er1
17411 grep -v '^ *+' conftest.er1
>conftest.err
17413 cat conftest.err
>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try
='test -z "$ac_c_werror_flag"
17417 || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try
='test -s conftest$ac_exeext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_lib_krb5_krb5_init_context
=yes
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.
$ac_ext >&5
17434 ac_cv_lib_krb5_krb5_init_context
=no
17436 rm -f conftest.err conftest.
$ac_objext \
17437 conftest
$ac_exeext conftest.
$ac_ext
17438 LIBS
=$ac_check_lib_save_LIBS
17440 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17441 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17442 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17443 cat >>confdefs.h
<<_ACEOF
17444 #define HAVE_LIBKRB5 1
17447 LIBS
="-lkrb5 $LIBS"
17451 if test "${with_kerberos5+set}" != set; then
17453 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17454 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17455 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 ac_check_lib_save_LIBS
=$LIBS
17459 LIBS
="-ldes425 $LIBS"
17460 cat >conftest.
$ac_ext <<_ACEOF
17463 cat confdefs.h
>>conftest.
$ac_ext
17464 cat >>conftest.
$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17467 /* Override any gcc2 internal prototype to avoid an error. */
17471 /* We use char because int might match the return type of a gcc2
17472 builtin and then its argument prototype would still apply. */
17473 char des_cbc_encrypt ();
17477 des_cbc_encrypt ();
17482 rm -f conftest.
$ac_objext conftest
$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1
>conftest.err
17488 cat conftest.err
>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try
='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try
='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_lib_des425_des_cbc_encrypt
=yes
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.
$ac_ext >&5
17509 ac_cv_lib_des425_des_cbc_encrypt
=no
17511 rm -f conftest.err conftest.
$ac_objext \
17512 conftest
$ac_exeext conftest.
$ac_ext
17513 LIBS
=$ac_check_lib_save_LIBS
17515 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17516 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17517 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17518 cat >>confdefs.h
<<_ACEOF
17519 #define HAVE_LIBDES425 1
17522 LIBS
="-ldes425 $LIBS"
17526 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17527 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17528 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 ac_check_lib_save_LIBS
=$LIBS
17533 cat >conftest.
$ac_ext <<_ACEOF
17536 cat confdefs.h
>>conftest.
$ac_ext
17537 cat >>conftest.
$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17540 /* Override any gcc2 internal prototype to avoid an error. */
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17546 char des_cbc_encrypt ();
17550 des_cbc_encrypt ();
17555 rm -f conftest.
$ac_objext conftest
$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>conftest.er1
17559 grep -v '^ *+' conftest.er1
>conftest.err
17561 cat conftest.err
>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try
='test -z "$ac_c_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try
='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_lib_des_des_cbc_encrypt
=yes
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.
$ac_ext >&5
17582 ac_cv_lib_des_des_cbc_encrypt
=no
17584 rm -f conftest.err conftest.
$ac_objext \
17585 conftest
$ac_exeext conftest.
$ac_ext
17586 LIBS
=$ac_check_lib_save_LIBS
17588 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17589 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17590 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17591 cat >>confdefs.h
<<_ACEOF
17592 #define HAVE_LIBDES 1
17602 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17603 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17604 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 ac_check_lib_save_LIBS
=$LIBS
17608 LIBS
="-lkrb4 $LIBS"
17609 cat >conftest.
$ac_ext <<_ACEOF
17612 cat confdefs.h
>>conftest.
$ac_ext
17613 cat >>conftest.
$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 /* Override any gcc2 internal prototype to avoid an error. */
17620 /* We use char because int might match the return type of a gcc2
17621 builtin and then its argument prototype would still apply. */
17622 char krb_get_cred ();
17631 rm -f conftest.
$ac_objext conftest
$ac_exeext
17632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>conftest.er1
17635 grep -v '^ *+' conftest.er1
>conftest.err
17637 cat conftest.err
>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try
='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try
='test -s conftest$ac_exeext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_lib_krb4_krb_get_cred
=yes
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.
$ac_ext >&5
17658 ac_cv_lib_krb4_krb_get_cred
=no
17660 rm -f conftest.err conftest.
$ac_objext \
17661 conftest
$ac_exeext conftest.
$ac_ext
17662 LIBS
=$ac_check_lib_save_LIBS
17664 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17665 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17666 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17667 cat >>confdefs.h
<<_ACEOF
17668 #define HAVE_LIBKRB4 1
17671 LIBS
="-lkrb4 $LIBS"
17675 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17676 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17677 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 ac_check_lib_save_LIBS
=$LIBS
17682 cat >conftest.
$ac_ext <<_ACEOF
17685 cat confdefs.h
>>conftest.
$ac_ext
17686 cat >>conftest.
$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 /* Override any gcc2 internal prototype to avoid an error. */
17693 /* We use char because int might match the return type of a gcc2
17694 builtin and then its argument prototype would still apply. */
17695 char krb_get_cred ();
17704 rm -f conftest.
$ac_objext conftest
$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706 (eval $ac_link) 2>conftest.er1
17708 grep -v '^ *+' conftest.er1
>conftest.err
17710 cat conftest.err
>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try
='test -z "$ac_c_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try
='test -s conftest$ac_exeext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_lib_krb_krb_get_cred
=yes
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.
$ac_ext >&5
17731 ac_cv_lib_krb_krb_get_cred
=no
17733 rm -f conftest.err conftest.
$ac_objext \
17734 conftest
$ac_exeext conftest.
$ac_ext
17735 LIBS
=$ac_check_lib_save_LIBS
17737 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17738 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17739 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17740 cat >>confdefs.h
<<_ACEOF
17741 #define HAVE_LIBKRB 1
17752 if test "${with_kerberos5+set}" = set; then
17754 for ac_header
in krb5.h
17756 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17758 echo "$as_me:$LINENO: checking for $ac_header" >&5
17759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17766 # Is the header compilable?
17767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17769 cat >conftest.
$ac_ext <<_ACEOF
17772 cat confdefs.h
>>conftest.
$ac_ext
17773 cat >>conftest.
$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 $ac_includes_default
17776 #include <$ac_header>
17778 rm -f conftest.
$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1
>conftest.err
17784 cat conftest.err
>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try
='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try
='test -s conftest.$ac_objext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_header_compiler
=yes
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.
$ac_ext >&5
17805 ac_header_compiler
=no
17807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17809 echo "${ECHO_T}$ac_header_compiler" >&6
17811 # Is the header present?
17812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17814 cat >conftest.
$ac_ext <<_ACEOF
17817 cat confdefs.h
>>conftest.
$ac_ext
17818 cat >>conftest.
$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 #include <$ac_header>
17822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17825 grep -v '^ *+' conftest.er1
>conftest.err
17827 cat conftest.err
>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } >/dev
/null
; then
17830 if test -s conftest.err
; then
17831 ac_cpp_err
=$ac_c_preproc_warn_flag
17832 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17839 if test -z "$ac_cpp_err"; then
17840 ac_header_preproc
=yes
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.
$ac_ext >&5
17845 ac_header_preproc
=no
17847 rm -f conftest.err conftest.
$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17849 echo "${ECHO_T}$ac_header_preproc" >&6
17851 # So? What about this header?
17852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17858 ac_header_preproc
=yes
17861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17875 ## ------------------------------------------ ##
17876 ## Report this to the AC_PACKAGE_NAME lists. ##
17877 ## ------------------------------------------ ##
17880 sed "s/^/$as_me: WARNING: /" >&2
17883 echo "$as_me:$LINENO: checking for $ac_header" >&5
17884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 eval "$as_ac_Header=\$ac_header_preproc"
17890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17895 cat >>confdefs.h
<<_ACEOF
17896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17905 for ac_header
in des.h
17907 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17909 echo "$as_me:$LINENO: checking for $ac_header" >&5
17910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17917 # Is the header compilable?
17918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17920 cat >conftest.
$ac_ext <<_ACEOF
17923 cat confdefs.h
>>conftest.
$ac_ext
17924 cat >>conftest.
$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 $ac_includes_default
17927 #include <$ac_header>
17929 rm -f conftest.
$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>conftest.er1
17933 grep -v '^ *+' conftest.er1
>conftest.err
17935 cat conftest.err
>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try
='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try
='test -s conftest.$ac_objext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_header_compiler
=yes
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.
$ac_ext >&5
17956 ac_header_compiler
=no
17958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17960 echo "${ECHO_T}$ac_header_compiler" >&6
17962 # Is the header present?
17963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17965 cat >conftest.
$ac_ext <<_ACEOF
17968 cat confdefs.h
>>conftest.
$ac_ext
17969 cat >>conftest.
$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 #include <$ac_header>
17973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17974 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17976 grep -v '^ *+' conftest.er1
>conftest.err
17978 cat conftest.err
>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } >/dev
/null
; then
17981 if test -s conftest.err
; then
17982 ac_cpp_err
=$ac_c_preproc_warn_flag
17983 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17990 if test -z "$ac_cpp_err"; then
17991 ac_header_preproc
=yes
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.
$ac_ext >&5
17996 ac_header_preproc
=no
17998 rm -f conftest.err conftest.
$ac_ext
17999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18000 echo "${ECHO_T}$ac_header_preproc" >&6
18002 # So? What about this header?
18003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18009 ac_header_preproc
=yes
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18026 ## ------------------------------------------ ##
18027 ## Report this to the AC_PACKAGE_NAME lists. ##
18028 ## ------------------------------------------ ##
18031 sed "s/^/$as_me: WARNING: /" >&2
18034 echo "$as_me:$LINENO: checking for $ac_header" >&5
18035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 eval "$as_ac_Header=\$ac_header_preproc"
18041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18046 cat >>confdefs.h
<<_ACEOF
18047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18052 for ac_header
in kerberosIV
/des.h
18054 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056 echo "$as_me:$LINENO: checking for $ac_header" >&5
18057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18064 # Is the header compilable?
18065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18067 cat >conftest.
$ac_ext <<_ACEOF
18070 cat confdefs.h
>>conftest.
$ac_ext
18071 cat >>conftest.
$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18074 #include <$ac_header>
18076 rm -f conftest.
$ac_objext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>conftest.er1
18080 grep -v '^ *+' conftest.er1
>conftest.err
18082 cat conftest.err
>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try
='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try
='test -s conftest.$ac_objext'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_header_compiler
=yes
18100 echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.
$ac_ext >&5
18103 ac_header_compiler
=no
18105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18107 echo "${ECHO_T}$ac_header_compiler" >&6
18109 # Is the header present?
18110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18112 cat >conftest.
$ac_ext <<_ACEOF
18115 cat confdefs.h
>>conftest.
$ac_ext
18116 cat >>conftest.
$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 #include <$ac_header>
18120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18121 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18123 grep -v '^ *+' conftest.er1
>conftest.err
18125 cat conftest.err
>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } >/dev
/null
; then
18128 if test -s conftest.err
; then
18129 ac_cpp_err
=$ac_c_preproc_warn_flag
18130 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18137 if test -z "$ac_cpp_err"; then
18138 ac_header_preproc
=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.
$ac_ext >&5
18143 ac_header_preproc
=no
18145 rm -f conftest.err conftest.
$ac_ext
18146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18147 echo "${ECHO_T}$ac_header_preproc" >&6
18149 # So? What about this header?
18150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18156 ac_header_preproc
=yes
18159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18173 ## ------------------------------------------ ##
18174 ## Report this to the AC_PACKAGE_NAME lists. ##
18175 ## ------------------------------------------ ##
18178 sed "s/^/$as_me: WARNING: /" >&2
18181 echo "$as_me:$LINENO: checking for $ac_header" >&5
18182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 eval "$as_ac_Header=\$ac_header_preproc"
18188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18193 cat >>confdefs.h
<<_ACEOF
18194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18199 for ac_header
in kerberos
/des.h
18201 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18203 echo "$as_me:$LINENO: checking for $ac_header" >&5
18204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18211 # Is the header compilable?
18212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18214 cat >conftest.
$ac_ext <<_ACEOF
18217 cat confdefs.h
>>conftest.
$ac_ext
18218 cat >>conftest.
$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 $ac_includes_default
18221 #include <$ac_header>
18223 rm -f conftest.
$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18227 grep -v '^ *+' conftest.er1
>conftest.err
18229 cat conftest.err
>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try
='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try
='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_header_compiler
=yes
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.
$ac_ext >&5
18250 ac_header_compiler
=no
18252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18254 echo "${ECHO_T}$ac_header_compiler" >&6
18256 # Is the header present?
18257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18259 cat >conftest.
$ac_ext <<_ACEOF
18262 cat confdefs.h
>>conftest.
$ac_ext
18263 cat >>conftest.
$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 #include <$ac_header>
18267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18270 grep -v '^ *+' conftest.er1
>conftest.err
18272 cat conftest.err
>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } >/dev
/null
; then
18275 if test -s conftest.err
; then
18276 ac_cpp_err
=$ac_c_preproc_warn_flag
18277 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18284 if test -z "$ac_cpp_err"; then
18285 ac_header_preproc
=yes
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.
$ac_ext >&5
18290 ac_header_preproc
=no
18292 rm -f conftest.err conftest.
$ac_ext
18293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18294 echo "${ECHO_T}$ac_header_preproc" >&6
18296 # So? What about this header?
18297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18303 ac_header_preproc
=yes
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18320 ## ------------------------------------------ ##
18321 ## Report this to the AC_PACKAGE_NAME lists. ##
18322 ## ------------------------------------------ ##
18325 sed "s/^/$as_me: WARNING: /" >&2
18328 echo "$as_me:$LINENO: checking for $ac_header" >&5
18329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 eval "$as_ac_Header=\$ac_header_preproc"
18335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18340 cat >>confdefs.h
<<_ACEOF
18341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18357 for ac_header
in krb.h
18359 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18361 echo "$as_me:$LINENO: checking for $ac_header" >&5
18362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18369 # Is the header compilable?
18370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18372 cat >conftest.
$ac_ext <<_ACEOF
18375 cat confdefs.h
>>conftest.
$ac_ext
18376 cat >>conftest.
$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 $ac_includes_default
18379 #include <$ac_header>
18381 rm -f conftest.
$ac_objext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18383 (eval $ac_compile) 2>conftest.er1
18385 grep -v '^ *+' conftest.er1
>conftest.err
18387 cat conftest.err
>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } &&
18390 { ac_try
='test -z "$ac_c_werror_flag"
18391 || test ! -s conftest.err'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try
='test -s conftest.$ac_objext'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_header_compiler
=yes
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.
$ac_ext >&5
18408 ac_header_compiler
=no
18410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18412 echo "${ECHO_T}$ac_header_compiler" >&6
18414 # Is the header present?
18415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18417 cat >conftest.
$ac_ext <<_ACEOF
18420 cat confdefs.h
>>conftest.
$ac_ext
18421 cat >>conftest.
$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <$ac_header>
18425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18426 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18428 grep -v '^ *+' conftest.er1
>conftest.err
18430 cat conftest.err
>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } >/dev
/null
; then
18433 if test -s conftest.err
; then
18434 ac_cpp_err
=$ac_c_preproc_warn_flag
18435 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18442 if test -z "$ac_cpp_err"; then
18443 ac_header_preproc
=yes
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.
$ac_ext >&5
18448 ac_header_preproc
=no
18450 rm -f conftest.err conftest.
$ac_ext
18451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18452 echo "${ECHO_T}$ac_header_preproc" >&6
18454 # So? What about this header?
18455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18461 ac_header_preproc
=yes
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18478 ## ------------------------------------------ ##
18479 ## Report this to the AC_PACKAGE_NAME lists. ##
18480 ## ------------------------------------------ ##
18483 sed "s/^/$as_me: WARNING: /" >&2
18486 echo "$as_me:$LINENO: checking for $ac_header" >&5
18487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 eval "$as_ac_Header=\$ac_header_preproc"
18493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18498 cat >>confdefs.h
<<_ACEOF
18499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18504 for ac_header
in kerberosIV
/krb.h
18506 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18508 echo "$as_me:$LINENO: checking for $ac_header" >&5
18509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18516 # Is the header compilable?
18517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18519 cat >conftest.
$ac_ext <<_ACEOF
18522 cat confdefs.h
>>conftest.
$ac_ext
18523 cat >>conftest.
$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 $ac_includes_default
18526 #include <$ac_header>
18528 rm -f conftest.
$ac_objext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530 (eval $ac_compile) 2>conftest.er1
18532 grep -v '^ *+' conftest.er1
>conftest.err
18534 cat conftest.err
>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try
='test -z "$ac_c_werror_flag"
18538 || test ! -s conftest.err'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try
='test -s conftest.$ac_objext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_header_compiler
=yes
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.
$ac_ext >&5
18555 ac_header_compiler
=no
18557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18559 echo "${ECHO_T}$ac_header_compiler" >&6
18561 # Is the header present?
18562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18564 cat >conftest.
$ac_ext <<_ACEOF
18567 cat confdefs.h
>>conftest.
$ac_ext
18568 cat >>conftest.
$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 #include <$ac_header>
18572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18573 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18575 grep -v '^ *+' conftest.er1
>conftest.err
18577 cat conftest.err
>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } >/dev
/null
; then
18580 if test -s conftest.err
; then
18581 ac_cpp_err
=$ac_c_preproc_warn_flag
18582 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18589 if test -z "$ac_cpp_err"; then
18590 ac_header_preproc
=yes
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.
$ac_ext >&5
18595 ac_header_preproc
=no
18597 rm -f conftest.err conftest.
$ac_ext
18598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18599 echo "${ECHO_T}$ac_header_preproc" >&6
18601 # So? What about this header?
18602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18608 ac_header_preproc
=yes
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18625 ## ------------------------------------------ ##
18626 ## Report this to the AC_PACKAGE_NAME lists. ##
18627 ## ------------------------------------------ ##
18630 sed "s/^/$as_me: WARNING: /" >&2
18633 echo "$as_me:$LINENO: checking for $ac_header" >&5
18634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 eval "$as_ac_Header=\$ac_header_preproc"
18640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18645 cat >>confdefs.h
<<_ACEOF
18646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18651 for ac_header
in kerberos
/krb.h
18653 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18655 echo "$as_me:$LINENO: checking for $ac_header" >&5
18656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18663 # Is the header compilable?
18664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18666 cat >conftest.
$ac_ext <<_ACEOF
18669 cat confdefs.h
>>conftest.
$ac_ext
18670 cat >>conftest.
$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18673 #include <$ac_header>
18675 rm -f conftest.
$ac_objext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677 (eval $ac_compile) 2>conftest.er1
18679 grep -v '^ *+' conftest.er1
>conftest.err
18681 cat conftest.err
>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try
='test -z "$ac_c_werror_flag"
18685 || test ! -s conftest.err'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try
='test -s conftest.$ac_objext'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_header_compiler
=yes
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.
$ac_ext >&5
18702 ac_header_compiler
=no
18704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18706 echo "${ECHO_T}$ac_header_compiler" >&6
18708 # Is the header present?
18709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18711 cat >conftest.
$ac_ext <<_ACEOF
18714 cat confdefs.h
>>conftest.
$ac_ext
18715 cat >>conftest.
$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 #include <$ac_header>
18719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18722 grep -v '^ *+' conftest.er1
>conftest.err
18724 cat conftest.err
>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } >/dev
/null
; then
18727 if test -s conftest.err
; then
18728 ac_cpp_err
=$ac_c_preproc_warn_flag
18729 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18736 if test -z "$ac_cpp_err"; then
18737 ac_header_preproc
=yes
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.
$ac_ext >&5
18742 ac_header_preproc
=no
18744 rm -f conftest.err conftest.
$ac_ext
18745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18746 echo "${ECHO_T}$ac_header_preproc" >&6
18748 # So? What about this header?
18749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18755 ac_header_preproc
=yes
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18772 ## ------------------------------------------ ##
18773 ## Report this to the AC_PACKAGE_NAME lists. ##
18774 ## ------------------------------------------ ##
18777 sed "s/^/$as_me: WARNING: /" >&2
18780 echo "$as_me:$LINENO: checking for $ac_header" >&5
18781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 eval "$as_ac_Header=\$ac_header_preproc"
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18792 cat >>confdefs.h
<<_ACEOF
18793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18810 for ac_header
in com_err.h
18812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18814 echo "$as_me:$LINENO: checking for $ac_header" >&5
18815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18822 # Is the header compilable?
18823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18825 cat >conftest.
$ac_ext <<_ACEOF
18828 cat confdefs.h
>>conftest.
$ac_ext
18829 cat >>conftest.
$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 $ac_includes_default
18832 #include <$ac_header>
18834 rm -f conftest.
$ac_objext
18835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18836 (eval $ac_compile) 2>conftest.er1
18838 grep -v '^ *+' conftest.er1
>conftest.err
18840 cat conftest.err
>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try
='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try
='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_header_compiler
=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.
$ac_ext >&5
18861 ac_header_compiler
=no
18863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18865 echo "${ECHO_T}$ac_header_compiler" >&6
18867 # Is the header present?
18868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18870 cat >conftest.
$ac_ext <<_ACEOF
18873 cat confdefs.h
>>conftest.
$ac_ext
18874 cat >>conftest.
$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 #include <$ac_header>
18878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1
>conftest.err
18883 cat conftest.err
>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } >/dev
/null
; then
18886 if test -s conftest.err
; then
18887 ac_cpp_err
=$ac_c_preproc_warn_flag
18888 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18895 if test -z "$ac_cpp_err"; then
18896 ac_header_preproc
=yes
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.
$ac_ext >&5
18901 ac_header_preproc
=no
18903 rm -f conftest.err conftest.
$ac_ext
18904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18905 echo "${ECHO_T}$ac_header_preproc" >&6
18907 # So? What about this header?
18908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18914 ac_header_preproc
=yes
18917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18931 ## ------------------------------------------ ##
18932 ## Report this to the AC_PACKAGE_NAME lists. ##
18933 ## ------------------------------------------ ##
18936 sed "s/^/$as_me: WARNING: /" >&2
18939 echo "$as_me:$LINENO: checking for $ac_header" >&5
18940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 eval "$as_ac_Header=\$ac_header_preproc"
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18951 cat >>confdefs.h
<<_ACEOF
18952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18961 # Solaris requires -lintl if you want strerror (which calls dgettext)
18962 # to return localized messages.
18964 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18965 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18966 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_check_lib_save_LIBS
=$LIBS
18970 LIBS
="-lintl $LIBS"
18971 cat >conftest.
$ac_ext <<_ACEOF
18974 cat confdefs.h
>>conftest.
$ac_ext
18975 cat >>conftest.
$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 /* Override any gcc2 internal prototype to avoid an error. */
18982 /* We use char because int might match the return type of a gcc2
18983 builtin and then its argument prototype would still apply. */
18993 rm -f conftest.
$ac_objext conftest
$ac_exeext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18995 (eval $ac_link) 2>conftest.er1
18997 grep -v '^ *+' conftest.er1
>conftest.err
18999 cat conftest.err
>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try
='test -z "$ac_c_werror_flag"
19003 || test ! -s conftest.err'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; } &&
19009 { ac_try
='test -s conftest$ac_exeext'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_intl_dgettext
=yes
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.
$ac_ext >&5
19020 ac_cv_lib_intl_dgettext
=no
19022 rm -f conftest.err conftest.
$ac_objext \
19023 conftest
$ac_exeext conftest.
$ac_ext
19024 LIBS
=$ac_check_lib_save_LIBS
19026 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19027 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19028 if test $ac_cv_lib_intl_dgettext = yes; then
19029 cat >>confdefs.h
<<_ACEOF
19030 #define HAVE_LIBINTL 1
19033 LIBS
="-lintl $LIBS"
19038 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19039 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19040 if test "${emacs_cv_localtime_cache+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 if test x
$ac_cv_func_tzset = xyes
; then
19044 if test "$cross_compiling" = yes; then
19045 # If we have tzset, assume the worst when cross-compiling.
19046 emacs_cv_localtime_cache
=yes
19048 cat >conftest.
$ac_ext <<_ACEOF
19051 cat confdefs.h
>>conftest.
$ac_ext
19052 cat >>conftest.
$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19055 extern char **environ;
19059 for (to = from = environ; (*to = *from); from++)
19060 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19063 char TZ_GMT0[] = "TZ=GMT0";
19064 char TZ_PST8[] = "TZ=PST8";
19067 time_t now = time ((time_t *) 0);
19068 int hour_GMT0, hour_unset;
19069 if (putenv (TZ_GMT0) != 0)
19071 hour_GMT0 = localtime (&now)->tm_hour;
19073 hour_unset = localtime (&now)->tm_hour;
19074 if (putenv (TZ_PST8) != 0)
19076 if (localtime (&now)->tm_hour == hour_GMT0)
19079 if (localtime (&now)->tm_hour != hour_unset)
19084 rm -f conftest
$ac_exeext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086 (eval $ac_link) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 emacs_cv_localtime_cache
=no
19097 echo "$as_me: program exited with status $ac_status" >&5
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.
$ac_ext >&5
19101 ( exit $ac_status )
19102 emacs_cv_localtime_cache
=yes
19104 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19107 # If we lack tzset, report that localtime does not cache TZ,
19108 # since we can't invalidate the cache if we don't have tzset.
19109 emacs_cv_localtime_cache
=no
19112 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19113 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19114 if test $emacs_cv_localtime_cache = yes; then
19116 cat >>confdefs.h
<<\_ACEOF
19117 #define LOCALTIME_CACHE 1
19122 if test "x$HAVE_TIMEVAL" = xyes
; then
19124 for ac_func
in gettimeofday
19126 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19127 echo "$as_me:$LINENO: checking for $ac_func" >&5
19128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19129 if eval "test \"\${$as_ac_var+set}\" = set"; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 cat >conftest.
$ac_ext <<_ACEOF
19135 cat confdefs.h
>>conftest.
$ac_ext
19136 cat >>conftest.
$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define $ac_func innocuous_$ac_func
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char $ac_func (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19148 # include <limits.h>
19150 # include <assert.h>
19155 /* Override any gcc2 internal prototype to avoid an error. */
19160 /* We use char because int might match the return type of a gcc2
19161 builtin and then its argument prototype would still apply. */
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19169 char (*f) () = $ac_func;
19178 return f != $ac_func;
19183 rm -f conftest.
$ac_objext conftest
$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>conftest.er1
19187 grep -v '^ *+' conftest.er1
>conftest.err
19189 cat conftest.err
>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
19192 { ac_try
='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try
='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 eval "$as_ac_var=yes"
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.
$ac_ext >&5
19210 eval "$as_ac_var=no"
19212 rm -f conftest.err conftest.
$ac_objext \
19213 conftest
$ac_exeext conftest.
$ac_ext
19215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19217 if test `eval echo '${'$as_ac_var'}'` = yes; then
19218 cat >>confdefs.h
<<_ACEOF
19219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19225 if test $ac_cv_func_gettimeofday = yes; then
19226 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19227 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19228 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 cat >conftest.
$ac_ext <<_ACEOF
19234 cat confdefs.h
>>conftest.
$ac_ext
19235 cat >>conftest.
$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 #ifdef TIME_WITH_SYS_TIME
19239 #include <sys/time.h>
19242 #ifdef HAVE_SYS_TIME_H
19243 #include <sys/time.h>
19251 struct timeval time;
19252 gettimeofday (&time, 0);
19257 rm -f conftest.
$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1
>conftest.err
19263 cat conftest.err
>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try
='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try
='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 emacs_cv_gettimeofday_two_arguments
=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.
$ac_ext >&5
19284 emacs_cv_gettimeofday_two_arguments
=no
19286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19288 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19289 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19290 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19292 cat >>confdefs.h
<<\_ACEOF
19293 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19300 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19301 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19302 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19303 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 cat >conftest.
$ac_ext <<_ACEOF
19309 cat confdefs.h
>>conftest.
$ac_ext
19310 cat >>conftest.
$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <sys/types.h>
19313 #include <$ac_cv_struct_tm>
19319 static struct tm ac_aggr;
19320 if (ac_aggr.tm_zone)
19326 rm -f conftest.
$ac_objext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328 (eval $ac_compile) 2>conftest.er1
19330 grep -v '^ *+' conftest.er1
>conftest.err
19332 cat conftest.err
>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try
='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try
='test -s conftest.$ac_objext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_member_struct_tm_tm_zone
=yes
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.
$ac_ext >&5
19353 cat >conftest.
$ac_ext <<_ACEOF
19356 cat confdefs.h
>>conftest.
$ac_ext
19357 cat >>conftest.
$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 #include <sys/types.h>
19360 #include <$ac_cv_struct_tm>
19366 static struct tm ac_aggr;
19367 if (sizeof ac_aggr.tm_zone)
19373 rm -f conftest.
$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>conftest.er1
19377 grep -v '^ *+' conftest.er1
>conftest.err
19379 cat conftest.err
>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
19382 { ac_try
='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try
='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_member_struct_tm_tm_zone
=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.
$ac_ext >&5
19400 ac_cv_member_struct_tm_tm_zone
=no
19402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19407 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19408 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19410 cat >>confdefs.h
<<_ACEOF
19411 #define HAVE_STRUCT_TM_TM_ZONE 1
19417 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19419 cat >>confdefs.h
<<\_ACEOF
19420 #define HAVE_TM_ZONE 1
19424 echo "$as_me:$LINENO: checking for tzname" >&5
19425 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19426 if test "${ac_cv_var_tzname+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 cat >conftest.
$ac_ext <<_ACEOF
19432 cat confdefs.h
>>conftest.
$ac_ext
19433 cat >>conftest.
$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 #ifndef tzname /* For SGI. */
19437 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19448 rm -f conftest.
$ac_objext conftest
$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>conftest.er1
19452 grep -v '^ *+' conftest.er1
>conftest.err
19454 cat conftest.err
>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try
='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try
='test -s conftest$ac_exeext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_var_tzname
=yes
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.
$ac_ext >&5
19475 ac_cv_var_tzname
=no
19477 rm -f conftest.err conftest.
$ac_objext \
19478 conftest
$ac_exeext conftest.
$ac_ext
19480 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19481 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19482 if test $ac_cv_var_tzname = yes; then
19484 cat >>confdefs.h
<<\_ACEOF
19485 #define HAVE_TZNAME 1
19492 if test "$ac_cv_func_gettimeofday" = yes; then
19493 echo "$as_me:$LINENO: checking for struct timezone" >&5
19494 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19495 if test "${emacs_cv_struct_timezone+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 cat >conftest.
$ac_ext <<_ACEOF
19501 cat confdefs.h
>>conftest.
$ac_ext
19502 cat >>conftest.
$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 #include <sys/time.h>
19508 struct timezone tz;
19513 rm -f conftest.
$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1
>conftest.err
19519 cat conftest.err
>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try
='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try
='test -s conftest.$ac_objext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 if test "$cross_compiling" = yes; then
19536 emacs_cv_struct_timezone
=yes
19538 cat >conftest.
$ac_ext <<_ACEOF
19541 cat confdefs.h
>>conftest.
$ac_ext
19542 cat >>conftest.
$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19545 #ifdef TIME_WITH_SYS_TIME
19546 #include <sys/time.h>
19549 #ifdef HAVE_SYS_TIME_H
19550 #include <sys/time.h>
19556 struct timeval time;
19557 struct timezone dummy;
19558 exit (gettimeofday (&time, &dummy));
19561 rm -f conftest
$ac_exeext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563 (eval $ac_link) 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 emacs_cv_struct_timezone
=yes
19574 echo "$as_me: program exited with status $ac_status" >&5
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.
$ac_ext >&5
19578 ( exit $ac_status )
19579 emacs_cv_struct_timezone
=no
19581 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.
$ac_ext >&5
19587 emacs_cv_struct_timezone
=no
19589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19591 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19592 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19596 echo "$as_me:$LINENO: checking for socket" >&5
19597 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19598 if test "${ac_cv_func_socket+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 cat >conftest.
$ac_ext <<_ACEOF
19604 cat confdefs.h
>>conftest.
$ac_ext
19605 cat >>conftest.
$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609 #define socket innocuous_socket
19611 /* System header to define __stub macros and hopefully few prototypes,
19612 which can conflict with char socket (); below.
19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19614 <limits.h> exists even on freestanding compilers. */
19617 # include <limits.h>
19619 # include <assert.h>
19624 /* Override any gcc2 internal prototype to avoid an error. */
19629 /* We use char because int might match the return type of a gcc2
19630 builtin and then its argument prototype would still apply. */
19632 /* The GNU C library defines this for functions which it implements
19633 to always fail with ENOSYS. Some functions are actually named
19634 something starting with __ and the normal name is an alias. */
19635 #if defined (__stub_socket) || defined (__stub___socket)
19638 char (*f) () = socket;
19647 return f != socket;
19652 rm -f conftest.
$ac_objext conftest
$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 (eval $ac_link) 2>conftest.er1
19656 grep -v '^ *+' conftest.er1
>conftest.err
19658 cat conftest.err
>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try
='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try
='test -s conftest$ac_exeext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_cv_func_socket
=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.
$ac_ext >&5
19679 ac_cv_func_socket
=no
19681 rm -f conftest.err conftest.
$ac_objext \
19682 conftest
$ac_exeext conftest.
$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19685 echo "${ECHO_T}$ac_cv_func_socket" >&6
19686 if test $ac_cv_func_socket = yes; then
19692 if test $ok_so_far = yes; then
19693 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19694 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19695 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19696 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19700 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19702 # Is the header compilable?
19703 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19704 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19705 cat >conftest.
$ac_ext <<_ACEOF
19708 cat confdefs.h
>>conftest.
$ac_ext
19709 cat >>conftest.
$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 $ac_includes_default
19712 #include <netinet/in.h>
19714 rm -f conftest.
$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716 (eval $ac_compile) 2>conftest.er1
19718 grep -v '^ *+' conftest.er1
>conftest.err
19720 cat conftest.err
>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try
='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try
='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_header_compiler
=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.
$ac_ext >&5
19741 ac_header_compiler
=no
19743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19745 echo "${ECHO_T}$ac_header_compiler" >&6
19747 # Is the header present?
19748 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19749 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19750 cat >conftest.
$ac_ext <<_ACEOF
19753 cat confdefs.h
>>conftest.
$ac_ext
19754 cat >>conftest.
$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 #include <netinet/in.h>
19758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19759 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19761 grep -v '^ *+' conftest.er1
>conftest.err
19763 cat conftest.err
>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } >/dev
/null
; then
19766 if test -s conftest.err
; then
19767 ac_cpp_err
=$ac_c_preproc_warn_flag
19768 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19775 if test -z "$ac_cpp_err"; then
19776 ac_header_preproc
=yes
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.
$ac_ext >&5
19781 ac_header_preproc
=no
19783 rm -f conftest.err conftest.
$ac_ext
19784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19785 echo "${ECHO_T}$ac_header_preproc" >&6
19787 # So? What about this header?
19788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19790 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19791 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19793 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19794 ac_header_preproc
=yes
19797 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19798 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19799 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19800 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19801 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19802 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19804 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19806 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19808 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19811 ## ------------------------------------------ ##
19812 ## Report this to the AC_PACKAGE_NAME lists. ##
19813 ## ------------------------------------------ ##
19816 sed "s/^/$as_me: WARNING: /" >&2
19819 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19820 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19821 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 ac_cv_header_netinet_in_h
=$ac_header_preproc
19826 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19827 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19830 if test $ac_cv_header_netinet_in_h = yes; then
19838 if test $ok_so_far = yes; then
19839 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19840 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19841 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19842 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19846 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19848 # Is the header compilable?
19849 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19850 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19851 cat >conftest.
$ac_ext <<_ACEOF
19854 cat confdefs.h
>>conftest.
$ac_ext
19855 cat >>conftest.
$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19858 #include <arpa/inet.h>
19860 rm -f conftest.
$ac_objext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1
>conftest.err
19866 cat conftest.err
>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try
='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try
='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_header_compiler
=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.
$ac_ext >&5
19887 ac_header_compiler
=no
19889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891 echo "${ECHO_T}$ac_header_compiler" >&6
19893 # Is the header present?
19894 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19895 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19896 cat >conftest.
$ac_ext <<_ACEOF
19899 cat confdefs.h
>>conftest.
$ac_ext
19900 cat >>conftest.
$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #include <arpa/inet.h>
19904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19907 grep -v '^ *+' conftest.er1
>conftest.err
19909 cat conftest.err
>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev
/null
; then
19912 if test -s conftest.err
; then
19913 ac_cpp_err
=$ac_c_preproc_warn_flag
19914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19921 if test -z "$ac_cpp_err"; then
19922 ac_header_preproc
=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.
$ac_ext >&5
19927 ac_header_preproc
=no
19929 rm -f conftest.err conftest.
$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6
19933 # So? What about this header?
19934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19939 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19940 ac_header_preproc
=yes
19943 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19944 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19946 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19948 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19950 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19954 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19957 ## ------------------------------------------ ##
19958 ## Report this to the AC_PACKAGE_NAME lists. ##
19959 ## ------------------------------------------ ##
19962 sed "s/^/$as_me: WARNING: /" >&2
19965 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19966 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19967 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 ac_cv_header_arpa_inet_h
=$ac_header_preproc
19972 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19973 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19976 if test $ac_cv_header_arpa_inet_h = yes; then
19984 if test $ok_so_far = yes; then
19986 cat >>confdefs.h
<<\_ACEOF
19987 #define HAVE_INET_SOCKETS 1
19993 for ac_header
in sys
/ioctl.h
19995 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19997 echo "$as_me:$LINENO: checking for $ac_header" >&5
19998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20005 # Is the header compilable?
20006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20008 cat >conftest.
$ac_ext <<_ACEOF
20011 cat confdefs.h
>>conftest.
$ac_ext
20012 cat >>conftest.
$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20015 #include <$ac_header>
20017 rm -f conftest.
$ac_objext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>conftest.er1
20021 grep -v '^ *+' conftest.er1
>conftest.err
20023 cat conftest.err
>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try
='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try
='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_header_compiler
=yes
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.
$ac_ext >&5
20044 ac_header_compiler
=no
20046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20048 echo "${ECHO_T}$ac_header_compiler" >&6
20050 # Is the header present?
20051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20053 cat >conftest.
$ac_ext <<_ACEOF
20056 cat confdefs.h
>>conftest.
$ac_ext
20057 cat >>conftest.
$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <$ac_header>
20061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20064 grep -v '^ *+' conftest.er1
>conftest.err
20066 cat conftest.err
>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } >/dev
/null
; then
20069 if test -s conftest.err
; then
20070 ac_cpp_err
=$ac_c_preproc_warn_flag
20071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20078 if test -z "$ac_cpp_err"; then
20079 ac_header_preproc
=yes
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.
$ac_ext >&5
20084 ac_header_preproc
=no
20086 rm -f conftest.err conftest.
$ac_ext
20087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088 echo "${ECHO_T}$ac_header_preproc" >&6
20090 # So? What about this header?
20091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20097 ac_header_preproc
=yes
20100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20114 ## ------------------------------------------ ##
20115 ## Report this to the AC_PACKAGE_NAME lists. ##
20116 ## ------------------------------------------ ##
20119 sed "s/^/$as_me: WARNING: /" >&2
20122 echo "$as_me:$LINENO: checking for $ac_header" >&5
20123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 eval "$as_ac_Header=\$ac_header_preproc"
20129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20134 cat >>confdefs.h
<<_ACEOF
20135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20143 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20145 cat >>confdefs.h
<<\_ACEOF
20146 #define HAVE_AIX_SMT_EXP 1
20151 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20152 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20153 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20154 echo "$as_me:$LINENO: result: yes" >&5
20155 echo "${ECHO_T}yes" >&6
20157 cat >>confdefs.h
<<\_ACEOF
20158 #define HAVE_DEV_PTMX 1
20162 echo "$as_me:$LINENO: result: no" >&5
20163 echo "${ECHO_T}no" >&6
20166 echo "$as_me:$LINENO: checking for pid_t" >&5
20167 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20168 if test "${ac_cv_type_pid_t+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 cat >conftest.
$ac_ext <<_ACEOF
20174 cat confdefs.h
>>conftest.
$ac_ext
20175 cat >>conftest.
$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 $ac_includes_default
20183 if (sizeof (pid_t))
20189 rm -f conftest.
$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191 (eval $ac_compile) 2>conftest.er1
20193 grep -v '^ *+' conftest.er1
>conftest.err
20195 cat conftest.err
>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try
='test -z "$ac_c_werror_flag"
20199 || test ! -s conftest.err'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try
='test -s conftest.$ac_objext'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_type_pid_t
=yes
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.
$ac_ext >&5
20216 ac_cv_type_pid_t
=no
20218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20220 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20222 if test $ac_cv_type_pid_t = yes; then
20226 cat >>confdefs.h
<<_ACEOF
20234 for ac_header
in unistd.h vfork.h
20236 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238 echo "$as_me:$LINENO: checking for $ac_header" >&5
20239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20246 # Is the header compilable?
20247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20249 cat >conftest.
$ac_ext <<_ACEOF
20252 cat confdefs.h
>>conftest.
$ac_ext
20253 cat >>conftest.
$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20256 #include <$ac_header>
20258 rm -f conftest.
$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260 (eval $ac_compile) 2>conftest.er1
20262 grep -v '^ *+' conftest.er1
>conftest.err
20264 cat conftest.err
>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try
='test -z "$ac_c_werror_flag"
20268 || test ! -s conftest.err'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; } &&
20274 { ac_try
='test -s conftest.$ac_objext'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_header_compiler
=yes
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.
$ac_ext >&5
20285 ac_header_compiler
=no
20287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20289 echo "${ECHO_T}$ac_header_compiler" >&6
20291 # Is the header present?
20292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20294 cat >conftest.
$ac_ext <<_ACEOF
20297 cat confdefs.h
>>conftest.
$ac_ext
20298 cat >>conftest.
$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <$ac_header>
20302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20305 grep -v '^ *+' conftest.er1
>conftest.err
20307 cat conftest.err
>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } >/dev
/null
; then
20310 if test -s conftest.err
; then
20311 ac_cpp_err
=$ac_c_preproc_warn_flag
20312 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20319 if test -z "$ac_cpp_err"; then
20320 ac_header_preproc
=yes
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.
$ac_ext >&5
20325 ac_header_preproc
=no
20327 rm -f conftest.err conftest.
$ac_ext
20328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20329 echo "${ECHO_T}$ac_header_preproc" >&6
20331 # So? What about this header?
20332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20338 ac_header_preproc
=yes
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20355 ## ------------------------------------------ ##
20356 ## Report this to the AC_PACKAGE_NAME lists. ##
20357 ## ------------------------------------------ ##
20360 sed "s/^/$as_me: WARNING: /" >&2
20363 echo "$as_me:$LINENO: checking for $ac_header" >&5
20364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 eval "$as_ac_Header=\$ac_header_preproc"
20370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20375 cat >>confdefs.h
<<_ACEOF
20376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20385 for ac_func
in fork vfork
20387 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20388 echo "$as_me:$LINENO: checking for $ac_func" >&5
20389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20390 if eval "test \"\${$as_ac_var+set}\" = set"; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 cat >conftest.
$ac_ext <<_ACEOF
20396 cat confdefs.h
>>conftest.
$ac_ext
20397 cat >>conftest.
$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20401 #define $ac_func innocuous_$ac_func
20403 /* System header to define __stub macros and hopefully few prototypes,
20404 which can conflict with char $ac_func (); below.
20405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20406 <limits.h> exists even on freestanding compilers. */
20409 # include <limits.h>
20411 # include <assert.h>
20416 /* Override any gcc2 internal prototype to avoid an error. */
20421 /* We use char because int might match the return type of a gcc2
20422 builtin and then its argument prototype would still apply. */
20424 /* The GNU C library defines this for functions which it implements
20425 to always fail with ENOSYS. Some functions are actually named
20426 something starting with __ and the normal name is an alias. */
20427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20430 char (*f) () = $ac_func;
20439 return f != $ac_func;
20444 rm -f conftest.
$ac_objext conftest
$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>conftest.er1
20448 grep -v '^ *+' conftest.er1
>conftest.err
20450 cat conftest.err
>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try
='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try
='test -s conftest$ac_exeext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 eval "$as_ac_var=yes"
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.
$ac_ext >&5
20471 eval "$as_ac_var=no"
20473 rm -f conftest.err conftest.
$ac_objext \
20474 conftest
$ac_exeext conftest.
$ac_ext
20476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20478 if test `eval echo '${'$as_ac_var'}'` = yes; then
20479 cat >>confdefs.h
<<_ACEOF
20480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20486 if test "x$ac_cv_func_fork" = xyes
; then
20487 echo "$as_me:$LINENO: checking for working fork" >&5
20488 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20489 if test "${ac_cv_func_fork_works+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 if test "$cross_compiling" = yes; then
20493 ac_cv_func_fork_works
=cross
20495 cat >conftest.
$ac_ext <<_ACEOF
20496 /* By Ruediger Kuhlmann. */
20497 #include <sys/types.h>
20499 # include <unistd.h>
20501 /* Some systems only have a dummy stub for fork() */
20509 rm -f conftest
$ac_exeext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_func_fork_works
=yes
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.
$ac_ext >&5
20526 ( exit $ac_status )
20527 ac_cv_func_fork_works
=no
20529 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20533 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20536 ac_cv_func_fork_works
=$ac_cv_func_fork
20538 if test "x$ac_cv_func_fork_works" = xcross
; then
20540 *-*-amigaos* |
*-*-msdosdjgpp*)
20541 # Override, as these systems have only a dummy fork() stub
20542 ac_cv_func_fork_works
=no
20545 ac_cv_func_fork_works
=yes
20548 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20549 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20551 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20552 if test "x$ac_cv_func_vfork" = xyes
; then
20553 echo "$as_me:$LINENO: checking for working vfork" >&5
20554 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20555 if test "${ac_cv_func_vfork_works+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 if test "$cross_compiling" = yes; then
20559 ac_cv_func_vfork_works
=cross
20561 cat >conftest.
$ac_ext <<_ACEOF
20564 cat confdefs.h
>>conftest.
$ac_ext
20565 cat >>conftest.
$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 /* Thanks to Paul Eggert for this test. */
20569 #include <stdlib.h>
20570 #include <sys/types.h>
20571 #include <sys/stat.h>
20572 #include <sys/wait.h>
20574 # include <unistd.h>
20577 # include <vfork.h>
20579 /* On some sparc systems, changes by the child to local and incoming
20580 argument registers are propagated back to the parent. The compiler
20581 is told about this with #include <vfork.h>, but some compilers
20582 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20583 static variable whose address is put into a register that is
20584 clobbered by the vfork. */
20587 sparc_address_test (int arg)
20589 sparc_address_test (arg) int arg;
20592 static pid_t child;
20610 pid_t parent = getpid ();
20613 sparc_address_test (0);
20618 /* Here is another test for sparc vfork register problems. This
20619 test uses lots of local variables, at least as many local
20620 variables as main has allocated so far including compiler
20621 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20622 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20623 reuse the register of parent for one of the local variables,
20624 since it will think that parent can't possibly be used any more
20625 in this routine. Assigning to the local variable will thus
20626 munge parent in the parent process. */
20628 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20629 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20630 /* Convince the compiler that p..p7 are live; otherwise, it might
20631 use the same hardware register for all 8 local variables. */
20632 if (p != p1 || p != p2 || p != p3 || p != p4
20633 || p != p5 || p != p6 || p != p7)
20636 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20637 from child file descriptors. If the child closes a descriptor
20638 before it execs or exits, this munges the parent's descriptor
20639 as well. Test for this by closing stdout in the child. */
20640 _exit(close(fileno(stdout)) != 0);
20645 while (wait(&status) != child)
20648 /* Was there some problem with vforking? */
20651 /* Did the child fail? (This shouldn't happen.) */
20654 /* Did the vfork/compiler bug occur? */
20655 || parent != getpid()
20657 /* Did the file descriptor bug occur? */
20658 || fstat(fileno(stdout), &st) != 0
20663 rm -f conftest
$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_func_vfork_works
=yes
20676 echo "$as_me: program exited with status $ac_status" >&5
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.
$ac_ext >&5
20680 ( exit $ac_status )
20681 ac_cv_func_vfork_works
=no
20683 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20686 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20687 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20690 if test "x$ac_cv_func_fork_works" = xcross
; then
20691 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20692 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20693 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20696 if test "x$ac_cv_func_vfork_works" = xyes
; then
20698 cat >>confdefs.h
<<\_ACEOF
20699 #define HAVE_WORKING_VFORK 1
20704 cat >>confdefs.h
<<\_ACEOF
20709 if test "x$ac_cv_func_fork_works" = xyes
; then
20711 cat >>confdefs.h
<<\_ACEOF
20712 #define HAVE_WORKING_FORK 1
20718 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20719 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20720 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 cat >conftest.
$ac_ext <<_ACEOF
20726 cat confdefs.h
>>conftest.
$ac_ext
20727 cat >>conftest.
$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <langinfo.h>
20733 char* cs = nl_langinfo(CODESET);
20738 rm -f conftest.
$ac_objext conftest
$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>conftest.er1
20742 grep -v '^ *+' conftest.er1
>conftest.err
20744 cat conftest.err
>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try
='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try
='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 emacs_cv_langinfo_codeset
=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.
$ac_ext >&5
20765 emacs_cv_langinfo_codeset
=no
20767 rm -f conftest.err conftest.
$ac_objext \
20768 conftest
$ac_exeext conftest.
$ac_ext
20771 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20772 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20773 if test $emacs_cv_langinfo_codeset = yes; then
20775 cat >>confdefs.h
<<\_ACEOF
20776 #define HAVE_LANGINFO_CODESET 1
20781 echo "$as_me:$LINENO: checking for size_t" >&5
20782 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20783 if test "${ac_cv_type_size_t+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 cat >conftest.
$ac_ext <<_ACEOF
20789 cat confdefs.h
>>conftest.
$ac_ext
20790 cat >>conftest.
$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 $ac_includes_default
20798 if (sizeof (size_t))
20804 rm -f conftest.
$ac_objext
20805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20806 (eval $ac_compile) 2>conftest.er1
20808 grep -v '^ *+' conftest.er1
>conftest.err
20810 cat conftest.err
>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try
='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try
='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_cv_type_size_t
=yes
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.
$ac_ext >&5
20831 ac_cv_type_size_t
=no
20833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20835 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20836 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20837 if test $ac_cv_type_size_t = yes; then
20839 cat >>confdefs.h
<<_ACEOF
20840 #define HAVE_SIZE_T 1
20847 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20848 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20849 if test "${ac_cv_type_mbstate_t+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 cat >conftest.
$ac_ext <<_ACEOF
20855 cat confdefs.h
>>conftest.
$ac_ext
20856 cat >>conftest.
$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 $ac_includes_default
20859 # include <wchar.h>
20863 mbstate_t x; return sizeof x;
20868 rm -f conftest.
$ac_objext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20870 (eval $ac_compile) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try
='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try
='test -s conftest.$ac_objext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_type_mbstate_t
=yes
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.
$ac_ext >&5
20895 ac_cv_type_mbstate_t
=no
20897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20899 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20900 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20901 if test $ac_cv_type_mbstate_t = yes; then
20903 cat >>confdefs.h
<<\_ACEOF
20904 #define HAVE_MBSTATE_T 1
20909 cat >>confdefs.h
<<\_ACEOF
20910 #define mbstate_t int
20915 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20916 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20917 if test "${emacs_cv_c_restrict+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 cat >conftest.
$ac_ext <<_ACEOF
20923 cat confdefs.h
>>conftest.
$ac_ext
20924 cat >>conftest.
$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 void fred (int *restrict x);
20935 rm -f conftest.
$ac_objext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20937 (eval $ac_compile) 2>conftest.er1
20939 grep -v '^ *+' conftest.er1
>conftest.err
20941 cat conftest.err
>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try
='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try
='test -s conftest.$ac_objext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 emacs_cv_c_restrict
=yes
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.
$ac_ext >&5
20962 cat >conftest.
$ac_ext <<_ACEOF
20965 cat confdefs.h
>>conftest.
$ac_ext
20966 cat >>conftest.
$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 void fred (int *__restrict x);
20977 rm -f conftest.
$ac_objext
20978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20979 (eval $ac_compile) 2>conftest.er1
20981 grep -v '^ *+' conftest.er1
>conftest.err
20983 cat conftest.err
>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try
='test -z "$ac_c_werror_flag"
20987 || test ! -s conftest.err'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try
='test -s conftest.$ac_objext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 emacs_cv_c_restrict
=__restrict
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.
$ac_ext >&5
21004 emacs_cv_c_restrict
=no
21006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21010 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21011 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21012 case "$emacs_cv_c_restrict" in
21013 yes) emacs_restrict
=restrict
;;
21014 no
) emacs_restrict
="";;
21015 *) emacs_restrict
="$emacs_cv_c_restrict";;
21017 if test "$emacs_restrict" != __restrict
; then
21019 cat >>confdefs.h
<<_ACEOF
21020 #define __restrict $emacs_restrict
21025 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21026 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21027 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 cat >conftest.
$ac_ext <<_ACEOF
21033 cat confdefs.h
>>conftest.
$ac_ext
21034 cat >>conftest.
$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 void fred (int x[__restrict]);
21045 rm -f conftest.
$ac_objext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047 (eval $ac_compile) 2>conftest.er1
21049 grep -v '^ *+' conftest.er1
>conftest.err
21051 cat conftest.err
>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try
='test -z "$ac_c_werror_flag"
21055 || test ! -s conftest.err'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try
='test -s conftest.$ac_objext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 emacs_cv_c_restrict_arr
=yes
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.
$ac_ext >&5
21072 emacs_cv_c_restrict_arr
=no
21074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21076 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21077 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21078 if test "$emacs_cv_c_restrict_arr" = yes; then
21080 cat >>confdefs.h
<<\_ACEOF
21081 #define __restrict_arr __restrict
21088 # Set up the CFLAGS for real compilation, so we can substitute it.
21089 CFLAGS
="$REAL_CFLAGS"
21090 CPPFLAGS
="$REAL_CPPFLAGS"
21092 #### Find out which version of Emacs this is.
21093 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21094 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21095 if test x
"${version}" = x
; then
21096 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21097 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21098 { (exit 1); exit 1; }; }
21101 ### Specify what sort of things we'll be editing into Makefile and config.h.
21102 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21138 cat >>confdefs.h
<<_ACEOF
21139 #define EMACS_CONFIGURATION "${canonical}"
21143 cat >>confdefs.h
<<_ACEOF
21144 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21148 cat >>confdefs.h
<<_ACEOF
21149 #define config_machfile "${machfile}"
21153 cat >>confdefs.h
<<_ACEOF
21154 #define config_opsysfile "${opsysfile}"
21158 cat >>confdefs.h
<<_ACEOF
21159 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21163 cat >>confdefs.h
<<_ACEOF
21164 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21168 cat >>confdefs.h
<<_ACEOF
21169 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21173 cat >>confdefs.h
<<_ACEOF
21174 #define UNEXEC_SRC ${UNEXEC_SRC}
21178 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21180 cat >>confdefs.h
<<\_ACEOF
21181 #define HAVE_X_WINDOWS 1
21185 if test "${USE_X_TOOLKIT}" != "none" ; then
21187 cat >>confdefs.h
<<\_ACEOF
21188 #define USE_X_TOOLKIT 1
21192 if test "${HAVE_X11}" = "yes" ; then
21194 cat >>confdefs.h
<<\_ACEOF
21199 if test "${HAVE_XFREE386}" = "yes" ; then
21201 cat >>confdefs.h
<<\_ACEOF
21202 #define HAVE_XFREE386 1
21206 if test "${HAVE_MENUS}" = "yes" ; then
21208 cat >>confdefs.h
<<\_ACEOF
21209 #define HAVE_MENUS 1
21213 if test "${GNU_MALLOC}" = "yes" ; then
21215 cat >>confdefs.h
<<\_ACEOF
21216 #define GNU_MALLOC 1
21220 if test "${REL_ALLOC}" = "yes" ; then
21222 cat >>confdefs.h
<<\_ACEOF
21223 #define REL_ALLOC 1
21232 #### Report on what we decided to do.
21233 #### Report GTK as a toolkit, even if it doesn't use Xt.
21234 #### It makes printing result more understandable as using GTK sets
21235 #### toolkit_scroll_bars to yes by default.
21236 if test "${HAVE_GTK}" = "yes"; then
21241 Configured for \`${canonical}'.
21243 Where should the build process find the source code? ${srcdir}
21244 What operating system and machine description files should Emacs use?
21245 \`${opsysfile}' and \`${machfile}'
21246 What compiler should emacs be built with? ${CC} ${CFLAGS}
21247 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21248 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21249 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21250 What window system should Emacs use? ${window_system}
21251 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21253 if test -n "${x_includes}"; then
21254 echo " Where do we find X Windows header files? ${x_includes}"
21256 echo " Where do we find X Windows header files? Standard dirs"
21258 if test -n "${x_libraries}"; then
21259 echo " Where do we find X Windows libraries? ${x_libraries}"
21261 echo " Where do we find X Windows libraries? Standard dirs"
21264 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21265 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21266 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21267 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21268 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21269 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21270 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21273 # Remove any trailing slashes in these variables.
21274 test "${prefix}" != NONE
&&
21275 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21276 test "${exec_prefix}" != NONE
&&
21277 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21279 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21280 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21281 ## from Makefile.c can correctly provide the arg `-traditional' to the
21284 cat >conftest.
$ac_ext <<_ACEOF
21287 cat confdefs.h
>>conftest.
$ac_ext
21288 cat >>conftest.
$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21293 $EGREP "yes..yes" >/dev
/null
2>&1; then
21294 CPP_NEED_TRADITIONAL
=no
21296 CPP_NEED_TRADITIONAL
=yes
21301 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"
21302 ac_config_commands
="$ac_config_commands default"
21303 cat >confcache
<<\_ACEOF
21304 # This file is a shell script that caches the results of configure
21305 # tests run on this system so they can be shared between configure
21306 # scripts and configure runs, see configure's option --config-cache.
21307 # It is not useful on other systems. If it contains results you don't
21308 # want to keep, you may remove or edit it.
21310 # config.status only pays attention to the cache file if you give it
21311 # the --recheck option to rerun configure.
21313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21315 # following values.
21319 # The following way of writing the cache mishandles newlines in values,
21320 # but we know of no workaround that is simple, portable, and efficient.
21321 # So, don't put newlines in cache variables' values.
21322 # Ultrix sh set writes to stderr and can't be redirected directly,
21323 # and sets the high bit in the cache file unless we assign to the vars.
21326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21328 # `set' does not quote correctly, so add quotes (double-quote
21329 # substitution turns \\\\ into \\, and sed turns \\ into \).
21332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21335 # `set' quotes correctly as required by POSIX, so do not add quotes.
21337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21348 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21349 if test -w $cache_file; then
21350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21351 cat confcache
>$cache_file
21353 echo "not updating unwritable cache $cache_file"
21358 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21359 # Let make expand exec_prefix.
21360 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21364 # trailing colons and then remove the whole line if VPATH becomes empty
21365 # (actually we leave an empty line to preserve line numbers).
21366 if test "x$srcdir" = x.
; then
21367 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21368 s/:*\$(srcdir):*/:/;
21369 s/:*\${srcdir}:*/:/;
21371 s/^\([^=]*=[ ]*\):*/\1/;
21377 DEFS
=-DHAVE_CONFIG_H
21381 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21382 # 1. Remove the extension, and $U if already installed.
21383 ac_i
=`echo "$ac_i" |
21384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21386 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21387 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21389 LIBOBJS
=$ac_libobjs
21391 LTLIBOBJS
=$ac_ltlibobjs
21395 : ${CONFIG_STATUS=./config.status}
21396 ac_clean_files_save
=$ac_clean_files
21397 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21398 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21399 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21400 cat >$CONFIG_STATUS <<_ACEOF
21402 # Generated by $as_me.
21403 # Run this file to recreate the current configuration.
21404 # Compiler output produced by configure, useful for debugging
21405 # configure, is in config.log if it exists.
21408 ac_cs_recheck=false
21410 SHELL=\${CONFIG_SHELL-$SHELL}
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21414 ## --------------------- ##
21415 ## M4sh Initialization. ##
21416 ## --------------------- ##
21418 # Be Bourne compatible
21419 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21422 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21423 # is contrary to our usage. Disable this feature.
21424 alias -g '${1+"$@"}'='"$@"'
21425 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21428 DUALCASE
=1; export DUALCASE
# for MKS sh
21430 # Support unset when possible.
21431 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21438 # Work around bugs in pre-3.0 UWIN ksh.
21439 $as_unset ENV MAIL MAILPATH
21446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21448 LC_TELEPHONE LC_TIME
21450 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21451 eval $as_var=C
; export $as_var
21457 # Required to use basename.
21458 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21464 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21465 as_basename
=basename
21471 # Name of the executable.
21472 as_me
=`$as_basename "$0" ||
21473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21474 X"$0" : 'X\(//\)$' \| \
21475 X"$0" : 'X\(/\)$' \| \
21476 . : '\(.\)' 2>/dev/null ||
21478 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21479 /^X\/\(\/\/\)$/{ s//\1/; q; }
21480 /^X\/\(\/\).*/{ s//\1/; q; }
21484 # PATH needs CR, and LINENO needs CR and PATH.
21485 # Avoid depending upon Character Ranges.
21486 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21487 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21488 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21489 as_cr_digits
='0123456789'
21490 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21492 # The user is always right.
21493 if test "${PATH_SEPARATOR+set}" != set; then
21494 echo "#! /bin/sh" >conf$$.sh
21495 echo "exit 0" >>conf$$.sh
21497 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21506 as_lineno_1
=$LINENO
21507 as_lineno_2
=$LINENO
21508 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21509 test "x$as_lineno_1" != "x$as_lineno_2" &&
21510 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21511 # Find who we are. Look in the path if we contain no path at all
21514 *[\\/]* ) as_myself
=$0 ;;
21515 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21516 for as_dir
in $PATH
21519 test -z "$as_dir" && as_dir
=.
21520 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21525 # We did not find ourselves, most probably we were run as `sh COMMAND'
21526 # in which case we are not to be found in the path.
21527 if test "x$as_myself" = x
; then
21530 if test ! -f "$as_myself"; then
21531 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21532 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21533 { (exit 1); exit 1; }; }
21535 case $CONFIG_SHELL in
21537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21538 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21541 test -z "$as_dir" && as_dir
=.
21542 for as_base
in sh bash ksh sh5
; do
21545 if ("$as_dir/$as_base" -c '
21546 as_lineno_1=$LINENO
21547 as_lineno_2=$LINENO
21548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21549 test "x$as_lineno_1" != "x$as_lineno_2" &&
21550 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21551 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21552 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21553 CONFIG_SHELL
=$as_dir/$as_base
21554 export CONFIG_SHELL
21555 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21563 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21564 # uniformly replaced by the line number. The first 'sed' inserts a
21565 # line-number line before each line; the second 'sed' does the real
21566 # work. The second script uses 'N' to pair each line-number line
21567 # with the numbered line, and appends trailing '-' during
21568 # substitution so that $LINENO is not a special case at line end.
21569 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21570 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21571 sed '=' <$as_myself |
21576 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21579 s,^['$as_cr_digits']*\n,,
21580 ' >$as_me.lineno
&&
21581 chmod +x
$as_me.lineno ||
21582 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21583 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21584 { (exit 1); exit 1; }; }
21586 # Don't try to exec as it changes $[0], causing all sort of problems
21587 # (the dirname of $[0] is not the place where we might find the
21588 # original and so on. Autoconf is especially sensible to this).
21590 # Exit status is that of the last command.
21595 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21596 *c
*,-n*) ECHO_N
= ECHO_C
='
21598 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21599 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21602 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21608 rm -f conf$$ conf$$.exe conf$$.
file
21610 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21611 # We could just check for DJGPP; but this test a) works b) is more generic
21612 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21613 if test -f conf$$.exe
; then
21614 # Don't use ln at all; we don't have any links
21619 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21624 rm -f conf$$ conf$$.exe conf$$.
file
21626 if mkdir
-p .
2>/dev
/null
; then
21629 test -d .
/-p && rmdir .
/-p
21633 as_executable_p
="test -f"
21635 # Sed expression to map a string onto a valid CPP name.
21636 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21638 # Sed expression to map a string onto a valid variable name.
21639 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21643 # We need space, tab and new line, in precisely that order.
21653 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21654 # report actual input values of CONFIG_FILES etc. instead of their
21655 # values after options handling. Logging --version etc. is OK.
21659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21660 ## Running $as_me. ##
21665 This file was extended by $as_me, which was
21666 generated by GNU Autoconf 2.59. Invocation command line was
21668 CONFIG_FILES = $CONFIG_FILES
21669 CONFIG_HEADERS = $CONFIG_HEADERS
21670 CONFIG_LINKS = $CONFIG_LINKS
21671 CONFIG_COMMANDS = $CONFIG_COMMANDS
21675 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21679 # Files that config.status was made for.
21680 if test -n "$ac_config_files"; then
21681 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21684 if test -n "$ac_config_headers"; then
21685 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21688 if test -n "$ac_config_links"; then
21689 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21692 if test -n "$ac_config_commands"; then
21693 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21696 cat >>$CONFIG_STATUS <<\_ACEOF
21699 \`$as_me' instantiates files from templates according to the
21700 current configuration.
21702 Usage: $0 [OPTIONS] [FILE]...
21704 -h, --help print this help, then exit
21705 -V, --version print version number, then exit
21706 -q, --quiet do not print progress messages
21707 -d, --debug don't remove temporary files
21708 --recheck update $as_me by reconfiguring in the same conditions
21709 --file=FILE[:TEMPLATE]
21710 instantiate the configuration file FILE
21711 --header=FILE[:TEMPLATE]
21712 instantiate the configuration header FILE
21714 Configuration files:
21717 Configuration headers:
21720 Configuration commands:
21723 Report bugs to <bug-autoconf@gnu.org>."
21726 cat >>$CONFIG_STATUS <<_ACEOF
21729 configured by $0, generated by GNU Autoconf 2.59,
21730 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21732 Copyright (C) 2003 Free Software Foundation, Inc.
21733 This config.status script is free software; the Free Software Foundation
21734 gives unlimited permission to copy, distribute and modify it."
21739 cat >>$CONFIG_STATUS <<\_ACEOF
21740 # If no file are specified by the user, then we need to provide default
21741 # value. By we need to know if files were specified by the user.
21747 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21748 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21756 *) # This is not an option, so the user has probably given explicit
21759 ac_need_defaults
=false
;;
21763 # Handling of the options.
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21768 --version |
--vers* |
-V )
21769 echo "$ac_cs_version"; exit 0 ;;
21771 # Conflict between --help and --header
21772 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21773 Try \`$0 --help' for more information." >&5
21774 echo "$as_me: error: ambiguous option: $1
21775 Try \`$0 --help' for more information." >&2;}
21776 { (exit 1); exit 1; }; };;
21777 --help |
--hel |
-h )
21778 echo "$ac_cs_usage"; exit 0 ;;
21779 --debug |
--d* |
-d )
21781 --file |
--fil |
--fi |
--f )
21783 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21784 ac_need_defaults
=false
;;
21785 --header |
--heade |
--head |
--hea )
21787 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21788 ac_need_defaults
=false
;;
21789 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21790 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21793 # This is an error.
21794 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21795 Try \`$0 --help' for more information." >&5
21796 echo "$as_me: error: unrecognized option: $1
21797 Try \`$0 --help' for more information." >&2;}
21798 { (exit 1); exit 1; }; } ;;
21800 *) ac_config_targets
="$ac_config_targets $1" ;;
21806 ac_configure_extra_args
=
21808 if $ac_cs_silent; then
21810 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21814 cat >>$CONFIG_STATUS <<_ACEOF
21815 if \$ac_cs_recheck; then
21816 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21817 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21822 cat >>$CONFIG_STATUS <<_ACEOF
21824 # INIT-COMMANDS section.
21827 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21833 cat >>$CONFIG_STATUS <<\_ACEOF
21834 for ac_config_target
in $ac_config_targets
21836 case "$ac_config_target" in
21837 # Handling of arguments.
21838 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21839 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21840 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21841 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21842 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21843 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21844 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21845 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
21846 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
21847 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21848 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21849 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21852 { (exit 1); exit 1; }; };;
21856 # If the user did not use the arguments to specify the items to instantiate,
21857 # then the envvar interface is used. Set only those that are not.
21858 # We use the long form for the default assignment because of an extremely
21859 # bizarre bug on SunOS 4.1.3.
21860 if $ac_need_defaults; then
21861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21866 # Have a temporary directory for convenience. Make it in the build tree
21867 # simply because there is no reason to put it here, and in addition,
21868 # creating and moving files from /tmp can sometimes cause problems.
21869 # Create a temporary directory, and hook for its removal unless debugging.
21872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21873 trap '{ (exit 1); exit 1; }' 1 2 13 15
21876 # Create a (secure) tmp directory for tmp files.
21879 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21880 test -n "$tmp" && test -d "$tmp"
21883 tmp
=.
/confstat$$
-$RANDOM
21884 (umask 077 && mkdir
$tmp)
21887 echo "$me: cannot create a temporary directory in ." >&2
21888 { (exit 1); exit 1; }
21893 cat >>$CONFIG_STATUS <<_ACEOF
21896 # CONFIG_FILES section.
21899 # No need to generate the scripts if there are no CONFIG_FILES.
21900 # This happens for instance when ./config.status config.h
21901 if test -n "\$CONFIG_FILES"; then
21902 # Protect against being on the right side of a sed subst in config.status.
21903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21905 s,@SHELL@,$SHELL,;t t
21906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21912 s,@exec_prefix@,$exec_prefix,;t t
21913 s,@prefix@,$prefix,;t t
21914 s,@program_transform_name@,$program_transform_name,;t t
21915 s,@bindir@,$bindir,;t t
21916 s,@sbindir@,$sbindir,;t t
21917 s,@libexecdir@,$libexecdir,;t t
21918 s,@datadir@,$datadir,;t t
21919 s,@sysconfdir@,$sysconfdir,;t t
21920 s,@sharedstatedir@,$sharedstatedir,;t t
21921 s,@localstatedir@,$localstatedir,;t t
21922 s,@libdir@,$libdir,;t t
21923 s,@includedir@,$includedir,;t t
21924 s,@oldincludedir@,$oldincludedir,;t t
21925 s,@infodir@,$infodir,;t t
21926 s,@mandir@,$mandir,;t t
21927 s,@build_alias@,$build_alias,;t t
21928 s,@host_alias@,$host_alias,;t t
21929 s,@target_alias@,$target_alias,;t t
21930 s,@DEFS@,$DEFS,;t t
21931 s,@ECHO_C@,$ECHO_C,;t t
21932 s,@ECHO_N@,$ECHO_N,;t t
21933 s,@ECHO_T@,$ECHO_T,;t t
21934 s,@LIBS@,$LIBS,;t t
21935 s,@MAINT@,$MAINT,;t t
21936 s,@build@,$build,;t t
21937 s,@build_cpu@,$build_cpu,;t t
21938 s,@build_vendor@,$build_vendor,;t t
21939 s,@build_os@,$build_os,;t t
21940 s,@host@,$host,;t t
21941 s,@host_cpu@,$host_cpu,;t t
21942 s,@host_vendor@,$host_vendor,;t t
21943 s,@host_os@,$host_os,;t t
21945 s,@CFLAGS@,$CFLAGS,;t t
21946 s,@LDFLAGS@,$LDFLAGS,;t t
21947 s,@CPPFLAGS@,$CPPFLAGS,;t t
21948 s,@ac_ct_CC@,$ac_ct_CC,;t t
21949 s,@EXEEXT@,$EXEEXT,;t t
21950 s,@OBJEXT@,$OBJEXT,;t t
21951 s,@LN_S@,$LN_S,;t t
21953 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21954 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21955 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21956 s,@RANLIB@,$RANLIB,;t t
21957 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21958 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21959 s,@EGREP@,$EGREP,;t t
21960 s,@LIBSOUND@,$LIBSOUND,;t t
21961 s,@SET_MAKE@,$SET_MAKE,;t t
21962 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21963 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21964 s,@GTK_LIBS@,$GTK_LIBS,;t t
21965 s,@ALLOCA@,$ALLOCA,;t t
21966 s,@liblockfile@,$liblockfile,;t t
21967 s,@LIBOBJS@,$LIBOBJS,;t t
21968 s,@NEED_SETGID@,$NEED_SETGID,;t t
21969 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21970 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21971 s,@version@,$version,;t t
21972 s,@configuration@,$configuration,;t t
21973 s,@canonical@,$canonical,;t t
21974 s,@srcdir@,$srcdir,;t t
21975 s,@lispdir@,$lispdir,;t t
21976 s,@locallisppath@,$locallisppath,;t t
21977 s,@lisppath@,$lisppath,;t t
21978 s,@x_default_search_path@,$x_default_search_path,;t t
21979 s,@etcdir@,$etcdir,;t t
21980 s,@archlibdir@,$archlibdir,;t t
21981 s,@docdir@,$docdir,;t t
21982 s,@bitmapdir@,$bitmapdir,;t t
21983 s,@gamedir@,$gamedir,;t t
21984 s,@gameuser@,$gameuser,;t t
21985 s,@c_switch_system@,$c_switch_system,;t t
21986 s,@c_switch_machine@,$c_switch_machine,;t t
21987 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21988 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21989 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21990 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21991 s,@machfile@,$machfile,;t t
21992 s,@opsysfile@,$opsysfile,;t t
21993 s,@carbon_appdir@,$carbon_appdir,;t t
21994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21999 cat >>$CONFIG_STATUS <<\_ACEOF
22000 # Split the substitutions into bite-sized pieces for seds with
22001 # small command number limits, like on Digital OSF/1 and HP-UX.
22002 ac_max_sed_lines
=48
22003 ac_sed_frag
=1 # Number of current file.
22004 ac_beg
=1 # First line for current file.
22005 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22008 while $ac_more_lines; do
22009 if test $ac_beg -gt 1; then
22010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22012 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22014 if test ! -s $tmp/subs.frag
; then
22015 ac_more_lines
=false
22017 # The purpose of the label and of the branching condition is to
22018 # speed up the sed processing (if there are no `@' at all, there
22019 # is no need to browse any of the substitutions).
22020 # These are the two extra sed commands mentioned above.
22022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22023 if test -z "$ac_sed_cmds"; then
22024 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22026 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22028 ac_sed_frag
=`expr $ac_sed_frag + 1`
22030 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22033 if test -z "$ac_sed_cmds"; then
22036 fi # test -n "$CONFIG_FILES"
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22043 - |
*:- |
*:-:* ) # input from stdin
22045 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22046 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22047 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22048 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22049 * ) ac_file_in
=$ac_file.
in ;;
22052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22053 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22055 X"$ac_file" : 'X\(//\)[^/]' \| \
22056 X"$ac_file" : 'X\(//\)$' \| \
22057 X"$ac_file" : 'X\(/\)' \| \
22058 . : '\(.\)' 2>/dev/null ||
22060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22062 /^X\(\/\/\)$/{ s//\1/; q; }
22063 /^X\(\/\).*/{ s//\1/; q; }
22065 { if $as_mkdir_p; then
22070 while test ! -d "$as_dir"; do
22071 as_dirs
="$as_dir $as_dirs"
22072 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074 X"$as_dir" : 'X\(//\)[^/]' \| \
22075 X"$as_dir" : 'X\(//\)$' \| \
22076 X"$as_dir" : 'X\(/\)' \| \
22077 . : '\(.\)' 2>/dev/null ||
22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22081 /^X\(\/\/\)$/{ s//\1/; q; }
22082 /^X\(\/\).*/{ s//\1/; q; }
22085 test ! -n "$as_dirs" || mkdir
$as_dirs
22086 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22088 { (exit 1); exit 1; }; }; }
22092 if test "$ac_dir" != .
; then
22093 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22094 # A "../" for each directory in $ac_dir_suffix.
22095 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22097 ac_dir_suffix
= ac_top_builddir
=
22101 .
) # No --srcdir option. We are building in place.
22103 if test -z "$ac_top_builddir"; then
22106 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22108 [\\/]* | ?
:[\\/]* ) # Absolute path.
22109 ac_srcdir
=$srcdir$ac_dir_suffix;
22110 ac_top_srcdir
=$srcdir ;;
22111 *) # Relative path.
22112 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22113 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22116 # Do not use `cd foo && pwd` to compute absolute paths, because
22117 # the directories may not exist.
22119 .
) ac_abs_builddir
="$ac_dir";;
22122 .
) ac_abs_builddir
=`pwd`;;
22123 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22124 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22127 case $ac_abs_builddir in
22128 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22130 case ${ac_top_builddir}.
in
22131 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22132 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22133 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22136 case $ac_abs_builddir in
22137 .
) ac_abs_srcdir
=$ac_srcdir;;
22140 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22141 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22142 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22145 case $ac_abs_builddir in
22146 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22148 case $ac_top_srcdir in
22149 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22150 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22151 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22157 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22158 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22161 if test x
"$ac_file" != x-
; then
22162 { echo "$as_me:$LINENO: creating $ac_file" >&5
22163 echo "$as_me: creating $ac_file" >&6;}
22166 # Let's still pretend it is `configure' which instantiates (i.e., don't
22167 # use $as_me), people would be surprised to read:
22168 # /* config.h. Generated by config.status. */
22169 if test x
"$ac_file" = x-
; then
22172 configure_input
="$ac_file. "
22174 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22175 sed 's,.*/,,'` by configure."
22177 # First look for the input files in the build tree, otherwise in the
22179 ac_file_inputs
=`IFS=:
22180 for f in $ac_file_in; do
22182 -) echo $tmp/stdin ;;
22184 # Absolute (can't be DOS-style, as IFS=:)
22185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22186 echo "$as_me: error: cannot find input file: $f" >&2;}
22187 { (exit 1); exit 1; }; }
22190 if test -f "$f"; then
22193 elif test -f "$srcdir/$f"; then
22198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22199 echo "$as_me: error: cannot find input file: $f" >&2;}
22200 { (exit 1); exit 1; }; }
22203 done` ||
{ (exit 1); exit 1; }
22205 cat >>$CONFIG_STATUS <<_ACEOF
22209 cat >>$CONFIG_STATUS <<\_ACEOF
22211 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22212 s
,@configure_input@
,$configure_input,;t t
22213 s
,@srcdir@
,$ac_srcdir,;t t
22214 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22215 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22216 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22217 s
,@builddir@
,$ac_builddir,;t t
22218 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22219 s
,@top_builddir@
,$ac_top_builddir,;t t
22220 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22221 s
,@INSTALL@
,$ac_INSTALL,;t t
22222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22224 if test x"$ac_file" != x-; then
22225 mv $tmp/out $ac_file
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22236 # CONFIG_HEADER section.
22239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22242 # ac_d sets the value in "#define NAME VALUE" lines.
22243 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22244 ac_dB
='[ ].*$,\1#\2'
22247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22248 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22249 ac_uB
='$,\1#\2define\3'
22253 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22256 - |
*:- |
*:-:* ) # input from stdin
22258 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22259 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22260 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22261 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22262 * ) ac_file_in
=$ac_file.
in ;;
22265 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22266 echo "$as_me: creating $ac_file" >&6;}
22268 # First look for the input files in the build tree, otherwise in the
22270 ac_file_inputs
=`IFS=:
22271 for f in $ac_file_in; do
22273 -) echo $tmp/stdin ;;
22275 # Absolute (can't be DOS-style, as IFS=:)
22276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22277 echo "$as_me: error: cannot find input file: $f" >&2;}
22278 { (exit 1); exit 1; }; }
22279 # Do quote $f, to prevent DOS paths from being IFS'd.
22282 if test -f "$f"; then
22285 elif test -f "$srcdir/$f"; then
22290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22291 echo "$as_me: error: cannot find input file: $f" >&2;}
22292 { (exit 1); exit 1; }; }
22295 done` ||
{ (exit 1); exit 1; }
22296 # Remove the trailing spaces.
22297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22302 # `conftest.undefs', that substitutes the proper values into
22303 # config.h.in to produce config.h. The first handles `#define'
22304 # templates, and the second `#undef' templates.
22305 # And first: Protect against being on the right side of a sed subst in
22306 # config.status. Protect against being in an unquoted here document
22307 # in config.status.
22308 rm -f conftest.defines conftest.undefs
22309 # Using a here document instead of a string reduces the quoting nightmare.
22310 # Putting comments in sed scripts is not portable.
22312 # `end' is used to avoid that the second main sed command (meant for
22313 # 0-ary CPP macros) applies to n-ary macro definitions.
22314 # See the Autoconf documentation for `clear'.
22315 cat >confdef2sed.
sed <<\_ACEOF
22320 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22322 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22325 # If some macros were called several times there might be several times
22326 # the same #defines, which is useless. Nevertheless, we may not want to
22327 # sort them, since we want the *last* AC-DEFINE to be honored.
22328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22330 rm -f confdef2sed.sed
22332 # This sed command replaces #undef with comments. This is necessary, for
22333 # example, in the case of _POSIX_SOURCE, which is predefined and required
22334 # on some systems where configure will not decide to define it.
22335 cat >>conftest.undefs <<\_ACEOF
22336 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22339 # Break up conftest.defines because some shells have a limit on the size
22340 # of here documents, and old seds have small limits too (100 cmds).
22341 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22342 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22343 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22344 echo ' :' >>$CONFIG_STATUS
22345 rm -f conftest.tail
22346 while grep . conftest.defines >/dev/null
22348 # Write a limited-size here document to $tmp/defines.sed.
22349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22350 # Speed up: don't consider the non `#define' lines.
22351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22352 # Work around the forget-to-reset-the-flag bug.
22353 echo 't clr' >>$CONFIG_STATUS
22354 echo ': clr' >>$CONFIG_STATUS
22355 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22359 mv $tmp/out $tmp/in
22361 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22362 rm -f conftest.defines
22363 mv conftest.
tail conftest.defines
22365 rm -f conftest.defines
22366 echo ' fi # grep' >>$CONFIG_STATUS
22367 echo >>$CONFIG_STATUS
22369 # Break up conftest.undefs because some shells have a limit on the size
22370 # of here documents, and old seds have small limits too (100 cmds).
22371 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22372 rm -f conftest.
tail
22373 while grep . conftest.undefs
>/dev
/null
22375 # Write a limited-size here document to $tmp/undefs.sed.
22376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22377 # Speed up: don't consider the non
`#undef'
22378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22379 # Work around the forget-to-reset-the-flag bug.
22380 echo 't clr' >>$CONFIG_STATUS
22381 echo ': clr' >>$CONFIG_STATUS
22382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22386 mv $tmp/out $tmp/in
22388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22389 rm -f conftest.undefs
22390 mv conftest.tail conftest.undefs
22392 rm -f conftest.undefs
22394 cat >>$CONFIG_STATUS <<\_ACEOF
22395 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22396 # use $as_me), people would be surprised to read:
22397 # /* config.h. Generated by config.status. */
22398 if test x
"$ac_file" = x-
; then
22399 echo "/* Generated by configure. */" >$tmp/config.h
22401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22403 cat $tmp/in >>$tmp/config.h
22405 if test x
"$ac_file" != x-
; then
22406 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22408 echo "$as_me: $ac_file is unchanged" >&6;}
22410 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412 X"$ac_file" : 'X\(//\)[^/]' \| \
22413 X"$ac_file" : 'X\(//\)$' \| \
22414 X"$ac_file" : 'X\(/\)' \| \
22415 . : '\(.\)' 2>/dev/null ||
22417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22419 /^X\(\/\/\)$/{ s//\1/; q; }
22420 /^X\(\/\).*/{ s//\1/; q; }
22422 { if $as_mkdir_p; then
22427 while test ! -d "$as_dir"; do
22428 as_dirs
="$as_dir $as_dirs"
22429 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22431 X"$as_dir" : 'X\(//\)[^/]' \| \
22432 X"$as_dir" : 'X\(//\)$' \| \
22433 X"$as_dir" : 'X\(/\)' \| \
22434 . : '\(.\)' 2>/dev/null ||
22436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22438 /^X\(\/\/\)$/{ s//\1/; q; }
22439 /^X\(\/\).*/{ s//\1/; q; }
22442 test ! -n "$as_dirs" || mkdir
$as_dirs
22443 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22445 { (exit 1); exit 1; }; }; }
22448 mv $tmp/config.h
$ac_file
22452 rm -f $tmp/config.h
22456 cat >>$CONFIG_STATUS <<\_ACEOF
22459 # CONFIG_COMMANDS section.
22461 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22462 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22463 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22464 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22465 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466 X"$ac_dest" : 'X\(//\)[^/]' \| \
22467 X"$ac_dest" : 'X\(//\)$' \| \
22468 X"$ac_dest" : 'X\(/\)' \| \
22469 . : '\(.\)' 2>/dev/null ||
22471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22473 /^X\(\/\/\)$/{ s//\1/; q; }
22474 /^X\(\/\).*/{ s//\1/; q; }
22476 { if $as_mkdir_p; then
22481 while test ! -d "$as_dir"; do
22482 as_dirs
="$as_dir $as_dirs"
22483 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485 X"$as_dir" : 'X\(//\)[^/]' \| \
22486 X"$as_dir" : 'X\(//\)$' \| \
22487 X"$as_dir" : 'X\(/\)' \| \
22488 . : '\(.\)' 2>/dev/null ||
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22492 /^X\(\/\/\)$/{ s//\1/; q; }
22493 /^X\(\/\).*/{ s//\1/; q; }
22496 test ! -n "$as_dirs" || mkdir
$as_dirs
22497 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22499 { (exit 1); exit 1; }; }; }
22503 if test "$ac_dir" != .
; then
22504 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22505 # A "../" for each directory in $ac_dir_suffix.
22506 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22508 ac_dir_suffix
= ac_top_builddir
=
22512 .
) # No --srcdir option. We are building in place.
22514 if test -z "$ac_top_builddir"; then
22517 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22519 [\\/]* | ?
:[\\/]* ) # Absolute path.
22520 ac_srcdir
=$srcdir$ac_dir_suffix;
22521 ac_top_srcdir
=$srcdir ;;
22522 *) # Relative path.
22523 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22524 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22527 # Do not use `cd foo && pwd` to compute absolute paths, because
22528 # the directories may not exist.
22530 .
) ac_abs_builddir
="$ac_dir";;
22533 .
) ac_abs_builddir
=`pwd`;;
22534 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22535 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22538 case $ac_abs_builddir in
22539 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22541 case ${ac_top_builddir}.
in
22542 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22543 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22544 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22547 case $ac_abs_builddir in
22548 .
) ac_abs_srcdir
=$ac_srcdir;;
22551 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22552 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22553 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22556 case $ac_abs_builddir in
22557 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22559 case $ac_top_srcdir in
22560 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22561 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22562 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22568 echo "$as_me: executing $ac_dest commands" >&6;}
22572 ### Make the necessary directories, if they don't exist.
22573 for dir
in etc lisp
; do
22574 test -d ${dir} || mkdir
${dir}
22577 # Build src/Makefile from ${srcdir}/src/Makefile.c
22578 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22579 # This must be done after src/config.h is built, since we rely on that file.
22581 # Now get this: Some word that is part of the ${srcdir} directory name
22582 # or the ${configuration} value might, just might, happen to be an
22583 # identifier like `sun4' or `i386' or something, and be predefined by
22584 # the C preprocessor to some helpful value like 1, or maybe the empty
22585 # string. Needless to say consequent macro substitutions are less
22586 # than conducive to the makefile finding the correct directory.
22587 undefs
="`echo $top_srcdir $configuration $canonical |
22588 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22589 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22592 echo creating src
/epaths.h
22593 ${MAKE-make} epaths-force
22595 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22596 # `..' to `. .' unless invoked with -traditional
22598 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22599 CPPFLAGS
="$CPPFLAGS -traditional"
22602 echo creating lib-src
/Makefile
22604 rm -f junk.c junk1.c junk2.c
22605 sed -e '/start of cpp stuff/q' \
22606 < Makefile.c
> junk1.c
22607 sed -e '1,/start of cpp stuff/d'\
22608 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22609 < Makefile.c
> junk.c
22610 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22611 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22612 cat junk1.c junk2.c
> Makefile.new
22613 rm -f junk.c junk1.c junk2.c
22614 chmod 444 Makefile.new
22615 mv -f Makefile.new Makefile
22618 echo creating src
/Makefile
22620 rm -f junk.c junk1.c junk2.c
22621 sed -e '/start of cpp stuff/q' \
22622 < Makefile.c
> junk1.c
22623 sed -e '1,/start of cpp stuff/d'\
22624 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22625 < Makefile.c
> junk.c
22626 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22627 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22628 cat junk1.c junk2.c
> Makefile.new
22629 rm -f junk.c junk1.c junk2.c
22630 chmod 444 Makefile.new
22631 mv -f Makefile.new Makefile
22634 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22635 echo creating src
/.gdbinit
22636 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22639 # This is how we know whether to re-run configure in certain cases.
22640 touch src
/config.stamp
22647 cat >>$CONFIG_STATUS <<\_ACEOF
22649 { (exit 0); exit 0; }
22651 chmod +x
$CONFIG_STATUS
22652 ac_clean_files
=$ac_clean_files_save
22655 # configure is writing to config.log, and then calls config.status.
22656 # config.status does its own redirection, appending to config.log.
22657 # Unfortunately, on DOS this fails, as config.log is still kept open
22658 # by configure, so config.status won't be able to write to it; its
22659 # output is simply discarded. So we exec the FD to /dev/null,
22660 # effectively closing config.log, so it can be properly (re)opened and
22661 # appended to by config.status. When coming back to configure, we
22662 # need to make the FD available again.
22663 if test "$no_create" != yes; then
22665 ac_config_status_args
=
22666 test "$silent" = yes &&
22667 ac_config_status_args
="$ac_config_status_args --quiet"
22669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22672 # would make configure fail if this is the last instruction.
22673 $ac_cs_success ||
{ (exit 1); exit 1; }