2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --disable-largefile omit support
for large files
865 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
866 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
867 --without-gcc don
't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP
mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version
5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server
host
872 --without-sound don
't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don
't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
888 Some influential environment variables
:
889 CC C compiler
command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
892 nonstandard directory
<lib dir
>
893 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
894 headers
in a nonstandard directory
<include dir
>
897 Use these variables to override the choices made by
`configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
915 ac_dir_suffix= ac_top_builddir=
919 .) # No --srcdir option. We are building in place.
921 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 # Do not use `cd foo
&& pwd` to compute absolute paths, because
935 # the directories may not exist.
937 .) ac_abs_builddir="$ac_dir";;
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1019 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1020 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1021 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1022 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1023 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1026 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1028 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1030 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1031 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1032 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1033 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1034 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_must_keep_next=false
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096 -* ) ac_must_keep_next=true ;;
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close
' the trap.
1114 trap 'exit_status
=$?
1115 # Save into config.log some information that might help in debugging.
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1125 # The following way of writing the cache mishandles newlines in values,
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1148 for ac_var
in $ac_subst_vars
1150 eval ac_val
=$
`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -n "$ac_subst_files"; then
1162 for ac_var
in $ac_subst_files
1164 eval ac_val
=$
`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -s confdefs.h
; then
1177 sed "/^$/d" confdefs.h |
sort
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1184 rm -f core
*.core
&&
1185 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198 # Predefined preprocessor variables.
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's
/^
/|
/' "$ac_site_file" >&5
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1260 # Check that the precious variables saved in the cache have kept the same
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1273 ac_cache_corrupted=: ;;
1275 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1282 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1307 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1314 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it
if useless.
1345 cat <<\_ACEOF
>conftest.
sed
1346 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1348 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1352 lispdir
='${datadir}/emacs/${version}/lisp'
1353 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath
='${locallisppath}:${lispdir}'
1356 etcdir
='${datadir}/emacs/${version}/etc'
1357 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir
='${datadir}/emacs/${version}/etc'
1359 gamedir
='${localstatedir}/games/emacs'
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h
<<\_ACEOF
1375 #define MAIL_USE_POP 1
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define MAIL_USE_POP 1
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval
="$with_kerberos"
1391 cat >>confdefs.h
<<\_ACEOF
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval
="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1404 cat >>confdefs.h
<<\_ACEOF
1411 cat >>confdefs.h
<<\_ACEOF
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval
="$with_hesiod"
1421 cat >>confdefs.h
<<\_ACEOF
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval
="$with_sound"
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval
="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye |
yes ) val
=athena
;;
1441 l | lu | luc | luci | lucid
) val
=lucid
;;
1442 a |
at | ath | athe | athen | athena
) val
=athena
;;
1443 m | mo | mot | moti | motif
) val
=motif
;;
1444 g | gt | gtk
) val
=gtk
;;
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval
="$with_jpeg"
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval
="$with_tiff"
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval
="$with_pkg_config_prog"
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval
="$with_toolkit_scroll_bars"
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval
="$with_carbon"
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval
="$enable_carbon_app"
1521 carbon_appdir_x
=${enableval}
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval
="$enable_asserts"
1527 USE_XASSERTS
=$enableval
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval
="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE
=$enableval
1537 USE_MAINTAINER_MODE
=no
1539 if test $USE_MAINTAINER_MODE = yes; then
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1564 srcdir
="`(cd ${srcdir}; pwd)`"
1567 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1593 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1594 if test -f $ac_dir/install-sh
; then
1596 ac_install_sh
="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh
; then
1600 ac_install_sh
="$ac_aux_dir/install.sh -c"
1602 elif test -f $ac_dir/shtool
; then
1604 ac_install_sh
="$ac_aux_dir/shtool install -c"
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias
=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias
=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias
=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias
=$ac_cv_build_alias
1657 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 configuration
=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine
='' opsys
='' unported
=no
1700 case "${canonical}" in
1705 case "${canonical}" in
1706 alpha
*-*-freebsd*) machine
=alpha
;;
1707 i
[3456]86-*-freebsd*) machine
=intel386
;;
1714 if test -f /usr
/lib
/crti.o
; then
1716 cat >>confdefs.h
<<\_ACEOF
1722 case "${canonical}" in
1723 alpha
*-*-netbsd*) machine
=alpha
;;
1724 i
[3456]86-*-netbsd*) machine
=intel386
;;
1726 # This is somewhat bogus.
1727 machine
=hp9000s300
;;
1728 powerpc-apple-netbsd
*) machine
=macppc
;;
1729 mips-
*-netbsd*) machine
=pmax
;;
1730 mipsel-
*-netbsd*) machine
=pmax
;;
1731 mipseb-
*-netbsd*) machine
=pmax
;;
1732 ns32k-
*-netbsd*) machine
=ns32000
;;
1733 powerpc-
*-netbsd*) machine
=macppc
;;
1734 sparc
*-*-netbsd*) machine
=sparc
;;
1735 vax-
*-netbsd*) machine
=vax
;;
1736 arm-
*-netbsd*) machine
=arm
;;
1743 case "${canonical}" in
1744 alpha
*-*-openbsd*) machine
=alpha
;;
1745 i386-
*-openbsd*) machine
=intel386
;;
1746 m68k-
*-openbsd*) machine
=hp9000s300
;;
1747 mipsel-
*-openbsd*) machine
=pmax
;;
1748 ns32k-
*-openbsd*) machine
=ns32000
;;
1749 sparc-
*-openbsd*) machine
=sparc
;;
1750 vax-
*-openbsd*) machine
=vax
;;
1755 arm-acorn-riscix1.1
* )
1756 machine
=acorn opsys
=riscix1-1
1758 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine
=acorn opsys
=riscix12
1767 case "${canonical}" in
1768 i
[345]86-*-bsdi*) machine
=intel386
;;
1769 sparc-
*-bsdi*) machine
=sparc
;;
1770 powerpc-
*-bsdi*) machine
=macppc
;;
1772 case "${canonical}" in
1773 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1774 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1775 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1776 *-*-bsdi3* ) opsys
=bsdos3
;;
1777 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1788 machine
=alliant4 opsys
=bsd4-2
1791 machine
=alliant-2800 opsys
=bsd4-3
1794 ## Alpha (DEC) machines.
1796 machine
=alpha opsys
=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1799 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP
=/usr
/bin
/cpp
1805 case "${canonical}" in
1806 alpha
*-dec-osf[5-9]*)
1811 alpha
*-*-linux-gnu* )
1812 machine
=alpha opsys
=gnu-linux
1816 machine
=arm opsys
=gnu-linux
1821 machine
=altos opsys
=usg5-2
1826 machine
=amdahl opsys
=usg5-2-2
1829 ## Apollo, Domain/OS
1831 machine
=apollo opsys
=bsd4-3
1834 ## AT&T 3b2, 3b5, 3b15, 3b20
1836 machine
=att3b opsys
=usg5-2-2
1839 ## AT&T 3b1 - The Mighty Unix PC!
1841 machine
=7300 opsys
=usg5-2-2
1846 machine
=ibmrs6000 opsys
=aix3-2
1851 machine
=dpx2 opsys
=usg5-3
1856 machine
=sps7 opsys
=usg5-2
1859 ## CCI 5/32, 6/32 -- see "Tahoe".
1862 ## I don't know what configuration name to use for this; config.sub
1863 ## doesn't seem to know anything about it. Hey, Celerity users, get
1864 ## in touch with us!
1865 celerity-celerity-bsd
* )
1866 machine
=celerity opsys
=bsd4-2
1870 ## What operating systems does this chip run that Emacs has been
1874 ## We'll use the catch-all code at the bottom to guess the
1875 ## operating system.
1879 mips-compaq-nonstopux
* )
1880 machine
=nonstopux opsys
=nonstopux
1884 *-convex-bsd* |
*-convex-convexos* )
1885 machine
=convex opsys
=bsd4-3
1886 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1887 NON_GNU_CPP
="cc -E -P"
1891 i
[3456]86-cubix-sysv* )
1892 machine
=intel386 opsys
=usg5-3
1896 cydra
*-cydrome-sysv* )
1897 machine
=cydra5 opsys
=usg5-3
1900 ## Data General AViiON Machines
1901 ## DG changed naming conventions with the release of 5.4.4.10, they
1902 ## dropped the initial 5.4 but left the intervening R. Because of the
1903 ## R this shouldn't conflict with older versions of the OS (which I
1904 ## think were named like dgux4.*). In addition, DG new AViiONs series
1905 ## uses either Motorola M88k or Intel Pentium CPUs.
1906 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1907 machine
=aviion opsys
=dgux4
1909 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1910 ## This name is dgux5-4-3 instead of dgux5-4r3
1911 ## to avoid a file name conflict on MSDOS.
1912 machine
=aviion opsys
=dgux5-4-3
1914 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1915 machine
=aviion opsys
=dgux5-4r2
1918 machine
=aviion opsys
=dgux
1921 ## Data General AViiON Intel (x86) Machines
1922 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1923 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1924 i
[345]86-dg-dguxR4* )
1925 machine
=aviion-intel opsys
=dgux4
1929 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1930 machine
=pmax opsys
=bsd4-2
1932 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1933 machine
=pmax opsys
=bsd4-3
1936 machine
=pmax opsys
=ultrix4-3
1939 machine
=pmax opsys
=osf1
1941 mips-dec-mach_bsd4.3
* )
1942 machine
=pmax opsys
=mach-bsd4-3
1945 ## Motorola Delta machines
1946 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1947 machine
=delta opsys
=usg5-3
1948 if test -z "`type gnucc | grep 'not found'`"
1950 if test -s /etc
/167config
1951 then CC
="gnucc -m68040"
1952 else CC
="gnucc -m68881"
1955 if test -z "`type gcc | grep 'not found'`"
1961 m88k-motorola-sysv4
* )
1962 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1963 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1964 # I hope there are not other 4.0 versions for this machine
1965 # which really need usg5-4 instead.
1966 machine
=delta88k opsys
=usg5-4-2
1968 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1969 machine
=delta88k opsys
=usg5-3
1974 machine
=dual opsys
=usg5-2
1976 m68
*-dual-uniplus* )
1977 machine
=dual opsys
=unipl5-2
1982 machine
=elxsi opsys
=usg5-2
1987 machine
=ns16000 opsys
=umax
1990 ## The GEC 63 - apparently, this port isn't really finished yet.
1991 # I'm sure we finished off the last of the machines, though. -- fx
1993 ## Gould Power Node and NP1
1995 machine
=gould opsys
=bsd4-2
1998 machine
=gould opsys
=bsd4-3
2001 machine
=gould-np1 opsys
=bsd4-3
2004 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2005 ## as far as Emacs is concerned).
2007 # Build needs to be different on 7.0 and later releases
2008 case "`uname -r`" in
2009 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2010 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2012 NON_GNU_CPP
="/lib/cpp"
2014 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2016 machine
=nh3000 opsys
=cxux
2018 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2019 powerpc-harris-powerunix
)
2020 machine
=nh6000 opsys
=powerunix
2021 NON_GNU_CPP
="cc -Xo -E -P"
2023 ## SR2001/SR2201 running HI-UX/MPP
2024 hppa1.1
-hitachi-hiuxmpp* )
2025 machine
=sr2k opsys
=hiuxmpp
2027 hppa1.1
-hitachi-hiuxwe2* )
2028 machine
=sr2k opsys
=hiuxwe2
2031 xps
*-honeywell-sysv* )
2032 machine
=xps100 opsys
=usg5-2
2035 ## HP 9000 series 200 or 300
2037 machine
=hp9000s300 opsys
=bsd4-3
2039 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2041 case "`uname -r`" in
2042 ## Someone's system reports A.B8.05 for this.
2043 ## I wonder what other possibilities there are.
2044 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2045 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2046 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2047 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2048 *) machine
=hp9000s300 opsys
=hpux
;;
2052 ## HP 9000 series 700 and 800, running HP/UX
2054 machine
=hp800 opsys
=hpux
2057 machine
=hp800 opsys
=hpux8
2059 hppa
*-hp-hpux9shr* )
2060 machine
=hp800 opsys
=hpux9shr
2063 machine
=hp800 opsys
=hpux9
2065 hppa
*-hp-hpux10.2
* )
2066 machine
=hp800 opsys
=hpux10-20
2069 machine
=hp800 opsys
=hpux10
2071 hppa
*-hp-hpux1[1-9]* )
2072 machine
=hp800 opsys
=hpux11
2075 hppa
*-*-linux-gnu* )
2076 machine
=hp800 opsys
=gnu-linux
2079 ## HP 9000 series 700 and 800, running HP/UX
2081 ## Cross-compilation? Nah!
2082 case "`uname -r`" in
2083 ## Someone's system reports A.B8.05 for this.
2084 ## I wonder what other possibilities there are.
2085 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2086 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2087 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2088 *) machine
=hp800 opsys
=hpux10
;;
2092 machine
=hp800 opsys
=nextstep
2097 machine
=orion opsys
=bsd4-2
2099 clipper-orion-bsd
* )
2100 machine
=orion105 opsys
=bsd4-2
2104 i
[3456]86-ibm-aix1.1
* )
2105 machine
=ibmps2-aix opsys
=usg5-2-2
2107 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2108 machine
=ibmps2-aix opsys
=usg5-3
2111 machine
=ibm370aix opsys
=usg5-3
2114 machine
=ibms390 opsys
=gnu-linux
2116 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2117 machine
=ibmrs6000 opsys
=aix3-1
2119 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2120 machine
=ibmrs6000 opsys
=aix3-2-5
2122 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2123 machine
=ibmrs6000 opsys
=aix4-1
2125 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2126 machine
=ibmrs6000 opsys
=aix4-2
2128 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2129 machine
=ibmrs6000 opsys
=aix4-2
2131 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2132 machine
=ibmrs6000 opsys
=aix4
2134 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2135 machine
=ibmrs6000 opsys
=aix4-1
2137 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2138 machine
=ibmrs6000 opsys
=aix3-2
2141 machine
=ibmrt opsys
=bsd4-3
2144 machine
=ibmrt opsys
=bsd4-2
2147 machine
=ibmrt opsys
=bsd4-3
2150 machine
=ibmrt opsys
=bsd4-2
2153 machine
=ibmrt opsys
=bsd4-3
2156 machine
=ibmrt opsys
=bsd4-3
2159 machine
=ibmrt-aix opsys
=usg5-2-2
2162 ## Integrated Solutions `Optimum V'
2164 machine
=isi-ov opsys
=bsd4-2
2167 machine
=isi-ov opsys
=bsd4-3
2170 ## Intel 386 machines where we do care about the manufacturer
2171 i
[3456]86-intsys-sysv* )
2172 machine
=is386 opsys
=usg5-2-2
2176 i
[3456]86-prime-sysv* )
2177 machine
=i386 opsys
=usg5-3
2180 ## Sequent Symmetry running Dynix
2181 i
[3456]86-sequent-bsd* )
2182 machine
=symmetry opsys
=bsd4-3
2185 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2186 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2187 machine
=sequent-ptx opsys
=ptx4
2188 NON_GNU_CPP
=/lib
/cpp
2191 ## Sequent Symmetry running DYNIX/ptx
2192 ## Use the old cpp rather than the newer ANSI one.
2193 i
[3456]86-sequent-ptx* )
2194 machine
=sequent-ptx opsys
=ptx
2195 NON_GNU_CPP
="/lib/cpp"
2198 ## ncr machine running svr4.3.
2199 i
[3456]86-ncr-sysv4.3
)
2200 machine
=ncr386 opsys
=usg5-4-3
2203 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2204 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2205 i
[3456]86-ncr-sysv* )
2206 machine
=ncr386 opsys
=usg5-4-2
2209 ## Intel Paragon OSF/1
2211 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2216 machine
=i860 opsys
=usg5-4
2217 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2218 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2221 ## Macintosh PowerPC
2222 powerpc
*-*-linux-gnu* )
2223 machine
=macppc opsys
=gnu-linux
2226 ## Masscomp machines
2227 m68
*-masscomp-rtu* )
2228 machine
=masscomp opsys
=rtu
2231 ## Megatest machines
2232 m68
*-megatest-bsd* )
2233 machine
=mega68 opsys
=bsd4-2
2236 ## Workstations sold by MIPS
2237 ## This is not necessarily all workstations using the MIPS processor -
2238 ## Irises are produced by SGI, and DECstations by DEC.
2240 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2241 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2242 ## it gives for choosing between the alternatives seems to be "Use
2243 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2244 ## the BSD world." I'll assume that these are instructions for
2245 ## handling two odd situations, and that every other situation
2246 ## should use mips.h and usg5-2-2, they being listed first.
2249 ## Fall through to the general code at the bottom to decide on the OS.
2251 mips-mips-riscos4
* )
2252 machine
=mips4 opsys
=bsd4-3
2253 NON_GNU_CC
="cc -systype bsd43"
2254 NON_GNU_CPP
="cc -systype bsd43 -E"
2256 mips-mips-riscos5
* )
2257 machine
=mips4 opsys
=riscos5
2258 NON_GNU_CC
="cc -systype bsd43"
2259 NON_GNU_CPP
="cc -systype bsd43 -E"
2262 machine
=mips opsys
=bsd4-3
2265 machine
=mips opsys
=usg5-2-2
2269 m68
*-next-* | m68k-
*-nextstep* )
2270 machine
=m68k opsys
=nextstep
2273 ## The complete machine from National Semiconductor
2275 machine
=ns32000 opsys
=usg5-2
2279 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2280 machine
=tower32 opsys
=usg5-2-2
2282 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2283 machine
=tower32v3 opsys
=usg5-3
2288 machine
=ews4800 opsys
=ux4800
2291 ## Nixdorf Targon 31
2292 m68
*-nixdorf-sysv* )
2293 machine
=targon31 opsys
=usg5-2-2
2298 machine
=nu opsys
=usg5-2
2303 machine
=plexus opsys
=usg5-2
2307 ## I don't really have any idea what sort of processor the Pyramid has,
2308 ## so I'm assuming it is its own architecture.
2309 pyramid-pyramid-bsd
* )
2310 machine
=pyramid opsys
=bsd4-2
2314 ns32k-sequent-bsd4.2
* )
2315 machine
=sequent opsys
=bsd4-2
2317 ns32k-sequent-bsd4.3
* )
2318 machine
=sequent opsys
=bsd4-3
2322 mips-siemens-sysv
* | mips-sni-sysv
*)
2323 machine
=mips-siemens opsys
=usg5-4
2324 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2325 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2328 ## Silicon Graphics machines
2329 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2331 machine
=irist opsys
=iris3-5
2333 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2334 machine
=irist opsys
=iris3-6
2338 machine
=iris4d opsys
=irix3-3
2341 machine
=iris4d opsys
=irix4-0
2344 machine
=iris4d opsys
=irix6-5
2345 # Without defining _LANGUAGE_C, things get masked out in the headers
2346 # so that, for instance, grepping for `free' in stdlib.h fails and
2347 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2348 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2349 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2352 machine
=iris4d opsys
=irix6-0
2353 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2354 # but presumably it does no harm.
2355 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2356 # -32 probably isn't necessary in later v.6s -- anyone know which?
2357 NON_GCC_TEST_OPTIONS
=-32
2359 mips-sgi-irix5.
[01]* )
2360 machine
=iris4d opsys
=irix5-0
2362 mips-sgi-irix5
* | mips-sgi-irix
* )
2363 machine
=iris4d opsys
=irix5-2
2368 machine
=news opsys
=bsd4-2
2371 machine
=news opsys
=bsd4-3
2373 m68
*-sony-newsos3* | m68
*-sony-news3*)
2374 machine
=news opsys
=bsd4-3
2376 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2377 machine
=news-risc opsys
=bsd4-3
2379 mips-sony-newsos6
* )
2380 machine
=news-r6 opsys
=newsos6
2383 machine
=news-risc opsys
=newsos5
2388 machine
=stride opsys
=usg5-2
2392 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2393 machine
=sparc opsys
=gnu-linux
2396 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2397 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2398 | rs6000-
*-solaris2*)
2399 case "${canonical}" in
2400 m68
*-sunos1* ) machine
=sun1
;;
2401 m68
*-sunos2* ) machine
=sun2
;;
2402 m68
* ) machine
=sun3
;;
2403 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2404 i
[3456]86-*-* ) machine
=intel386
;;
2405 powerpcle
* ) machine
=powerpcle
;;
2406 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2407 sparc
* ) machine
=sparc
;;
2410 case "${canonical}" in
2411 ## The Sun386 didn't get past 4.0.
2412 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2413 *-sunos4.0
* ) opsys
=sunos4-0
;;
2414 *-sunos4.1.
[3-9]*noshare
)
2415 ## This name is sunos413 instead of sunos4-1-3
2416 ## to avoid a file name conflict on MSDOS.
2418 NON_GNU_CPP
=/usr
/lib
/cpp
2419 NON_GCC_TEST_OPTIONS
=-Bstatic
2420 GCC_TEST_OPTIONS
=-static
2422 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2424 NON_GNU_CPP
=/usr
/lib
/cpp
2426 *-sunos4* |
*-sunos )
2428 NON_GCC_TEST_OPTIONS
=-Bstatic
2429 GCC_TEST_OPTIONS
=-static
2431 *-sunos5.3
* |
*-solaris2.3
* )
2433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2435 *-sunos5.4
* |
*-solaris2.4
* )
2437 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2440 *-sunos5.5
* |
*-solaris2.5
* )
2442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2445 *-sunos5.6
* |
*-solaris2.6
* )
2447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2450 *-sunos5* |
*-solaris* )
2452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2456 ## Watch out for a compiler that we know will not work.
2457 case "${canonical}" in
2458 *-solaris* |
*-sunos5* )
2459 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2460 ## /usr/ucb/cc doesn't work;
2461 ## we should find some other compiler that does work.
2469 machine
=sparc opsys
=nextstep
2473 m68
*-tadpole-sysv* )
2474 machine
=tad68k opsys
=usg5-3
2478 tahoe-tahoe-bsd4.2
* )
2479 machine
=tahoe opsys
=bsd4-2
2481 tahoe-tahoe-bsd4.3
* )
2482 machine
=tahoe opsys
=bsd4-3
2485 ## Tandem Integrity S2
2487 machine
=tandem-s2 opsys
=usg5-3
2491 m88k-tektronix-sysv3
* )
2492 machine
=tekxd88 opsys
=usg5-3
2495 ## Tektronix 16000 box (6130?)
2496 ns16k-tektronix-bsd
* )
2497 machine
=ns16000 opsys
=bsd4-2
2500 ## src/m/tek4300.h hints that this is a m68k machine.
2501 m68
*-tektronix-bsd* )
2502 machine
=tek4300 opsys
=bsd4-3
2506 ## We seem to have lost the machine-description file titan.h!
2508 machine
=titan opsys
=usg5-3
2511 ## Ustation E30 (SS5E)
2512 m68
*-unisys-uniplus* )
2513 machine
=ustation opsystem
=unipl5-2
2519 case "${canonical}" in
2520 *-bsd4.1
* ) opsys
=bsd4-1
;;
2521 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2522 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2523 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2524 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2525 *-vms* ) opsys
=vms
;;
2531 ns16k-whitechapel-
* )
2533 ## We don't know what sort of OS runs on these; we'll let the
2534 ## operating system guessing code below try.
2539 machine
=wicat opsys
=usg5-2
2544 machine
=ia64 opsys
=gnu-linux
2547 ## Intel 386 machines where we don't care about the manufacturer
2550 case "${canonical}" in
2551 *-cygwin ) opsys
=cygwin
;;
2552 *-lynxos* ) opsys
=lynxos
;;
2553 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2554 *-isc2.2
* ) opsys
=isc2-2
;;
2555 *-isc4.0
* ) opsys
=isc4-0
;;
2556 *-isc4.
* ) opsys
=isc4-1
2557 GCC_TEST_OPTIONS
=-posix
2558 NON_GCC_TEST_OPTIONS
=-Xp
2560 *-isc* ) opsys
=isc3-0
;;
2561 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2562 *-esix* ) opsys
=esix
;;
2563 *-xenix* ) opsys
=xenix
;;
2564 *-linux-gnu* ) opsys
=gnu-linux
;;
2565 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2566 *-sco3.2v5
* ) opsys
=sco5
2567 NON_GNU_CPP
=/lib
/cpp
2568 # Prevent -belf from being passed to $CPP.
2569 # /lib/cpp does not accept it.
2570 OVERRIDE_CPPFLAGS
=" "
2572 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2573 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2574 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2575 *-386bsd* ) opsys
=386bsd
;;
2576 *-nextstep* ) opsys
=nextstep
;;
2577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2581 ## m68k Linux-based GNU system
2583 machine
=m68k opsys
=gnu-linux
2586 ## Mips Linux-based GNU system
2587 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2588 machine
=mips opsys
=gnu-linux
2592 sparc-fujitsu-sysv4
* )
2593 machine
=sparc opsys
=uxpds
2594 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2599 f301-fujitsu-uxpv4.1
)
2600 machine
=f301 opsys
=uxpv
2603 ## Darwin / Mac OS X
2604 powerpc-apple-darwin
* )
2605 machine
=powermac opsys
=darwin
2606 # Define CPP as follows to make autoconf work correctly.
2607 CPP
="${CC-cc} -E -no-cpp-precomp"
2608 # Use fink packages if available.
2609 if test -d /sw
/include
&& test -d /sw
/lib
; then
2610 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2611 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2612 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2616 ## AMD x86-64 Linux-based GNU system
2617 x86_64-
*-linux-gnu* )
2618 machine
=amdx86-64 opsys
=gnu-linux
2626 ### If the code above didn't choose an operating system, just choose
2627 ### an operating system based on the configuration name. You really
2628 ### only want to use this when you have no idea what the right
2629 ### operating system is; if you know what operating systems a machine
2630 ### runs, it's cleaner to make it explicit in the case statement
2632 if test x
"${opsys}" = x
; then
2633 case "${canonical}" in
2634 *-gnu* ) opsys
=gnu
;;
2635 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2636 *-bsd4.2
) opsys
=bsd4-2
;;
2637 *-bsd4.3
) opsys
=bsd4-3
;;
2638 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2639 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2640 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2641 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2642 *-sysv4.2uw
* ) opsys
=unixware
;;
2643 *-sysv5uw* ) opsys
=unixware
;;
2644 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2645 *-sysv4.1
* |
*-sysvr4.1
* )
2646 NON_GNU_CPP
=/usr
/lib
/cpp
2648 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2649 if [ x
$NON_GNU_CPP = x
]; then
2650 if [ -f /usr
/ccs
/lib
/cpp
]; then
2651 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2653 NON_GNU_CPP
=/lib
/cpp
2657 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2666 if test $unported = yes; then
2667 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2668 Check \`etc/MACHINES' for recognized configuration names." >&5
2669 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2670 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2671 { (exit 1); exit 1; }; }
2674 machfile
="m/${machine}.h"
2675 opsysfile
="s/${opsys}.h"
2678 #### Choose a compiler.
2679 test -n "$CC" && cc_specified
=yes
2681 # Save the value of CFLAGS that the user specified.
2682 SPECIFIED_CFLAGS
="$CFLAGS"
2685 "yes" ) CC
="gcc" GCC
=yes ;;
2686 "no" ) : ${CC=cc} ;;
2690 ac_cpp
='$CPP $CPPFLAGS'
2691 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2697 echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC
="$CC" # Let the user override the test.
2705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir
=.
2710 for ac_exec_ext
in '' $ac_executable_extensions; do
2711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test -n "$CC"; then
2723 echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6
2726 echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2731 if test -z "$ac_cv_prog_CC"; then
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc
; ac_word
=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir
=.
2748 for ac_exec_ext
in '' $ac_executable_extensions; do
2749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_ac_ct_CC
="gcc"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2762 echo "${ECHO_T}$ac_ct_CC" >&6
2764 echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC
="$CC" # Let the user override the test.
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_exec_ext
in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test -n "$CC"; then
2803 echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2811 if test -z "$ac_cv_prog_CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc
; ac_word
=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir
=.
2828 for ac_exec_ext
in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC
="cc"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2842 echo "${ECHO_T}$ac_ct_CC" >&6
2844 echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2854 if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc
; ac_word
=$2
2857 echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC
="$CC" # Let the user override the test.
2866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir
=.
2871 for ac_exec_ext
in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected
=yes
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy
$ac_cv_prog_CC
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2893 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2899 if test -n "$CC"; then
2900 echo "$as_me:$LINENO: result: $CC" >&5
2901 echo "${ECHO_T}$CC" >&6
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC
="$CC" # Let the user override the test.
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir
=.
2927 for ac_exec_ext
in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 if test -n "$CC"; then
2940 echo "$as_me:$LINENO: result: $CC" >&5
2941 echo "${ECHO_T}$CC" >&6
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2947 test -n "$CC" && break
2950 if test -z "$CC"; then
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy
$ac_prog; ac_word
=$2
2956 echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir
=.
2969 for ac_exec_ext
in '' $ac_executable_extensions; do
2970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC
="$ac_prog"
2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2989 test -n "$ac_ct_CC" && break
2998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: no acceptable C compiler found in \$PATH
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO:" \
3006 "checking for C compiler version" >&5
3007 ac_compiler
=`set X $ac_compile; echo $2`
3008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3009 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3014 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3019 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3024 cat >conftest.
$ac_ext <<_ACEOF
3027 cat confdefs.h
>>conftest.
$ac_ext
3028 cat >>conftest.
$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 ac_clean_files_save
=$ac_clean_files
3040 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3041 # Try to create an executable without -o first, disregard a.out.
3042 # It will help us diagnose broken compilers, and finding out an intuition
3044 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3046 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3048 (eval $ac_link_default) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # Find the output, starting from the most likely. This scheme is
3053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3056 # Be careful to initialize this variable, since it used to be cached.
3057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3059 # b.out is created by i960 compilers.
3060 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3062 test -f "$ac_file" ||
continue
3064 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3067 # This is the source file.
3070 # We found the default executable, but exeext='' is most
3074 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 # FIXME: I believe we export ac_cv_exeext for Libtool,
3076 # but it would be cool to find out if it's true. Does anybody
3077 # maintain Libtool? --akim.
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.
$ac_ext >&5
3088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C compiler cannot create executables
3091 See \`config.log' for more details." >&2;}
3092 { (exit 77); exit 77; }; }
3095 ac_exeext
=$ac_cv_exeext
3096 echo "$as_me:$LINENO: result: $ac_file" >&5
3097 echo "${ECHO_T}$ac_file" >&6
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3104 # If not cross compiling, check that we can run a simple program.
3105 if test "$cross_compiling" != yes; then
3106 if { ac_try
='./$ac_file'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3114 if test "$cross_compiling" = maybe
; then
3117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: cannot run C compiled programs.
3121 If you meant to cross compile, use \`--host'.
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3130 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3131 ac_clean_files
=$ac_clean_files_save
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3137 echo "${ECHO_T}$cross_compiling" >&6
3139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142 (eval $ac_link) 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; then
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148 # work properly (i.e., refer to `conftest.exe'), while it won't with
3150 for ac_file
in conftest.exe conftest conftest.
*; do
3151 test -f "$ac_file" ||
continue
3153 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3154 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3168 rm -f conftest
$ac_cv_exeext
3169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3170 echo "${ECHO_T}$ac_cv_exeext" >&6
3172 rm -f conftest.
$ac_ext
3173 EXEEXT
=$ac_cv_exeext
3175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3177 if test "${ac_cv_objext+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 cat >conftest.
$ac_ext <<_ACEOF
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3195 rm -f conftest.o conftest.obj
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3203 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3204 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.
$ac_ext >&5
3212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3219 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3222 echo "${ECHO_T}$ac_cv_objext" >&6
3223 OBJEXT
=$ac_cv_objext
3225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 cat >conftest.
$ac_ext <<_ACEOF
3233 cat confdefs.h
>>conftest.
$ac_ext
3234 cat >>conftest.
$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3248 rm -f conftest.
$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3252 grep -v '^ *+' conftest.er1
>conftest.err
3254 cat conftest.err
>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try
='test -z "$ac_c_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try
='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.
$ac_ext >&5
3277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3278 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3283 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3284 ac_test_CFLAGS
=${CFLAGS+set}
3285 ac_save_CFLAGS
=$CFLAGS
3287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3289 if test "${ac_cv_prog_cc_g+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 cat >conftest.
$ac_ext <<_ACEOF
3295 cat confdefs.h
>>conftest.
$ac_ext
3296 cat >>conftest.
$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1
>conftest.err
3313 cat conftest.err
>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.
$ac_ext >&5
3336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3340 if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS
=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3349 if test "$GCC" = yes; then
3355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 ac_cv_prog_cc_stdc
=no
3362 cat >conftest.
$ac_ext <<_ACEOF
3365 cat confdefs.h
>>conftest.
$ac_ext
3366 cat >>conftest.
$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3386 s = g (p, va_arg (v,int));
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std1 is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std1. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 # Don't try gcc -ansi; that turns off useful extensions and
3415 # breaks some systems' header files.
3416 # AIX -qlanglvl=ansi
3417 # Ultrix and OSF/1 -std1
3418 # HP-UX 10.20 and later -Ae
3419 # HP-UX older versions -Aa -D_HPUX_SOURCE
3420 # SVR4 -Xc -D__EXTENSIONS__
3421 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC
="$ac_save_CC $ac_arg"
3424 rm -f conftest.
$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1
>conftest.err
3430 cat conftest.err
>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try
='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try
='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_prog_cc_stdc
=$ac_arg
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.
$ac_ext >&5
3453 rm -f conftest.err conftest.
$ac_objext
3455 rm -f conftest.
$ac_ext conftest.
$ac_objext
3460 case "x$ac_cv_prog_cc_stdc" in
3462 echo "$as_me:$LINENO: result: none needed" >&5
3463 echo "${ECHO_T}none needed" >&6 ;;
3465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3467 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3470 # Some people use a C++ compiler to compile C. Since we use `exit',
3471 # in C++ we need to declare it. In case someone uses the same compiler
3472 # for both compiling C and C++ we need to have the C++ compiler decide
3473 # the declaration of exit, since it's the most demanding environment.
3474 cat >conftest.
$ac_ext <<_ACEOF
3479 rm -f conftest.
$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3483 grep -v '^ *+' conftest.er1
>conftest.err
3485 cat conftest.err
>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try
='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try
='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 for ac_declaration
in \
3503 'extern "C" void std::exit (int) throw (); using std::exit;' \
3504 'extern "C" void std::exit (int); using std::exit;' \
3505 'extern "C" void exit (int) throw ();' \
3506 'extern "C" void exit (int);' \
3509 cat >conftest.
$ac_ext <<_ACEOF
3512 cat confdefs.h
>>conftest.
$ac_ext
3513 cat >>conftest.
$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3525 rm -f conftest.
$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3529 grep -v '^ *+' conftest.er1
>conftest.err
3531 cat conftest.err
>&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try
='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try
='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.
$ac_ext >&5
3554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3555 cat >conftest.
$ac_ext <<_ACEOF
3558 cat confdefs.h
>>conftest.
$ac_ext
3559 cat >>conftest.
$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3570 rm -f conftest.
$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3574 grep -v '^ *+' conftest.er1
>conftest.err
3576 cat conftest.err
>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try
='test -z "$ac_c_werror_flag"
3580 || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try
='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.
$ac_ext >&5
3598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3601 if test -n "$ac_declaration"; then
3602 echo '#ifdef __cplusplus' >>confdefs.h
3603 echo $ac_declaration >>confdefs.h
3604 echo '#endif' >>confdefs.h
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3614 ac_cpp
='$CPP $CPPFLAGS'
3615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3620 # On Suns, sometimes $CPP names a directory.
3621 if test -n "$CPP" && test -d "$CPP"; then
3625 #### Some systems specify a CPP to use unless we are using GCC.
3626 #### Now that we know whether we are using GCC, we can decide whether
3627 #### to use that one.
3628 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3633 #### Some systems specify a CC to use unless we are using GCC.
3634 #### Now that we know whether we are using GCC, we can decide whether
3635 #### to use that one.
3636 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3637 test x
$cc_specified != xyes
3642 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3644 CC
="$CC $GCC_TEST_OPTIONS"
3647 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3649 CC
="$CC $NON_GCC_TEST_OPTIONS"
3652 #### Some other nice autoconf tests.
3654 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3657 if test "$LN_S" = "ln -s"; then
3658 echo "$as_me:$LINENO: result: yes" >&5
3659 echo "${ECHO_T}yes" >&6
3661 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3662 echo "${ECHO_T}no, using $LN_S" >&6
3666 ac_cpp
='$CPP $CPPFLAGS'
3667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3670 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3671 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3676 if test -z "$CPP"; then
3677 if test "${ac_cv_prog_CPP+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 # Double quotes because CPP needs to be expanded
3681 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3684 for ac_c_preproc_warn_flag
in '' yes
3686 # Use a header file that comes with gcc, so configuring glibc
3687 # with a fresh cross-compiler works.
3688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 # <limits.h> exists even on freestanding compilers.
3690 # On the NeXT, cc -E runs the code through the compiler's parser,
3691 # not just through cpp. "Syntax error" is here to catch this case.
3692 cat >conftest.
$ac_ext <<_ACEOF
3695 cat confdefs.h
>>conftest.
$ac_ext
3696 cat >>conftest.
$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3699 # include <limits.h>
3701 # include <assert.h>
3705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3708 grep -v '^ *+' conftest.er1
>conftest.err
3710 cat conftest.err
>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev
/null
; then
3713 if test -s conftest.err
; then
3714 ac_cpp_err
=$ac_c_preproc_warn_flag
3715 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3722 if test -z "$ac_cpp_err"; then
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.
$ac_ext >&5
3728 # Broken: fails on valid input.
3731 rm -f conftest.err conftest.
$ac_ext
3733 # OK, works on sane cases. Now check whether non-existent headers
3734 # can be detected and how.
3735 cat >conftest.
$ac_ext <<_ACEOF
3738 cat confdefs.h
>>conftest.
$ac_ext
3739 cat >>conftest.
$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 #include <ac_nonexistent.h>
3743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3746 grep -v '^ *+' conftest.er1
>conftest.err
3748 cat conftest.err
>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev
/null
; then
3751 if test -s conftest.err
; then
3752 ac_cpp_err
=$ac_c_preproc_warn_flag
3753 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3760 if test -z "$ac_cpp_err"; then
3761 # Broken: success on invalid input.
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.
$ac_ext >&5
3767 # Passes both tests.
3771 rm -f conftest.err conftest.
$ac_ext
3774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775 rm -f conftest.err conftest.
$ac_ext
3776 if $ac_preproc_ok; then
3788 echo "$as_me:$LINENO: result: $CPP" >&5
3789 echo "${ECHO_T}$CPP" >&6
3791 for ac_c_preproc_warn_flag
in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.
$ac_ext <<_ACEOF
3802 cat confdefs.h
>>conftest.
$ac_ext
3803 cat >>conftest.
$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3806 # include <limits.h>
3808 # include <assert.h>
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3815 grep -v '^ *+' conftest.er1
>conftest.err
3817 cat conftest.err
>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev
/null
; then
3820 if test -s conftest.err
; then
3821 ac_cpp_err
=$ac_c_preproc_warn_flag
3822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3829 if test -z "$ac_cpp_err"; then
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.
$ac_ext >&5
3835 # Broken: fails on valid input.
3838 rm -f conftest.err conftest.
$ac_ext
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.
$ac_ext <<_ACEOF
3845 cat confdefs.h
>>conftest.
$ac_ext
3846 cat >>conftest.
$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3853 grep -v '^ *+' conftest.er1
>conftest.err
3855 cat conftest.err
>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev
/null
; then
3858 if test -s conftest.err
; then
3859 ac_cpp_err
=$ac_c_preproc_warn_flag
3860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.
$ac_ext >&5
3874 # Passes both tests.
3878 rm -f conftest.err conftest.
$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.
$ac_ext
3883 if $ac_preproc_ok; then
3886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&5
3888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&2;}
3890 { (exit 1); exit 1; }; }
3894 ac_cpp
='$CPP $CPPFLAGS'
3895 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3899 # Find a good install program. We prefer a C program (faster),
3900 # so one script is as good as another. But avoid the broken or
3901 # incompatible versions:
3902 # SysV /etc/install, /usr/sbin/install
3903 # SunOS /usr/etc/install
3904 # IRIX /sbin/install
3906 # AmigaOS /C/install, which installs bootblocks on floppy discs
3907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910 # OS/2's system install, which has a completely different semantic
3911 # ./install, which can be erroneously created by make from ./install.sh.
3912 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3913 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3914 if test -z "$INSTALL"; then
3915 if test "${ac_cv_path_install+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir
=.
3923 # Account for people who put trailing slashes in PATH elements.
3925 .
/ | .
// |
/cC
/* | \
3926 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3927 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3930 # OSF1 and SCO ODT 3.0 have their own names for install.
3931 # Don't use installbsd from OSF since it installs stuff as root
3933 for ac_prog
in ginstall scoinst
install; do
3934 for ac_exec_ext
in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3936 if test $ac_prog = install &&
3937 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3938 # AIX install. It has an incompatible calling convention.
3940 elif test $ac_prog = install &&
3941 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3942 # program-specific install script used by HP pwplus--don't use.
3945 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3957 if test "${ac_cv_path_install+set}" = set; then
3958 INSTALL
=$ac_cv_path_install
3960 # As a last resort, use the slow shell script. We don't cache a
3961 # path for INSTALL within a source directory, because that will
3962 # break other packages using the cache if that directory is
3963 # removed, or if the path is relative.
3964 INSTALL
=$ac_install_sh
3967 echo "$as_me:$LINENO: result: $INSTALL" >&5
3968 echo "${ECHO_T}$INSTALL" >&6
3970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3971 # It thinks the first close brace ends the variable substitution.
3972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3976 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3978 if test "x$RANLIB" = x
; then
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3981 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_RANLIB+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$RANLIB"; then
3988 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir
=.
3995 for ac_exec_ext
in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 RANLIB
=$ac_cv_prog_RANLIB
4007 if test -n "$RANLIB"; then
4008 echo "$as_me:$LINENO: result: $RANLIB" >&5
4009 echo "${ECHO_T}$RANLIB" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4016 if test -z "$ac_cv_prog_RANLIB"; then
4017 ac_ct_RANLIB
=$RANLIB
4018 # Extract the first word of "ranlib", so it can be a program name with args.
4019 set dummy ranlib
; ac_word
=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -n "$ac_ct_RANLIB"; then
4026 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir
=.
4033 for ac_exec_ext
in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4045 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4046 if test -n "$ac_ct_RANLIB"; then
4047 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4048 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4054 RANLIB
=$ac_ct_RANLIB
4056 RANLIB
="$ac_cv_prog_RANLIB"
4060 # Extract the first word of "install-info", so it can be a program name with args.
4061 set dummy install-info
; ac_word
=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 case $INSTALL_INFO in
4069 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir
=.
4077 for ac_exec_ext
in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4091 if test -n "$INSTALL_INFO"; then
4092 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4093 echo "${ECHO_T}$INSTALL_INFO" >&6
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4099 # Extract the first word of "install-info", so it can be a program name with args.
4100 set dummy install-info
; ac_word
=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 case $INSTALL_INFO in
4108 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4112 for as_dir
in /usr
/sbin
4115 test -z "$as_dir" && as_dir
=.
4116 for ac_exec_ext
in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4130 if test -n "$INSTALL_INFO"; then
4131 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4132 echo "${ECHO_T}$INSTALL_INFO" >&6
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info
; ac_word
=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 case $INSTALL_INFO in
4147 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4168 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4170 if test -n "$INSTALL_INFO"; then
4171 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4172 echo "${ECHO_T}$INSTALL_INFO" >&6
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4180 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4182 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4185 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4187 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4191 late_LDFLAGS
=$LDFLAGS
4192 if test "$GCC" = yes; then
4193 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4195 LDFLAGS
="$LDFLAGS -znocombreloc"
4198 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4199 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4201 cat >conftest.
$ac_ext <<_ACEOF
4204 rm -f conftest.
$ac_objext conftest
$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>conftest.er1
4208 grep -v '^ *+' conftest.er1
>conftest.err
4210 cat conftest.err
>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try
='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try
='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 echo "$as_me:$LINENO: result: yes" >&5
4227 echo "${ECHO_T}yes" >&6
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.
$ac_ext >&5
4232 LDFLAGS
=$late_LDFLAGS
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4236 rm -f conftest.err conftest.
$ac_objext \
4237 conftest
$ac_exeext conftest.
$ac_ext
4240 echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4246 then ac_cv_prog_egrep
='grep -E'
4247 else ac_cv_prog_egrep
='egrep'
4250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP
=$ac_cv_prog_egrep
4256 echo "$as_me:$LINENO: checking for AIX" >&5
4257 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4258 cat >conftest.
$ac_ext <<_ACEOF
4261 cat confdefs.h
>>conftest.
$ac_ext
4262 cat >>conftest.
$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "yes" >/dev
/null
2>&1; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272 echo "${ECHO_T}yes" >&6
4273 cat >>confdefs.h
<<\_ACEOF
4274 #define _ALL_SOURCE 1
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4286 #### Extract some information from the operating system and machine files.
4288 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4289 - which libraries the lib-src programs will want, and
4290 - whether the GNU malloc routines are usable..." >&5
4291 echo "$as_me: checking the machine- and system-dependent files to find out
4292 - which libraries the lib-src programs will want, and
4293 - whether the GNU malloc routines are usable..." >&6;}
4295 ### First figure out CFLAGS (which we use for running the compiler here)
4296 ### and REAL_CFLAGS (which we use for real compilation).
4297 ### The two are the same except on a few systems, where they are made
4298 ### different to work around various lossages. For example,
4299 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4300 ### as implying static linking.
4302 ### If the CFLAGS env var is specified, we use that value
4303 ### instead of the default.
4305 ### It's not important that this name contain the PID; you can't run
4306 ### two configures in the same directory and have anything work
4308 tempcname
="conftest.c"
4311 #include "'${srcdir}'/src/'${opsysfile}'"
4312 #include "'${srcdir}'/src/'${machfile}'"
4313 #ifndef LIBS_MACHINE
4314 #define LIBS_MACHINE
4319 #ifndef C_SWITCH_SYSTEM
4320 #define C_SWITCH_SYSTEM
4322 #ifndef C_SWITCH_MACHINE
4323 #define C_SWITCH_MACHINE
4325 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4326 configure___ c_switch_system=C_SWITCH_SYSTEM
4327 configure___ c_switch_machine=C_SWITCH_MACHINE
4330 #define LIB_X11_LIB -lX11
4333 #ifndef LIBX11_MACHINE
4334 #define LIBX11_MACHINE
4337 #ifndef LIBX11_SYSTEM
4338 #define LIBX11_SYSTEM
4340 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4343 configure___ unexec=UNEXEC
4345 configure___ unexec=unexec.o
4348 #ifdef SYSTEM_MALLOC
4349 configure___ system_malloc=yes
4351 configure___ system_malloc=no
4354 #ifdef USE_MMAP_FOR_BUFFERS
4355 configure___ use_mmap_for_buffers=yes
4357 configure___ use_mmap_for_buffers=no
4360 #ifndef C_DEBUG_SWITCH
4361 #define C_DEBUG_SWITCH -g
4364 #ifndef C_OPTIMIZE_SWITCH
4366 #define C_OPTIMIZE_SWITCH -O2
4368 #define C_OPTIMIZE_SWITCH -O
4372 #ifndef LD_SWITCH_MACHINE
4373 #define LD_SWITCH_MACHINE
4376 #ifndef LD_SWITCH_SYSTEM
4377 #define LD_SWITCH_SYSTEM
4380 #ifndef LD_SWITCH_X_SITE_AUX
4381 #define LD_SWITCH_X_SITE_AUX
4384 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4385 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4387 #ifdef THIS_IS_CONFIGURE
4389 /* Get the CFLAGS for tests in configure. */
4391 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4393 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4396 #else /* not THIS_IS_CONFIGURE */
4398 /* Get the CFLAGS for real compilation. */
4400 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4402 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4405 #endif /* not THIS_IS_CONFIGURE */
4408 # The value of CPP is a quoted variable reference, so we need to do this
4409 # to get its actual value...
4410 CPP
=`eval "echo $CPP"`
4411 eval `${CPP} -Isrc ${tempcname} \
4412 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4413 if test "x$SPECIFIED_CFLAGS" = x
; then
4414 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4415 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4417 REAL_CFLAGS
="$CFLAGS"
4421 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4423 ### Make sure subsequent tests use flags consistent with the build flags.
4425 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4426 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4428 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4434 cat >>confdefs.h
<<\_ACEOF
4435 #define _GNU_SOURCE 1
4440 # Check whether --enable-largefile or --disable-largefile was given.
4441 if test "${enable_largefile+set}" = set; then
4442 enableval
="$enable_largefile"
4445 if test "$enable_largefile" != no
; then
4447 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4448 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4449 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_sys_largefile_CC
=no
4453 if test "$GCC" != yes; then
4456 # IRIX 6.2 and later do not support large files by default,
4457 # so use the C compiler's -n32 option if that helps.
4458 cat >conftest.
$ac_ext <<_ACEOF
4461 cat confdefs.h
>>conftest.
$ac_ext
4462 cat >>conftest.
$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <sys/types.h>
4465 /* Check that off_t can represent 2**63 - 1 correctly.
4466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4467 since some C++ compilers masquerading as C compilers
4468 incorrectly reject 9223372036854775807. */
4469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4471 && LARGE_OFF_T % 2147483647 == 1)
4481 rm -f conftest.
$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4485 grep -v '^ *+' conftest.er1
>conftest.err
4487 cat conftest.err
>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try
='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try
='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.
$ac_ext >&5
4509 rm -f conftest.err conftest.
$ac_objext
4511 rm -f conftest.
$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1
>conftest.err
4517 cat conftest.err
>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try
='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try
='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_sys_largefile_CC
=' -n32'; break
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.
$ac_ext >&5
4539 rm -f conftest.err conftest.
$ac_objext
4543 rm -f conftest.
$ac_ext
4546 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4547 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4548 if test "$ac_cv_sys_largefile_CC" != no
; then
4549 CC
=$CC$ac_cv_sys_largefile_CC
4552 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4553 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4554 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_cv_sys_file_offset_bits
=no
4559 cat >conftest.
$ac_ext <<_ACEOF
4562 cat confdefs.h
>>conftest.
$ac_ext
4563 cat >>conftest.
$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <sys/types.h>
4566 /* Check that off_t can represent 2**63 - 1 correctly.
4567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4568 since some C++ compilers masquerading as C compilers
4569 incorrectly reject 9223372036854775807. */
4570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4572 && LARGE_OFF_T % 2147483647 == 1)
4582 rm -f conftest.
$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4586 grep -v '^ *+' conftest.er1
>conftest.err
4588 cat conftest.err
>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try
='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try
='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.
$ac_ext >&5
4610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4611 cat >conftest.
$ac_ext <<_ACEOF
4614 cat confdefs.h
>>conftest.
$ac_ext
4615 cat >>conftest.
$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #define _FILE_OFFSET_BITS 64
4618 #include <sys/types.h>
4619 /* Check that off_t can represent 2**63 - 1 correctly.
4620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4621 since some C++ compilers masquerading as C compilers
4622 incorrectly reject 9223372036854775807. */
4623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4625 && LARGE_OFF_T % 2147483647 == 1)
4635 rm -f conftest.
$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1
>conftest.err
4641 cat conftest.err
>&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try
='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try
='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_sys_file_offset_bits
=64; break
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4667 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4668 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4669 if test "$ac_cv_sys_file_offset_bits" != no
; then
4671 cat >>confdefs.h
<<_ACEOF
4672 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4677 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4678 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4679 if test "${ac_cv_sys_large_files+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cv_sys_large_files
=no
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4691 /* Check that off_t can represent 2**63 - 1 correctly.
4692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4693 since some C++ compilers masquerading as C compilers
4694 incorrectly reject 9223372036854775807. */
4695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4697 && LARGE_OFF_T % 2147483647 == 1)
4707 rm -f conftest.
$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>conftest.er1
4711 grep -v '^ *+' conftest.er1
>conftest.err
4713 cat conftest.err
>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try
='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try
='test -s conftest.$ac_objext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.
$ac_ext >&5
4735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4736 cat >conftest.
$ac_ext <<_ACEOF
4739 cat confdefs.h
>>conftest.
$ac_ext
4740 cat >>conftest.
$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #define _LARGE_FILES 1
4743 #include <sys/types.h>
4744 /* Check that off_t can represent 2**63 - 1 correctly.
4745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4746 since some C++ compilers masquerading as C compilers
4747 incorrectly reject 9223372036854775807. */
4748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4750 && LARGE_OFF_T % 2147483647 == 1)
4760 rm -f conftest.
$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1
>conftest.err
4766 cat conftest.err
>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try
='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try
='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_sys_large_files
=1; break
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4792 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4793 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4794 if test "$ac_cv_sys_large_files" != no
; then
4796 cat >>confdefs.h
<<_ACEOF
4797 #define _LARGE_FILES $ac_cv_sys_large_files
4805 if test "${with_sound}" != "no"; then
4806 # Sound support for GNU/Linux and the free BSDs.
4807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4809 if test "${ac_cv_header_stdc+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4831 rm -f conftest.
$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1
>conftest.err
4837 cat conftest.err
>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try
='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try
='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_header_stdc
=yes
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.
$ac_ext >&5
4858 ac_cv_header_stdc
=no
4860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4862 if test $ac_cv_header_stdc = yes; then
4863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "memchr" >/dev
/null
2>&1; then
4877 ac_cv_header_stdc
=no
4883 if test $ac_cv_header_stdc = yes; then
4884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4885 cat >conftest.
$ac_ext <<_ACEOF
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895 $EGREP "free" >/dev
/null
2>&1; then
4898 ac_cv_header_stdc
=no
4904 if test $ac_cv_header_stdc = yes; then
4905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4906 if test "$cross_compiling" = yes; then
4909 cat >conftest.
$ac_ext <<_ACEOF
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4920 # define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
4939 rm -f conftest
$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4952 echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.
$ac_ext >&5
4957 ac_cv_header_stdc
=no
4959 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4963 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4964 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4965 if test $ac_cv_header_stdc = yes; then
4967 cat >>confdefs.h
<<\_ACEOF
4968 #define STDC_HEADERS 1
4973 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4983 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4984 inttypes.h stdint.h unistd.h
4986 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987 echo "$as_me:$LINENO: checking for $ac_header" >&5
4988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 cat >conftest.
$ac_ext <<_ACEOF
4995 cat confdefs.h
>>conftest.
$ac_ext
4996 cat >>conftest.
$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
5000 #include <$ac_header>
5002 rm -f conftest.
$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 eval "$as_ac_Header=yes"
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5029 eval "$as_ac_Header=no"
5031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5036 cat >>confdefs.h
<<_ACEOF
5037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5048 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5050 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5052 echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 # Is the header compilable?
5061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5063 cat >conftest.
$ac_ext <<_ACEOF
5066 cat confdefs.h
>>conftest.
$ac_ext
5067 cat >>conftest.
$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 $ac_includes_default
5070 #include <$ac_header>
5072 rm -f conftest.
$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>conftest.er1
5076 grep -v '^ *+' conftest.er1
>conftest.err
5078 cat conftest.err
>&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try
='test -z "$ac_c_werror_flag"
5082 || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try
='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_header_compiler
=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.
$ac_ext >&5
5099 ac_header_compiler
=no
5101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103 echo "${ECHO_T}$ac_header_compiler" >&6
5105 # Is the header present?
5106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5108 cat >conftest.
$ac_ext <<_ACEOF
5111 cat confdefs.h
>>conftest.
$ac_ext
5112 cat >>conftest.
$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <$ac_header>
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1
>conftest.err
5121 cat conftest.err
>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev
/null
; then
5124 if test -s conftest.err
; then
5125 ac_cpp_err
=$ac_c_preproc_warn_flag
5126 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5133 if test -z "$ac_cpp_err"; then
5134 ac_header_preproc
=yes
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.
$ac_ext >&5
5139 ac_header_preproc
=no
5141 rm -f conftest.err conftest.
$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc
=yes
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5169 ## ------------------------------------------ ##
5170 ## Report this to the AC_PACKAGE_NAME lists. ##
5171 ## ------------------------------------------ ##
5174 sed "s/^/$as_me: WARNING: /" >&2
5177 echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 eval "$as_ac_Header=\$ac_header_preproc"
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189 cat >>confdefs.h
<<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 # Emulation library used on NetBSD.
5198 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5199 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5200 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_check_lib_save_LIBS
=$LIBS
5204 LIBS
="-lossaudio $LIBS"
5205 cat >conftest.
$ac_ext <<_ACEOF
5208 cat confdefs.h
>>conftest.
$ac_ext
5209 cat >>conftest.
$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5227 rm -f conftest.
$ac_objext conftest
$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>conftest.er1
5231 grep -v '^ *+' conftest.er1
>conftest.err
5233 cat conftest.err
>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try
='test -z "$ac_c_werror_flag"
5237 || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try
='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_lib_ossaudio__oss_ioctl
=yes
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.
$ac_ext >&5
5254 ac_cv_lib_ossaudio__oss_ioctl
=no
5256 rm -f conftest.err conftest.
$ac_objext \
5257 conftest
$ac_exeext conftest.
$ac_ext
5258 LIBS
=$ac_check_lib_save_LIBS
5260 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5261 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5262 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5296 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5297 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5298 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5299 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5302 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5304 echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5312 # Is the header compilable?
5313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 cat confdefs.h
>>conftest.
$ac_ext
5319 cat >>conftest.
$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 #include <$ac_header>
5324 rm -f conftest.
$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1
>conftest.err
5330 cat conftest.err
>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try
='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try
='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler
=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.
$ac_ext >&5
5351 ac_header_compiler
=no
5353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <$ac_header>
5368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5371 grep -v '^ *+' conftest.er1
>conftest.err
5373 cat conftest.err
>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } >/dev
/null
; then
5376 if test -s conftest.err
; then
5377 ac_cpp_err
=$ac_c_preproc_warn_flag
5378 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc
=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 ac_header_preproc
=no
5393 rm -f conftest.err conftest.
$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc
=yes
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5421 ## ------------------------------------------ ##
5422 ## Report this to the AC_PACKAGE_NAME lists. ##
5423 ## ------------------------------------------ ##
5426 sed "s/^/$as_me: WARNING: /" >&2
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 eval "$as_ac_Header=\$ac_header_preproc"
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h
<<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5450 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5451 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5452 cat >conftest.
$ac_ext <<_ACEOF
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/personality.h>
5462 personality (PER_LINUX32)
5467 rm -f conftest.
$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>conftest.er1
5471 grep -v '^ *+' conftest.er1
>conftest.err
5473 cat conftest.err
>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try
='test -z "$ac_c_werror_flag"
5477 || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try
='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 emacs_cv_personality_linux32
=yes
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.
$ac_ext >&5
5494 emacs_cv_personality_linux32
=no
5496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5497 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5498 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5500 if test $emacs_cv_personality_linux32 = yes; then
5502 cat >>confdefs.h
<<\_ACEOF
5503 #define HAVE_PERSONALITY_LINUX32 1
5509 for ac_header
in term.h
5511 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 cat >conftest.
$ac_ext <<_ACEOF
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <$ac_header>
5525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5526 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5528 grep -v '^ *+' conftest.er1
>conftest.err
5530 cat conftest.err
>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev
/null
; then
5533 if test -s conftest.err
; then
5534 ac_cpp_err
=$ac_c_preproc_warn_flag
5535 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5542 if test -z "$ac_cpp_err"; then
5543 eval "$as_ac_Header=yes"
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 eval "$as_ac_Header=no"
5550 rm -f conftest.err conftest.
$ac_ext
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5555 cat >>confdefs.h
<<_ACEOF
5556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5565 if test "${ac_cv_header_stdc+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5587 rm -f conftest.
$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5591 grep -v '^ *+' conftest.er1
>conftest.err
5593 cat conftest.err
>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try
='test -z "$ac_c_werror_flag"
5597 || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try
='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_header_stdc
=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5614 ac_cv_header_stdc
=no
5616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5618 if test $ac_cv_header_stdc = yes; then
5619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev
/null
2>&1; then
5633 ac_cv_header_stdc
=no
5639 if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat >conftest.
$ac_ext <<_ACEOF
5644 cat confdefs.h
>>conftest.
$ac_ext
5645 cat >>conftest.
$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev
/null
2>&1; then
5654 ac_cv_header_stdc
=no
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then
5665 cat >conftest.
$ac_ext <<_ACEOF
5668 cat confdefs.h
>>conftest.
$ac_ext
5669 cat >>conftest.
$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5695 rm -f conftest
$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5713 ac_cv_header_stdc
=no
5715 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5723 cat >>confdefs.h
<<\_ACEOF
5724 #define STDC_HEADERS 1
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.
$ac_ext <<_ACEOF
5737 cat confdefs.h
>>conftest.
$ac_ext
5738 cat >>conftest.
$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5747 if ((struct tm *) 0)
5753 rm -f conftest.
$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try
='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try
='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_header_time
=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.
$ac_ext >&5
5780 ac_cv_header_time
=no
5782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5784 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5785 echo "${ECHO_T}$ac_cv_header_time" >&6
5786 if test $ac_cv_header_time = yes; then
5788 cat >>confdefs.h
<<\_ACEOF
5789 #define TIME_WITH_SYS_TIME 1
5794 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5795 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5796 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5810 char *p = (char *) sys_siglist;
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try
='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_have_decl_sys_siglist
=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5844 ac_cv_have_decl_sys_siglist
=no
5846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5849 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5850 if test $ac_cv_have_decl_sys_siglist = yes; then
5852 cat >>confdefs.h
<<_ACEOF
5853 #define HAVE_DECL_SYS_SIGLIST 1
5858 cat >>confdefs.h
<<_ACEOF
5859 #define HAVE_DECL_SYS_SIGLIST 0
5866 if test $ac_cv_have_decl_sys_siglist != yes; then
5867 # For Tru64, at least:
5868 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5869 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5870 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 cat >conftest.
$ac_ext <<_ACEOF
5876 cat confdefs.h
>>conftest.
$ac_ext
5877 cat >>conftest.
$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5883 #ifndef __sys_siglist
5884 char *p = (char *) __sys_siglist;
5891 rm -f conftest.
$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>conftest.er1
5895 grep -v '^ *+' conftest.er1
>conftest.err
5897 cat conftest.err
>&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try
='test -z "$ac_c_werror_flag"
5901 || test ! -s conftest.err'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; } &&
5907 { ac_try
='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_cv_have_decl___sys_siglist
=yes
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.
$ac_ext >&5
5918 ac_cv_have_decl___sys_siglist
=no
5920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5922 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5923 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5924 if test $ac_cv_have_decl___sys_siglist = yes; then
5926 cat >>confdefs.h
<<_ACEOF
5927 #define HAVE_DECL___SYS_SIGLIST 1
5932 cat >>confdefs.h
<<_ACEOF
5933 #define HAVE_DECL___SYS_SIGLIST 0
5940 if test $ac_cv_have_decl___sys_siglist = yes; then
5942 cat >>confdefs.h
<<\_ACEOF
5943 #define sys_siglist __sys_siglist
5948 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5949 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5950 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 cat >conftest.
$ac_ext <<_ACEOF
5956 cat confdefs.h
>>conftest.
$ac_ext
5957 cat >>conftest.
$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <sys/wait.h>
5962 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5965 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5973 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5978 rm -f conftest.
$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try
='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try
='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_header_sys_wait_h
=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.
$ac_ext >&5
6005 ac_cv_header_sys_wait_h
=no
6007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6011 if test $ac_cv_header_sys_wait_h = yes; then
6013 cat >>confdefs.h
<<\_ACEOF
6014 #define HAVE_SYS_WAIT_H 1
6020 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6021 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6022 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 cat >conftest.
$ac_ext <<_ACEOF
6028 cat confdefs.h
>>conftest.
$ac_ext
6029 cat >>conftest.
$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #ifdef TIME_WITH_SYS_TIME
6032 #include <sys/time.h>
6035 #ifdef HAVE_SYS_TIME_H
6036 #include <sys/time.h>
6047 static struct utimbuf x; x.actime = x.modtime;
6052 rm -f conftest.
$ac_objext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054 (eval $ac_compile) 2>conftest.er1
6056 grep -v '^ *+' conftest.er1
>conftest.err
6058 cat conftest.err
>&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try
='test -z "$ac_c_werror_flag"
6062 || test ! -s conftest.err'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try
='test -s conftest.$ac_objext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 emacs_cv_struct_utimbuf
=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.
$ac_ext >&5
6079 emacs_cv_struct_utimbuf
=no
6081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6083 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6084 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6085 if test $emacs_cv_struct_utimbuf = yes; then
6087 cat >>confdefs.h
<<\_ACEOF
6088 #define HAVE_STRUCT_UTIMBUF 1
6093 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6094 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6095 if test "${ac_cv_type_signal+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 cat >conftest.
$ac_ext <<_ACEOF
6101 cat confdefs.h
>>conftest.
$ac_ext
6102 cat >>conftest.
$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <sys/types.h>
6110 extern "C" void (*signal (int, void (*)(int)))(int);
6112 void (*signal ()) ();
6123 rm -f conftest.
$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6127 grep -v '^ *+' conftest.er1
>conftest.err
6129 cat conftest.err
>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try
='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try
='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_type_signal
=void
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.
$ac_ext >&5
6150 ac_cv_type_signal
=int
6152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6154 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6155 echo "${ECHO_T}$ac_cv_type_signal" >&6
6157 cat >>confdefs.h
<<_ACEOF
6158 #define RETSIGTYPE $ac_cv_type_signal
6163 echo "$as_me:$LINENO: checking for speed_t" >&5
6164 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6165 if test "${emacs_cv_speed_t+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 cat >conftest.
$ac_ext <<_ACEOF
6171 cat confdefs.h
>>conftest.
$ac_ext
6172 cat >>conftest.
$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <termios.h>
6183 rm -f conftest.
$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1
>conftest.err
6189 cat conftest.err
>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try
='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try
='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 emacs_cv_speed_t
=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.
$ac_ext >&5
6212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6215 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6216 if test $emacs_cv_speed_t = yes; then
6218 cat >>confdefs.h
<<\_ACEOF
6219 #define HAVE_SPEED_T 1
6224 echo "$as_me:$LINENO: checking for struct timeval" >&5
6225 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6226 if test "${emacs_cv_struct_timeval+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #ifdef TIME_WITH_SYS_TIME
6236 #include <sys/time.h>
6239 #ifdef HAVE_SYS_TIME_H
6240 #include <sys/time.h>
6248 static struct timeval x; x.tv_sec = x.tv_usec;
6253 rm -f conftest.
$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255 (eval $ac_compile) 2>conftest.er1
6257 grep -v '^ *+' conftest.er1
>conftest.err
6259 cat conftest.err
>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try
='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try
='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 emacs_cv_struct_timeval
=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.
$ac_ext >&5
6280 emacs_cv_struct_timeval
=no
6282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6284 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6285 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6286 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6287 if test $emacs_cv_struct_timeval = yes; then
6289 cat >>confdefs.h
<<\_ACEOF
6290 #define HAVE_TIMEVAL 1
6295 echo "$as_me:$LINENO: checking for struct exception" >&5
6296 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6297 if test "${emacs_cv_struct_exception+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6310 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6315 rm -f conftest.
$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6319 grep -v '^ *+' conftest.er1
>conftest.err
6321 cat conftest.err
>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try
='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try
='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 emacs_cv_struct_exception
=yes
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.
$ac_ext >&5
6342 emacs_cv_struct_exception
=no
6344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6347 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6348 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6349 if test $emacs_cv_struct_exception != yes; then
6351 cat >>confdefs.h
<<\_ACEOF
6352 #define NO_MATHERR 1
6358 for ac_header
in sys
/socket.h
6360 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6370 # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.
$ac_ext <<_ACEOF
6376 cat confdefs.h
>>conftest.
$ac_ext
6377 cat >>conftest.
$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380 #include <$ac_header>
6382 rm -f conftest.
$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1
>conftest.err
6388 cat conftest.err
>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try
='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_header_compiler
=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6409 ac_header_compiler
=no
6411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.
$ac_ext <<_ACEOF
6421 cat confdefs.h
>>conftest.
$ac_ext
6422 cat >>conftest.
$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <$ac_header>
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1
>conftest.err
6431 cat conftest.err
>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev
/null
; then
6434 if test -s conftest.err
; then
6435 ac_cpp_err
=$ac_c_preproc_warn_flag
6436 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6443 if test -z "$ac_cpp_err"; then
6444 ac_header_preproc
=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6449 ac_header_preproc
=no
6451 rm -f conftest.err conftest.
$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc
=yes
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6479 ## ------------------------------------------ ##
6480 ## Report this to the AC_PACKAGE_NAME lists. ##
6481 ## ------------------------------------------ ##
6484 sed "s/^/$as_me: WARNING: /" >&2
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 eval "$as_ac_Header=\$ac_header_preproc"
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h
<<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 for ac_header
in net
/if.h
6510 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 cat >conftest.
$ac_ext <<_ACEOF
6519 cat confdefs.h
>>conftest.
$ac_ext
6520 cat >>conftest.
$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 #if HAVE_SYS_SOCKET_H
6524 #include <sys/socket.h>
6527 #include <$ac_header>
6529 rm -f conftest.
$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1
>conftest.err
6535 cat conftest.err
>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try
='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try
='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_Header=yes"
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.
$ac_ext >&5
6556 eval "$as_ac_Header=no"
6558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h
<<_ACEOF
6564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6572 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6573 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6574 if test "${ac_cv_struct_tm+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 cat >conftest.
$ac_ext <<_ACEOF
6580 cat confdefs.h
>>conftest.
$ac_ext
6581 cat >>conftest.
$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <sys/types.h>
6589 struct tm *tp; tp->tm_sec;
6594 rm -f conftest.
$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try
='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try
='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_struct_tm
=time.h
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 ac_cv_struct_tm
=sys
/time.h
6623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6626 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6627 if test $ac_cv_struct_tm = sys
/time.h
; then
6629 cat >>confdefs.h
<<\_ACEOF
6630 #define TM_IN_SYS_TIME 1
6635 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6636 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6637 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 cat >conftest.
$ac_ext <<_ACEOF
6643 cat confdefs.h
>>conftest.
$ac_ext
6644 cat >>conftest.
$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 #include <sys/types.h>
6647 #include <$ac_cv_struct_tm>
6653 static struct tm ac_aggr;
6654 if (ac_aggr.tm_zone)
6660 rm -f conftest.
$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6664 grep -v '^ *+' conftest.er1
>conftest.err
6666 cat conftest.err
>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try
='test -z "$ac_c_werror_flag"
6670 || test ! -s conftest.err'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; } &&
6676 { ac_try
='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_member_struct_tm_tm_zone
=yes
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.
$ac_ext >&5
6687 cat >conftest.
$ac_ext <<_ACEOF
6690 cat confdefs.h
>>conftest.
$ac_ext
6691 cat >>conftest.
$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 #include <$ac_cv_struct_tm>
6700 static struct tm ac_aggr;
6701 if (sizeof ac_aggr.tm_zone)
6707 rm -f conftest.
$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>conftest.er1
6711 grep -v '^ *+' conftest.er1
>conftest.err
6713 cat conftest.err
>&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try
='test -z "$ac_c_werror_flag"
6717 || test ! -s conftest.err'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try
='test -s conftest.$ac_objext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_member_struct_tm_tm_zone
=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.
$ac_ext >&5
6734 ac_cv_member_struct_tm_tm_zone
=no
6736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6741 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6742 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6744 cat >>confdefs.h
<<_ACEOF
6745 #define HAVE_STRUCT_TM_TM_ZONE 1
6751 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6753 cat >>confdefs.h
<<\_ACEOF
6754 #define HAVE_TM_ZONE 1
6758 echo "$as_me:$LINENO: checking for tzname" >&5
6759 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6760 if test "${ac_cv_var_tzname+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6770 #ifndef tzname /* For SGI. */
6771 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6782 rm -f conftest.
$ac_objext conftest
$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>conftest.er1
6786 grep -v '^ *+' conftest.er1
>conftest.err
6788 cat conftest.err
>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try
='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_var_tzname
=yes
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.
$ac_ext >&5
6811 rm -f conftest.err conftest.
$ac_objext \
6812 conftest
$ac_exeext conftest.
$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6815 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6816 if test $ac_cv_var_tzname = yes; then
6818 cat >>confdefs.h
<<\_ACEOF
6819 #define HAVE_TZNAME 1
6825 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6826 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6827 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 cat >conftest.
$ac_ext <<_ACEOF
6833 cat confdefs.h
>>conftest.
$ac_ext
6834 cat >>conftest.
$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6841 static struct tm ac_aggr;
6842 if (ac_aggr.tm_gmtoff)
6848 rm -f conftest.
$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6852 grep -v '^ *+' conftest.er1
>conftest.err
6854 cat conftest.err
>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try
='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try
='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_cv_member_struct_tm_tm_gmtoff
=yes
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.
$ac_ext >&5
6875 cat >conftest.
$ac_ext <<_ACEOF
6878 cat confdefs.h
>>conftest.
$ac_ext
6879 cat >>conftest.
$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6886 static struct tm ac_aggr;
6887 if (sizeof ac_aggr.tm_gmtoff)
6893 rm -f conftest.
$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1
>conftest.err
6899 cat conftest.err
>&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try
='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try
='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_member_struct_tm_tm_gmtoff
=yes
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.
$ac_ext >&5
6920 ac_cv_member_struct_tm_tm_gmtoff
=no
6922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6928 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6930 cat >>confdefs.h
<<\_ACEOF
6931 #define HAVE_TM_GMTOFF 1
6936 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6937 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6938 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 cat >conftest.
$ac_ext <<_ACEOF
6944 cat confdefs.h
>>conftest.
$ac_ext
6945 cat >>conftest.
$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 #if HAVE_SYS_SOCKET_H
6949 #include <sys/socket.h>
6958 static struct ifreq ac_aggr;
6959 if (ac_aggr.ifr_flags)
6965 rm -f conftest.
$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1
>conftest.err
6971 cat conftest.err
>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try
='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try
='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_member_struct_ifreq_ifr_flags
=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.
$ac_ext >&5
6992 cat >conftest.
$ac_ext <<_ACEOF
6995 cat confdefs.h
>>conftest.
$ac_ext
6996 cat >>conftest.
$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 $ac_includes_default
6999 #if HAVE_SYS_SOCKET_H
7000 #include <sys/socket.h>
7009 static struct ifreq ac_aggr;
7010 if (sizeof ac_aggr.ifr_flags)
7016 rm -f conftest.
$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>conftest.er1
7020 grep -v '^ *+' conftest.er1
>conftest.err
7022 cat conftest.err
>&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try
='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try
='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_member_struct_ifreq_ifr_flags
=yes
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.
$ac_ext >&5
7043 ac_cv_member_struct_ifreq_ifr_flags
=no
7045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7049 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7050 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7051 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7053 cat >>confdefs.h
<<_ACEOF
7054 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7059 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7060 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7061 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 cat >conftest.
$ac_ext <<_ACEOF
7067 cat confdefs.h
>>conftest.
$ac_ext
7068 cat >>conftest.
$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 #if HAVE_SYS_SOCKET_H
7072 #include <sys/socket.h>
7081 static struct ifreq ac_aggr;
7082 if (ac_aggr.ifr_hwaddr)
7088 rm -f conftest.
$ac_objext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>conftest.er1
7092 grep -v '^ *+' conftest.er1
>conftest.err
7094 cat conftest.err
>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try
='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try
='test -s conftest.$ac_objext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.
$ac_ext >&5
7115 cat >conftest.
$ac_ext <<_ACEOF
7118 cat confdefs.h
>>conftest.
$ac_ext
7119 cat >>conftest.
$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 #if HAVE_SYS_SOCKET_H
7123 #include <sys/socket.h>
7132 static struct ifreq ac_aggr;
7133 if (sizeof ac_aggr.ifr_hwaddr)
7139 rm -f conftest.
$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7143 grep -v '^ *+' conftest.er1
>conftest.err
7145 cat conftest.err
>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try
='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try
='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.
$ac_ext >&5
7166 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7173 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7174 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7176 cat >>confdefs.h
<<_ACEOF
7177 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7182 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7183 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7184 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 cat >conftest.
$ac_ext <<_ACEOF
7190 cat confdefs.h
>>conftest.
$ac_ext
7191 cat >>conftest.
$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 #if HAVE_SYS_SOCKET_H
7195 #include <sys/socket.h>
7204 static struct ifreq ac_aggr;
7205 if (ac_aggr.ifr_netmask)
7211 rm -f conftest.
$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1
>conftest.err
7217 cat conftest.err
>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try
='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try
='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7238 cat >conftest.
$ac_ext <<_ACEOF
7241 cat confdefs.h
>>conftest.
$ac_ext
7242 cat >>conftest.
$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 #if HAVE_SYS_SOCKET_H
7246 #include <sys/socket.h>
7255 static struct ifreq ac_aggr;
7256 if (sizeof ac_aggr.ifr_netmask)
7262 rm -f conftest.
$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7266 grep -v '^ *+' conftest.er1
>conftest.err
7268 cat conftest.err
>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try
='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try
='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.
$ac_ext >&5
7289 ac_cv_member_struct_ifreq_ifr_netmask
=no
7291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7296 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7297 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7299 cat >>confdefs.h
<<_ACEOF
7300 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7305 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7306 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7307 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 cat >conftest.
$ac_ext <<_ACEOF
7313 cat confdefs.h
>>conftest.
$ac_ext
7314 cat >>conftest.
$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7317 #if HAVE_SYS_SOCKET_H
7318 #include <sys/socket.h>
7327 static struct ifreq ac_aggr;
7328 if (ac_aggr.ifr_broadaddr)
7334 rm -f conftest.
$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1
>conftest.err
7340 cat conftest.err
>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try
='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try
='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.
$ac_ext >&5
7361 cat >conftest.
$ac_ext <<_ACEOF
7364 cat confdefs.h
>>conftest.
$ac_ext
7365 cat >>conftest.
$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 #if HAVE_SYS_SOCKET_H
7369 #include <sys/socket.h>
7378 static struct ifreq ac_aggr;
7379 if (sizeof ac_aggr.ifr_broadaddr)
7385 rm -f conftest.
$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7389 grep -v '^ *+' conftest.er1
>conftest.err
7391 cat conftest.err
>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try
='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try
='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.
$ac_ext >&5
7412 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7418 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7419 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7420 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7422 cat >>confdefs.h
<<_ACEOF
7423 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7428 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7429 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7430 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.
$ac_ext <<_ACEOF
7436 cat confdefs.h
>>conftest.
$ac_ext
7437 cat >>conftest.
$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #if HAVE_SYS_SOCKET_H
7441 #include <sys/socket.h>
7450 static struct ifreq ac_aggr;
7451 if (ac_aggr.ifr_addr)
7457 rm -f conftest.
$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1
>conftest.err
7463 cat conftest.err
>&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try
='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try
='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_cv_member_struct_ifreq_ifr_addr
=yes
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.
$ac_ext >&5
7484 cat >conftest.
$ac_ext <<_ACEOF
7487 cat confdefs.h
>>conftest.
$ac_ext
7488 cat >>conftest.
$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 #if HAVE_SYS_SOCKET_H
7492 #include <sys/socket.h>
7501 static struct ifreq ac_aggr;
7502 if (sizeof ac_aggr.ifr_addr)
7508 rm -f conftest.
$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>conftest.er1
7512 grep -v '^ *+' conftest.er1
>conftest.err
7514 cat conftest.err
>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try
='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try
='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_member_struct_ifreq_ifr_addr
=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.
$ac_ext >&5
7535 ac_cv_member_struct_ifreq_ifr_addr
=no
7537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7541 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7542 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7543 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7545 cat >>confdefs.h
<<_ACEOF
7546 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7554 echo "$as_me:$LINENO: checking for function prototypes" >&5
7555 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7556 if test "$ac_cv_prog_cc_stdc" != no
; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558 echo "${ECHO_T}yes" >&6
7560 cat >>confdefs.h
<<\_ACEOF
7561 #define PROTOTYPES 1
7565 cat >>confdefs.h
<<\_ACEOF
7566 #define __PROTOTYPES 1
7570 echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7574 echo "$as_me:$LINENO: checking for working volatile" >&5
7575 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7576 if test "${ac_cv_c_volatile+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.
$ac_ext <<_ACEOF
7582 cat confdefs.h
>>conftest.
$ac_ext
7583 cat >>conftest.
$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7596 rm -f conftest.
$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>conftest.er1
7600 grep -v '^ *+' conftest.er1
>conftest.err
7602 cat conftest.err
>&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try
='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try
='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_c_volatile
=yes
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.
$ac_ext >&5
7625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7627 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7628 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7629 if test $ac_cv_c_volatile = no
; then
7631 cat >>confdefs.h
<<\_ACEOF
7637 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7639 if test "${ac_cv_c_const+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 cat >conftest.
$ac_ext <<_ACEOF
7645 cat confdefs.h
>>conftest.
$ac_ext
7646 cat >>conftest.
$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7652 /* FIXME: Include the comments suggested by Paul. */
7654 /* Ultrix mips cc rejects this. */
7655 typedef int charset[2];
7657 /* SunOS 4.1.1 cc rejects this. */
7658 char const *const *ccp;
7660 /* NEC SVR4.0.2 mips cc rejects this. */
7661 struct point {int x, y;};
7662 static struct point const zero = {0,0};
7663 /* AIX XL C 1.02.0.0 rejects this.
7664 It does not let you subtract one const X* pointer from another in
7665 an arm of an if-expression whose if-part is not a constant
7667 const char *g = "string";
7668 ccp = &g + (g ? g-g : 0);
7669 /* HPUX 7.0 cc rejects these. */
7672 ccp = (char const *const *) p;
7673 { /* SCO 3.2v4 cc rejects this. */
7675 char const *s = 0 ? (char *) 0 : (char const *) 0;
7679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7681 const int *foo = &x[0];
7684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7685 typedef const int *iptr;
7689 { /* AIX XL C 1.02.0.0 rejects this saying
7690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7691 struct s { int j; const int *ap[3]; };
7692 struct s *b; b->j = 5;
7694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7703 rm -f conftest.
$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7707 grep -v '^ *+' conftest.er1
>conftest.err
7709 cat conftest.err
>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try
='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try
='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.
$ac_ext >&5
7732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7734 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7735 echo "${ECHO_T}$ac_cv_c_const" >&6
7736 if test $ac_cv_c_const = no
; then
7738 cat >>confdefs.h
<<\_ACEOF
7744 echo "$as_me:$LINENO: checking for void * support" >&5
7745 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7746 if test "${emacs_cv_void_star+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7764 rm -f conftest.
$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1
>conftest.err
7770 cat conftest.err
>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try
='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try
='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 emacs_cv_void_star
=yes
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 emacs_cv_void_star
=no
7793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7795 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7796 echo "${ECHO_T}$emacs_cv_void_star" >&6
7797 if test $emacs_cv_void_star = yes; then
7798 cat >>confdefs.h
<<\_ACEOF
7799 #define POINTER_TYPE void
7803 cat >>confdefs.h
<<\_ACEOF
7804 #define POINTER_TYPE char
7813 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7814 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7815 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7816 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 cat >conftest.
make <<\_ACEOF
7821 @
echo 'ac_maketemp="$(MAKE)"'
7823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7824 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7825 if test -n "$ac_maketemp"; then
7826 eval ac_cv_prog_make_
${ac_make}_set
=yes
7828 eval ac_cv_prog_make_
${ac_make}_set
=no
7832 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7833 echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7837 echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6
7839 SET_MAKE
="MAKE=${MAKE-make}"
7843 echo "$as_me:$LINENO: checking for long file names" >&5
7844 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7845 if test "${ac_cv_sys_long_file_names+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_cv_sys_long_file_names
=yes
7849 # Test for long file names in all the places we know might matter:
7850 # . the current directory, where building will happen
7851 # $prefix/lib where we will be installing things
7852 # $exec_prefix/lib likewise
7853 # eval it to expand exec_prefix.
7854 # $TMPDIR if set, where it might want to write temporary files
7855 # if $TMPDIR is not set:
7856 # /tmp where it might want to write temporary files
7859 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7862 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7864 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7865 test -d $ac_dir ||
continue
7866 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7867 ac_xdir
=$ac_dir/cf$$
7868 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7869 ac_tf1
=$ac_xdir/conftest9012345
7870 ac_tf2
=$ac_xdir/conftest9012346
7871 (echo 1 >$ac_tf1) 2>/dev
/null
7872 (echo 2 >$ac_tf2) 2>/dev
/null
7873 ac_val
=`cat $ac_tf1 2>/dev/null`
7874 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7875 ac_cv_sys_long_file_names
=no
7876 rm -rf $ac_xdir 2>/dev
/null
7879 rm -rf $ac_xdir 2>/dev
/null
7882 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7883 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7884 if test $ac_cv_sys_long_file_names = yes; then
7886 cat >>confdefs.h
<<\_ACEOF
7887 #define HAVE_LONG_FILE_NAMES 1
7893 #### Choose a window system.
7895 echo "$as_me:$LINENO: checking for X" >&5
7896 echo $ECHO_N "checking for X... $ECHO_C" >&6
7899 # Check whether --with-x or --without-x was given.
7900 if test "${with_x+set}" = set; then
7904 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7905 if test "x$with_x" = xno
; then
7906 # The user explicitly disabled X.
7909 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7910 # Both variables are already set.
7913 if test "${ac_cv_have_x+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 # One or both of the vars are not set, and there is no cached value.
7917 ac_x_includes
=no ac_x_libraries
=no
7919 if mkdir conftest.dir
; then
7921 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7922 cat >Imakefile
<<'_ACEOF'
7924 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7926 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7928 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7929 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7930 for ac_extension
in a so sl
; do
7931 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7932 test -f $ac_im_libdir/libX11.
$ac_extension; then
7933 ac_im_usrlibdir
=$ac_im_libdir; break
7936 # Screen out bogus values from the imake configuration. They are
7937 # bogus both because they are the default anyway, and because
7938 # using them would break gcc on systems where it needs fixed includes.
7939 case $ac_im_incroot in
7941 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7943 case $ac_im_usrlibdir in
7945 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7952 # Standard set of common directories for X headers.
7953 # Check X11 before X11Rn because it is often a symlink to the current release.
7965 /usr/local/X11/include
7966 /usr/local/X11R6/include
7967 /usr/local/X11R5/include
7968 /usr/local/X11R4/include
7970 /usr/local/include/X11
7971 /usr/local/include/X11R6
7972 /usr/local/include/X11R5
7973 /usr/local/include/X11R4
7977 /usr/XFree86/include/X11
7981 /usr/unsupported/include
7983 /usr/local/x11r5/include
7984 /usr/lpp/Xamples/include
7986 /usr/openwin/include
7987 /usr/openwin/share/include'
7989 if test "$ac_x_includes" = no
; then
7990 # Guess where to find include files, by looking for Intrinsic.h.
7991 # First, try using that file with no special directory specified.
7992 cat >conftest.
$ac_ext <<_ACEOF
7995 cat confdefs.h
>>conftest.
$ac_ext
7996 cat >>conftest.
$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <X11/Intrinsic.h>
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8003 grep -v '^ *+' conftest.er1
>conftest.err
8005 cat conftest.err
>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev
/null
; then
8008 if test -s conftest.err
; then
8009 ac_cpp_err
=$ac_c_preproc_warn_flag
8010 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8017 if test -z "$ac_cpp_err"; then
8018 # We can compile using X headers with no special include directory.
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.
$ac_ext >&5
8024 for ac_dir
in $ac_x_header_dirs; do
8025 if test -r "$ac_dir/X11/Intrinsic.h"; then
8026 ac_x_includes
=$ac_dir
8031 rm -f conftest.err conftest.
$ac_ext
8032 fi # $ac_x_includes = no
8034 if test "$ac_x_libraries" = no
; then
8035 # Check for the libraries.
8036 # See if we find them without any special options.
8037 # Don't add to $LIBS permanently.
8040 cat >conftest.
$ac_ext <<_ACEOF
8043 cat confdefs.h
>>conftest.
$ac_ext
8044 cat >>conftest.
$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <X11/Intrinsic.h>
8055 rm -f conftest.
$ac_objext conftest
$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057 (eval $ac_link) 2>conftest.er1
8059 grep -v '^ *+' conftest.er1
>conftest.err
8061 cat conftest.err
>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try
='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try
='test -s conftest$ac_exeext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8078 # We can link X programs with no special library path.
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.
$ac_ext >&5
8085 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8087 # Don't even attempt the hair of trying to link an X program!
8088 for ac_extension
in a so sl
; do
8089 if test -r $ac_dir/libXt.
$ac_extension; then
8090 ac_x_libraries
=$ac_dir
8096 rm -f conftest.err conftest.
$ac_objext \
8097 conftest
$ac_exeext conftest.
$ac_ext
8098 fi # $ac_x_libraries = no
8100 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8101 # Didn't find X anywhere. Cache the known absence of X.
8102 ac_cv_have_x
="have_x=no"
8104 # Record where we found X for the cache.
8105 ac_cv_have_x
="have_x=yes \
8106 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8111 eval "$ac_cv_have_x"
8114 if test "$have_x" != yes; then
8115 echo "$as_me:$LINENO: result: $have_x" >&5
8116 echo "${ECHO_T}$have_x" >&6
8119 # If each of the values was on the command line, it overrides each guess.
8120 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8121 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8122 # Update the cache value to reflect the command line values.
8123 ac_cv_have_x
="have_x=yes \
8124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8125 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8126 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8129 if test "$no_x" = yes; then
8135 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8136 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8137 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8138 x_default_search_path
=""
8139 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8141 ${x_library}/X11/%L/%T/%N%C%S:\
8142 ${x_library}/X11/%l/%T/%N%C%S:\
8143 ${x_library}/X11/%T/%N%C%S:\
8144 ${x_library}/X11/%L/%T/%N%S:\
8145 ${x_library}/X11/%l/%T/%N%S:\
8146 ${x_library}/X11/%T/%N%S"
8147 if test x
"${x_default_search_path}" = x
; then
8148 x_default_search_path
=${x_search_path}
8150 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8154 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8155 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8158 if test x
"${x_includes}" = x
; then
8159 bitmapdir
=/usr
/include
/X11
/bitmaps
8161 # accumulate include directories that have X11 bitmap subdirectories
8163 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8164 if test -d "${bmd}/X11/bitmaps"; then
8165 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8167 if test -d "${bmd}/bitmaps"; then
8168 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8171 if test ${bmd_acc} != "dummyval"; then
8172 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8176 case "${window_system}" in
8180 case "${with_x_toolkit}" in
8181 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8182 motif
) USE_X_TOOLKIT
=MOTIF
;;
8184 USE_X_TOOLKIT
=none
;;
8185 no
) USE_X_TOOLKIT
=none
;;
8186 * ) USE_X_TOOLKIT
=maybe
;;
8196 ### If we're using X11, we should use the X menu package.
8199 yes ) HAVE_MENUS
=yes ;;
8202 if test "${opsys}" = "hpux9"; then
8203 case "${x_libraries}" in
8205 opsysfile
="s/hpux9-x11r4.h"
8210 if test "${opsys}" = "hpux9shr"; then
8211 case "${x_libraries}" in
8213 opsysfile
="s/hpux9shxr4.h"
8219 if test "${HAVE_X11}" != "yes"; then
8220 if test "${with_carbon}" != "no"; then
8221 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8222 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8223 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8224 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8228 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8230 # Is the header compilable?
8231 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8232 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8233 cat >conftest.
$ac_ext <<_ACEOF
8236 cat confdefs.h
>>conftest.
$ac_ext
8237 cat >>conftest.
$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 #include <Carbon/Carbon.h>
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_header_compiler
=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_header_compiler
=no
8271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8273 echo "${ECHO_T}$ac_header_compiler" >&6
8275 # Is the header present?
8276 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8277 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8278 cat >conftest.
$ac_ext <<_ACEOF
8281 cat confdefs.h
>>conftest.
$ac_ext
8282 cat >>conftest.
$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 #include <Carbon/Carbon.h>
8286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1
>conftest.err
8291 cat conftest.err
>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } >/dev
/null
; then
8294 if test -s conftest.err
; then
8295 ac_cpp_err
=$ac_c_preproc_warn_flag
8296 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8303 if test -z "$ac_cpp_err"; then
8304 ac_header_preproc
=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.
$ac_ext >&5
8309 ac_header_preproc
=no
8311 rm -f conftest.err conftest.
$ac_ext
8312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8313 echo "${ECHO_T}$ac_header_preproc" >&6
8315 # So? What about this header?
8316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8318 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8319 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8320 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8321 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8322 ac_header_preproc
=yes
8325 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8326 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8328 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8330 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8331 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8332 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8334 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8336 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8339 ## ------------------------------------------ ##
8340 ## Report this to the AC_PACKAGE_NAME lists. ##
8341 ## ------------------------------------------ ##
8344 sed "s/^/$as_me: WARNING: /" >&2
8347 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8348 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8349 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8354 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8355 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8358 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8366 ### Compute the unexec source name from the object name.
8367 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8369 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8370 # Assume not, until told otherwise.
8373 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8374 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8375 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.
$ac_ext <<_ACEOF
8381 cat confdefs.h
>>conftest.
$ac_ext
8382 cat >>conftest.
$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8386 #define malloc_get_state innocuous_malloc_get_state
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char malloc_get_state (); below.
8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 <limits.h> exists even on freestanding compilers. */
8394 # include <limits.h>
8396 # include <assert.h>
8399 #undef malloc_get_state
8401 /* Override any gcc2 internal prototype to avoid an error. */
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8408 char malloc_get_state ();
8409 /* The GNU C library defines this for functions which it implements
8410 to always fail with ENOSYS. Some functions are actually named
8411 something starting with __ and the normal name is an alias. */
8412 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8415 char (*f) () = malloc_get_state;
8424 return f != malloc_get_state;
8429 rm -f conftest.
$ac_objext conftest
$ac_exeext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431 (eval $ac_link) 2>conftest.er1
8433 grep -v '^ *+' conftest.er1
>conftest.err
8435 cat conftest.err
>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try
='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try
='test -s conftest$ac_exeext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_cv_func_malloc_get_state
=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.
$ac_ext >&5
8456 ac_cv_func_malloc_get_state
=no
8458 rm -f conftest.err conftest.
$ac_objext \
8459 conftest
$ac_exeext conftest.
$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8462 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8463 if test $ac_cv_func_malloc_get_state = yes; then
8469 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8470 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8471 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 cat >conftest.
$ac_ext <<_ACEOF
8477 cat confdefs.h
>>conftest.
$ac_ext
8478 cat >>conftest.
$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8482 #define malloc_set_state innocuous_malloc_set_state
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char malloc_set_state (); below.
8486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487 <limits.h> exists even on freestanding compilers. */
8490 # include <limits.h>
8492 # include <assert.h>
8495 #undef malloc_set_state
8497 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char malloc_set_state ();
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8511 char (*f) () = malloc_set_state;
8520 return f != malloc_set_state;
8525 rm -f conftest.
$ac_objext conftest
$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1
>conftest.err
8531 cat conftest.err
>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try
='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try
='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_func_malloc_set_state
=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.
$ac_ext >&5
8552 ac_cv_func_malloc_set_state
=no
8554 rm -f conftest.err conftest.
$ac_objext \
8555 conftest
$ac_exeext conftest.
$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8558 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8559 if test $ac_cv_func_malloc_set_state = yes; then
8565 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8566 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8567 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 cat >conftest.
$ac_ext <<_ACEOF
8573 cat confdefs.h
>>conftest.
$ac_ext
8574 cat >>conftest.
$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 extern void (* __after_morecore_hook)();
8580 __after_morecore_hook = 0
8585 rm -f conftest.
$ac_objext conftest
$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try
='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try
='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 emacs_cv_var___after_morecore_hook
=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8612 emacs_cv_var___after_morecore_hook
=no
8614 rm -f conftest.err conftest.
$ac_objext \
8615 conftest
$ac_exeext conftest.
$ac_ext
8617 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8618 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8619 if test $emacs_cv_var___after_morecore_hook = no
; then
8622 if test "${system_malloc}" = "yes"; then
8625 (The GNU allocators don't work with this system configuration.)"
8627 if test "$doug_lea_malloc" = "yes" ; then
8628 if test "$GNU_MALLOC" = yes ; then
8630 (Using Doug Lea's new malloc from the GNU C Library.)"
8633 cat >>confdefs.h
<<\_ACEOF
8634 #define DOUG_LEA_MALLOC 1
8639 if test x
"${REL_ALLOC}" = x
; then
8640 REL_ALLOC
=${GNU_MALLOC}
8646 for ac_header
in stdlib.h unistd.h
8648 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8650 echo "$as_me:$LINENO: checking for $ac_header" >&5
8651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8658 # Is the header compilable?
8659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8661 cat >conftest.
$ac_ext <<_ACEOF
8664 cat confdefs.h
>>conftest.
$ac_ext
8665 cat >>conftest.
$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #include <$ac_header>
8670 rm -f conftest.
$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>conftest.er1
8674 grep -v '^ *+' conftest.er1
>conftest.err
8676 cat conftest.err
>&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try
='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try
='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_header_compiler
=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.
$ac_ext >&5
8697 ac_header_compiler
=no
8699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8701 echo "${ECHO_T}$ac_header_compiler" >&6
8703 # Is the header present?
8704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8706 cat >conftest.
$ac_ext <<_ACEOF
8709 cat confdefs.h
>>conftest.
$ac_ext
8710 cat >>conftest.
$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 #include <$ac_header>
8714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8717 grep -v '^ *+' conftest.er1
>conftest.err
8719 cat conftest.err
>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } >/dev
/null
; then
8722 if test -s conftest.err
; then
8723 ac_cpp_err
=$ac_c_preproc_warn_flag
8724 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8731 if test -z "$ac_cpp_err"; then
8732 ac_header_preproc
=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8737 ac_header_preproc
=no
8739 rm -f conftest.err conftest.
$ac_ext
8740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8741 echo "${ECHO_T}$ac_header_preproc" >&6
8743 # So? What about this header?
8744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8750 ac_header_preproc
=yes
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8767 ## ------------------------------------------ ##
8768 ## Report this to the AC_PACKAGE_NAME lists. ##
8769 ## ------------------------------------------ ##
8772 sed "s/^/$as_me: WARNING: /" >&2
8775 echo "$as_me:$LINENO: checking for $ac_header" >&5
8776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 eval "$as_ac_Header=\$ac_header_preproc"
8782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8787 cat >>confdefs.h
<<_ACEOF
8788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796 for ac_func
in getpagesize
8798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 echo "$as_me:$LINENO: checking for $ac_func" >&5
8800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_var+set}\" = set"; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.
$ac_ext <<_ACEOF
8807 cat confdefs.h
>>conftest.
$ac_ext
8808 cat >>conftest.
$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8812 #define $ac_func innocuous_$ac_func
8814 /* System header to define __stub macros and hopefully few prototypes,
8815 which can conflict with char $ac_func (); below.
8816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8817 <limits.h> exists even on freestanding compilers. */
8820 # include <limits.h>
8822 # include <assert.h>
8827 /* Override any gcc2 internal prototype to avoid an error. */
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8835 /* The GNU C library defines this for functions which it implements
8836 to always fail with ENOSYS. Some functions are actually named
8837 something starting with __ and the normal name is an alias. */
8838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8841 char (*f) () = $ac_func;
8850 return f != $ac_func;
8855 rm -f conftest.
$ac_objext conftest
$ac_exeext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857 (eval $ac_link) 2>conftest.er1
8859 grep -v '^ *+' conftest.er1
>conftest.err
8861 cat conftest.err
>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try
='test -z "$ac_c_werror_flag"
8865 || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try
='test -s conftest$ac_exeext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 eval "$as_ac_var=yes"
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.
$ac_ext >&5
8882 eval "$as_ac_var=no"
8884 rm -f conftest.err conftest.
$ac_objext \
8885 conftest
$ac_exeext conftest.
$ac_ext
8887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8889 if test `eval echo '${'$as_ac_var'}'` = yes; then
8890 cat >>confdefs.h
<<_ACEOF
8891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8897 echo "$as_me:$LINENO: checking for working mmap" >&5
8898 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8899 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 if test "$cross_compiling" = yes; then
8903 ac_cv_func_mmap_fixed_mapped
=no
8905 cat >conftest.
$ac_ext <<_ACEOF
8908 cat confdefs.h
>>conftest.
$ac_ext
8909 cat >>conftest.
$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 $ac_includes_default
8912 /* malloc might have been renamed as rpl_malloc. */
8915 /* Thanks to Mike Haertel and Jim Avera for this test.
8916 Here is a matrix of mmap possibilities:
8917 mmap private not fixed
8918 mmap private fixed at somewhere currently unmapped
8919 mmap private fixed at somewhere already mapped
8920 mmap shared not fixed
8921 mmap shared fixed at somewhere currently unmapped
8922 mmap shared fixed at somewhere already mapped
8923 For private mappings, we should verify that changes cannot be read()
8924 back from the file, nor mmap's back from the file at a different
8925 address. (There have been systems where private was not correctly
8926 implemented like the infamous i386 svr4.0, and systems where the
8927 VM page cache was not coherent with the file system buffer cache
8928 like early versions of FreeBSD and possibly contemporary NetBSD.)
8929 For shared mappings, we should conversely verify that changes get
8930 propagated back to all the places they're supposed to be.
8932 Grep wants private fixed already mapped.
8933 The main things grep needs to know about mmap are:
8934 * does it exist and is it safe to write into the mmap'd area
8935 * how to use it (BSD variants) */
8938 #include <sys/mman.h>
8940 #if !STDC_HEADERS && !HAVE_STDLIB_H
8944 /* This mess was copied from the GNU getpagesize.h. */
8945 #if !HAVE_GETPAGESIZE
8946 /* Assume that all systems that can run configure have sys/param.h. */
8947 # if !HAVE_SYS_PARAM_H
8948 # define HAVE_SYS_PARAM_H 1
8951 # ifdef _SC_PAGESIZE
8952 # define getpagesize() sysconf(_SC_PAGESIZE)
8953 # else /* no _SC_PAGESIZE */
8954 # if HAVE_SYS_PARAM_H
8955 # include <sys/param.h>
8956 # ifdef EXEC_PAGESIZE
8957 # define getpagesize() EXEC_PAGESIZE
8958 # else /* no EXEC_PAGESIZE */
8960 # define getpagesize() NBPG * CLSIZE
8963 # endif /* no CLSIZE */
8964 # else /* no NBPG */
8966 # define getpagesize() NBPC
8967 # else /* no NBPC */
8969 # define getpagesize() PAGESIZE
8970 # endif /* PAGESIZE */
8971 # endif /* no NBPC */
8972 # endif /* no NBPG */
8973 # endif /* no EXEC_PAGESIZE */
8974 # else /* no HAVE_SYS_PARAM_H */
8975 # define getpagesize() 8192 /* punt totally */
8976 # endif /* no HAVE_SYS_PARAM_H */
8977 # endif /* no _SC_PAGESIZE */
8979 #endif /* no HAVE_GETPAGESIZE */
8984 char *data, *data2, *data3;
8988 pagesize = getpagesize ();
8990 /* First, make a file with some known garbage in it. */
8991 data = (char *) malloc (pagesize);
8994 for (i = 0; i < pagesize; ++i)
8995 *(data + i) = rand ();
8997 fd = creat ("conftest.mmap", 0600);
9000 if (write (fd, data, pagesize) != pagesize)
9004 /* Next, try to mmap the file at a fixed address which already has
9005 something else allocated at it. If we can, also make sure that
9006 we see the same garbage. */
9007 fd = open ("conftest.mmap", O_RDWR);
9010 data2 = (char *) malloc (2 * pagesize);
9013 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9017 for (i = 0; i < pagesize; ++i)
9018 if (*(data + i) != *(data2 + i))
9021 /* Finally, make sure that changes to the mapped area do not
9022 percolate back to the file as seen by read(). (This is a bug on
9023 some variants of i386 svr4.0.) */
9024 for (i = 0; i < pagesize; ++i)
9025 *(data2 + i) = *(data2 + i) + 1;
9026 data3 = (char *) malloc (pagesize);
9029 if (read (fd, data3, pagesize) != pagesize)
9031 for (i = 0; i < pagesize; ++i)
9032 if (*(data + i) != *(data3 + i))
9038 rm -f conftest
$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_func_mmap_fixed_mapped
=yes
9051 echo "$as_me: program exited with status $ac_status" >&5
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.
$ac_ext >&5
9056 ac_cv_func_mmap_fixed_mapped
=no
9058 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9061 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9062 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9063 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9065 cat >>confdefs.h
<<\_ACEOF
9072 if test $use_mmap_for_buffers = yes; then
9076 LIBS
="$libsrc_libs $LIBS"
9079 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9080 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9081 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 ac_check_lib_save_LIBS
=$LIBS
9086 cat >conftest.
$ac_ext <<_ACEOF
9089 cat confdefs.h
>>conftest.
$ac_ext
9090 cat >>conftest.
$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9108 rm -f conftest.
$ac_objext conftest
$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9112 grep -v '^ *+' conftest.er1
>conftest.err
9114 cat conftest.err
>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try
='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try
='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_lib_dnet_dnet_ntoa
=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.
$ac_ext >&5
9135 ac_cv_lib_dnet_dnet_ntoa
=no
9137 rm -f conftest.err conftest.
$ac_objext \
9138 conftest
$ac_exeext conftest.
$ac_ext
9139 LIBS
=$ac_check_lib_save_LIBS
9141 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9142 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9143 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9144 cat >>confdefs.h
<<_ACEOF
9145 #define HAVE_LIBDNET 1
9153 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9154 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9155 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 ac_check_lib_save_LIBS
=$LIBS
9160 cat >conftest.
$ac_ext <<_ACEOF
9163 cat confdefs.h
>>conftest.
$ac_ext
9164 cat >>conftest.
$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9176 rm -f conftest.
$ac_objext conftest
$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178 (eval $ac_link) 2>conftest.er1
9180 grep -v '^ *+' conftest.er1
>conftest.err
9182 cat conftest.err
>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try
='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try
='test -s conftest$ac_exeext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_lib_Xbsd_main
=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.
$ac_ext >&5
9203 ac_cv_lib_Xbsd_main
=no
9205 rm -f conftest.err conftest.
$ac_objext \
9206 conftest
$ac_exeext conftest.
$ac_ext
9207 LIBS
=$ac_check_lib_save_LIBS
9209 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9210 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9211 if test $ac_cv_lib_Xbsd_main = yes; then
9212 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9217 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9218 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9219 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 ac_check_lib_save_LIBS
=$LIBS
9223 LIBS
="-lpthreads $LIBS"
9224 cat >conftest.
$ac_ext <<_ACEOF
9227 cat confdefs.h
>>conftest.
$ac_ext
9228 cat >>conftest.
$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9231 /* Override any gcc2 internal prototype to avoid an error. */
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9246 rm -f conftest.
$ac_objext conftest
$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9250 grep -v '^ *+' conftest.er1
>conftest.err
9252 cat conftest.err
>&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try
='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try
='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_lib_pthreads_cma_open
=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.
$ac_ext >&5
9273 ac_cv_lib_pthreads_cma_open
=no
9275 rm -f conftest.err conftest.
$ac_objext \
9276 conftest
$ac_exeext conftest.
$ac_ext
9277 LIBS
=$ac_check_lib_save_LIBS
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9280 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9281 if test $ac_cv_lib_pthreads_cma_open = yes; then
9282 cat >>confdefs.h
<<_ACEOF
9283 #define HAVE_LIBPTHREADS 1
9286 LIBS
="-lpthreads $LIBS"
9291 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9292 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9293 if test -d /usr
/X386
/include
; then
9295 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9299 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9300 echo "${ECHO_T}$HAVE_XFREE386" >&6
9305 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9306 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9307 if test "${gdb_cv_bigtoc+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9313 *) gdb_cv_bigtoc
=-bbigtoc ;;
9316 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9317 cat >conftest.
$ac_ext <<_ACEOF
9320 cat confdefs.h
>>conftest.
$ac_ext
9321 cat >>conftest.
$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9332 rm -f conftest.
$ac_objext conftest
$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>conftest.er1
9336 grep -v '^ *+' conftest.er1
>conftest.err
9338 cat conftest.err
>&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try
='test -z "$ac_c_werror_flag"
9342 || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try
='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.
$ac_ext >&5
9361 rm -f conftest.err conftest.
$ac_objext \
9362 conftest
$ac_exeext conftest.
$ac_ext
9365 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9366 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9370 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9371 # used for the tests that follow. We set them back to REAL_CFLAGS and
9372 # REAL_CPPFLAGS later on.
9374 REAL_CPPFLAGS
="$CPPFLAGS"
9376 if test "${HAVE_X11}" = "yes"; then
9377 DEFS
="$C_SWITCH_X_SITE $DEFS"
9378 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9380 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9381 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9383 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9384 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9385 # but it's more convenient here to set LD_RUN_PATH
9386 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9387 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9388 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9392 if test "${opsys}" = "gnu-linux"; then
9393 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9394 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9395 cat >conftest.
$ac_ext <<_ACEOF
9398 cat confdefs.h
>>conftest.
$ac_ext
9399 cat >>conftest.
$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9405 XOpenDisplay ("foo");
9410 rm -f conftest.
$ac_objext conftest
$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9414 grep -v '^ *+' conftest.er1
>conftest.err
9416 cat conftest.err
>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try
='test -z "$ac_c_werror_flag"
9420 || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try
='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 xlinux_first_failure
=no
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.
$ac_ext >&5
9437 xlinux_first_failure
=yes
9439 rm -f conftest.err conftest.
$ac_objext \
9440 conftest
$ac_exeext conftest.
$ac_ext
9441 if test "${xlinux_first_failure}" = "yes"; then
9442 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9443 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9444 OLD_CPPFLAGS
="$CPPFLAGS"
9446 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9447 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9448 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9449 LIBS
="$LIBS -b i486-linuxaout"
9450 cat >conftest.
$ac_ext <<_ACEOF
9453 cat confdefs.h
>>conftest.
$ac_ext
9454 cat >>conftest.
$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9460 XOpenDisplay ("foo");
9465 rm -f conftest.
$ac_objext conftest
$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9469 grep -v '^ *+' conftest.er1
>conftest.err
9471 cat conftest.err
>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try
='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try
='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 xlinux_second_failure
=no
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.
$ac_ext >&5
9492 xlinux_second_failure
=yes
9494 rm -f conftest.err conftest.
$ac_objext \
9495 conftest
$ac_exeext conftest.
$ac_ext
9496 if test "${xlinux_second_failure}" = "yes"; then
9497 # If we get the same failure with -b, there is no use adding -b.
9498 # So take it out. This plays safe.
9499 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9500 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9501 CPPFLAGS
="$OLD_CPPFLAGS"
9503 echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9506 echo "$as_me:$LINENO: result: yes" >&5
9507 echo "${ECHO_T}yes" >&6
9510 echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9515 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9516 # header files included from there.
9517 echo "$as_me:$LINENO: checking for Xkb" >&5
9518 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9519 cat >conftest.
$ac_ext <<_ACEOF
9522 cat confdefs.h
>>conftest.
$ac_ext
9523 cat >>conftest.
$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 #include <X11/Xlib.h>
9526 #include <X11/XKBlib.h>
9530 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9535 rm -f conftest.
$ac_objext conftest
$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try
='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try
='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.
$ac_ext >&5
9564 rm -f conftest.err conftest.
$ac_objext \
9565 conftest
$ac_exeext conftest.
$ac_ext
9566 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9567 echo "${ECHO_T}$emacs_xkb" >&6
9568 if test $emacs_xkb = yes; then
9570 cat >>confdefs.h
<<\_ACEOF
9571 #define HAVE_XKBGETKEYBOARD 1
9580 for ac_func
in XrmSetDatabase XScreenResourceString \
9581 XScreenNumberOfScreen XSetWMProtocols
9583 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9584 echo "$as_me:$LINENO: checking for $ac_func" >&5
9585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9586 if eval "test \"\${$as_ac_var+set}\" = set"; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 cat >conftest.
$ac_ext <<_ACEOF
9592 cat confdefs.h
>>conftest.
$ac_ext
9593 cat >>conftest.
$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9597 #define $ac_func innocuous_$ac_func
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char $ac_func (); below.
9601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 <limits.h> exists even on freestanding compilers. */
9605 # include <limits.h>
9607 # include <assert.h>
9612 /* Override any gcc2 internal prototype to avoid an error. */
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9620 /* The GNU C library defines this for functions which it implements
9621 to always fail with ENOSYS. Some functions are actually named
9622 something starting with __ and the normal name is an alias. */
9623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9626 char (*f) () = $ac_func;
9635 return f != $ac_func;
9640 rm -f conftest.
$ac_objext conftest
$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>conftest.er1
9644 grep -v '^ *+' conftest.er1
>conftest.err
9646 cat conftest.err
>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try
='test -z "$ac_c_werror_flag"
9650 || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try
='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 eval "$as_ac_var=yes"
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.
$ac_ext >&5
9667 eval "$as_ac_var=no"
9669 rm -f conftest.err conftest.
$ac_objext \
9670 conftest
$ac_exeext conftest.
$ac_ext
9672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9674 if test `eval echo '${'$as_ac_var'}'` = yes; then
9675 cat >>confdefs.h
<<_ACEOF
9676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9684 if test "${window_system}" = "x11"; then
9685 echo "$as_me:$LINENO: checking X11 version 6" >&5
9686 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9687 if test "${emacs_cv_x11_version_6+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.
$ac_ext <<_ACEOF
9693 cat confdefs.h
>>conftest.
$ac_ext
9694 cat >>conftest.
$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 #include <X11/Xlib.h>
9700 #if XlibSpecificationRelease < 6
9708 rm -f conftest.
$ac_objext conftest
$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1
>conftest.err
9714 cat conftest.err
>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try
='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try
='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 emacs_cv_x11_version_6
=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.
$ac_ext >&5
9735 emacs_cv_x11_version_6
=no
9737 rm -f conftest.err conftest.
$ac_objext \
9738 conftest
$ac_exeext conftest.
$ac_ext
9741 if test $emacs_cv_x11_version_6 = yes; then
9742 echo "$as_me:$LINENO: result: 6 or newer" >&5
9743 echo "${ECHO_T}6 or newer" >&6
9745 cat >>confdefs.h
<<\_ACEOF
9746 #define HAVE_X11R6 1
9750 echo "$as_me:$LINENO: result: before 6" >&5
9751 echo "${ECHO_T}before 6" >&6
9755 if test "${window_system}" = "x11"; then
9756 echo "$as_me:$LINENO: checking X11 version 5" >&5
9757 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9758 if test "${emacs_cv_x11_version_5+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 cat >conftest.
$ac_ext <<_ACEOF
9764 cat confdefs.h
>>conftest.
$ac_ext
9765 cat >>conftest.
$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 #include <X11/Xlib.h>
9771 #if XlibSpecificationRelease < 5
9779 rm -f conftest.
$ac_objext conftest
$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1
>conftest.err
9785 cat conftest.err
>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try
='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try
='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 emacs_cv_x11_version_5
=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.
$ac_ext >&5
9806 emacs_cv_x11_version_5
=no
9808 rm -f conftest.err conftest.
$ac_objext \
9809 conftest
$ac_exeext conftest.
$ac_ext
9812 if test $emacs_cv_x11_version_5 = yes; then
9813 echo "$as_me:$LINENO: result: 5 or newer" >&5
9814 echo "${ECHO_T}5 or newer" >&6
9817 cat >>confdefs.h
<<\_ACEOF
9818 #define HAVE_X11R5 1
9823 echo "$as_me:$LINENO: result: before 5" >&5
9824 echo "${ECHO_T}before 5" >&6
9831 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9832 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9833 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9834 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9835 { (exit 1); exit 1; }; };
9839 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9841 if test "X${with_pkg_config_prog}" != X
; then
9842 PKG_CONFIG
="${with_pkg_config_prog}"
9847 if test -z "$PKG_CONFIG"; then
9848 # Extract the first word of "pkg-config", so it can be a program name with args.
9849 set dummy pkg-config
; ac_word
=$2
9850 echo "$as_me:$LINENO: checking for $ac_word" >&5
9851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9864 test -z "$as_dir" && as_dir
=.
9865 for ac_exec_ext
in '' $ac_executable_extensions; do
9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9878 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9880 if test -n "$PKG_CONFIG"; then
9881 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9882 echo "${ECHO_T}$PKG_CONFIG" >&6
9884 echo "$as_me:$LINENO: result: no" >&5
9885 echo "${ECHO_T}no" >&6
9890 if test "$PKG_CONFIG" = "no" ; then
9891 echo "*** The pkg-config script could not be found. Make sure it is"
9892 echo "*** in your path, or give the full path to pkg-config with"
9893 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9894 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9896 PKG_CONFIG_MIN_VERSION
=0.9.0
9897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9898 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9899 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9901 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9902 echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6
9906 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9907 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9908 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9909 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9910 echo "${ECHO_T}$GTK_CFLAGS" >&6
9912 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9913 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9914 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9915 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9916 echo "${ECHO_T}$GTK_LIBS" >&6
9920 ## If we have a custom action on failure, don't print errors, but
9921 ## do set a variable so people can do so.
9922 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9923 echo $GTK_PKG_ERRORS
9929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9934 if test $succeeded = yes; then
9937 { { 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
9938 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;}
9939 { (exit 1); exit 1; }; }
9944 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9945 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9946 LIBS
="$GTK_LIBS $LIBS"
9949 cat >>confdefs.h
<<\_ACEOF
9955 if test "$with_toolkit_scroll_bars" != no
; then
9956 with_toolkit_scroll_bars
=yes
9959 HAVE_GTK_MULTIDISPLAY
=no
9961 for ac_func
in gdk_display_open
9963 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9966 if eval "test \"\${$as_ac_var+set}\" = set"; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.
$ac_ext <<_ACEOF
9972 cat confdefs.h
>>conftest.
$ac_ext
9973 cat >>conftest.
$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9985 # include <limits.h>
9987 # include <assert.h>
9992 /* Override any gcc2 internal prototype to avoid an error. */
9997 /* We use char because int might match the return type of a gcc2
9998 builtin and then its argument prototype would still apply. */
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10006 char (*f) () = $ac_func;
10015 return f != $ac_func;
10020 rm -f conftest.
$ac_objext conftest
$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10024 grep -v '^ *+' conftest.er1
>conftest.err
10026 cat conftest.err
>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try
='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try
='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 eval "$as_ac_var=yes"
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.
$ac_ext >&5
10047 eval "$as_ac_var=no"
10049 rm -f conftest.err conftest.
$ac_objext \
10050 conftest
$ac_exeext conftest.
$ac_ext
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10054 if test `eval echo '${'$as_ac_var'}'` = yes; then
10055 cat >>confdefs.h
<<_ACEOF
10056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10058 HAVE_GTK_MULTIDISPLAY
=yes
10062 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10064 cat >>confdefs.h
<<\_ACEOF
10065 #define HAVE_GTK_MULTIDISPLAY 1
10069 HAVE_GTK_FILE_SELECTION
=no
10071 for ac_func
in gtk_file_selection_new
10073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_var+set}\" = set"; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 cat >conftest.
$ac_ext <<_ACEOF
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087 #define $ac_func innocuous_$ac_func
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10095 # include <limits.h>
10097 # include <assert.h>
10102 /* Override any gcc2 internal prototype to avoid an error. */
10107 /* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10116 char (*f) () = $ac_func;
10125 return f != $ac_func;
10130 rm -f conftest.
$ac_objext conftest
$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10134 grep -v '^ *+' conftest.er1
>conftest.err
10136 cat conftest.err
>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try
='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try
='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 eval "$as_ac_var=yes"
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.
$ac_ext >&5
10157 eval "$as_ac_var=no"
10159 rm -f conftest.err conftest.
$ac_objext \
10160 conftest
$ac_exeext conftest.
$ac_ext
10162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10164 if test `eval echo '${'$as_ac_var'}'` = yes; then
10165 cat >>confdefs.h
<<_ACEOF
10166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10168 HAVE_GTK_FILE_SELECTION
=yes
10173 HAVE_GTK_FILE_CHOOSER
=no
10175 for ac_func
in gtk_file_chooser_dialog_new
10177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10178 echo "$as_me:$LINENO: checking for $ac_func" >&5
10179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_var+set}\" = set"; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10191 #define $ac_func innocuous_$ac_func
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func (); below.
10195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10196 <limits.h> exists even on freestanding compilers. */
10199 # include <limits.h>
10201 # include <assert.h>
10206 /* Override any gcc2 internal prototype to avoid an error. */
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10220 char (*f) () = $ac_func;
10229 return f != $ac_func;
10234 rm -f conftest.
$ac_objext conftest
$ac_exeext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236 (eval $ac_link) 2>conftest.er1
10238 grep -v '^ *+' conftest.er1
>conftest.err
10240 cat conftest.err
>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try
='test -z "$ac_c_werror_flag"
10244 || test ! -s conftest.err'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try
='test -s conftest$ac_exeext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 eval "$as_ac_var=yes"
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.
$ac_ext >&5
10261 eval "$as_ac_var=no"
10263 rm -f conftest.err conftest.
$ac_objext \
10264 conftest
$ac_exeext conftest.
$ac_ext
10266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10268 if test `eval echo '${'$as_ac_var'}'` = yes; then
10269 cat >>confdefs.h
<<_ACEOF
10270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10272 HAVE_GTK_FILE_CHOOSER
=yes
10277 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10278 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10280 cat >>confdefs.h
<<\_ACEOF
10281 #define HAVE_GTK_FILE_BOTH 1
10286 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10287 HAVE_GTK_AND_PTHREAD
=no
10289 for ac_header
in pthread.h
10291 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10293 echo "$as_me:$LINENO: checking for $ac_header" >&5
10294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10301 # Is the header compilable?
10302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10311 #include <$ac_header>
10313 rm -f conftest.
$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>conftest.er1
10317 grep -v '^ *+' conftest.er1
>conftest.err
10319 cat conftest.err
>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try
='test -z "$ac_c_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try
='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_header_compiler
=yes
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.
$ac_ext >&5
10340 ac_header_compiler
=no
10342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10344 echo "${ECHO_T}$ac_header_compiler" >&6
10346 # Is the header present?
10347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10349 cat >conftest.
$ac_ext <<_ACEOF
10352 cat confdefs.h
>>conftest.
$ac_ext
10353 cat >>conftest.
$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <$ac_header>
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10360 grep -v '^ *+' conftest.er1
>conftest.err
10362 cat conftest.err
>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev
/null
; then
10365 if test -s conftest.err
; then
10366 ac_cpp_err
=$ac_c_preproc_warn_flag
10367 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10374 if test -z "$ac_cpp_err"; then
10375 ac_header_preproc
=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.
$ac_ext >&5
10380 ac_header_preproc
=no
10382 rm -f conftest.err conftest.
$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10384 echo "${ECHO_T}$ac_header_preproc" >&6
10386 # So? What about this header?
10387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10393 ac_header_preproc
=yes
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10410 ## ------------------------------------------ ##
10411 ## Report this to the AC_PACKAGE_NAME lists. ##
10412 ## ------------------------------------------ ##
10415 sed "s/^/$as_me: WARNING: /" >&2
10418 echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 eval "$as_ac_Header=\$ac_header_preproc"
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10430 cat >>confdefs.h
<<_ACEOF
10431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438 if test "$ac_cv_header_pthread_h"; then
10439 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10440 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10441 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 ac_check_lib_save_LIBS
=$LIBS
10445 LIBS
="-lpthread $LIBS"
10446 cat >conftest.
$ac_ext <<_ACEOF
10449 cat confdefs.h
>>conftest.
$ac_ext
10450 cat >>conftest.
$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10453 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10459 char pthread_self ();
10468 rm -f conftest.
$ac_objext conftest
$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>conftest.er1
10472 grep -v '^ *+' conftest.er1
>conftest.err
10474 cat conftest.err
>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try
='test -z "$ac_c_werror_flag"
10478 || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try
='test -s conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_lib_pthread_pthread_self
=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.
$ac_ext >&5
10495 ac_cv_lib_pthread_pthread_self
=no
10497 rm -f conftest.err conftest.
$ac_objext \
10498 conftest
$ac_exeext conftest.
$ac_ext
10499 LIBS
=$ac_check_lib_save_LIBS
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10502 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10503 if test $ac_cv_lib_pthread_pthread_self = yes; then
10504 HAVE_GTK_AND_PTHREAD
=yes
10508 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10509 GTK_LIBS
="$GTK_LIBS -lpthread"
10511 cat >>confdefs.h
<<\_ACEOF
10512 #define HAVE_GTK_AND_PTHREAD 1
10519 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10520 if test x
"${HAVE_X11R5}" = xyes
; then
10521 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10522 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10523 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 cat >conftest.
$ac_ext <<_ACEOF
10529 cat confdefs.h
>>conftest.
$ac_ext
10530 cat >>conftest.
$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 #include <X11/Intrinsic.h>
10534 #include <X11/Xaw/Simple.h>
10543 rm -f conftest.
$ac_objext conftest
$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1
>conftest.err
10549 cat conftest.err
>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try
='test -z "$ac_c_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try
='test -s conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 emacs_cv_x11_version_5_with_xaw
=yes
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.
$ac_ext >&5
10570 emacs_cv_x11_version_5_with_xaw
=no
10572 rm -f conftest.err conftest.
$ac_objext \
10573 conftest
$ac_exeext conftest.
$ac_ext
10576 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10577 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10578 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10579 USE_X_TOOLKIT
=LUCID
10581 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10582 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10590 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10592 if test "${USE_X_TOOLKIT}" != "none"; then
10593 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10594 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10595 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.
$ac_ext <<_ACEOF
10601 cat confdefs.h
>>conftest.
$ac_ext
10602 cat >>conftest.
$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <X11/Intrinsic.h>
10608 #if XtSpecificationRelease < 6
10616 rm -f conftest.
$ac_objext conftest
$ac_exeext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>conftest.er1
10620 grep -v '^ *+' conftest.er1
>conftest.err
10622 cat conftest.err
>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try
='test -z "$ac_c_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try
='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 emacs_cv_x11_toolkit_version_6
=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.
$ac_ext >&5
10643 emacs_cv_x11_toolkit_version_6
=no
10645 rm -f conftest.err conftest.
$ac_objext \
10646 conftest
$ac_exeext conftest.
$ac_ext
10649 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10650 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10651 echo "$as_me:$LINENO: result: 6 or newer" >&5
10652 echo "${ECHO_T}6 or newer" >&6
10654 cat >>confdefs.h
<<\_ACEOF
10655 #define HAVE_X11XTR6 1
10659 echo "$as_me:$LINENO: result: before 6" >&5
10660 echo "${ECHO_T}before 6" >&6
10664 if test x
$HAVE_X11XTR6 = xyes
; then
10665 LIBS
="-lXt -lSM -lICE $LIBS"
10670 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10671 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10672 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_check_lib_save_LIBS
=$LIBS
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10690 char XmuConvertStandardSelection ();
10694 XmuConvertStandardSelection ();
10699 rm -f conftest.
$ac_objext conftest
$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1
>conftest.err
10705 cat conftest.err
>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try
='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try
='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.
$ac_ext >&5
10726 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10728 rm -f conftest.err conftest.
$ac_objext \
10729 conftest
$ac_exeext conftest.
$ac_ext
10730 LIBS
=$ac_check_lib_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10733 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10734 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10735 cat >>confdefs.h
<<_ACEOF
10736 #define HAVE_LIBXMU 1
10743 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10746 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10747 if test "${HAVE_X11}" = "yes"; then
10748 if test "${USE_X_TOOLKIT}" != "none"; then
10750 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10751 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10752 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 ac_check_lib_save_LIBS
=$LIBS
10756 LIBS
="-lXext $LIBS"
10757 cat >conftest.
$ac_ext <<_ACEOF
10760 cat confdefs.h
>>conftest.
$ac_ext
10761 cat >>conftest.
$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10764 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char XShapeQueryExtension ();
10774 XShapeQueryExtension ();
10779 rm -f conftest.
$ac_objext conftest
$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10783 grep -v '^ *+' conftest.er1
>conftest.err
10785 cat conftest.err
>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try
='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try
='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10806 ac_cv_lib_Xext_XShapeQueryExtension
=no
10808 rm -f conftest.err conftest.
$ac_objext \
10809 conftest
$ac_exeext conftest.
$ac_ext
10810 LIBS
=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10813 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10814 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10815 cat >>confdefs.h
<<_ACEOF
10816 #define HAVE_LIBXEXT 1
10819 LIBS
="-lXext $LIBS"
10826 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10827 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10828 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10829 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.
$ac_ext <<_ACEOF
10835 cat confdefs.h
>>conftest.
$ac_ext
10836 cat >>conftest.
$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10842 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10845 Motif version prior to 2.1.
10851 rm -f conftest.
$ac_objext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>conftest.er1
10855 grep -v '^ *+' conftest.er1
>conftest.err
10857 cat conftest.err
>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try
='test -z "$ac_c_werror_flag"
10861 || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try
='test -s conftest.$ac_objext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 emacs_cv_motif_version_2_1
=yes
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.
$ac_ext >&5
10878 emacs_cv_motif_version_2_1
=no
10880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10882 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10883 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10884 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10885 if test $emacs_cv_motif_version_2_1 = yes; then
10888 cat >>confdefs.h
<<\_ACEOF
10889 #define HAVE_MOTIF_2_1 1
10892 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10893 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10894 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 ac_check_lib_save_LIBS
=$LIBS
10899 cat >conftest.
$ac_ext <<_ACEOF
10902 cat confdefs.h
>>conftest.
$ac_ext
10903 cat >>conftest.
$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char XpCreateContext ();
10916 XpCreateContext ();
10921 rm -f conftest.
$ac_objext conftest
$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1
>conftest.err
10927 cat conftest.err
>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try
='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try
='test -s conftest$ac_exeext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_cv_lib_Xp_XpCreateContext
=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.
$ac_ext >&5
10948 ac_cv_lib_Xp_XpCreateContext
=no
10950 rm -f conftest.err conftest.
$ac_objext \
10951 conftest
$ac_exeext conftest.
$ac_ext
10952 LIBS
=$ac_check_lib_save_LIBS
10954 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10955 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10956 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10960 if test ${HAVE_LIBXP} = yes; then
10962 cat >>confdefs.h
<<\_ACEOF
10963 #define HAVE_LIBXP 1
10968 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10969 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10970 if test "${emacs_cv_lesstif+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 # We put this in CFLAGS temporarily to precede other -I options
10974 # that might be in CFLAGS temporarily.
10975 # We put this in CPPFLAGS where it precedes the other -I options.
10976 OLD_CPPFLAGS
=$CPPFLAGS
10978 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10979 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10980 cat >conftest.
$ac_ext <<_ACEOF
10983 cat confdefs.h
>>conftest.
$ac_ext
10984 cat >>conftest.
$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10995 rm -f conftest.
$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>conftest.er1
10999 grep -v '^ *+' conftest.er1
>conftest.err
11001 cat conftest.err
>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try
='test -z "$ac_c_werror_flag"
11005 || test ! -s conftest.err'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try
='test -s conftest.$ac_objext'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 emacs_cv_lesstif
=yes
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.
$ac_ext >&5
11022 emacs_cv_lesstif
=no
11024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11026 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11027 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11028 if test $emacs_cv_lesstif = yes; then
11029 # Make sure this -I option remains in CPPFLAGS after it is set
11030 # back to REAL_CPPFLAGS.
11031 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11032 # have those other -I options anyway. Ultimately, having this
11033 # directory ultimately in CPPFLAGS will be enough.
11034 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11035 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11038 CPPFLAGS
=$OLD_CPPFLAGS
11043 ### Is -lXaw3d available?
11045 if test "${HAVE_X11}" = "yes"; then
11046 if test "${USE_X_TOOLKIT}" != "none"; then
11047 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11048 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11049 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 cat >conftest.
$ac_ext <<_ACEOF
11055 cat confdefs.h
>>conftest.
$ac_ext
11056 cat >>conftest.
$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 #include <X11/Xaw3d/Scrollbar.h>
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11063 grep -v '^ *+' conftest.er1
>conftest.err
11065 cat conftest.err
>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev
/null
; then
11068 if test -s conftest.err
; then
11069 ac_cpp_err
=$ac_c_preproc_warn_flag
11070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11077 if test -z "$ac_cpp_err"; then
11078 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.
$ac_ext >&5
11083 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11085 rm -f conftest.err conftest.
$ac_ext
11087 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11088 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11089 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11090 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11091 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11092 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 ac_check_lib_save_LIBS
=$LIBS
11096 LIBS
="-lXaw3d $LIBS"
11097 cat >conftest.
$ac_ext <<_ACEOF
11100 cat confdefs.h
>>conftest.
$ac_ext
11101 cat >>conftest.
$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11104 /* Override any gcc2 internal prototype to avoid an error. */
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110 char XawScrollbarSetThumb ();
11114 XawScrollbarSetThumb ();
11119 rm -f conftest.
$ac_objext conftest
$ac_exeext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try
='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try
='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.
$ac_ext >&5
11146 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11148 rm -f conftest.err conftest.
$ac_objext \
11149 conftest
$ac_exeext conftest.
$ac_ext
11150 LIBS
=$ac_check_lib_save_LIBS
11152 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11153 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11154 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11161 if test "${HAVE_XAW3D}" = "yes"; then
11163 cat >>confdefs.h
<<\_ACEOF
11164 #define HAVE_XAW3D 1
11173 USE_TOOLKIT_SCROLL_BARS
=no
11174 if test "${with_toolkit_scroll_bars}" != "no"; then
11175 if test "${USE_X_TOOLKIT}" != "none"; then
11176 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11177 cat >>confdefs.h
<<\_ACEOF
11178 #define USE_TOOLKIT_SCROLL_BARS 1
11182 USE_TOOLKIT_SCROLL_BARS
=yes
11183 elif test "${HAVE_XAW3D}" = "yes"; then
11184 cat >>confdefs.h
<<\_ACEOF
11185 #define USE_TOOLKIT_SCROLL_BARS 1
11188 USE_TOOLKIT_SCROLL_BARS
=yes
11190 elif test "${HAVE_GTK}" = "yes"; then
11191 cat >>confdefs.h
<<\_ACEOF
11192 #define USE_TOOLKIT_SCROLL_BARS 1
11195 USE_TOOLKIT_SCROLL_BARS
=yes
11196 elif test "${HAVE_CARBON}" = "yes"; then
11197 cat >>confdefs.h
<<\_ACEOF
11198 #define USE_TOOLKIT_SCROLL_BARS 1
11201 USE_TOOLKIT_SCROLL_BARS
=yes
11205 cat >conftest.
$ac_ext <<_ACEOF
11208 cat confdefs.h
>>conftest.
$ac_ext
11209 cat >>conftest.
$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11212 #include <X11/Xlib.h>
11213 #include <X11/Xresource.h>
11222 rm -f conftest.
$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>conftest.er1
11226 grep -v '^ *+' conftest.er1
>conftest.err
11228 cat conftest.err
>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try
='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try
='test -s conftest.$ac_objext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11246 cat >>confdefs.h
<<\_ACEOF
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.
$ac_ext >&5
11256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11259 if test "${with_xim}" != "no"; then
11261 cat >>confdefs.h
<<\_ACEOF
11268 if test "${HAVE_XIM}" != "no"; then
11269 late_CFLAGS
=$CFLAGS
11270 if test "$GCC" = yes; then
11271 CFLAGS
="$CFLAGS --pedantic-errors"
11273 cat >conftest.
$ac_ext <<_ACEOF
11276 cat confdefs.h
>>conftest.
$ac_ext
11277 cat >>conftest.
$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11280 #include <X11/Xlib.h>
11281 #include <X11/Xresource.h>
11290 XPointer *client_data;
11292 /* If we're not using GCC, it's probably not XFree86, and this is
11293 probably right, but we can't use something like --pedantic-errors. */
11294 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11295 char*, XIMProc, XPointer*);
11297 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11303 rm -f conftest.
$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1
>conftest.err
11309 cat conftest.err
>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try
='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try
='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 emacs_cv_arg6_star
=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.
$ac_ext >&5
11331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11333 if test "$emacs_cv_arg6_star" = yes; then
11334 cat >>confdefs.h
<<\_ACEOF
11335 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11339 cat >>confdefs.h
<<\_ACEOF
11340 #define XRegisterIMInstantiateCallback_arg6 XPointer
11344 CFLAGS
=$late_CFLAGS
11347 ### Use -lXpm if available, unless `--with-xpm=no'.
11349 if test "${HAVE_X11}" = "yes"; then
11350 if test "${with_xpm}" != "no"; then
11351 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11352 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11353 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11354 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11360 # Is the header compilable?
11361 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11362 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11363 cat >conftest.
$ac_ext <<_ACEOF
11366 cat confdefs.h
>>conftest.
$ac_ext
11367 cat >>conftest.
$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 $ac_includes_default
11370 #include <X11/xpm.h>
11372 rm -f conftest.
$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>conftest.er1
11376 grep -v '^ *+' conftest.er1
>conftest.err
11378 cat conftest.err
>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try
='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try
='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_header_compiler
=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.
$ac_ext >&5
11399 ac_header_compiler
=no
11401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 echo "${ECHO_T}$ac_header_compiler" >&6
11405 # Is the header present?
11406 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11407 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11408 cat >conftest.
$ac_ext <<_ACEOF
11411 cat confdefs.h
>>conftest.
$ac_ext
11412 cat >>conftest.
$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 #include <X11/xpm.h>
11416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11419 grep -v '^ *+' conftest.er1
>conftest.err
11421 cat conftest.err
>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev
/null
; then
11424 if test -s conftest.err
; then
11425 ac_cpp_err
=$ac_c_preproc_warn_flag
11426 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11433 if test -z "$ac_cpp_err"; then
11434 ac_header_preproc
=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.
$ac_ext >&5
11439 ac_header_preproc
=no
11441 rm -f conftest.err conftest.
$ac_ext
11442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "${ECHO_T}$ac_header_preproc" >&6
11445 # So? What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11451 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11452 ac_header_preproc
=yes
11455 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11456 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11458 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11460 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11462 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11466 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11469 ## ------------------------------------------ ##
11470 ## Report this to the AC_PACKAGE_NAME lists. ##
11471 ## ------------------------------------------ ##
11474 sed "s/^/$as_me: WARNING: /" >&2
11477 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11478 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11479 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11484 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11485 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11488 if test $ac_cv_header_X11_xpm_h = yes; then
11489 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11490 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11491 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 ac_check_lib_save_LIBS
=$LIBS
11495 LIBS
="-lXpm -lX11 $LIBS"
11496 cat >conftest.
$ac_ext <<_ACEOF
11499 cat confdefs.h
>>conftest.
$ac_ext
11500 cat >>conftest.
$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 /* Override any gcc2 internal prototype to avoid an error. */
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char XpmReadFileToPixmap ();
11513 XpmReadFileToPixmap ();
11518 rm -f conftest.
$ac_objext conftest
$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try
='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try
='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.
$ac_ext >&5
11545 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11547 rm -f conftest.err conftest.
$ac_objext \
11548 conftest
$ac_exeext conftest.
$ac_ext
11549 LIBS
=$ac_check_lib_save_LIBS
11551 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11552 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11553 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11560 if test "${HAVE_XPM}" = "yes"; then
11561 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11562 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11563 cat >conftest.
$ac_ext <<_ACEOF
11566 cat confdefs.h
>>conftest.
$ac_ext
11567 cat >>conftest.
$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include "X11/xpm.h"
11570 #ifndef XpmReturnAllocPixels
11571 no_return_alloc_pixels
11575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11576 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11584 if test "${HAVE_XPM}" = "yes"; then
11585 echo "$as_me:$LINENO: result: yes" >&5
11586 echo "${ECHO_T}yes" >&6
11588 echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6
11594 if test "${HAVE_XPM}" = "yes"; then
11596 cat >>confdefs.h
<<\_ACEOF
11603 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11605 if test "${HAVE_X11}" = "yes"; then
11606 if test "${with_jpeg}" != "no"; then
11607 if test "${ac_cv_header_jerror_h+set}" = set; then
11608 echo "$as_me:$LINENO: checking for jerror.h" >&5
11609 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11610 if test "${ac_cv_header_jerror_h+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11614 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11616 # Is the header compilable?
11617 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11618 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11619 cat >conftest.
$ac_ext <<_ACEOF
11622 cat confdefs.h
>>conftest.
$ac_ext
11623 cat >>conftest.
$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11626 #include <jerror.h>
11628 rm -f conftest.
$ac_objext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630 (eval $ac_compile) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1
>conftest.err
11634 cat conftest.err
>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try
='test -z "$ac_c_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try
='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_header_compiler
=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.
$ac_ext >&5
11655 ac_header_compiler
=no
11657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11659 echo "${ECHO_T}$ac_header_compiler" >&6
11661 # Is the header present?
11662 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11663 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11664 cat >conftest.
$ac_ext <<_ACEOF
11667 cat confdefs.h
>>conftest.
$ac_ext
11668 cat >>conftest.
$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 #include <jerror.h>
11672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11673 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11675 grep -v '^ *+' conftest.er1
>conftest.err
11677 cat conftest.err
>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev
/null
; then
11680 if test -s conftest.err
; then
11681 ac_cpp_err
=$ac_c_preproc_warn_flag
11682 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11689 if test -z "$ac_cpp_err"; then
11690 ac_header_preproc
=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.
$ac_ext >&5
11695 ac_header_preproc
=no
11697 rm -f conftest.err conftest.
$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc
=yes
11711 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11725 ## ------------------------------------------ ##
11726 ## Report this to the AC_PACKAGE_NAME lists. ##
11727 ## ------------------------------------------ ##
11730 sed "s/^/$as_me: WARNING: /" >&2
11733 echo "$as_me:$LINENO: checking for jerror.h" >&5
11734 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11735 if test "${ac_cv_header_jerror_h+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 ac_cv_header_jerror_h
=$ac_header_preproc
11740 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11741 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11744 if test $ac_cv_header_jerror_h = yes; then
11745 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11746 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11747 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 ac_check_lib_save_LIBS
=$LIBS
11751 LIBS
="-ljpeg $LIBS"
11752 cat >conftest.
$ac_ext <<_ACEOF
11755 cat confdefs.h
>>conftest.
$ac_ext
11756 cat >>conftest.
$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11759 /* Override any gcc2 internal prototype to avoid an error. */
11763 /* We use char because int might match the return type of a gcc2
11764 builtin and then its argument prototype would still apply. */
11765 char jpeg_destroy_compress ();
11769 jpeg_destroy_compress ();
11774 rm -f conftest.
$ac_objext conftest
$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>conftest.er1
11778 grep -v '^ *+' conftest.er1
>conftest.err
11780 cat conftest.err
>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try
='test -z "$ac_c_werror_flag"
11784 || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try
='test -s conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.
$ac_ext >&5
11801 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11803 rm -f conftest.err conftest.
$ac_objext \
11804 conftest
$ac_exeext conftest.
$ac_ext
11805 LIBS
=$ac_check_lib_save_LIBS
11807 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11808 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11809 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11819 if test "${HAVE_JPEG}" = "yes"; then
11820 cat >>confdefs.h
<<\_ACEOF
11821 #define HAVE_JPEG 1
11824 cat >conftest.
$ac_ext <<_ACEOF
11827 cat confdefs.h
>>conftest.
$ac_ext
11828 cat >>conftest.
$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <jpeglib.h>
11831 version=JPEG_LIB_VERSION
11834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11835 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11836 cat >>confdefs.h
<<\_ACEOF
11837 #define HAVE_JPEG 1
11841 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11842 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11850 ### Use -lpng if available, unless `--with-png=no'.
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_png}" != "no"; then
11854 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11855 # in /usr/include/libpng.
11858 for ac_header
in png.h libpng
/png.h
11860 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11862 echo "$as_me:$LINENO: checking for $ac_header" >&5
11863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11870 # Is the header compilable?
11871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11873 cat >conftest.
$ac_ext <<_ACEOF
11876 cat confdefs.h
>>conftest.
$ac_ext
11877 cat >>conftest.
$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 $ac_includes_default
11880 #include <$ac_header>
11882 rm -f conftest.
$ac_objext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884 (eval $ac_compile) 2>conftest.er1
11886 grep -v '^ *+' conftest.er1
>conftest.err
11888 cat conftest.err
>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try
='test -z "$ac_c_werror_flag"
11892 || test ! -s conftest.err'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try
='test -s conftest.$ac_objext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_header_compiler
=yes
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.
$ac_ext >&5
11909 ac_header_compiler
=no
11911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11913 echo "${ECHO_T}$ac_header_compiler" >&6
11915 # Is the header present?
11916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11918 cat >conftest.
$ac_ext <<_ACEOF
11921 cat confdefs.h
>>conftest.
$ac_ext
11922 cat >>conftest.
$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 #include <$ac_header>
11926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11929 grep -v '^ *+' conftest.er1
>conftest.err
11931 cat conftest.err
>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } >/dev
/null
; then
11934 if test -s conftest.err
; then
11935 ac_cpp_err
=$ac_c_preproc_warn_flag
11936 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11943 if test -z "$ac_cpp_err"; then
11944 ac_header_preproc
=yes
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.
$ac_ext >&5
11949 ac_header_preproc
=no
11951 rm -f conftest.err conftest.
$ac_ext
11952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953 echo "${ECHO_T}$ac_header_preproc" >&6
11955 # So? What about this header?
11956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962 ac_header_preproc
=yes
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11979 ## ------------------------------------------ ##
11980 ## Report this to the AC_PACKAGE_NAME lists. ##
11981 ## ------------------------------------------ ##
11984 sed "s/^/$as_me: WARNING: /" >&2
11987 echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 eval "$as_ac_Header=\$ac_header_preproc"
11994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11999 cat >>confdefs.h
<<_ACEOF
12000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12007 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12008 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12009 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12010 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_check_lib_save_LIBS
=$LIBS
12014 LIBS
="-lpng -lz -lm $LIBS"
12015 cat >conftest.
$ac_ext <<_ACEOF
12018 cat confdefs.h
>>conftest.
$ac_ext
12019 cat >>conftest.
$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12028 char png_get_channels ();
12032 png_get_channels ();
12037 rm -f conftest.
$ac_objext conftest
$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1
>conftest.err
12043 cat conftest.err
>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try
='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try
='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_lib_png_png_get_channels
=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.
$ac_ext >&5
12064 ac_cv_lib_png_png_get_channels
=no
12066 rm -f conftest.err conftest.
$ac_objext \
12067 conftest
$ac_exeext conftest.
$ac_ext
12068 LIBS
=$ac_check_lib_save_LIBS
12070 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12071 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12072 if test $ac_cv_lib_png_png_get_channels = yes; then
12079 if test "${HAVE_PNG}" = "yes"; then
12081 cat >>confdefs.h
<<\_ACEOF
12088 ### Use -ltiff if available, unless `--with-tiff=no'.
12090 if test "${HAVE_X11}" = "yes"; then
12091 if test "${with_tiff}" != "no"; then
12092 if test "${ac_cv_header_tiffio_h+set}" = set; then
12093 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12094 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12095 if test "${ac_cv_header_tiffio_h+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12099 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12101 # Is the header compilable?
12102 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12103 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12104 cat >conftest.
$ac_ext <<_ACEOF
12107 cat confdefs.h
>>conftest.
$ac_ext
12108 cat >>conftest.
$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12111 #include <tiffio.h>
12113 rm -f conftest.
$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>conftest.er1
12117 grep -v '^ *+' conftest.er1
>conftest.err
12119 cat conftest.err
>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try
='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try
='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_header_compiler
=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.
$ac_ext >&5
12140 ac_header_compiler
=no
12142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12144 echo "${ECHO_T}$ac_header_compiler" >&6
12146 # Is the header present?
12147 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12148 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12149 cat >conftest.
$ac_ext <<_ACEOF
12152 cat confdefs.h
>>conftest.
$ac_ext
12153 cat >>conftest.
$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <tiffio.h>
12157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12158 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12160 grep -v '^ *+' conftest.er1
>conftest.err
12162 cat conftest.err
>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } >/dev
/null
; then
12165 if test -s conftest.err
; then
12166 ac_cpp_err
=$ac_c_preproc_warn_flag
12167 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12174 if test -z "$ac_cpp_err"; then
12175 ac_header_preproc
=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.
$ac_ext >&5
12180 ac_header_preproc
=no
12182 rm -f conftest.err conftest.
$ac_ext
12183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12184 echo "${ECHO_T}$ac_header_preproc" >&6
12186 # So? What about this header?
12187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12189 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12190 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12192 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12193 ac_header_preproc
=yes
12196 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12197 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12199 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12201 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12203 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12205 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12207 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12210 ## ------------------------------------------ ##
12211 ## Report this to the AC_PACKAGE_NAME lists. ##
12212 ## ------------------------------------------ ##
12215 sed "s/^/$as_me: WARNING: /" >&2
12218 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12219 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12220 if test "${ac_cv_header_tiffio_h+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 ac_cv_header_tiffio_h
=$ac_header_preproc
12225 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12226 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12229 if test $ac_cv_header_tiffio_h = yes; then
12231 # At least one tiff package requires the jpeg library.
12232 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12233 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12234 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12235 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 ac_check_lib_save_LIBS
=$LIBS
12239 LIBS
="-ltiff $tifflibs $LIBS"
12240 cat >conftest.
$ac_ext <<_ACEOF
12243 cat confdefs.h
>>conftest.
$ac_ext
12244 cat >>conftest.
$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 /* Override any gcc2 internal prototype to avoid an error. */
12251 /* We use char because int might match the return type of a gcc2
12252 builtin and then its argument prototype would still apply. */
12253 char TIFFGetVersion ();
12262 rm -f conftest.
$ac_objext conftest
$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>conftest.er1
12266 grep -v '^ *+' conftest.er1
>conftest.err
12268 cat conftest.err
>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try
='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try
='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_tiff_TIFFGetVersion
=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.
$ac_ext >&5
12289 ac_cv_lib_tiff_TIFFGetVersion
=no
12291 rm -f conftest.err conftest.
$ac_objext \
12292 conftest
$ac_exeext conftest.
$ac_ext
12293 LIBS
=$ac_check_lib_save_LIBS
12295 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12296 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12297 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12306 if test "${HAVE_TIFF}" = "yes"; then
12308 cat >>confdefs.h
<<\_ACEOF
12309 #define HAVE_TIFF 1
12315 ### Use -lgif if available, unless `--with-gif=no'.
12317 if test "${HAVE_X11}" = "yes"; then
12318 if test "${with_gif}" != "no"; then
12319 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12320 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12321 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12326 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12328 # Is the header compilable?
12329 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12330 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12331 cat >conftest.
$ac_ext <<_ACEOF
12334 cat confdefs.h
>>conftest.
$ac_ext
12335 cat >>conftest.
$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338 #include <gif_lib.h>
12340 rm -f conftest.
$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12344 grep -v '^ *+' conftest.er1
>conftest.err
12346 cat conftest.err
>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try
='test -z "$ac_c_werror_flag"
12350 || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try
='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_header_compiler
=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.
$ac_ext >&5
12367 ac_header_compiler
=no
12369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12371 echo "${ECHO_T}$ac_header_compiler" >&6
12373 # Is the header present?
12374 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12375 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12376 cat >conftest.
$ac_ext <<_ACEOF
12379 cat confdefs.h
>>conftest.
$ac_ext
12380 cat >>conftest.
$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #include <gif_lib.h>
12384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12387 grep -v '^ *+' conftest.er1
>conftest.err
12389 cat conftest.err
>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } >/dev
/null
; then
12392 if test -s conftest.err
; then
12393 ac_cpp_err
=$ac_c_preproc_warn_flag
12394 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12401 if test -z "$ac_cpp_err"; then
12402 ac_header_preproc
=yes
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.
$ac_ext >&5
12407 ac_header_preproc
=no
12409 rm -f conftest.err conftest.
$ac_ext
12410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12411 echo "${ECHO_T}$ac_header_preproc" >&6
12413 # So? What about this header?
12414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12416 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12417 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12418 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12419 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12420 ac_header_preproc
=yes
12423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12424 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12426 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12428 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12430 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12432 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12434 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12437 ## ------------------------------------------ ##
12438 ## Report this to the AC_PACKAGE_NAME lists. ##
12439 ## ------------------------------------------ ##
12442 sed "s/^/$as_me: WARNING: /" >&2
12445 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12446 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12447 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 ac_cv_header_gif_lib_h
=$ac_header_preproc
12452 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12453 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12456 if test $ac_cv_header_gif_lib_h = yes; then
12457 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12458 # Earlier versions can crash Emacs.
12459 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12460 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12461 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 ac_check_lib_save_LIBS
=$LIBS
12465 LIBS
="-lungif $LIBS"
12466 cat >conftest.
$ac_ext <<_ACEOF
12469 cat confdefs.h
>>conftest.
$ac_ext
12470 cat >>conftest.
$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12473 /* Override any gcc2 internal prototype to avoid an error. */
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char EGifPutExtensionLast ();
12483 EGifPutExtensionLast ();
12488 rm -f conftest.
$ac_objext conftest
$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490 (eval $ac_link) 2>conftest.er1
12492 grep -v '^ *+' conftest.er1
>conftest.err
12494 cat conftest.err
>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try
='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try
='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.
$ac_ext >&5
12515 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12517 rm -f conftest.err conftest.
$ac_objext \
12518 conftest
$ac_exeext conftest.
$ac_ext
12519 LIBS
=$ac_check_lib_save_LIBS
12521 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12522 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12523 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12532 if test "${HAVE_GIF}" = "yes"; then
12534 cat >>confdefs.h
<<\_ACEOF
12541 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12542 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12543 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12544 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12548 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12550 # Is the header compilable?
12551 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12552 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12553 cat >conftest.
$ac_ext <<_ACEOF
12556 cat confdefs.h
>>conftest.
$ac_ext
12557 cat >>conftest.
$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 $ac_includes_default
12560 #include <malloc/malloc.h>
12562 rm -f conftest.
$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1
>conftest.err
12568 cat conftest.err
>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try
='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try
='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 ac_header_compiler
=yes
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.
$ac_ext >&5
12589 ac_header_compiler
=no
12591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 echo "${ECHO_T}$ac_header_compiler" >&6
12595 # Is the header present?
12596 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12597 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12598 cat >conftest.
$ac_ext <<_ACEOF
12601 cat confdefs.h
>>conftest.
$ac_ext
12602 cat >>conftest.
$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <malloc/malloc.h>
12606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12609 grep -v '^ *+' conftest.er1
>conftest.err
12611 cat conftest.err
>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } >/dev
/null
; then
12614 if test -s conftest.err
; then
12615 ac_cpp_err
=$ac_c_preproc_warn_flag
12616 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12623 if test -z "$ac_cpp_err"; then
12624 ac_header_preproc
=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 ac_header_preproc
=no
12631 rm -f conftest.err conftest.
$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12633 echo "${ECHO_T}$ac_header_preproc" >&6
12635 # So? What about this header?
12636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12641 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12642 ac_header_preproc
=yes
12645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12646 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12648 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12650 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12652 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12654 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12656 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12659 ## ------------------------------------------ ##
12660 ## Report this to the AC_PACKAGE_NAME lists. ##
12661 ## ------------------------------------------ ##
12664 sed "s/^/$as_me: WARNING: /" >&2
12667 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12668 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12669 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12674 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12675 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12678 if test $ac_cv_header_malloc_malloc_h = yes; then
12680 cat >>confdefs.h
<<\_ACEOF
12681 #define HAVE_MALLOC_MALLOC_H 1
12688 ### Use Mac OS X Carbon API to implement GUI.
12689 if test "${HAVE_CARBON}" = "yes"; then
12691 cat >>confdefs.h
<<\_ACEOF
12692 #define HAVE_CARBON 1
12696 ## Specify the install directory
12698 if test "${carbon_appdir_x}" != ""; then
12699 case ${carbon_appdir_x} in
12700 y | ye |
yes) carbon_appdir
=/Applications
;;
12701 * ) carbon_appdir
=${carbon_appdir_x} ;;
12704 # We also have mouse menus.
12708 ### Use session management (-lSM -lICE) if available
12710 if test "${HAVE_X11}" = "yes"; then
12711 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12712 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12713 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12714 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12718 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12720 # Is the header compilable?
12721 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12722 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12723 cat >conftest.
$ac_ext <<_ACEOF
12726 cat confdefs.h
>>conftest.
$ac_ext
12727 cat >>conftest.
$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 $ac_includes_default
12730 #include <X11/SM/SMlib.h>
12732 rm -f conftest.
$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12736 grep -v '^ *+' conftest.er1
>conftest.err
12738 cat conftest.err
>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try
='test -z "$ac_c_werror_flag"
12742 || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try
='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_header_compiler
=yes
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.
$ac_ext >&5
12759 ac_header_compiler
=no
12761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12763 echo "${ECHO_T}$ac_header_compiler" >&6
12765 # Is the header present?
12766 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12767 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12768 cat >conftest.
$ac_ext <<_ACEOF
12771 cat confdefs.h
>>conftest.
$ac_ext
12772 cat >>conftest.
$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 #include <X11/SM/SMlib.h>
12776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12779 grep -v '^ *+' conftest.er1
>conftest.err
12781 cat conftest.err
>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev
/null
; then
12784 if test -s conftest.err
; then
12785 ac_cpp_err
=$ac_c_preproc_warn_flag
12786 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12793 if test -z "$ac_cpp_err"; then
12794 ac_header_preproc
=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.
$ac_ext >&5
12799 ac_header_preproc
=no
12801 rm -f conftest.err conftest.
$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12803 echo "${ECHO_T}$ac_header_preproc" >&6
12805 # So? What about this header?
12806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12808 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12809 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12811 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12812 ac_header_preproc
=yes
12815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12816 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12818 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12820 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12822 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12824 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12826 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12829 ## ------------------------------------------ ##
12830 ## Report this to the AC_PACKAGE_NAME lists. ##
12831 ## ------------------------------------------ ##
12834 sed "s/^/$as_me: WARNING: /" >&2
12837 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12838 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12844 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12848 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12849 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12850 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12851 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 ac_check_lib_save_LIBS
=$LIBS
12855 LIBS
="-lSM -lICE $LIBS"
12856 cat >conftest.
$ac_ext <<_ACEOF
12859 cat confdefs.h
>>conftest.
$ac_ext
12860 cat >>conftest.
$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12863 /* Override any gcc2 internal prototype to avoid an error. */
12867 /* We use char because int might match the return type of a gcc2
12868 builtin and then its argument prototype would still apply. */
12869 char SmcOpenConnection ();
12873 SmcOpenConnection ();
12878 rm -f conftest.
$ac_objext conftest
$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>conftest.er1
12882 grep -v '^ *+' conftest.er1
>conftest.err
12884 cat conftest.err
>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try
='test -z "$ac_c_werror_flag"
12888 || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try
='test -s conftest$ac_exeext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_lib_SM_SmcOpenConnection
=yes
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.
$ac_ext >&5
12905 ac_cv_lib_SM_SmcOpenConnection
=no
12907 rm -f conftest.err conftest.
$ac_objext \
12908 conftest
$ac_exeext conftest.
$ac_ext
12909 LIBS
=$ac_check_lib_save_LIBS
12911 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12912 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12913 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12921 if test "${HAVE_X_SM}" = "yes"; then
12923 cat >>confdefs.h
<<\_ACEOF
12924 #define HAVE_X_SM 1
12929 *) LIBS
="-lSM -lICE $LIBS" ;;
12934 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12935 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12936 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12937 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 cat >conftest.
$ac_ext <<_ACEOF
12943 cat confdefs.h
>>conftest.
$ac_ext
12944 cat >>conftest.
$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12955 rm -f conftest.
$ac_objext conftest
$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>conftest.er1
12959 grep -v '^ *+' conftest.er1
>conftest.err
12961 cat conftest.err
>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try
='test -z "$ac_c_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try
='test -s conftest$ac_exeext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 emacs_cv_netdb_declares_h_errno
=yes
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.
$ac_ext >&5
12982 emacs_cv_netdb_declares_h_errno
=no
12984 rm -f conftest.err conftest.
$ac_objext \
12985 conftest
$ac_exeext conftest.
$ac_ext
12987 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12988 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12989 if test $emacs_cv_netdb_declares_h_errno = yes; then
12991 cat >>confdefs.h
<<\_ACEOF
12992 #define HAVE_H_ERRNO 1
12997 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12998 # for constant arguments. Useless!
12999 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13000 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13001 if test "${ac_cv_working_alloca_h+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 cat >conftest.
$ac_ext <<_ACEOF
13007 cat confdefs.h
>>conftest.
$ac_ext
13008 cat >>conftest.
$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 #include <alloca.h>
13014 char *p = (char *) alloca (2 * sizeof (int));
13019 rm -f conftest.
$ac_objext conftest
$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>conftest.er1
13023 grep -v '^ *+' conftest.er1
>conftest.err
13025 cat conftest.err
>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try
='test -z "$ac_c_werror_flag"
13029 || test ! -s conftest.err'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try
='test -s conftest$ac_exeext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_working_alloca_h
=yes
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.
$ac_ext >&5
13046 ac_cv_working_alloca_h
=no
13048 rm -f conftest.err conftest.
$ac_objext \
13049 conftest
$ac_exeext conftest.
$ac_ext
13051 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13052 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13053 if test $ac_cv_working_alloca_h = yes; then
13055 cat >>confdefs.h
<<\_ACEOF
13056 #define HAVE_ALLOCA_H 1
13061 echo "$as_me:$LINENO: checking for alloca" >&5
13062 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13063 if test "${ac_cv_func_alloca_works+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 cat >conftest.
$ac_ext <<_ACEOF
13069 cat confdefs.h
>>conftest.
$ac_ext
13070 cat >>conftest.
$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13073 # define alloca __builtin_alloca
13076 # include <malloc.h>
13077 # define alloca _alloca
13080 # include <alloca.h>
13085 # ifndef alloca /* predefined by HP cc +Olibcalls */
13096 char *p = (char *) alloca (1);
13101 rm -f conftest.
$ac_objext conftest
$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>conftest.er1
13105 grep -v '^ *+' conftest.er1
>conftest.err
13107 cat conftest.err
>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try
='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try
='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_func_alloca_works
=yes
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.
$ac_ext >&5
13128 ac_cv_func_alloca_works
=no
13130 rm -f conftest.err conftest.
$ac_objext \
13131 conftest
$ac_exeext conftest.
$ac_ext
13133 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13134 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13136 if test $ac_cv_func_alloca_works = yes; then
13138 cat >>confdefs.h
<<\_ACEOF
13139 #define HAVE_ALLOCA 1
13143 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13144 # that cause trouble. Some versions do not even contain alloca or
13145 # contain a buggy version. If you still want to use their alloca,
13146 # use ar to extract alloca.o from them instead of compiling alloca.c.
13148 ALLOCA
=alloca.
$ac_objext
13150 cat >>confdefs.h
<<\_ACEOF
13155 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13156 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13157 if test "${ac_cv_os_cray+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 cat >conftest.
$ac_ext <<_ACEOF
13163 cat confdefs.h
>>conftest.
$ac_ext
13164 cat >>conftest.
$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #if defined(CRAY) && ! defined(CRAY2)
13173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13174 $EGREP "webecray" >/dev
/null
2>&1; then
13182 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13183 echo "${ECHO_T}$ac_cv_os_cray" >&6
13184 if test $ac_cv_os_cray = yes; then
13185 for ac_func
in _getb67 GETB67 getb67
; do
13186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13187 echo "$as_me:$LINENO: checking for $ac_func" >&5
13188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13189 if eval "test \"\${$as_ac_var+set}\" = set"; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 cat >conftest.
$ac_ext <<_ACEOF
13195 cat confdefs.h
>>conftest.
$ac_ext
13196 cat >>conftest.
$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13200 #define $ac_func innocuous_$ac_func
13202 /* System header to define __stub macros and hopefully few prototypes,
13203 which can conflict with char $ac_func (); below.
13204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13205 <limits.h> exists even on freestanding compilers. */
13208 # include <limits.h>
13210 # include <assert.h>
13215 /* Override any gcc2 internal prototype to avoid an error. */
13220 /* We use char because int might match the return type of a gcc2
13221 builtin and then its argument prototype would still apply. */
13223 /* The GNU C library defines this for functions which it implements
13224 to always fail with ENOSYS. Some functions are actually named
13225 something starting with __ and the normal name is an alias. */
13226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13229 char (*f) () = $ac_func;
13238 return f != $ac_func;
13243 rm -f conftest.
$ac_objext conftest
$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>conftest.er1
13247 grep -v '^ *+' conftest.er1
>conftest.err
13249 cat conftest.err
>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try
='test -z "$ac_c_werror_flag"
13253 || test ! -s conftest.err'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try
='test -s conftest$ac_exeext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 eval "$as_ac_var=yes"
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.
$ac_ext >&5
13270 eval "$as_ac_var=no"
13272 rm -f conftest.err conftest.
$ac_objext \
13273 conftest
$ac_exeext conftest.
$ac_ext
13275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13277 if test `eval echo '${'$as_ac_var'}'` = yes; then
13279 cat >>confdefs.h
<<_ACEOF
13280 #define CRAY_STACKSEG_END $ac_func
13289 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13290 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13291 if test "${ac_cv_c_stack_direction+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 if test "$cross_compiling" = yes; then
13295 ac_cv_c_stack_direction
=0
13297 cat >conftest.
$ac_ext <<_ACEOF
13300 cat confdefs.h
>>conftest.
$ac_ext
13301 cat >>conftest.
$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13304 find_stack_direction ()
13306 static char *addr = 0;
13311 return find_stack_direction ();
13314 return (&dummy > addr) ? 1 : -1;
13320 exit (find_stack_direction () < 0);
13323 rm -f conftest
$ac_exeext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_c_stack_direction
=1
13336 echo "$as_me: program exited with status $ac_status" >&5
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.
$ac_ext >&5
13340 ( exit $ac_status )
13341 ac_cv_c_stack_direction
=-1
13343 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13346 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13347 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13349 cat >>confdefs.h
<<_ACEOF
13350 #define STACK_DIRECTION $ac_cv_c_stack_direction
13357 # fmod, logb, and frexp are found in -lm on most systems.
13358 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13360 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13361 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13362 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 ac_check_lib_save_LIBS
=$LIBS
13367 cat >conftest.
$ac_ext <<_ACEOF
13370 cat confdefs.h
>>conftest.
$ac_ext
13371 cat >>conftest.
$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13374 /* Override any gcc2 internal prototype to avoid an error. */
13378 /* We use char because int might match the return type of a gcc2
13379 builtin and then its argument prototype would still apply. */
13389 rm -f conftest.
$ac_objext conftest
$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>conftest.er1
13393 grep -v '^ *+' conftest.er1
>conftest.err
13395 cat conftest.err
>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try
='test -z "$ac_c_werror_flag"
13399 || test ! -s conftest.err'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try
='test -s conftest$ac_exeext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 ac_cv_lib_m_sqrt
=yes
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.
$ac_ext >&5
13416 ac_cv_lib_m_sqrt
=no
13418 rm -f conftest.err conftest.
$ac_objext \
13419 conftest
$ac_exeext conftest.
$ac_ext
13420 LIBS
=$ac_check_lib_save_LIBS
13422 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13423 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13424 if test $ac_cv_lib_m_sqrt = yes; then
13425 cat >>confdefs.h
<<_ACEOF
13426 #define HAVE_LIBM 1
13434 # Check for mail-locking functions in a "mail" library. Probably this should
13435 # have the same check as for liblockfile below.
13437 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13438 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13439 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 ac_check_lib_save_LIBS
=$LIBS
13443 LIBS
="-lmail $LIBS"
13444 cat >conftest.
$ac_ext <<_ACEOF
13447 cat confdefs.h
>>conftest.
$ac_ext
13448 cat >>conftest.
$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13451 /* Override any gcc2 internal prototype to avoid an error. */
13455 /* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13466 rm -f conftest.
$ac_objext conftest
$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>conftest.er1
13470 grep -v '^ *+' conftest.er1
>conftest.err
13472 cat conftest.err
>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try
='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try
='test -s conftest$ac_exeext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_cv_lib_mail_maillock
=yes
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.
$ac_ext >&5
13493 ac_cv_lib_mail_maillock
=no
13495 rm -f conftest.err conftest.
$ac_objext \
13496 conftest
$ac_exeext conftest.
$ac_ext
13497 LIBS
=$ac_check_lib_save_LIBS
13499 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13500 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13501 if test $ac_cv_lib_mail_maillock = yes; then
13502 cat >>confdefs.h
<<_ACEOF
13503 #define HAVE_LIBMAIL 1
13506 LIBS
="-lmail $LIBS"
13511 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13512 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13513 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 ac_check_lib_save_LIBS
=$LIBS
13517 LIBS
="-llockfile $LIBS"
13518 cat >conftest.
$ac_ext <<_ACEOF
13521 cat confdefs.h
>>conftest.
$ac_ext
13522 cat >>conftest.
$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13525 /* Override any gcc2 internal prototype to avoid an error. */
13529 /* We use char because int might match the return type of a gcc2
13530 builtin and then its argument prototype would still apply. */
13540 rm -f conftest.
$ac_objext conftest
$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13544 grep -v '^ *+' conftest.er1
>conftest.err
13546 cat conftest.err
>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try
='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try
='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_lib_lockfile_maillock
=yes
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.
$ac_ext >&5
13567 ac_cv_lib_lockfile_maillock
=no
13569 rm -f conftest.err conftest.
$ac_objext \
13570 conftest
$ac_exeext conftest.
$ac_ext
13571 LIBS
=$ac_check_lib_save_LIBS
13573 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13574 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13575 if test $ac_cv_lib_lockfile_maillock = yes; then
13576 cat >>confdefs.h
<<_ACEOF
13577 #define HAVE_LIBLOCKFILE 1
13580 LIBS
="-llockfile $LIBS"
13584 # If we have the shared liblockfile, assume we must use it for mail
13585 # locking (e.g. Debian). If we couldn't link against liblockfile
13586 # (no liblockfile.a installed), ensure that we don't need to.
13587 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13588 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13589 set dummy liblockfile.so
; ac_word
=$2
13590 echo "$as_me:$LINENO: checking for $ac_word" >&5
13591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13592 if test "${ac_cv_prog_liblockfile+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 if test -n "$liblockfile"; then
13596 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13599 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13600 for as_dir
in $as_dummy
13603 test -z "$as_dir" && as_dir
=.
13604 for ac_exec_ext
in '' $ac_executable_extensions; do
13605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_prog_liblockfile
="yes"
13607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13616 liblockfile
=$ac_cv_prog_liblockfile
13617 if test -n "$liblockfile"; then
13618 echo "$as_me:$LINENO: result: $liblockfile" >&5
13619 echo "${ECHO_T}$liblockfile" >&6
13621 echo "$as_me:$LINENO: result: no" >&5
13622 echo "${ECHO_T}no" >&6
13625 if test $ac_cv_prog_liblockfile = yes; then
13626 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13627 This probably means that movemail could lose mail.
13628 There may be a \`development' package to install containing liblockfile." >&5
13629 echo "$as_me: error: Shared liblockfile found but can't link against it.
13630 This probably means that movemail could lose mail.
13631 There may be a \`development' package to install containing liblockfile." >&2;}
13632 { (exit 1); exit 1; }; }
13637 for ac_func
in touchlock
13639 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13640 echo "$as_me:$LINENO: checking for $ac_func" >&5
13641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13642 if eval "test \"\${$as_ac_var+set}\" = set"; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 cat >conftest.
$ac_ext <<_ACEOF
13648 cat confdefs.h
>>conftest.
$ac_ext
13649 cat >>conftest.
$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13653 #define $ac_func innocuous_$ac_func
13655 /* System header to define __stub macros and hopefully few prototypes,
13656 which can conflict with char $ac_func (); below.
13657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13658 <limits.h> exists even on freestanding compilers. */
13661 # include <limits.h>
13663 # include <assert.h>
13668 /* Override any gcc2 internal prototype to avoid an error. */
13673 /* We use char because int might match the return type of a gcc2
13674 builtin and then its argument prototype would still apply. */
13676 /* The GNU C library defines this for functions which it implements
13677 to always fail with ENOSYS. Some functions are actually named
13678 something starting with __ and the normal name is an alias. */
13679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13682 char (*f) () = $ac_func;
13691 return f != $ac_func;
13696 rm -f conftest.
$ac_objext conftest
$ac_exeext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>conftest.er1
13700 grep -v '^ *+' conftest.er1
>conftest.err
13702 cat conftest.err
>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try
='test -z "$ac_c_werror_flag"
13706 || test ! -s conftest.err'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try
='test -s conftest$ac_exeext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 eval "$as_ac_var=yes"
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.
$ac_ext >&5
13723 eval "$as_ac_var=no"
13725 rm -f conftest.err conftest.
$ac_objext \
13726 conftest
$ac_exeext conftest.
$ac_ext
13728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13730 if test `eval echo '${'$as_ac_var'}'` = yes; then
13731 cat >>confdefs.h
<<_ACEOF
13732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13739 for ac_header
in maillock.h
13741 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo "$as_me:$LINENO: checking for $ac_header" >&5
13744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13751 # Is the header compilable?
13752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13754 cat >conftest.
$ac_ext <<_ACEOF
13757 cat confdefs.h
>>conftest.
$ac_ext
13758 cat >>conftest.
$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 $ac_includes_default
13761 #include <$ac_header>
13763 rm -f conftest.
$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>conftest.er1
13767 grep -v '^ *+' conftest.er1
>conftest.err
13769 cat conftest.err
>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try
='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try
='test -s conftest.$ac_objext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_header_compiler
=yes
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.
$ac_ext >&5
13790 ac_header_compiler
=no
13792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13794 echo "${ECHO_T}$ac_header_compiler" >&6
13796 # Is the header present?
13797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13799 cat >conftest.
$ac_ext <<_ACEOF
13802 cat confdefs.h
>>conftest.
$ac_ext
13803 cat >>conftest.
$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <$ac_header>
13807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13808 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } >/dev
/null
; then
13815 if test -s conftest.err
; then
13816 ac_cpp_err
=$ac_c_preproc_warn_flag
13817 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13824 if test -z "$ac_cpp_err"; then
13825 ac_header_preproc
=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.
$ac_ext >&5
13830 ac_header_preproc
=no
13832 rm -f conftest.err conftest.
$ac_ext
13833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6
13836 # So? What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc
=yes
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13860 ## ------------------------------------------ ##
13861 ## Report this to the AC_PACKAGE_NAME lists. ##
13862 ## ------------------------------------------ ##
13865 sed "s/^/$as_me: WARNING: /" >&2
13868 echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 eval "$as_ac_Header=\$ac_header_preproc"
13875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13880 cat >>confdefs.h
<<_ACEOF
13881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13956 for ac_func
in gethostname getdomainname dup2 \
13957 rename closedir mkdir
rmdir sysinfo getrusage \
13958 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13959 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13960 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13961 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13962 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13963 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13964 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13966 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13967 echo "$as_me:$LINENO: checking for $ac_func" >&5
13968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13969 if eval "test \"\${$as_ac_var+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 cat >conftest.
$ac_ext <<_ACEOF
13975 cat confdefs.h
>>conftest.
$ac_ext
13976 cat >>conftest.
$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13980 #define $ac_func innocuous_$ac_func
13982 /* System header to define __stub macros and hopefully few prototypes,
13983 which can conflict with char $ac_func (); below.
13984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13985 <limits.h> exists even on freestanding compilers. */
13988 # include <limits.h>
13990 # include <assert.h>
13995 /* Override any gcc2 internal prototype to avoid an error. */
14000 /* We use char because int might match the return type of a gcc2
14001 builtin and then its argument prototype would still apply. */
14003 /* The GNU C library defines this for functions which it implements
14004 to always fail with ENOSYS. Some functions are actually named
14005 something starting with __ and the normal name is an alias. */
14006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14009 char (*f) () = $ac_func;
14018 return f != $ac_func;
14023 rm -f conftest.
$ac_objext conftest
$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025 (eval $ac_link) 2>conftest.er1
14027 grep -v '^ *+' conftest.er1
>conftest.err
14029 cat conftest.err
>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try
='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try
='test -s conftest$ac_exeext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 eval "$as_ac_var=yes"
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.
$ac_ext >&5
14050 eval "$as_ac_var=no"
14052 rm -f conftest.err conftest.
$ac_objext \
14053 conftest
$ac_exeext conftest.
$ac_ext
14055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14057 if test `eval echo '${'$as_ac_var'}'` = yes; then
14058 cat >>confdefs.h
<<_ACEOF
14059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14067 for ac_header
in sys
/un.h
14069 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14071 echo "$as_me:$LINENO: checking for $ac_header" >&5
14072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14079 # Is the header compilable?
14080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14082 cat >conftest.
$ac_ext <<_ACEOF
14085 cat confdefs.h
>>conftest.
$ac_ext
14086 cat >>conftest.
$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 $ac_includes_default
14089 #include <$ac_header>
14091 rm -f conftest.
$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>conftest.er1
14095 grep -v '^ *+' conftest.er1
>conftest.err
14097 cat conftest.err
>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try
='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try
='test -s conftest.$ac_objext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_header_compiler
=yes
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.
$ac_ext >&5
14118 ac_header_compiler
=no
14120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14122 echo "${ECHO_T}$ac_header_compiler" >&6
14124 # Is the header present?
14125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14127 cat >conftest.
$ac_ext <<_ACEOF
14130 cat confdefs.h
>>conftest.
$ac_ext
14131 cat >>conftest.
$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 #include <$ac_header>
14135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1
>conftest.err
14140 cat conftest.err
>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } >/dev
/null
; then
14143 if test -s conftest.err
; then
14144 ac_cpp_err
=$ac_c_preproc_warn_flag
14145 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14152 if test -z "$ac_cpp_err"; then
14153 ac_header_preproc
=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.
$ac_ext >&5
14158 ac_header_preproc
=no
14160 rm -f conftest.err conftest.
$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14162 echo "${ECHO_T}$ac_header_preproc" >&6
14164 # So? What about this header?
14165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14171 ac_header_preproc
=yes
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14188 ## ------------------------------------------ ##
14189 ## Report this to the AC_PACKAGE_NAME lists. ##
14190 ## ------------------------------------------ ##
14193 sed "s/^/$as_me: WARNING: /" >&2
14196 echo "$as_me:$LINENO: checking for $ac_header" >&5
14197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 eval "$as_ac_Header=\$ac_header_preproc"
14203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14208 cat >>confdefs.h
<<_ACEOF
14209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 for ac_header
in stdlib.h sys
/time.h unistd.h
14222 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14232 # Is the header compilable?
14233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14235 cat >conftest.
$ac_ext <<_ACEOF
14238 cat confdefs.h
>>conftest.
$ac_ext
14239 cat >>conftest.
$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 $ac_includes_default
14242 #include <$ac_header>
14244 rm -f conftest.
$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>conftest.er1
14248 grep -v '^ *+' conftest.er1
>conftest.err
14250 cat conftest.err
>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try
='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try
='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_header_compiler
=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.
$ac_ext >&5
14271 ac_header_compiler
=no
14273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14275 echo "${ECHO_T}$ac_header_compiler" >&6
14277 # Is the header present?
14278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14280 cat >conftest.
$ac_ext <<_ACEOF
14283 cat confdefs.h
>>conftest.
$ac_ext
14284 cat >>conftest.
$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <$ac_header>
14288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14291 grep -v '^ *+' conftest.er1
>conftest.err
14293 cat conftest.err
>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } >/dev
/null
; then
14296 if test -s conftest.err
; then
14297 ac_cpp_err
=$ac_c_preproc_warn_flag
14298 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14305 if test -z "$ac_cpp_err"; then
14306 ac_header_preproc
=yes
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.
$ac_ext >&5
14311 ac_header_preproc
=no
14313 rm -f conftest.err conftest.
$ac_ext
14314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14315 echo "${ECHO_T}$ac_header_preproc" >&6
14317 # So? What about this header?
14318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14324 ac_header_preproc
=yes
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14341 ## ------------------------------------------ ##
14342 ## Report this to the AC_PACKAGE_NAME lists. ##
14343 ## ------------------------------------------ ##
14346 sed "s/^/$as_me: WARNING: /" >&2
14349 echo "$as_me:$LINENO: checking for $ac_header" >&5
14350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 eval "$as_ac_Header=\$ac_header_preproc"
14356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h
<<_ACEOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370 for ac_func
in alarm
14372 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14373 echo "$as_me:$LINENO: checking for $ac_func" >&5
14374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14375 if eval "test \"\${$as_ac_var+set}\" = set"; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 cat >conftest.
$ac_ext <<_ACEOF
14381 cat confdefs.h
>>conftest.
$ac_ext
14382 cat >>conftest.
$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14386 #define $ac_func innocuous_$ac_func
14388 /* System header to define __stub macros and hopefully few prototypes,
14389 which can conflict with char $ac_func (); below.
14390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14391 <limits.h> exists even on freestanding compilers. */
14394 # include <limits.h>
14396 # include <assert.h>
14401 /* Override any gcc2 internal prototype to avoid an error. */
14406 /* We use char because int might match the return type of a gcc2
14407 builtin and then its argument prototype would still apply. */
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14415 char (*f) () = $ac_func;
14424 return f != $ac_func;
14429 rm -f conftest.
$ac_objext conftest
$ac_exeext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14431 (eval $ac_link) 2>conftest.er1
14433 grep -v '^ *+' conftest.er1
>conftest.err
14435 cat conftest.err
>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try
='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try
='test -s conftest$ac_exeext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 eval "$as_ac_var=yes"
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.
$ac_ext >&5
14456 eval "$as_ac_var=no"
14458 rm -f conftest.err conftest.
$ac_objext \
14459 conftest
$ac_exeext conftest.
$ac_ext
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14463 if test `eval echo '${'$as_ac_var'}'` = yes; then
14464 cat >>confdefs.h
<<_ACEOF
14465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14471 echo "$as_me:$LINENO: checking for working mktime" >&5
14472 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14473 if test "${ac_cv_func_working_mktime+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 if test "$cross_compiling" = yes; then
14477 ac_cv_func_working_mktime
=no
14479 cat >conftest.
$ac_ext <<_ACEOF
14482 cat confdefs.h
>>conftest.
$ac_ext
14483 cat >>conftest.
$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 /* Test program from Paul Eggert and Tony Leneis. */
14486 #if TIME_WITH_SYS_TIME
14487 # include <sys/time.h>
14490 # if HAVE_SYS_TIME_H
14491 # include <sys/time.h>
14498 # include <stdlib.h>
14502 # include <unistd.h>
14506 # define alarm(X) /* empty */
14509 /* Work around redefinition to rpl_putenv by other config tests. */
14512 static time_t time_t_max;
14513 static time_t time_t_min;
14515 /* Values we'll use to set the TZ environment variable. */
14516 static char *tz_strings[] = {
14517 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14518 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14520 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14522 /* Fail if mktime fails to convert a date in the spring-forward gap.
14523 Based on a problem report from Andreas Jaeger. */
14525 spring_forward_gap ()
14527 /* glibc (up to about 1998-10-07) failed this test. */
14530 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14531 instead of "TZ=America/Vancouver" in order to detect the bug even
14532 on systems that don't support the Olson extension, or don't have the
14533 full zoneinfo tables installed. */
14534 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14543 if (mktime (&tm) == (time_t)-1)
14552 if ((lt = localtime (&now)) && mktime (lt) != now)
14560 mktime_test1 (now);
14561 mktime_test1 ((time_t) (time_t_max - now));
14562 mktime_test1 ((time_t) (time_t_min + now));
14568 /* Based on code from Ariel Faigon. */
14578 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14588 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14589 now = mktime (&tm);
14590 if (now != (time_t) -1)
14592 struct tm *lt = localtime (&now);
14594 && lt->tm_year == tm.tm_year
14595 && lt->tm_mon == tm.tm_mon
14596 && lt->tm_mday == tm.tm_mday
14597 && lt->tm_hour == tm.tm_hour
14598 && lt->tm_min == tm.tm_min
14599 && lt->tm_sec == tm.tm_sec
14600 && lt->tm_yday == tm.tm_yday
14601 && lt->tm_wday == tm.tm_wday
14602 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14603 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14614 /* This test makes some buggy mktime implementations loop.
14615 Give up after 60 seconds; a mktime slower than that
14616 isn't worth using anyway. */
14619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14622 if ((time_t) -1 < 0)
14623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14625 delta = time_t_max / 997; /* a suitable prime number */
14626 for (i = 0; i < N_STRINGS; i++)
14629 putenv (tz_strings[i]);
14631 for (t = 0; t <= time_t_max - delta; t += delta)
14633 mktime_test ((time_t) 1);
14634 mktime_test ((time_t) (60 * 60));
14635 mktime_test ((time_t) (60 * 60 * 24));
14637 for (j = 1; 0 < j; j *= 2)
14639 bigtime_test (j - 1);
14642 spring_forward_gap ();
14646 rm -f conftest
$ac_exeext
14647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14648 (eval $ac_link) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_func_working_mktime
=yes
14659 echo "$as_me: program exited with status $ac_status" >&5
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.
$ac_ext >&5
14663 ( exit $ac_status )
14664 ac_cv_func_working_mktime
=no
14666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14670 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14671 if test $ac_cv_func_working_mktime = no
; then
14673 "mktime.$ac_objext" | \
14674 *" mktime.$ac_objext" | \
14675 "mktime.$ac_objext "* | \
14676 *" mktime.$ac_objext "* ) ;;
14677 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14682 if test "$ac_cv_func_working_mktime" = no
; then
14684 cat >>confdefs.h
<<\_ACEOF
14685 #define BROKEN_MKTIME 1
14690 ac_have_func
=no
# yes means we've found a way to get the load average.
14692 # Make sure getloadavg.c is where it belongs, at configure-time.
14693 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14694 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14695 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14696 { (exit 1); exit 1; }; }
14700 # Check for getloadavg, but be sure not to touch the cache variable.
14701 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14702 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14703 if test "${ac_cv_func_getloadavg+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 cat >conftest.
$ac_ext <<_ACEOF
14709 cat confdefs.h
>>conftest.
$ac_ext
14710 cat >>conftest.
$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14714 #define getloadavg innocuous_getloadavg
14716 /* System header to define __stub macros and hopefully few prototypes,
14717 which can conflict with char getloadavg (); below.
14718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14719 <limits.h> exists even on freestanding compilers. */
14722 # include <limits.h>
14724 # include <assert.h>
14729 /* Override any gcc2 internal prototype to avoid an error. */
14734 /* We use char because int might match the return type of a gcc2
14735 builtin and then its argument prototype would still apply. */
14736 char getloadavg ();
14737 /* The GNU C library defines this for functions which it implements
14738 to always fail with ENOSYS. Some functions are actually named
14739 something starting with __ and the normal name is an alias. */
14740 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14743 char (*f) () = getloadavg;
14752 return f != getloadavg;
14757 rm -f conftest.
$ac_objext conftest
$ac_exeext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14759 (eval $ac_link) 2>conftest.er1
14761 grep -v '^ *+' conftest.er1
>conftest.err
14763 cat conftest.err
>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try
='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try
='test -s conftest$ac_exeext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 ac_cv_func_getloadavg
=yes
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.
$ac_ext >&5
14784 ac_cv_func_getloadavg
=no
14786 rm -f conftest.err conftest.
$ac_objext \
14787 conftest
$ac_exeext conftest.
$ac_ext
14789 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14790 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14791 if test $ac_cv_func_getloadavg = yes; then
14796 ) && ac_have_func
=yes
14798 # On HPUX9, an unprivileged user can get load averages through this function.
14800 for ac_func
in pstat_getdynamic
14802 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14803 echo "$as_me:$LINENO: checking for $ac_func" >&5
14804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14805 if eval "test \"\${$as_ac_var+set}\" = set"; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 cat >conftest.
$ac_ext <<_ACEOF
14811 cat confdefs.h
>>conftest.
$ac_ext
14812 cat >>conftest.
$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14816 #define $ac_func innocuous_$ac_func
14818 /* System header to define __stub macros and hopefully few prototypes,
14819 which can conflict with char $ac_func (); below.
14820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14821 <limits.h> exists even on freestanding compilers. */
14824 # include <limits.h>
14826 # include <assert.h>
14831 /* Override any gcc2 internal prototype to avoid an error. */
14836 /* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14845 char (*f) () = $ac_func;
14854 return f != $ac_func;
14859 rm -f conftest.
$ac_objext conftest
$ac_exeext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>conftest.er1
14863 grep -v '^ *+' conftest.er1
>conftest.err
14865 cat conftest.err
>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try
='test -z "$ac_c_werror_flag"
14869 || test ! -s conftest.err'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try
='test -s conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 eval "$as_ac_var=yes"
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.
$ac_ext >&5
14886 eval "$as_ac_var=no"
14888 rm -f conftest.err conftest.
$ac_objext \
14889 conftest
$ac_exeext conftest.
$ac_ext
14891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14893 if test `eval echo '${'$as_ac_var'}'` = yes; then
14894 cat >>confdefs.h
<<_ACEOF
14895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14902 # Solaris has libkstat which does not require root.
14904 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14905 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14906 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 ac_check_lib_save_LIBS
=$LIBS
14910 LIBS
="-lkstat $LIBS"
14911 cat >conftest.
$ac_ext <<_ACEOF
14914 cat confdefs.h
>>conftest.
$ac_ext
14915 cat >>conftest.
$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14918 /* Override any gcc2 internal prototype to avoid an error. */
14922 /* We use char because int might match the return type of a gcc2
14923 builtin and then its argument prototype would still apply. */
14924 char kstat_open ();
14933 rm -f conftest.
$ac_objext conftest
$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1
>conftest.err
14939 cat conftest.err
>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try
='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try
='test -s conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_lib_kstat_kstat_open
=yes
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.
$ac_ext >&5
14960 ac_cv_lib_kstat_kstat_open
=no
14962 rm -f conftest.err conftest.
$ac_objext \
14963 conftest
$ac_exeext conftest.
$ac_ext
14964 LIBS
=$ac_check_lib_save_LIBS
14966 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14967 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14968 if test $ac_cv_lib_kstat_kstat_open = yes; then
14969 cat >>confdefs.h
<<_ACEOF
14970 #define HAVE_LIBKSTAT 1
14973 LIBS
="-lkstat $LIBS"
14977 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14979 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14980 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14981 # to get the right answer into the cache.
14982 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14983 if test $ac_have_func = no
; then
14984 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14985 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14986 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 ac_check_lib_save_LIBS
=$LIBS
14991 cat >conftest.
$ac_ext <<_ACEOF
14994 cat confdefs.h
>>conftest.
$ac_ext
14995 cat >>conftest.
$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14998 /* Override any gcc2 internal prototype to avoid an error. */
15002 /* We use char because int might match the return type of a gcc2
15003 builtin and then its argument prototype would still apply. */
15013 rm -f conftest.
$ac_objext conftest
$ac_exeext
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>conftest.er1
15017 grep -v '^ *+' conftest.er1
>conftest.err
15019 cat conftest.err
>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try
='test -z "$ac_c_werror_flag"
15023 || test ! -s conftest.err'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; } &&
15029 { ac_try
='test -s conftest$ac_exeext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_cv_lib_elf_elf_begin
=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.
$ac_ext >&5
15040 ac_cv_lib_elf_elf_begin
=no
15042 rm -f conftest.err conftest.
$ac_objext \
15043 conftest
$ac_exeext conftest.
$ac_ext
15044 LIBS
=$ac_check_lib_save_LIBS
15046 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15047 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15048 if test $ac_cv_lib_elf_elf_begin = yes; then
15053 if test $ac_have_func = no
; then
15054 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15055 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15056 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_check_lib_save_LIBS
=$LIBS
15061 cat >conftest.
$ac_ext <<_ACEOF
15064 cat confdefs.h
>>conftest.
$ac_ext
15065 cat >>conftest.
$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any gcc2 internal prototype to avoid an error. */
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15083 rm -f conftest.
$ac_objext conftest
$ac_exeext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15085 (eval $ac_link) 2>conftest.er1
15087 grep -v '^ *+' conftest.er1
>conftest.err
15089 cat conftest.err
>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try
='test -z "$ac_c_werror_flag"
15093 || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try
='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_lib_kvm_kvm_open
=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.
$ac_ext >&5
15110 ac_cv_lib_kvm_kvm_open
=no
15112 rm -f conftest.err conftest.
$ac_objext \
15113 conftest
$ac_exeext conftest.
$ac_ext
15114 LIBS
=$ac_check_lib_save_LIBS
15116 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15117 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15118 if test $ac_cv_lib_kvm_kvm_open = yes; then
15122 # Check for the 4.4BSD definition of getloadavg.
15123 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15124 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15125 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 ac_check_lib_save_LIBS
=$LIBS
15129 LIBS
="-lutil $LIBS"
15130 cat >conftest.
$ac_ext <<_ACEOF
15133 cat confdefs.h
>>conftest.
$ac_ext
15134 cat >>conftest.
$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15137 /* Override any gcc2 internal prototype to avoid an error. */
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15143 char getloadavg ();
15152 rm -f conftest.
$ac_objext conftest
$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1
>conftest.err
15158 cat conftest.err
>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try
='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try
='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_lib_util_getloadavg
=yes
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.
$ac_ext >&5
15179 ac_cv_lib_util_getloadavg
=no
15181 rm -f conftest.err conftest.
$ac_objext \
15182 conftest
$ac_exeext conftest.
$ac_ext
15183 LIBS
=$ac_check_lib_save_LIBS
15185 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15186 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15187 if test $ac_cv_lib_util_getloadavg = yes; then
15188 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15193 if test $ac_have_func = no
; then
15194 # There is a commonly available library for RS/6000 AIX.
15195 # Since it is not a standard part of AIX, it might be installed locally.
15196 ac_getloadavg_LIBS
=$LIBS
15197 LIBS
="-L/usr/local/lib $LIBS"
15198 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15199 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15200 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 ac_check_lib_save_LIBS
=$LIBS
15204 LIBS
="-lgetloadavg $LIBS"
15205 cat >conftest.
$ac_ext <<_ACEOF
15208 cat confdefs.h
>>conftest.
$ac_ext
15209 cat >>conftest.
$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15212 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char getloadavg ();
15227 rm -f conftest.
$ac_objext conftest
$ac_exeext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15229 (eval $ac_link) 2>conftest.er1
15231 grep -v '^ *+' conftest.er1
>conftest.err
15233 cat conftest.err
>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
15236 { ac_try
='test -z "$ac_c_werror_flag"
15237 || test ! -s conftest.err'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try
='test -s conftest$ac_exeext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_cv_lib_getloadavg_getloadavg
=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.
$ac_ext >&5
15254 ac_cv_lib_getloadavg_getloadavg
=no
15256 rm -f conftest.err conftest.
$ac_objext \
15257 conftest
$ac_exeext conftest.
$ac_ext
15258 LIBS
=$ac_check_lib_save_LIBS
15260 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15261 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15262 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15263 LIBS
="-lgetloadavg $LIBS"
15265 LIBS
=$ac_getloadavg_LIBS
15270 # Make sure it is really in the library, if we think we found it,
15271 # otherwise set up the replacement function.
15273 for ac_func
in getloadavg
15275 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_var+set}\" = set"; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 cat >conftest.
$ac_ext <<_ACEOF
15284 cat confdefs.h
>>conftest.
$ac_ext
15285 cat >>conftest.
$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15297 # include <limits.h>
15299 # include <assert.h>
15304 /* Override any gcc2 internal prototype to avoid an error. */
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15312 /* The GNU C library defines this for functions which it implements
15313 to always fail with ENOSYS. Some functions are actually named
15314 something starting with __ and the normal name is an alias. */
15315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15318 char (*f) () = $ac_func;
15327 return f != $ac_func;
15332 rm -f conftest.
$ac_objext conftest
$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>conftest.er1
15336 grep -v '^ *+' conftest.er1
>conftest.err
15338 cat conftest.err
>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try
='test -z "$ac_c_werror_flag"
15342 || test ! -s conftest.err'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try
='test -s conftest$ac_exeext'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 eval "$as_ac_var=yes"
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.
$ac_ext >&5
15359 eval "$as_ac_var=no"
15361 rm -f conftest.err conftest.
$ac_objext \
15362 conftest
$ac_exeext conftest.
$ac_ext
15364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15366 if test `eval echo '${'$as_ac_var'}'` = yes; then
15367 cat >>confdefs.h
<<_ACEOF
15368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 "getloadavg.$ac_objext" | \
15374 *" getloadavg.$ac_objext" | \
15375 "getloadavg.$ac_objext "* | \
15376 *" getloadavg.$ac_objext "* ) ;;
15377 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15381 cat >>confdefs.h
<<\_ACEOF
15382 #define C_GETLOADAVG 1
15385 # Figure out what our getloadavg.c needs.
15387 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15388 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15389 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15390 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15394 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15396 # Is the header compilable?
15397 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15398 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15399 cat >conftest.
$ac_ext <<_ACEOF
15402 cat confdefs.h
>>conftest.
$ac_ext
15403 cat >>conftest.
$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 #include <sys/dg_sys_info.h>
15408 rm -f conftest.
$ac_objext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15410 (eval $ac_compile) 2>conftest.er1
15412 grep -v '^ *+' conftest.er1
>conftest.err
15414 cat conftest.err
>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try
='test -z "$ac_c_werror_flag"
15418 || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try
='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_header_compiler
=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.
$ac_ext >&5
15435 ac_header_compiler
=no
15437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15439 echo "${ECHO_T}$ac_header_compiler" >&6
15441 # Is the header present?
15442 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15443 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15444 cat >conftest.
$ac_ext <<_ACEOF
15447 cat confdefs.h
>>conftest.
$ac_ext
15448 cat >>conftest.
$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 #include <sys/dg_sys_info.h>
15452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15455 grep -v '^ *+' conftest.er1
>conftest.err
15457 cat conftest.err
>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } >/dev
/null
; then
15460 if test -s conftest.err
; then
15461 ac_cpp_err
=$ac_c_preproc_warn_flag
15462 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15469 if test -z "$ac_cpp_err"; then
15470 ac_header_preproc
=yes
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.
$ac_ext >&5
15475 ac_header_preproc
=no
15477 rm -f conftest.err conftest.
$ac_ext
15478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479 echo "${ECHO_T}$ac_header_preproc" >&6
15481 # So? What about this header?
15482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15485 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15487 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15488 ac_header_preproc
=yes
15491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15492 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15494 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15496 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15498 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15502 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15505 ## ------------------------------------------ ##
15506 ## Report this to the AC_PACKAGE_NAME lists. ##
15507 ## ------------------------------------------ ##
15510 sed "s/^/$as_me: WARNING: /" >&2
15513 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15514 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15515 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15520 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15521 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15524 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15527 cat >>confdefs.h
<<\_ACEOF
15532 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15533 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15534 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 ac_check_lib_save_LIBS
=$LIBS
15539 cat >conftest.
$ac_ext <<_ACEOF
15542 cat confdefs.h
>>conftest.
$ac_ext
15543 cat >>conftest.
$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 /* Override any gcc2 internal prototype to avoid an error. */
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15552 char dg_sys_info ();
15561 rm -f conftest.
$ac_objext conftest
$ac_exeext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>conftest.er1
15565 grep -v '^ *+' conftest.er1
>conftest.err
15567 cat conftest.err
>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try
='test -z "$ac_c_werror_flag"
15571 || test ! -s conftest.err'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try
='test -s conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_lib_dgc_dg_sys_info
=yes
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.
$ac_ext >&5
15588 ac_cv_lib_dgc_dg_sys_info
=no
15590 rm -f conftest.err conftest.
$ac_objext \
15591 conftest
$ac_exeext conftest.
$ac_ext
15592 LIBS
=$ac_check_lib_save_LIBS
15594 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15595 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15596 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15597 cat >>confdefs.h
<<_ACEOF
15598 #define HAVE_LIBDGC 1
15609 if test "${ac_cv_header_locale_h+set}" = set; then
15610 echo "$as_me:$LINENO: checking for locale.h" >&5
15611 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15612 if test "${ac_cv_header_locale_h+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15618 # Is the header compilable?
15619 echo "$as_me:$LINENO: checking locale.h usability" >&5
15620 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 $ac_includes_default
15628 #include <locale.h>
15630 rm -f conftest.
$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15634 grep -v '^ *+' conftest.er1
>conftest.err
15636 cat conftest.err
>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try
='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try
='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler
=yes
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.
$ac_ext >&5
15657 ac_header_compiler
=no
15659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6
15663 # Is the header present?
15664 echo "$as_me:$LINENO: checking locale.h presence" >&5
15665 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15666 cat >conftest.
$ac_ext <<_ACEOF
15669 cat confdefs.h
>>conftest.
$ac_ext
15670 cat >>conftest.
$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <locale.h>
15674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15677 grep -v '^ *+' conftest.er1
>conftest.err
15679 cat conftest.err
>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } >/dev
/null
; then
15682 if test -s conftest.err
; then
15683 ac_cpp_err
=$ac_c_preproc_warn_flag
15684 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15691 if test -z "$ac_cpp_err"; then
15692 ac_header_preproc
=yes
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.
$ac_ext >&5
15697 ac_header_preproc
=no
15699 rm -f conftest.err conftest.
$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15706 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc
=yes
15713 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15727 ## ------------------------------------------ ##
15728 ## Report this to the AC_PACKAGE_NAME lists. ##
15729 ## ------------------------------------------ ##
15732 sed "s/^/$as_me: WARNING: /" >&2
15735 echo "$as_me:$LINENO: checking for locale.h" >&5
15736 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15737 if test "${ac_cv_header_locale_h+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 ac_cv_header_locale_h
=$ac_header_preproc
15742 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15743 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15749 for ac_func
in setlocale
15751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15752 echo "$as_me:$LINENO: checking for $ac_func" >&5
15753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_var+set}\" = set"; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 cat >conftest.
$ac_ext <<_ACEOF
15760 cat confdefs.h
>>conftest.
$ac_ext
15761 cat >>conftest.
$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15765 #define $ac_func innocuous_$ac_func
15767 /* System header to define __stub macros and hopefully few prototypes,
15768 which can conflict with char $ac_func (); below.
15769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15770 <limits.h> exists even on freestanding compilers. */
15773 # include <limits.h>
15775 # include <assert.h>
15780 /* Override any gcc2 internal prototype to avoid an error. */
15785 /* We use char because int might match the return type of a gcc2
15786 builtin and then its argument prototype would still apply. */
15788 /* The GNU C library defines this for functions which it implements
15789 to always fail with ENOSYS. Some functions are actually named
15790 something starting with __ and the normal name is an alias. */
15791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15794 char (*f) () = $ac_func;
15803 return f != $ac_func;
15808 rm -f conftest.
$ac_objext conftest
$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>conftest.er1
15812 grep -v '^ *+' conftest.er1
>conftest.err
15814 cat conftest.err
>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try
='test -z "$ac_c_werror_flag"
15818 || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try
='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.
$ac_ext >&5
15835 eval "$as_ac_var=no"
15837 rm -f conftest.err conftest.
$ac_objext \
15838 conftest
$ac_exeext conftest.
$ac_ext
15840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15842 if test `eval echo '${'$as_ac_var'}'` = yes; then
15843 cat >>confdefs.h
<<_ACEOF
15844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15851 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15852 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15853 # Irix 4.0.5F has the header but not the library.
15854 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15857 cat >>confdefs.h
<<\_ACEOF
15863 if test $ac_have_func = no
; then
15864 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15865 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15866 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15867 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15871 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15873 # Is the header compilable?
15874 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15875 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15876 cat >conftest.
$ac_ext <<_ACEOF
15879 cat confdefs.h
>>conftest.
$ac_ext
15880 cat >>conftest.
$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <inq_stats/cpustats.h>
15885 rm -f conftest.
$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1
>conftest.err
15891 cat conftest.err
>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try
='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try
='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler
=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.
$ac_ext >&5
15912 ac_header_compiler
=no
15914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15920 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15921 cat >conftest.
$ac_ext <<_ACEOF
15924 cat confdefs.h
>>conftest.
$ac_ext
15925 cat >>conftest.
$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 #include <inq_stats/cpustats.h>
15929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15932 grep -v '^ *+' conftest.er1
>conftest.err
15934 cat conftest.err
>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev
/null
; then
15937 if test -s conftest.err
; then
15938 ac_cpp_err
=$ac_c_preproc_warn_flag
15939 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc
=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 ac_header_preproc
=no
15954 rm -f conftest.err conftest.
$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15961 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15964 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15965 ac_header_preproc
=yes
15968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15969 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15971 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15973 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15975 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15979 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15982 ## ------------------------------------------ ##
15983 ## Report this to the AC_PACKAGE_NAME lists. ##
15984 ## ------------------------------------------ ##
15987 sed "s/^/$as_me: WARNING: /" >&2
15990 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15991 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15992 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15997 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15998 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16001 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16004 cat >>confdefs.h
<<\_ACEOF
16009 cat >>confdefs.h
<<\_ACEOF
16018 if test $ac_have_func = no
; then
16019 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16020 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16021 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16022 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16026 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16028 # Is the header compilable?
16029 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16030 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16031 cat >conftest.
$ac_ext <<_ACEOF
16034 cat confdefs.h
>>conftest.
$ac_ext
16035 cat >>conftest.
$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 #include <sys/cpustats.h>
16040 rm -f conftest.
$ac_objext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>conftest.er1
16044 grep -v '^ *+' conftest.er1
>conftest.err
16046 cat conftest.err
>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try
='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try
='test -s conftest.$ac_objext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler
=yes
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.
$ac_ext >&5
16067 ac_header_compiler
=no
16069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16075 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16076 cat >conftest.
$ac_ext <<_ACEOF
16079 cat confdefs.h
>>conftest.
$ac_ext
16080 cat >>conftest.
$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <sys/cpustats.h>
16084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16087 grep -v '^ *+' conftest.er1
>conftest.err
16089 cat conftest.err
>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } >/dev
/null
; then
16092 if test -s conftest.err
; then
16093 ac_cpp_err
=$ac_c_preproc_warn_flag
16094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16101 if test -z "$ac_cpp_err"; then
16102 ac_header_preproc
=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.
$ac_ext >&5
16107 ac_header_preproc
=no
16109 rm -f conftest.err conftest.
$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16119 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc
=yes
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16126 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16128 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16130 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16134 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16137 ## ------------------------------------------ ##
16138 ## Report this to the AC_PACKAGE_NAME lists. ##
16139 ## ------------------------------------------ ##
16142 sed "s/^/$as_me: WARNING: /" >&2
16145 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16146 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16147 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16152 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16153 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16156 if test $ac_cv_header_sys_cpustats_h = yes; then
16157 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16166 if test $ac_have_func = no
; then
16168 for ac_header
in mach
/mach.h
16170 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16172 echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16180 # Is the header compilable?
16181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16183 cat >conftest.
$ac_ext <<_ACEOF
16186 cat confdefs.h
>>conftest.
$ac_ext
16187 cat >>conftest.
$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 $ac_includes_default
16190 #include <$ac_header>
16192 rm -f conftest.
$ac_objext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>conftest.er1
16196 grep -v '^ *+' conftest.er1
>conftest.err
16198 cat conftest.err
>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try
='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try
='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler
=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.
$ac_ext >&5
16219 ac_header_compiler
=no
16221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6
16225 # Is the header present?
16226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16228 cat >conftest.
$ac_ext <<_ACEOF
16231 cat confdefs.h
>>conftest.
$ac_ext
16232 cat >>conftest.
$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <$ac_header>
16236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16239 grep -v '^ *+' conftest.er1
>conftest.err
16241 cat conftest.err
>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } >/dev
/null
; then
16244 if test -s conftest.err
; then
16245 ac_cpp_err
=$ac_c_preproc_warn_flag
16246 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16253 if test -z "$ac_cpp_err"; then
16254 ac_header_preproc
=yes
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.
$ac_ext >&5
16259 ac_header_preproc
=no
16261 rm -f conftest.err conftest.
$ac_ext
16262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16263 echo "${ECHO_T}$ac_header_preproc" >&6
16265 # So? What about this header?
16266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16272 ac_header_preproc
=yes
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16289 ## ------------------------------------------ ##
16290 ## Report this to the AC_PACKAGE_NAME lists. ##
16291 ## ------------------------------------------ ##
16294 sed "s/^/$as_me: WARNING: /" >&2
16297 echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 eval "$as_ac_Header=\$ac_header_preproc"
16304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16309 cat >>confdefs.h
<<_ACEOF
16310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16320 for ac_header
in nlist.h
16322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16324 echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16332 # Is the header compilable?
16333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16335 cat >conftest.
$ac_ext <<_ACEOF
16338 cat confdefs.h
>>conftest.
$ac_ext
16339 cat >>conftest.
$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16342 #include <$ac_header>
16344 rm -f conftest.
$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16348 grep -v '^ *+' conftest.er1
>conftest.err
16350 cat conftest.err
>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try
='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try
='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_header_compiler
=yes
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.
$ac_ext >&5
16371 ac_header_compiler
=no
16373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6
16377 # Is the header present?
16378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16380 cat >conftest.
$ac_ext <<_ACEOF
16383 cat confdefs.h
>>conftest.
$ac_ext
16384 cat >>conftest.
$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <$ac_header>
16388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16389 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1
>conftest.err
16393 cat conftest.err
>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } >/dev
/null
; then
16396 if test -s conftest.err
; then
16397 ac_cpp_err
=$ac_c_preproc_warn_flag
16398 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16405 if test -z "$ac_cpp_err"; then
16406 ac_header_preproc
=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.
$ac_ext >&5
16411 ac_header_preproc
=no
16413 rm -f conftest.err conftest.
$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16415 echo "${ECHO_T}$ac_header_preproc" >&6
16417 # So? What about this header?
16418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16424 ac_header_preproc
=yes
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441 ## ------------------------------------------ ##
16442 ## Report this to the AC_PACKAGE_NAME lists. ##
16443 ## ------------------------------------------ ##
16446 sed "s/^/$as_me: WARNING: /" >&2
16449 echo "$as_me:$LINENO: checking for $ac_header" >&5
16450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 eval "$as_ac_Header=\$ac_header_preproc"
16456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h
<<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16464 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16465 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16466 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 cat >conftest.
$ac_ext <<_ACEOF
16472 cat confdefs.h
>>conftest.
$ac_ext
16473 cat >>conftest.
$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16480 static struct nlist ac_aggr;
16481 if (ac_aggr.n_un.n_name)
16487 rm -f conftest.
$ac_objext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16489 (eval $ac_compile) 2>conftest.er1
16491 grep -v '^ *+' conftest.er1
>conftest.err
16493 cat conftest.err
>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try
='test -z "$ac_c_werror_flag"
16497 || test ! -s conftest.err'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; } &&
16503 { ac_try
='test -s conftest.$ac_objext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 ac_cv_member_struct_nlist_n_un_n_name
=yes
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.
$ac_ext >&5
16514 cat >conftest.
$ac_ext <<_ACEOF
16517 cat confdefs.h
>>conftest.
$ac_ext
16518 cat >>conftest.
$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16525 static struct nlist ac_aggr;
16526 if (sizeof ac_aggr.n_un.n_name)
16532 rm -f conftest.
$ac_objext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534 (eval $ac_compile) 2>conftest.er1
16536 grep -v '^ *+' conftest.er1
>conftest.err
16538 cat conftest.err
>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try
='test -z "$ac_c_werror_flag"
16542 || test ! -s conftest.err'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try
='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_member_struct_nlist_n_un_n_name
=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.
$ac_ext >&5
16559 ac_cv_member_struct_nlist_n_un_n_name
=no
16561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16566 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16567 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16569 cat >>confdefs.h
<<_ACEOF
16570 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16574 cat >>confdefs.h
<<\_ACEOF
16575 #define NLIST_NAME_UNION 1
16589 # Some definitions of getloadavg require that the program be installed setgid.
16590 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16591 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16592 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 cat >conftest.
$ac_ext <<_ACEOF
16598 cat confdefs.h
>>conftest.
$ac_ext
16599 cat >>conftest.
$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16602 #ifdef LDAV_PRIVILEGED
16603 Yowza Am I SETGID yet
16606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16607 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16608 ac_cv_func_getloadavg_setgid
=yes
16610 ac_cv_func_getloadavg_setgid
=no
16615 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16616 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16617 if test $ac_cv_func_getloadavg_setgid = yes; then
16620 cat >>confdefs.h
<<\_ACEOF
16621 #define GETLOADAVG_PRIVILEGED 1
16628 if test $ac_cv_func_getloadavg_setgid = yes; then
16629 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16630 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16631 if test "${ac_cv_group_kmem+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16635 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16636 # If we got an error (system does not support symlinks), try without -L.
16637 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16638 ac_cv_group_kmem
=`echo $ac_ls_output \
16639 | sed -ne 's/[ ][ ]*/ /g;
16640 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16644 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16645 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16646 KMEM_GROUP
=$ac_cv_group_kmem
16648 if test "x$ac_save_LIBS" = x
; then
16649 GETLOADAVG_LIBS
=$LIBS
16651 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16657 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16658 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16659 if test "${ac_cv_sys_largefile_source+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 ac_cv_sys_largefile_source
=no
16664 cat >conftest.
$ac_ext <<_ACEOF
16667 cat confdefs.h
>>conftest.
$ac_ext
16668 cat >>conftest.
$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16679 rm -f conftest.
$ac_objext
16680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16681 (eval $ac_compile) 2>conftest.er1
16683 grep -v '^ *+' conftest.er1
>conftest.err
16685 cat conftest.err
>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try
='test -z "$ac_c_werror_flag"
16689 || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try
='test -s conftest.$ac_objext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.
$ac_ext >&5
16707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16708 cat >conftest.
$ac_ext <<_ACEOF
16711 cat confdefs.h
>>conftest.
$ac_ext
16712 cat >>conftest.
$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #define _LARGEFILE_SOURCE 1
16724 rm -f conftest.
$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1
>conftest.err
16730 cat conftest.err
>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try
='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try
='test -s conftest.$ac_objext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_sys_largefile_source
=1; break
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.
$ac_ext >&5
16752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16756 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16757 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16758 if test "$ac_cv_sys_largefile_source" != no
; then
16760 cat >>confdefs.h
<<_ACEOF
16761 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16767 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16768 # in glibc 2.1.3, but that breaks too many other things.
16769 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16770 echo "$as_me:$LINENO: checking for fseeko" >&5
16771 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16772 if test "${ac_cv_func_fseeko+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 cat >conftest.
$ac_ext <<_ACEOF
16778 cat confdefs.h
>>conftest.
$ac_ext
16779 cat >>conftest.
$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16785 return fseeko && fseeko (stdin, 0, 0);
16790 rm -f conftest.
$ac_objext conftest
$ac_exeext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>conftest.er1
16794 grep -v '^ *+' conftest.er1
>conftest.err
16796 cat conftest.err
>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
16799 { ac_try
='test -z "$ac_c_werror_flag"
16800 || test ! -s conftest.err'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try
='test -s conftest$ac_exeext'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_cv_func_fseeko
=yes
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.
$ac_ext >&5
16817 ac_cv_func_fseeko
=no
16819 rm -f conftest.err conftest.
$ac_objext \
16820 conftest
$ac_exeext conftest.
$ac_ext
16822 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16823 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16824 if test $ac_cv_func_fseeko = yes; then
16826 cat >>confdefs.h
<<\_ACEOF
16827 #define HAVE_FSEEKO 1
16833 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16834 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16835 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 # Use it with a single arg.
16839 cat >conftest.
$ac_ext <<_ACEOF
16842 cat confdefs.h
>>conftest.
$ac_ext
16843 cat >>conftest.
$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 $ac_includes_default
16854 rm -f conftest.
$ac_objext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16856 (eval $ac_compile) 2>conftest.er1
16858 grep -v '^ *+' conftest.er1
>conftest.err
16860 cat conftest.err
>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try
='test -z "$ac_c_werror_flag"
16864 || test ! -s conftest.err'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
16876 ac_cv_func_getpgrp_void
=no
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.
$ac_ext >&5
16881 ac_cv_func_getpgrp_void
=yes
16883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16886 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16887 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16888 if test $ac_cv_func_getpgrp_void = yes; then
16890 cat >>confdefs.h
<<\_ACEOF
16891 #define GETPGRP_VOID 1
16898 for ac_func
in strftime
16900 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16903 if eval "test \"\${$as_ac_var+set}\" = set"; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.
$ac_ext <<_ACEOF
16909 cat confdefs.h
>>conftest.
$ac_ext
16910 cat >>conftest.
$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define $ac_func innocuous_$ac_func
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16922 # include <limits.h>
16924 # include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16943 char (*f) () = $ac_func;
16952 return f != $ac_func;
16957 rm -f conftest.
$ac_objext conftest
$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16961 grep -v '^ *+' conftest.er1
>conftest.err
16963 cat conftest.err
>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try
='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try
='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 eval "$as_ac_var=yes"
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.
$ac_ext >&5
16984 eval "$as_ac_var=no"
16986 rm -f conftest.err conftest.
$ac_objext \
16987 conftest
$ac_exeext conftest.
$ac_ext
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h
<<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16997 # strftime is in -lintl on SCO UNIX.
16998 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16999 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17000 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 ac_check_lib_save_LIBS
=$LIBS
17004 LIBS
="-lintl $LIBS"
17005 cat >conftest.
$ac_ext <<_ACEOF
17008 cat confdefs.h
>>conftest.
$ac_ext
17009 cat >>conftest.
$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17012 /* Override any gcc2 internal prototype to avoid an error. */
17016 /* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17027 rm -f conftest.
$ac_objext conftest
$ac_exeext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17029 (eval $ac_link) 2>conftest.er1
17031 grep -v '^ *+' conftest.er1
>conftest.err
17033 cat conftest.err
>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try
='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try
='test -s conftest$ac_exeext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_lib_intl_strftime
=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.
$ac_ext >&5
17054 ac_cv_lib_intl_strftime
=no
17056 rm -f conftest.err conftest.
$ac_objext \
17057 conftest
$ac_exeext conftest.
$ac_ext
17058 LIBS
=$ac_check_lib_save_LIBS
17060 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17061 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17062 if test $ac_cv_lib_intl_strftime = yes; then
17063 cat >>confdefs.h
<<\_ACEOF
17064 #define HAVE_STRFTIME 1
17067 LIBS
="-lintl $LIBS"
17076 for ac_func
in grantpt
17078 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17079 echo "$as_me:$LINENO: checking for $ac_func" >&5
17080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_var+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 cat >conftest.
$ac_ext <<_ACEOF
17087 cat confdefs.h
>>conftest.
$ac_ext
17088 cat >>conftest.
$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092 #define $ac_func innocuous_$ac_func
17094 /* System header to define __stub macros and hopefully few prototypes,
17095 which can conflict with char $ac_func (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
17100 # include <limits.h>
17102 # include <assert.h>
17107 /* Override any gcc2 internal prototype to avoid an error. */
17112 /* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17121 char (*f) () = $ac_func;
17130 return f != $ac_func;
17135 rm -f conftest.
$ac_objext conftest
$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>conftest.er1
17139 grep -v '^ *+' conftest.er1
>conftest.err
17141 cat conftest.err
>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try
='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try
='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 eval "$as_ac_var=yes"
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.
$ac_ext >&5
17162 eval "$as_ac_var=no"
17164 rm -f conftest.err conftest.
$ac_objext \
17165 conftest
$ac_exeext conftest.
$ac_ext
17167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17169 if test `eval echo '${'$as_ac_var'}'` = yes; then
17170 cat >>confdefs.h
<<_ACEOF
17171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17178 # PTY-related GNU extensions.
17180 for ac_func
in getpt
17182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17183 echo "$as_me:$LINENO: checking for $ac_func" >&5
17184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17185 if eval "test \"\${$as_ac_var+set}\" = set"; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 cat >conftest.
$ac_ext <<_ACEOF
17191 cat confdefs.h
>>conftest.
$ac_ext
17192 cat >>conftest.
$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17196 #define $ac_func innocuous_$ac_func
17198 /* System header to define __stub macros and hopefully few prototypes,
17199 which can conflict with char $ac_func (); below.
17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17201 <limits.h> exists even on freestanding compilers. */
17204 # include <limits.h>
17206 # include <assert.h>
17211 /* Override any gcc2 internal prototype to avoid an error. */
17216 /* We use char because int might match the return type of a gcc2
17217 builtin and then its argument prototype would still apply. */
17219 /* The GNU C library defines this for functions which it implements
17220 to always fail with ENOSYS. Some functions are actually named
17221 something starting with __ and the normal name is an alias. */
17222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17225 char (*f) () = $ac_func;
17234 return f != $ac_func;
17239 rm -f conftest.
$ac_objext conftest
$ac_exeext
17240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>conftest.er1
17243 grep -v '^ *+' conftest.er1
>conftest.err
17245 cat conftest.err
>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try
='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try
='test -s conftest$ac_exeext'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.
$ac_ext >&5
17266 eval "$as_ac_var=no"
17268 rm -f conftest.err conftest.
$ac_objext \
17269 conftest
$ac_exeext conftest.
$ac_ext
17271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17273 if test `eval echo '${'$as_ac_var'}'` = yes; then
17274 cat >>confdefs.h
<<_ACEOF
17275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17282 # Check this now, so that we will NOT find the above functions in ncurses.
17283 # That is because we have not set up to link ncurses in lib-src.
17284 # It's better to believe a function is not available
17285 # than to expect to find it in ncurses.
17287 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17288 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17289 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 ac_check_lib_save_LIBS
=$LIBS
17293 LIBS
="-lncurses $LIBS"
17294 cat >conftest.
$ac_ext <<_ACEOF
17297 cat confdefs.h
>>conftest.
$ac_ext
17298 cat >>conftest.
$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17301 /* Override any gcc2 internal prototype to avoid an error. */
17305 /* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17316 rm -f conftest.
$ac_objext conftest
$ac_exeext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1
>conftest.err
17322 cat conftest.err
>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try
='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try
='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_lib_ncurses_tparm
=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.
$ac_ext >&5
17343 ac_cv_lib_ncurses_tparm
=no
17345 rm -f conftest.err conftest.
$ac_objext \
17346 conftest
$ac_exeext conftest.
$ac_ext
17347 LIBS
=$ac_check_lib_save_LIBS
17349 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17350 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17351 if test $ac_cv_lib_ncurses_tparm = yes; then
17352 cat >>confdefs.h
<<_ACEOF
17353 #define HAVE_LIBNCURSES 1
17356 LIBS
="-lncurses $LIBS"
17361 # Do we need the Hesiod library to provide the support routines?
17362 if test "$with_hesiod" = yes ; then
17363 # Don't set $LIBS here -- see comments above.
17365 echo "$as_me:$LINENO: checking for res_send" >&5
17366 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17367 if test "${ac_cv_func_res_send+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.
$ac_ext <<_ACEOF
17373 cat confdefs.h
>>conftest.
$ac_ext
17374 cat >>conftest.
$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define res_send innocuous_res_send
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char res_send (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17386 # include <limits.h>
17388 # include <assert.h>
17393 /* Override any gcc2 internal prototype to avoid an error. */
17398 /* We use char because int might match the return type of a gcc2
17399 builtin and then its argument prototype would still apply. */
17401 /* The GNU C library defines this for functions which it implements
17402 to always fail with ENOSYS. Some functions are actually named
17403 something starting with __ and the normal name is an alias. */
17404 #if defined (__stub_res_send) || defined (__stub___res_send)
17407 char (*f) () = res_send;
17416 return f != res_send;
17421 rm -f conftest.
$ac_objext conftest
$ac_exeext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>conftest.er1
17425 grep -v '^ *+' conftest.er1
>conftest.err
17427 cat conftest.err
>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try
='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try
='test -s conftest$ac_exeext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_func_res_send
=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 ac_cv_func_res_send
=no
17450 rm -f conftest.err conftest.
$ac_objext \
17451 conftest
$ac_exeext conftest.
$ac_ext
17453 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17454 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17455 if test $ac_cv_func_res_send = yes; then
17458 echo "$as_me:$LINENO: checking for __res_send" >&5
17459 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17460 if test "${ac_cv_func___res_send+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.
$ac_ext <<_ACEOF
17466 cat confdefs.h
>>conftest.
$ac_ext
17467 cat >>conftest.
$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17471 #define __res_send innocuous___res_send
17473 /* System header to define __stub macros and hopefully few prototypes,
17474 which can conflict with char __res_send (); below.
17475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476 <limits.h> exists even on freestanding compilers. */
17479 # include <limits.h>
17481 # include <assert.h>
17486 /* Override any gcc2 internal prototype to avoid an error. */
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493 char __res_send ();
17494 /* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497 #if defined (__stub___res_send) || defined (__stub_____res_send)
17500 char (*f) () = __res_send;
17509 return f != __res_send;
17514 rm -f conftest.
$ac_objext conftest
$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>conftest.er1
17518 grep -v '^ *+' conftest.er1
>conftest.err
17520 cat conftest.err
>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
17523 { ac_try
='test -z "$ac_c_werror_flag"
17524 || test ! -s conftest.err'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try
='test -s conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_func___res_send
=yes
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.
$ac_ext >&5
17541 ac_cv_func___res_send
=no
17543 rm -f conftest.err conftest.
$ac_objext \
17544 conftest
$ac_exeext conftest.
$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17547 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17548 if test $ac_cv_func___res_send = yes; then
17551 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17552 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17553 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 ac_check_lib_save_LIBS
=$LIBS
17557 LIBS
="-lresolv $LIBS"
17558 cat >conftest.
$ac_ext <<_ACEOF
17561 cat confdefs.h
>>conftest.
$ac_ext
17562 cat >>conftest.
$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17565 /* Override any gcc2 internal prototype to avoid an error. */
17569 /* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17580 rm -f conftest.
$ac_objext conftest
$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>conftest.er1
17584 grep -v '^ *+' conftest.er1
>conftest.err
17586 cat conftest.err
>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try
='test -z "$ac_c_werror_flag"
17590 || test ! -s conftest.err'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; } &&
17596 { ac_try
='test -s conftest$ac_exeext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_cv_lib_resolv_res_send
=yes
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.
$ac_ext >&5
17607 ac_cv_lib_resolv_res_send
=no
17609 rm -f conftest.err conftest.
$ac_objext \
17610 conftest
$ac_exeext conftest.
$ac_ext
17611 LIBS
=$ac_check_lib_save_LIBS
17613 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17614 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17615 if test $ac_cv_lib_resolv_res_send = yes; then
17618 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17619 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17620 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 ac_check_lib_save_LIBS
=$LIBS
17624 LIBS
="-lresolv $LIBS"
17625 cat >conftest.
$ac_ext <<_ACEOF
17628 cat confdefs.h
>>conftest.
$ac_ext
17629 cat >>conftest.
$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17632 /* Override any gcc2 internal prototype to avoid an error. */
17636 /* We use char because int might match the return type of a gcc2
17637 builtin and then its argument prototype would still apply. */
17638 char __res_send ();
17647 rm -f conftest.
$ac_objext conftest
$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>conftest.er1
17651 grep -v '^ *+' conftest.er1
>conftest.err
17653 cat conftest.err
>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try
='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try
='test -s conftest$ac_exeext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_lib_resolv___res_send
=yes
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.
$ac_ext >&5
17674 ac_cv_lib_resolv___res_send
=no
17676 rm -f conftest.err conftest.
$ac_objext \
17677 conftest
$ac_exeext conftest.
$ac_ext
17678 LIBS
=$ac_check_lib_save_LIBS
17680 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17681 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17682 if test $ac_cv_lib_resolv___res_send = yes; then
17692 if test "$resolv" = yes ; then
17695 cat >>confdefs.h
<<\_ACEOF
17696 #define HAVE_LIBRESOLV 1
17702 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17703 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17704 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 cat >conftest.
$ac_ext <<_ACEOF
17710 cat confdefs.h
>>conftest.
$ac_ext
17711 cat >>conftest.
$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17715 #define hes_getmailhost innocuous_hes_getmailhost
17717 /* System header to define __stub macros and hopefully few prototypes,
17718 which can conflict with char hes_getmailhost (); below.
17719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720 <limits.h> exists even on freestanding compilers. */
17723 # include <limits.h>
17725 # include <assert.h>
17728 #undef hes_getmailhost
17730 /* Override any gcc2 internal prototype to avoid an error. */
17735 /* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17737 char hes_getmailhost ();
17738 /* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17744 char (*f) () = hes_getmailhost;
17753 return f != hes_getmailhost;
17758 rm -f conftest.
$ac_objext conftest
$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>conftest.er1
17762 grep -v '^ *+' conftest.er1
>conftest.err
17764 cat conftest.err
>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try
='test -z "$ac_c_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try
='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_func_hes_getmailhost
=yes
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.
$ac_ext >&5
17785 ac_cv_func_hes_getmailhost
=no
17787 rm -f conftest.err conftest.
$ac_objext \
17788 conftest
$ac_exeext conftest.
$ac_ext
17790 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17791 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17792 if test $ac_cv_func_hes_getmailhost = yes; then
17795 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17796 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17797 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 ac_check_lib_save_LIBS
=$LIBS
17801 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17802 cat >conftest.
$ac_ext <<_ACEOF
17805 cat confdefs.h
>>conftest.
$ac_ext
17806 cat >>conftest.
$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17809 /* Override any gcc2 internal prototype to avoid an error. */
17813 /* We use char because int might match the return type of a gcc2
17814 builtin and then its argument prototype would still apply. */
17815 char hes_getmailhost ();
17819 hes_getmailhost ();
17824 rm -f conftest.
$ac_objext conftest
$ac_exeext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17826 (eval $ac_link) 2>conftest.er1
17828 grep -v '^ *+' conftest.er1
>conftest.err
17830 cat conftest.err
>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try
='test -z "$ac_c_werror_flag"
17834 || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try
='test -s conftest$ac_exeext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_lib_hesiod_hes_getmailhost
=yes
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17851 ac_cv_lib_hesiod_hes_getmailhost
=no
17853 rm -f conftest.err conftest.
$ac_objext \
17854 conftest
$ac_exeext conftest.
$ac_ext
17855 LIBS
=$ac_check_lib_save_LIBS
17857 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17858 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17859 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17861 cat >>confdefs.h
<<\_ACEOF
17862 #define HAVE_LIBHESIOD 1
17873 # These tell us which Kerberos-related libraries to use.
17874 if test "${with_kerberos+set}" = set; then
17876 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17877 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17878 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 ac_check_lib_save_LIBS
=$LIBS
17882 LIBS
="-lcom_err $LIBS"
17883 cat >conftest.
$ac_ext <<_ACEOF
17886 cat confdefs.h
>>conftest.
$ac_ext
17887 cat >>conftest.
$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17890 /* Override any gcc2 internal prototype to avoid an error. */
17894 /* We use char because int might match the return type of a gcc2
17895 builtin and then its argument prototype would still apply. */
17905 rm -f conftest.
$ac_objext conftest
$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907 (eval $ac_link) 2>conftest.er1
17909 grep -v '^ *+' conftest.er1
>conftest.err
17911 cat conftest.err
>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try
='test -z "$ac_c_werror_flag"
17915 || test ! -s conftest.err'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try
='test -s conftest$ac_exeext'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_lib_com_err_com_err
=yes
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.
$ac_ext >&5
17932 ac_cv_lib_com_err_com_err
=no
17934 rm -f conftest.err conftest.
$ac_objext \
17935 conftest
$ac_exeext conftest.
$ac_ext
17936 LIBS
=$ac_check_lib_save_LIBS
17938 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17939 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17940 if test $ac_cv_lib_com_err_com_err = yes; then
17941 cat >>confdefs.h
<<_ACEOF
17942 #define HAVE_LIBCOM_ERR 1
17945 LIBS
="-lcom_err $LIBS"
17950 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17951 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17952 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_check_lib_save_LIBS
=$LIBS
17956 LIBS
="-lk5crypto $LIBS"
17957 cat >conftest.
$ac_ext <<_ACEOF
17960 cat confdefs.h
>>conftest.
$ac_ext
17961 cat >>conftest.
$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17964 /* Override any gcc2 internal prototype to avoid an error. */
17968 /* We use char because int might match the return type of a gcc2
17969 builtin and then its argument prototype would still apply. */
17970 char mit_des_cbc_encrypt ();
17974 mit_des_cbc_encrypt ();
17979 rm -f conftest.
$ac_objext conftest
$ac_exeext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>conftest.er1
17983 grep -v '^ *+' conftest.er1
>conftest.err
17985 cat conftest.err
>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try
='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try
='test -s conftest$ac_exeext'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.
$ac_ext >&5
18006 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18008 rm -f conftest.err conftest.
$ac_objext \
18009 conftest
$ac_exeext conftest.
$ac_ext
18010 LIBS
=$ac_check_lib_save_LIBS
18012 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18013 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18014 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18015 cat >>confdefs.h
<<_ACEOF
18016 #define HAVE_LIBK5CRYPTO 1
18019 LIBS
="-lk5crypto $LIBS"
18024 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18025 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18026 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 ac_check_lib_save_LIBS
=$LIBS
18030 LIBS
="-lcrypto $LIBS"
18031 cat >conftest.
$ac_ext <<_ACEOF
18034 cat confdefs.h
>>conftest.
$ac_ext
18035 cat >>conftest.
$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18038 /* Override any gcc2 internal prototype to avoid an error. */
18042 /* We use char because int might match the return type of a gcc2
18043 builtin and then its argument prototype would still apply. */
18044 char mit_des_cbc_encrypt ();
18048 mit_des_cbc_encrypt ();
18053 rm -f conftest.
$ac_objext conftest
$ac_exeext
18054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055 (eval $ac_link) 2>conftest.er1
18057 grep -v '^ *+' conftest.er1
>conftest.err
18059 cat conftest.err
>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try
='test -z "$ac_c_werror_flag"
18063 || test ! -s conftest.err'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try
='test -s conftest$ac_exeext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.
$ac_ext >&5
18080 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18082 rm -f conftest.err conftest.
$ac_objext \
18083 conftest
$ac_exeext conftest.
$ac_ext
18084 LIBS
=$ac_check_lib_save_LIBS
18086 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18087 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18088 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18089 cat >>confdefs.h
<<_ACEOF
18090 #define HAVE_LIBCRYPTO 1
18093 LIBS
="-lcrypto $LIBS"
18098 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18099 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18100 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 ac_check_lib_save_LIBS
=$LIBS
18104 LIBS
="-lkrb5 $LIBS"
18105 cat >conftest.
$ac_ext <<_ACEOF
18108 cat confdefs.h
>>conftest.
$ac_ext
18109 cat >>conftest.
$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18112 /* Override any gcc2 internal prototype to avoid an error. */
18116 /* We use char because int might match the return type of a gcc2
18117 builtin and then its argument prototype would still apply. */
18118 char krb5_init_context ();
18122 krb5_init_context ();
18127 rm -f conftest.
$ac_objext conftest
$ac_exeext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18129 (eval $ac_link) 2>conftest.er1
18131 grep -v '^ *+' conftest.er1
>conftest.err
18133 cat conftest.err
>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try
='test -z "$ac_c_werror_flag"
18137 || test ! -s conftest.err'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } &&
18143 { ac_try
='test -s conftest$ac_exeext'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 ac_cv_lib_krb5_krb5_init_context
=yes
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.
$ac_ext >&5
18154 ac_cv_lib_krb5_krb5_init_context
=no
18156 rm -f conftest.err conftest.
$ac_objext \
18157 conftest
$ac_exeext conftest.
$ac_ext
18158 LIBS
=$ac_check_lib_save_LIBS
18160 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18161 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18162 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18163 cat >>confdefs.h
<<_ACEOF
18164 #define HAVE_LIBKRB5 1
18167 LIBS
="-lkrb5 $LIBS"
18171 if test "${with_kerberos5+set}" != set; then
18173 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18174 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18175 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 ac_check_lib_save_LIBS
=$LIBS
18179 LIBS
="-ldes425 $LIBS"
18180 cat >conftest.
$ac_ext <<_ACEOF
18183 cat confdefs.h
>>conftest.
$ac_ext
18184 cat >>conftest.
$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18187 /* Override any gcc2 internal prototype to avoid an error. */
18191 /* We use char because int might match the return type of a gcc2
18192 builtin and then its argument prototype would still apply. */
18193 char des_cbc_encrypt ();
18197 des_cbc_encrypt ();
18202 rm -f conftest.
$ac_objext conftest
$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204 (eval $ac_link) 2>conftest.er1
18206 grep -v '^ *+' conftest.er1
>conftest.err
18208 cat conftest.err
>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try
='test -z "$ac_c_werror_flag"
18212 || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try
='test -s conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_des425_des_cbc_encrypt
=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.
$ac_ext >&5
18229 ac_cv_lib_des425_des_cbc_encrypt
=no
18231 rm -f conftest.err conftest.
$ac_objext \
18232 conftest
$ac_exeext conftest.
$ac_ext
18233 LIBS
=$ac_check_lib_save_LIBS
18235 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18236 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18237 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18238 cat >>confdefs.h
<<_ACEOF
18239 #define HAVE_LIBDES425 1
18242 LIBS
="-ldes425 $LIBS"
18246 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18247 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18248 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS
=$LIBS
18253 cat >conftest.
$ac_ext <<_ACEOF
18256 cat confdefs.h
>>conftest.
$ac_ext
18257 cat >>conftest.
$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any gcc2 internal prototype to avoid an error. */
18264 /* We use char because int might match the return type of a gcc2
18265 builtin and then its argument prototype would still apply. */
18266 char des_cbc_encrypt ();
18270 des_cbc_encrypt ();
18275 rm -f conftest.
$ac_objext conftest
$ac_exeext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277 (eval $ac_link) 2>conftest.er1
18279 grep -v '^ *+' conftest.er1
>conftest.err
18281 cat conftest.err
>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try
='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try
='test -s conftest$ac_exeext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_lib_des_des_cbc_encrypt
=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.
$ac_ext >&5
18302 ac_cv_lib_des_des_cbc_encrypt
=no
18304 rm -f conftest.err conftest.
$ac_objext \
18305 conftest
$ac_exeext conftest.
$ac_ext
18306 LIBS
=$ac_check_lib_save_LIBS
18308 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18309 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18310 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18311 cat >>confdefs.h
<<_ACEOF
18312 #define HAVE_LIBDES 1
18322 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18323 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18324 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 ac_check_lib_save_LIBS
=$LIBS
18328 LIBS
="-lkrb4 $LIBS"
18329 cat >conftest.
$ac_ext <<_ACEOF
18332 cat confdefs.h
>>conftest.
$ac_ext
18333 cat >>conftest.
$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18336 /* Override any gcc2 internal prototype to avoid an error. */
18340 /* We use char because int might match the return type of a gcc2
18341 builtin and then its argument prototype would still apply. */
18342 char krb_get_cred ();
18351 rm -f conftest.
$ac_objext conftest
$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>conftest.er1
18355 grep -v '^ *+' conftest.er1
>conftest.err
18357 cat conftest.err
>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try
='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try
='test -s conftest$ac_exeext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_lib_krb4_krb_get_cred
=yes
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.
$ac_ext >&5
18378 ac_cv_lib_krb4_krb_get_cred
=no
18380 rm -f conftest.err conftest.
$ac_objext \
18381 conftest
$ac_exeext conftest.
$ac_ext
18382 LIBS
=$ac_check_lib_save_LIBS
18384 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18385 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18386 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18387 cat >>confdefs.h
<<_ACEOF
18388 #define HAVE_LIBKRB4 1
18391 LIBS
="-lkrb4 $LIBS"
18395 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18396 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18397 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18400 ac_check_lib_save_LIBS
=$LIBS
18402 cat >conftest.
$ac_ext <<_ACEOF
18405 cat confdefs.h
>>conftest.
$ac_ext
18406 cat >>conftest.
$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18409 /* Override any gcc2 internal prototype to avoid an error. */
18413 /* We use char because int might match the return type of a gcc2
18414 builtin and then its argument prototype would still apply. */
18415 char krb_get_cred ();
18424 rm -f conftest.
$ac_objext conftest
$ac_exeext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18426 (eval $ac_link) 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); } &&
18433 { ac_try
='test -z "$ac_c_werror_flag"
18434 || test ! -s conftest.err'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try
='test -s conftest$ac_exeext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 ac_cv_lib_krb_krb_get_cred
=yes
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.
$ac_ext >&5
18451 ac_cv_lib_krb_krb_get_cred
=no
18453 rm -f conftest.err conftest.
$ac_objext \
18454 conftest
$ac_exeext conftest.
$ac_ext
18455 LIBS
=$ac_check_lib_save_LIBS
18457 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18458 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18459 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18460 cat >>confdefs.h
<<_ACEOF
18461 #define HAVE_LIBKRB 1
18472 if test "${with_kerberos5+set}" = set; then
18474 for ac_header
in krb5.h
18476 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18478 echo "$as_me:$LINENO: checking for $ac_header" >&5
18479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18486 # Is the header compilable?
18487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18489 cat >conftest.
$ac_ext <<_ACEOF
18492 cat confdefs.h
>>conftest.
$ac_ext
18493 cat >>conftest.
$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 $ac_includes_default
18496 #include <$ac_header>
18498 rm -f conftest.
$ac_objext
18499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18500 (eval $ac_compile) 2>conftest.er1
18502 grep -v '^ *+' conftest.er1
>conftest.err
18504 cat conftest.err
>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try
='test -z "$ac_c_werror_flag"
18508 || test ! -s conftest.err'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; } &&
18514 { ac_try
='test -s conftest.$ac_objext'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_header_compiler
=yes
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.
$ac_ext >&5
18525 ac_header_compiler
=no
18527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18529 echo "${ECHO_T}$ac_header_compiler" >&6
18531 # Is the header present?
18532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18534 cat >conftest.
$ac_ext <<_ACEOF
18537 cat confdefs.h
>>conftest.
$ac_ext
18538 cat >>conftest.
$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540 #include <$ac_header>
18542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18543 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18545 grep -v '^ *+' conftest.er1
>conftest.err
18547 cat conftest.err
>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } >/dev
/null
; then
18550 if test -s conftest.err
; then
18551 ac_cpp_err
=$ac_c_preproc_warn_flag
18552 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18559 if test -z "$ac_cpp_err"; then
18560 ac_header_preproc
=yes
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.
$ac_ext >&5
18565 ac_header_preproc
=no
18567 rm -f conftest.err conftest.
$ac_ext
18568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18569 echo "${ECHO_T}$ac_header_preproc" >&6
18571 # So? What about this header?
18572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18578 ac_header_preproc
=yes
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18595 ## ------------------------------------------ ##
18596 ## Report this to the AC_PACKAGE_NAME lists. ##
18597 ## ------------------------------------------ ##
18600 sed "s/^/$as_me: WARNING: /" >&2
18603 echo "$as_me:$LINENO: checking for $ac_header" >&5
18604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 eval "$as_ac_Header=\$ac_header_preproc"
18610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18615 cat >>confdefs.h
<<_ACEOF
18616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18625 for ac_header
in des.h
18627 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18629 echo "$as_me:$LINENO: checking for $ac_header" >&5
18630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18637 # Is the header compilable?
18638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18640 cat >conftest.
$ac_ext <<_ACEOF
18643 cat confdefs.h
>>conftest.
$ac_ext
18644 cat >>conftest.
$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18646 $ac_includes_default
18647 #include <$ac_header>
18649 rm -f conftest.
$ac_objext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651 (eval $ac_compile) 2>conftest.er1
18653 grep -v '^ *+' conftest.er1
>conftest.err
18655 cat conftest.err
>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try
='test -z "$ac_c_werror_flag"
18659 || test ! -s conftest.err'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try
='test -s conftest.$ac_objext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_header_compiler
=yes
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.
$ac_ext >&5
18676 ac_header_compiler
=no
18678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680 echo "${ECHO_T}$ac_header_compiler" >&6
18682 # Is the header present?
18683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18685 cat >conftest.
$ac_ext <<_ACEOF
18688 cat confdefs.h
>>conftest.
$ac_ext
18689 cat >>conftest.
$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18691 #include <$ac_header>
18693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18694 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18696 grep -v '^ *+' conftest.er1
>conftest.err
18698 cat conftest.err
>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } >/dev
/null
; then
18701 if test -s conftest.err
; then
18702 ac_cpp_err
=$ac_c_preproc_warn_flag
18703 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18710 if test -z "$ac_cpp_err"; then
18711 ac_header_preproc
=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.
$ac_ext >&5
18716 ac_header_preproc
=no
18718 rm -f conftest.err conftest.
$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720 echo "${ECHO_T}$ac_header_preproc" >&6
18722 # So? What about this header?
18723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18729 ac_header_preproc
=yes
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18746 ## ------------------------------------------ ##
18747 ## Report this to the AC_PACKAGE_NAME lists. ##
18748 ## ------------------------------------------ ##
18751 sed "s/^/$as_me: WARNING: /" >&2
18754 echo "$as_me:$LINENO: checking for $ac_header" >&5
18755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18759 eval "$as_ac_Header=\$ac_header_preproc"
18761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18766 cat >>confdefs.h
<<_ACEOF
18767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18772 for ac_header
in kerberosIV
/des.h
18774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18776 echo "$as_me:$LINENO: checking for $ac_header" >&5
18777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18784 # Is the header compilable?
18785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18787 cat >conftest.
$ac_ext <<_ACEOF
18790 cat confdefs.h
>>conftest.
$ac_ext
18791 cat >>conftest.
$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 $ac_includes_default
18794 #include <$ac_header>
18796 rm -f conftest.
$ac_objext
18797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
18800 grep -v '^ *+' conftest.er1
>conftest.err
18802 cat conftest.err
>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try
='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try
='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_header_compiler
=yes
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.
$ac_ext >&5
18823 ac_header_compiler
=no
18825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 echo "${ECHO_T}$ac_header_compiler" >&6
18829 # Is the header present?
18830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18832 cat >conftest.
$ac_ext <<_ACEOF
18835 cat confdefs.h
>>conftest.
$ac_ext
18836 cat >>conftest.
$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <$ac_header>
18840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18841 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18843 grep -v '^ *+' conftest.er1
>conftest.err
18845 cat conftest.err
>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } >/dev
/null
; then
18848 if test -s conftest.err
; then
18849 ac_cpp_err
=$ac_c_preproc_warn_flag
18850 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18857 if test -z "$ac_cpp_err"; then
18858 ac_header_preproc
=yes
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18863 ac_header_preproc
=no
18865 rm -f conftest.err conftest.
$ac_ext
18866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc
=yes
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18893 ## ------------------------------------------ ##
18894 ## Report this to the AC_PACKAGE_NAME lists. ##
18895 ## ------------------------------------------ ##
18898 sed "s/^/$as_me: WARNING: /" >&2
18901 echo "$as_me:$LINENO: checking for $ac_header" >&5
18902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 eval "$as_ac_Header=\$ac_header_preproc"
18908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18913 cat >>confdefs.h
<<_ACEOF
18914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18919 for ac_header
in kerberos
/des.h
18921 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18923 echo "$as_me:$LINENO: checking for $ac_header" >&5
18924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18931 # Is the header compilable?
18932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18934 cat >conftest.
$ac_ext <<_ACEOF
18937 cat confdefs.h
>>conftest.
$ac_ext
18938 cat >>conftest.
$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18941 #include <$ac_header>
18943 rm -f conftest.
$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>conftest.er1
18947 grep -v '^ *+' conftest.er1
>conftest.err
18949 cat conftest.err
>&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try
='test -z "$ac_c_werror_flag"
18953 || test ! -s conftest.err'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try
='test -s conftest.$ac_objext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_header_compiler
=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.
$ac_ext >&5
18970 ac_header_compiler
=no
18972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18974 echo "${ECHO_T}$ac_header_compiler" >&6
18976 # Is the header present?
18977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18979 cat >conftest.
$ac_ext <<_ACEOF
18982 cat confdefs.h
>>conftest.
$ac_ext
18983 cat >>conftest.
$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985 #include <$ac_header>
18987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18988 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18990 grep -v '^ *+' conftest.er1
>conftest.err
18992 cat conftest.err
>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } >/dev
/null
; then
18995 if test -s conftest.err
; then
18996 ac_cpp_err
=$ac_c_preproc_warn_flag
18997 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19004 if test -z "$ac_cpp_err"; then
19005 ac_header_preproc
=yes
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.
$ac_ext >&5
19010 ac_header_preproc
=no
19012 rm -f conftest.err conftest.
$ac_ext
19013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19014 echo "${ECHO_T}$ac_header_preproc" >&6
19016 # So? What about this header?
19017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19023 ac_header_preproc
=yes
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19040 ## ------------------------------------------ ##
19041 ## Report this to the AC_PACKAGE_NAME lists. ##
19042 ## ------------------------------------------ ##
19045 sed "s/^/$as_me: WARNING: /" >&2
19048 echo "$as_me:$LINENO: checking for $ac_header" >&5
19049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 eval "$as_ac_Header=\$ac_header_preproc"
19055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19060 cat >>confdefs.h
<<_ACEOF
19061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19077 for ac_header
in krb.h
19079 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19081 echo "$as_me:$LINENO: checking for $ac_header" >&5
19082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19089 # Is the header compilable?
19090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19092 cat >conftest.
$ac_ext <<_ACEOF
19095 cat confdefs.h
>>conftest.
$ac_ext
19096 cat >>conftest.
$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 $ac_includes_default
19099 #include <$ac_header>
19101 rm -f conftest.
$ac_objext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103 (eval $ac_compile) 2>conftest.er1
19105 grep -v '^ *+' conftest.er1
>conftest.err
19107 cat conftest.err
>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try
='test -z "$ac_c_werror_flag"
19111 || test ! -s conftest.err'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try
='test -s conftest.$ac_objext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_header_compiler
=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.
$ac_ext >&5
19128 ac_header_compiler
=no
19130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19132 echo "${ECHO_T}$ac_header_compiler" >&6
19134 # Is the header present?
19135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19137 cat >conftest.
$ac_ext <<_ACEOF
19140 cat confdefs.h
>>conftest.
$ac_ext
19141 cat >>conftest.
$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 #include <$ac_header>
19145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19148 grep -v '^ *+' conftest.er1
>conftest.err
19150 cat conftest.err
>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } >/dev
/null
; then
19153 if test -s conftest.err
; then
19154 ac_cpp_err
=$ac_c_preproc_warn_flag
19155 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19162 if test -z "$ac_cpp_err"; then
19163 ac_header_preproc
=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.
$ac_ext >&5
19168 ac_header_preproc
=no
19170 rm -f conftest.err conftest.
$ac_ext
19171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19172 echo "${ECHO_T}$ac_header_preproc" >&6
19174 # So? What about this header?
19175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19181 ac_header_preproc
=yes
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19198 ## ------------------------------------------ ##
19199 ## Report this to the AC_PACKAGE_NAME lists. ##
19200 ## ------------------------------------------ ##
19203 sed "s/^/$as_me: WARNING: /" >&2
19206 echo "$as_me:$LINENO: checking for $ac_header" >&5
19207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 eval "$as_ac_Header=\$ac_header_preproc"
19213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19218 cat >>confdefs.h
<<_ACEOF
19219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19224 for ac_header
in kerberosIV
/krb.h
19226 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo "$as_me:$LINENO: checking for $ac_header" >&5
19229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19236 # Is the header compilable?
19237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19239 cat >conftest.
$ac_ext <<_ACEOF
19242 cat confdefs.h
>>conftest.
$ac_ext
19243 cat >>conftest.
$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19246 #include <$ac_header>
19248 rm -f conftest.
$ac_objext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250 (eval $ac_compile) 2>conftest.er1
19252 grep -v '^ *+' conftest.er1
>conftest.err
19254 cat conftest.err
>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try
='test -z "$ac_c_werror_flag"
19258 || test ! -s conftest.err'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try
='test -s conftest.$ac_objext'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_header_compiler
=yes
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.
$ac_ext >&5
19275 ac_header_compiler
=no
19277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19279 echo "${ECHO_T}$ac_header_compiler" >&6
19281 # Is the header present?
19282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19284 cat >conftest.
$ac_ext <<_ACEOF
19287 cat confdefs.h
>>conftest.
$ac_ext
19288 cat >>conftest.
$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <$ac_header>
19292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19293 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19295 grep -v '^ *+' conftest.er1
>conftest.err
19297 cat conftest.err
>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } >/dev
/null
; then
19300 if test -s conftest.err
; then
19301 ac_cpp_err
=$ac_c_preproc_warn_flag
19302 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19309 if test -z "$ac_cpp_err"; then
19310 ac_header_preproc
=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.
$ac_ext >&5
19315 ac_header_preproc
=no
19317 rm -f conftest.err conftest.
$ac_ext
19318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19319 echo "${ECHO_T}$ac_header_preproc" >&6
19321 # So? What about this header?
19322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19328 ac_header_preproc
=yes
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19345 ## ------------------------------------------ ##
19346 ## Report this to the AC_PACKAGE_NAME lists. ##
19347 ## ------------------------------------------ ##
19350 sed "s/^/$as_me: WARNING: /" >&2
19353 echo "$as_me:$LINENO: checking for $ac_header" >&5
19354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 eval "$as_ac_Header=\$ac_header_preproc"
19360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19365 cat >>confdefs.h
<<_ACEOF
19366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19371 for ac_header
in kerberos
/krb.h
19373 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19375 echo "$as_me:$LINENO: checking for $ac_header" >&5
19376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19383 # Is the header compilable?
19384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19386 cat >conftest.
$ac_ext <<_ACEOF
19389 cat confdefs.h
>>conftest.
$ac_ext
19390 cat >>conftest.
$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 $ac_includes_default
19393 #include <$ac_header>
19395 rm -f conftest.
$ac_objext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19397 (eval $ac_compile) 2>conftest.er1
19399 grep -v '^ *+' conftest.er1
>conftest.err
19401 cat conftest.err
>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try
='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try
='test -s conftest.$ac_objext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_header_compiler
=yes
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.
$ac_ext >&5
19422 ac_header_compiler
=no
19424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19426 echo "${ECHO_T}$ac_header_compiler" >&6
19428 # Is the header present?
19429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19431 cat >conftest.
$ac_ext <<_ACEOF
19434 cat confdefs.h
>>conftest.
$ac_ext
19435 cat >>conftest.
$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 #include <$ac_header>
19439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19440 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19442 grep -v '^ *+' conftest.er1
>conftest.err
19444 cat conftest.err
>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } >/dev
/null
; then
19447 if test -s conftest.err
; then
19448 ac_cpp_err
=$ac_c_preproc_warn_flag
19449 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19456 if test -z "$ac_cpp_err"; then
19457 ac_header_preproc
=yes
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.
$ac_ext >&5
19462 ac_header_preproc
=no
19464 rm -f conftest.err conftest.
$ac_ext
19465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19466 echo "${ECHO_T}$ac_header_preproc" >&6
19468 # So? What about this header?
19469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19475 ac_header_preproc
=yes
19478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19492 ## ------------------------------------------ ##
19493 ## Report this to the AC_PACKAGE_NAME lists. ##
19494 ## ------------------------------------------ ##
19497 sed "s/^/$as_me: WARNING: /" >&2
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5
19501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 eval "$as_ac_Header=\$ac_header_preproc"
19507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19512 cat >>confdefs.h
<<_ACEOF
19513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19530 for ac_header
in com_err.h
19532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19534 echo "$as_me:$LINENO: checking for $ac_header" >&5
19535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19542 # Is the header compilable?
19543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19545 cat >conftest.
$ac_ext <<_ACEOF
19548 cat confdefs.h
>>conftest.
$ac_ext
19549 cat >>conftest.
$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 $ac_includes_default
19552 #include <$ac_header>
19554 rm -f conftest.
$ac_objext
19555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19556 (eval $ac_compile) 2>conftest.er1
19558 grep -v '^ *+' conftest.er1
>conftest.err
19560 cat conftest.err
>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
19563 { ac_try
='test -z "$ac_c_werror_flag"
19564 || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try
='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_header_compiler
=yes
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.
$ac_ext >&5
19581 ac_header_compiler
=no
19583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19585 echo "${ECHO_T}$ac_header_compiler" >&6
19587 # Is the header present?
19588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19590 cat >conftest.
$ac_ext <<_ACEOF
19593 cat confdefs.h
>>conftest.
$ac_ext
19594 cat >>conftest.
$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 #include <$ac_header>
19598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19599 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19601 grep -v '^ *+' conftest.er1
>conftest.err
19603 cat conftest.err
>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } >/dev
/null
; then
19606 if test -s conftest.err
; then
19607 ac_cpp_err
=$ac_c_preproc_warn_flag
19608 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19615 if test -z "$ac_cpp_err"; then
19616 ac_header_preproc
=yes
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.
$ac_ext >&5
19621 ac_header_preproc
=no
19623 rm -f conftest.err conftest.
$ac_ext
19624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19625 echo "${ECHO_T}$ac_header_preproc" >&6
19627 # So? What about this header?
19628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19634 ac_header_preproc
=yes
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19651 ## ------------------------------------------ ##
19652 ## Report this to the AC_PACKAGE_NAME lists. ##
19653 ## ------------------------------------------ ##
19656 sed "s/^/$as_me: WARNING: /" >&2
19659 echo "$as_me:$LINENO: checking for $ac_header" >&5
19660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 eval "$as_ac_Header=\$ac_header_preproc"
19666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19671 cat >>confdefs.h
<<_ACEOF
19672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19681 # Solaris requires -lintl if you want strerror (which calls dgettext)
19682 # to return localized messages.
19684 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19685 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19686 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 ac_check_lib_save_LIBS
=$LIBS
19690 LIBS
="-lintl $LIBS"
19691 cat >conftest.
$ac_ext <<_ACEOF
19694 cat confdefs.h
>>conftest.
$ac_ext
19695 cat >>conftest.
$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19698 /* Override any gcc2 internal prototype to avoid an error. */
19702 /* We use char because int might match the return type of a gcc2
19703 builtin and then its argument prototype would still apply. */
19713 rm -f conftest.
$ac_objext conftest
$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>conftest.er1
19717 grep -v '^ *+' conftest.er1
>conftest.err
19719 cat conftest.err
>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try
='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try
='test -s conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_lib_intl_dgettext
=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.
$ac_ext >&5
19740 ac_cv_lib_intl_dgettext
=no
19742 rm -f conftest.err conftest.
$ac_objext \
19743 conftest
$ac_exeext conftest.
$ac_ext
19744 LIBS
=$ac_check_lib_save_LIBS
19746 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19747 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19748 if test $ac_cv_lib_intl_dgettext = yes; then
19749 cat >>confdefs.h
<<_ACEOF
19750 #define HAVE_LIBINTL 1
19753 LIBS
="-lintl $LIBS"
19758 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19759 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19760 if test "${emacs_cv_localtime_cache+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 if test x
$ac_cv_func_tzset = xyes
; then
19764 if test "$cross_compiling" = yes; then
19765 # If we have tzset, assume the worst when cross-compiling.
19766 emacs_cv_localtime_cache
=yes
19768 cat >conftest.
$ac_ext <<_ACEOF
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 extern char **environ;
19779 for (to = from = environ; (*to = *from); from++)
19780 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19783 char TZ_GMT0[] = "TZ=GMT0";
19784 char TZ_PST8[] = "TZ=PST8";
19787 time_t now = time ((time_t *) 0);
19788 int hour_GMT0, hour_unset;
19789 if (putenv (TZ_GMT0) != 0)
19791 hour_GMT0 = localtime (&now)->tm_hour;
19793 hour_unset = localtime (&now)->tm_hour;
19794 if (putenv (TZ_PST8) != 0)
19796 if (localtime (&now)->tm_hour == hour_GMT0)
19799 if (localtime (&now)->tm_hour != hour_unset)
19804 rm -f conftest
$ac_exeext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19806 (eval $ac_link) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 emacs_cv_localtime_cache
=no
19817 echo "$as_me: program exited with status $ac_status" >&5
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.
$ac_ext >&5
19821 ( exit $ac_status )
19822 emacs_cv_localtime_cache
=yes
19824 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19827 # If we lack tzset, report that localtime does not cache TZ,
19828 # since we can't invalidate the cache if we don't have tzset.
19829 emacs_cv_localtime_cache
=no
19832 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19833 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19834 if test $emacs_cv_localtime_cache = yes; then
19836 cat >>confdefs.h
<<\_ACEOF
19837 #define LOCALTIME_CACHE 1
19842 if test "x$HAVE_TIMEVAL" = xyes
; then
19844 for ac_func
in gettimeofday
19846 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19847 echo "$as_me:$LINENO: checking for $ac_func" >&5
19848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19849 if eval "test \"\${$as_ac_var+set}\" = set"; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 cat >conftest.
$ac_ext <<_ACEOF
19855 cat confdefs.h
>>conftest.
$ac_ext
19856 cat >>conftest.
$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19860 #define $ac_func innocuous_$ac_func
19862 /* System header to define __stub macros and hopefully few prototypes,
19863 which can conflict with char $ac_func (); below.
19864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19865 <limits.h> exists even on freestanding compilers. */
19868 # include <limits.h>
19870 # include <assert.h>
19875 /* Override any gcc2 internal prototype to avoid an error. */
19880 /* We use char because int might match the return type of a gcc2
19881 builtin and then its argument prototype would still apply. */
19883 /* The GNU C library defines this for functions which it implements
19884 to always fail with ENOSYS. Some functions are actually named
19885 something starting with __ and the normal name is an alias. */
19886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19889 char (*f) () = $ac_func;
19898 return f != $ac_func;
19903 rm -f conftest.
$ac_objext conftest
$ac_exeext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905 (eval $ac_link) 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); } &&
19912 { ac_try
='test -z "$ac_c_werror_flag"
19913 || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try
='test -s conftest$ac_exeext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 eval "$as_ac_var=yes"
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.
$ac_ext >&5
19930 eval "$as_ac_var=no"
19932 rm -f conftest.err conftest.
$ac_objext \
19933 conftest
$ac_exeext conftest.
$ac_ext
19935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19937 if test `eval echo '${'$as_ac_var'}'` = yes; then
19938 cat >>confdefs.h
<<_ACEOF
19939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19945 if test $ac_cv_func_gettimeofday = yes; then
19946 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19947 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19948 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 cat >conftest.
$ac_ext <<_ACEOF
19954 cat confdefs.h
>>conftest.
$ac_ext
19955 cat >>conftest.
$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19958 #ifdef TIME_WITH_SYS_TIME
19959 #include <sys/time.h>
19962 #ifdef HAVE_SYS_TIME_H
19963 #include <sys/time.h>
19971 struct timeval time;
19972 gettimeofday (&time, 0);
19977 rm -f conftest.
$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979 (eval $ac_compile) 2>conftest.er1
19981 grep -v '^ *+' conftest.er1
>conftest.err
19983 cat conftest.err
>&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
19986 { ac_try
='test -z "$ac_c_werror_flag"
19987 || test ! -s conftest.err'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try
='test -s conftest.$ac_objext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 emacs_cv_gettimeofday_two_arguments
=yes
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.
$ac_ext >&5
20004 emacs_cv_gettimeofday_two_arguments
=no
20006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20008 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20009 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20010 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20012 cat >>confdefs.h
<<\_ACEOF
20013 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20020 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20021 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20022 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20023 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 cat >conftest.
$ac_ext <<_ACEOF
20029 cat confdefs.h
>>conftest.
$ac_ext
20030 cat >>conftest.
$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <sys/types.h>
20033 #include <$ac_cv_struct_tm>
20039 static struct tm ac_aggr;
20040 if (ac_aggr.tm_zone)
20046 rm -f conftest.
$ac_objext
20047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20048 (eval $ac_compile) 2>conftest.er1
20050 grep -v '^ *+' conftest.er1
>conftest.err
20052 cat conftest.err
>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
20055 { ac_try
='test -z "$ac_c_werror_flag"
20056 || test ! -s conftest.err'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try
='test -s conftest.$ac_objext'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_member_struct_tm_tm_zone
=yes
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.
$ac_ext >&5
20073 cat >conftest.
$ac_ext <<_ACEOF
20076 cat confdefs.h
>>conftest.
$ac_ext
20077 cat >>conftest.
$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 #include <sys/types.h>
20080 #include <$ac_cv_struct_tm>
20086 static struct tm ac_aggr;
20087 if (sizeof ac_aggr.tm_zone)
20093 rm -f conftest.
$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20097 grep -v '^ *+' conftest.er1
>conftest.err
20099 cat conftest.err
>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try
='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try
='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_member_struct_tm_tm_zone
=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.
$ac_ext >&5
20120 ac_cv_member_struct_tm_tm_zone
=no
20122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20130 cat >>confdefs.h
<<_ACEOF
20131 #define HAVE_STRUCT_TM_TM_ZONE 1
20137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20139 cat >>confdefs.h
<<\_ACEOF
20140 #define HAVE_TM_ZONE 1
20144 echo "$as_me:$LINENO: checking for tzname" >&5
20145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20146 if test "${ac_cv_var_tzname+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 cat >conftest.
$ac_ext <<_ACEOF
20152 cat confdefs.h
>>conftest.
$ac_ext
20153 cat >>conftest.
$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20156 #ifndef tzname /* For SGI. */
20157 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20168 rm -f conftest.
$ac_objext conftest
$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1
>conftest.err
20174 cat conftest.err
>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try
='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try
='test -s conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_var_tzname
=yes
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.
$ac_ext >&5
20195 ac_cv_var_tzname
=no
20197 rm -f conftest.err conftest.
$ac_objext \
20198 conftest
$ac_exeext conftest.
$ac_ext
20200 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20201 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20202 if test $ac_cv_var_tzname = yes; then
20204 cat >>confdefs.h
<<\_ACEOF
20205 #define HAVE_TZNAME 1
20212 if test "$ac_cv_func_gettimeofday" = yes; then
20213 echo "$as_me:$LINENO: checking for struct timezone" >&5
20214 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20215 if test "${emacs_cv_struct_timezone+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 cat >conftest.
$ac_ext <<_ACEOF
20221 cat confdefs.h
>>conftest.
$ac_ext
20222 cat >>conftest.
$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <sys/time.h>
20228 struct timezone tz;
20233 rm -f conftest.
$ac_objext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20235 (eval $ac_compile) 2>conftest.er1
20237 grep -v '^ *+' conftest.er1
>conftest.err
20239 cat conftest.err
>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try
='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try
='test -s conftest.$ac_objext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 if test "$cross_compiling" = yes; then
20256 emacs_cv_struct_timezone
=yes
20258 cat >conftest.
$ac_ext <<_ACEOF
20261 cat confdefs.h
>>conftest.
$ac_ext
20262 cat >>conftest.
$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20265 #ifdef TIME_WITH_SYS_TIME
20266 #include <sys/time.h>
20269 #ifdef HAVE_SYS_TIME_H
20270 #include <sys/time.h>
20276 struct timeval time;
20277 struct timezone dummy;
20278 exit (gettimeofday (&time, &dummy));
20281 rm -f conftest
$ac_exeext
20282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20283 (eval $ac_link) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 emacs_cv_struct_timezone
=yes
20294 echo "$as_me: program exited with status $ac_status" >&5
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.
$ac_ext >&5
20298 ( exit $ac_status )
20299 emacs_cv_struct_timezone
=no
20301 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.
$ac_ext >&5
20307 emacs_cv_struct_timezone
=no
20309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20311 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20312 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20316 echo "$as_me:$LINENO: checking for socket" >&5
20317 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20318 if test "${ac_cv_func_socket+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 cat >conftest.
$ac_ext <<_ACEOF
20324 cat confdefs.h
>>conftest.
$ac_ext
20325 cat >>conftest.
$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20329 #define socket innocuous_socket
20331 /* System header to define __stub macros and hopefully few prototypes,
20332 which can conflict with char socket (); below.
20333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20334 <limits.h> exists even on freestanding compilers. */
20337 # include <limits.h>
20339 # include <assert.h>
20344 /* Override any gcc2 internal prototype to avoid an error. */
20349 /* We use char because int might match the return type of a gcc2
20350 builtin and then its argument prototype would still apply. */
20352 /* The GNU C library defines this for functions which it implements
20353 to always fail with ENOSYS. Some functions are actually named
20354 something starting with __ and the normal name is an alias. */
20355 #if defined (__stub_socket) || defined (__stub___socket)
20358 char (*f) () = socket;
20367 return f != socket;
20372 rm -f conftest.
$ac_objext conftest
$ac_exeext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20374 (eval $ac_link) 2>conftest.er1
20376 grep -v '^ *+' conftest.er1
>conftest.err
20378 cat conftest.err
>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try
='test -z "$ac_c_werror_flag"
20382 || test ! -s conftest.err'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; } &&
20388 { ac_try
='test -s conftest$ac_exeext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 ac_cv_func_socket
=yes
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.
$ac_ext >&5
20399 ac_cv_func_socket
=no
20401 rm -f conftest.err conftest.
$ac_objext \
20402 conftest
$ac_exeext conftest.
$ac_ext
20404 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20405 echo "${ECHO_T}$ac_cv_func_socket" >&6
20406 if test $ac_cv_func_socket = yes; then
20412 if test $ok_so_far = yes; then
20413 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20414 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20415 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20416 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20420 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20422 # Is the header compilable?
20423 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20424 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20425 cat >conftest.
$ac_ext <<_ACEOF
20428 cat confdefs.h
>>conftest.
$ac_ext
20429 cat >>conftest.
$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 $ac_includes_default
20432 #include <netinet/in.h>
20434 rm -f conftest.
$ac_objext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436 (eval $ac_compile) 2>conftest.er1
20438 grep -v '^ *+' conftest.er1
>conftest.err
20440 cat conftest.err
>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try
='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try
='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_header_compiler
=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.
$ac_ext >&5
20461 ac_header_compiler
=no
20463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20465 echo "${ECHO_T}$ac_header_compiler" >&6
20467 # Is the header present?
20468 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20469 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20470 cat >conftest.
$ac_ext <<_ACEOF
20473 cat confdefs.h
>>conftest.
$ac_ext
20474 cat >>conftest.
$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 #include <netinet/in.h>
20478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20481 grep -v '^ *+' conftest.er1
>conftest.err
20483 cat conftest.err
>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } >/dev
/null
; then
20486 if test -s conftest.err
; then
20487 ac_cpp_err
=$ac_c_preproc_warn_flag
20488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20495 if test -z "$ac_cpp_err"; then
20496 ac_header_preproc
=yes
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.
$ac_ext >&5
20501 ac_header_preproc
=no
20503 rm -f conftest.err conftest.
$ac_ext
20504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20505 echo "${ECHO_T}$ac_header_preproc" >&6
20507 # So? What about this header?
20508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20510 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20511 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20513 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20514 ac_header_preproc
=yes
20517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20518 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20520 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20522 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20524 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20526 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20528 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20531 ## ------------------------------------------ ##
20532 ## Report this to the AC_PACKAGE_NAME lists. ##
20533 ## ------------------------------------------ ##
20536 sed "s/^/$as_me: WARNING: /" >&2
20539 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20540 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20541 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 ac_cv_header_netinet_in_h
=$ac_header_preproc
20546 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20547 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20550 if test $ac_cv_header_netinet_in_h = yes; then
20558 if test $ok_so_far = yes; then
20559 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20560 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20561 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20562 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20566 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20568 # Is the header compilable?
20569 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20570 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20571 cat >conftest.
$ac_ext <<_ACEOF
20574 cat confdefs.h
>>conftest.
$ac_ext
20575 cat >>conftest.
$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 $ac_includes_default
20578 #include <arpa/inet.h>
20580 rm -f conftest.
$ac_objext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20582 (eval $ac_compile) 2>conftest.er1
20584 grep -v '^ *+' conftest.er1
>conftest.err
20586 cat conftest.err
>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try
='test -z "$ac_c_werror_flag"
20590 || test ! -s conftest.err'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; } &&
20596 { ac_try
='test -s conftest.$ac_objext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ac_header_compiler
=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.
$ac_ext >&5
20607 ac_header_compiler
=no
20609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20611 echo "${ECHO_T}$ac_header_compiler" >&6
20613 # Is the header present?
20614 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20615 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20616 cat >conftest.
$ac_ext <<_ACEOF
20619 cat confdefs.h
>>conftest.
$ac_ext
20620 cat >>conftest.
$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 #include <arpa/inet.h>
20624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20627 grep -v '^ *+' conftest.er1
>conftest.err
20629 cat conftest.err
>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } >/dev
/null
; then
20632 if test -s conftest.err
; then
20633 ac_cpp_err
=$ac_c_preproc_warn_flag
20634 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20641 if test -z "$ac_cpp_err"; then
20642 ac_header_preproc
=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.
$ac_ext >&5
20647 ac_header_preproc
=no
20649 rm -f conftest.err conftest.
$ac_ext
20650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6
20653 # So? What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20656 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20660 ac_header_preproc
=yes
20663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20677 ## ------------------------------------------ ##
20678 ## Report this to the AC_PACKAGE_NAME lists. ##
20679 ## ------------------------------------------ ##
20682 sed "s/^/$as_me: WARNING: /" >&2
20685 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20686 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20687 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20692 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20693 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20696 if test $ac_cv_header_arpa_inet_h = yes; then
20704 if test $ok_so_far = yes; then
20706 cat >>confdefs.h
<<\_ACEOF
20707 #define HAVE_INET_SOCKETS 1
20713 for ac_header
in sys
/ioctl.h
20715 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20717 echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20725 # Is the header compilable?
20726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20728 cat >conftest.
$ac_ext <<_ACEOF
20731 cat confdefs.h
>>conftest.
$ac_ext
20732 cat >>conftest.
$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20735 #include <$ac_header>
20737 rm -f conftest.
$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20741 grep -v '^ *+' conftest.er1
>conftest.err
20743 cat conftest.err
>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try
='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try
='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_header_compiler
=yes
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.
$ac_ext >&5
20764 ac_header_compiler
=no
20766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20768 echo "${ECHO_T}$ac_header_compiler" >&6
20770 # Is the header present?
20771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20773 cat >conftest.
$ac_ext <<_ACEOF
20776 cat confdefs.h
>>conftest.
$ac_ext
20777 cat >>conftest.
$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 #include <$ac_header>
20781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20784 grep -v '^ *+' conftest.er1
>conftest.err
20786 cat conftest.err
>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } >/dev
/null
; then
20789 if test -s conftest.err
; then
20790 ac_cpp_err
=$ac_c_preproc_warn_flag
20791 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20798 if test -z "$ac_cpp_err"; then
20799 ac_header_preproc
=yes
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.
$ac_ext >&5
20804 ac_header_preproc
=no
20806 rm -f conftest.err conftest.
$ac_ext
20807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20808 echo "${ECHO_T}$ac_header_preproc" >&6
20810 # So? What about this header?
20811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20817 ac_header_preproc
=yes
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20834 ## ------------------------------------------ ##
20835 ## Report this to the AC_PACKAGE_NAME lists. ##
20836 ## ------------------------------------------ ##
20839 sed "s/^/$as_me: WARNING: /" >&2
20842 echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 eval "$as_ac_Header=\$ac_header_preproc"
20849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h
<<_ACEOF
20855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20863 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20865 cat >>confdefs.h
<<\_ACEOF
20866 #define HAVE_AIX_SMT_EXP 1
20871 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20872 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20873 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20874 echo "$as_me:$LINENO: result: yes" >&5
20875 echo "${ECHO_T}yes" >&6
20877 cat >>confdefs.h
<<\_ACEOF
20878 #define HAVE_DEV_PTMX 1
20882 echo "$as_me:$LINENO: result: no" >&5
20883 echo "${ECHO_T}no" >&6
20886 echo "$as_me:$LINENO: checking for pid_t" >&5
20887 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20888 if test "${ac_cv_type_pid_t+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 cat >conftest.
$ac_ext <<_ACEOF
20894 cat confdefs.h
>>conftest.
$ac_ext
20895 cat >>conftest.
$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 $ac_includes_default
20903 if (sizeof (pid_t))
20909 rm -f conftest.
$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20913 grep -v '^ *+' conftest.er1
>conftest.err
20915 cat conftest.err
>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try
='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try
='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_cv_type_pid_t
=yes
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.
$ac_ext >&5
20936 ac_cv_type_pid_t
=no
20938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20940 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20941 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20942 if test $ac_cv_type_pid_t = yes; then
20946 cat >>confdefs.h
<<_ACEOF
20954 for ac_header
in unistd.h vfork.h
20956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20958 echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20966 # Is the header compilable?
20967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20969 cat >conftest.
$ac_ext <<_ACEOF
20972 cat confdefs.h
>>conftest.
$ac_ext
20973 cat >>conftest.
$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 $ac_includes_default
20976 #include <$ac_header>
20978 rm -f conftest.
$ac_objext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980 (eval $ac_compile) 2>conftest.er1
20982 grep -v '^ *+' conftest.er1
>conftest.err
20984 cat conftest.err
>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try
='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try
='test -s conftest.$ac_objext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_header_compiler
=yes
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.
$ac_ext >&5
21005 ac_header_compiler
=no
21007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21009 echo "${ECHO_T}$ac_header_compiler" >&6
21011 # Is the header present?
21012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21014 cat >conftest.
$ac_ext <<_ACEOF
21017 cat confdefs.h
>>conftest.
$ac_ext
21018 cat >>conftest.
$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 #include <$ac_header>
21022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21025 grep -v '^ *+' conftest.er1
>conftest.err
21027 cat conftest.err
>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } >/dev
/null
; then
21030 if test -s conftest.err
; then
21031 ac_cpp_err
=$ac_c_preproc_warn_flag
21032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21039 if test -z "$ac_cpp_err"; then
21040 ac_header_preproc
=yes
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.
$ac_ext >&5
21045 ac_header_preproc
=no
21047 rm -f conftest.err conftest.
$ac_ext
21048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21049 echo "${ECHO_T}$ac_header_preproc" >&6
21051 # So? What about this header?
21052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21058 ac_header_preproc
=yes
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21075 ## ------------------------------------------ ##
21076 ## Report this to the AC_PACKAGE_NAME lists. ##
21077 ## ------------------------------------------ ##
21080 sed "s/^/$as_me: WARNING: /" >&2
21083 echo "$as_me:$LINENO: checking for $ac_header" >&5
21084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 eval "$as_ac_Header=\$ac_header_preproc"
21090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21095 cat >>confdefs.h
<<_ACEOF
21096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21105 for ac_func
in fork vfork
21107 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21108 echo "$as_me:$LINENO: checking for $ac_func" >&5
21109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21110 if eval "test \"\${$as_ac_var+set}\" = set"; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 cat >conftest.
$ac_ext <<_ACEOF
21116 cat confdefs.h
>>conftest.
$ac_ext
21117 cat >>conftest.
$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21121 #define $ac_func innocuous_$ac_func
21123 /* System header to define __stub macros and hopefully few prototypes,
21124 which can conflict with char $ac_func (); below.
21125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21126 <limits.h> exists even on freestanding compilers. */
21129 # include <limits.h>
21131 # include <assert.h>
21136 /* Override any gcc2 internal prototype to avoid an error. */
21141 /* We use char because int might match the return type of a gcc2
21142 builtin and then its argument prototype would still apply. */
21144 /* The GNU C library defines this for functions which it implements
21145 to always fail with ENOSYS. Some functions are actually named
21146 something starting with __ and the normal name is an alias. */
21147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21150 char (*f) () = $ac_func;
21159 return f != $ac_func;
21164 rm -f conftest.
$ac_objext conftest
$ac_exeext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166 (eval $ac_link) 2>conftest.er1
21168 grep -v '^ *+' conftest.er1
>conftest.err
21170 cat conftest.err
>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try
='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try
='test -s conftest$ac_exeext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 eval "$as_ac_var=yes"
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.
$ac_ext >&5
21191 eval "$as_ac_var=no"
21193 rm -f conftest.err conftest.
$ac_objext \
21194 conftest
$ac_exeext conftest.
$ac_ext
21196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21198 if test `eval echo '${'$as_ac_var'}'` = yes; then
21199 cat >>confdefs.h
<<_ACEOF
21200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21206 if test "x$ac_cv_func_fork" = xyes
; then
21207 echo "$as_me:$LINENO: checking for working fork" >&5
21208 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21209 if test "${ac_cv_func_fork_works+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 if test "$cross_compiling" = yes; then
21213 ac_cv_func_fork_works
=cross
21215 cat >conftest.
$ac_ext <<_ACEOF
21216 /* By Ruediger Kuhlmann. */
21217 #include <sys/types.h>
21219 # include <unistd.h>
21221 /* Some systems only have a dummy stub for fork() */
21229 rm -f conftest
$ac_exeext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21231 (eval $ac_link) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_func_fork_works
=yes
21242 echo "$as_me: program exited with status $ac_status" >&5
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.
$ac_ext >&5
21246 ( exit $ac_status )
21247 ac_cv_func_fork_works
=no
21249 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21252 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21253 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21256 ac_cv_func_fork_works
=$ac_cv_func_fork
21258 if test "x$ac_cv_func_fork_works" = xcross
; then
21260 *-*-amigaos* |
*-*-msdosdjgpp*)
21261 # Override, as these systems have only a dummy fork() stub
21262 ac_cv_func_fork_works
=no
21265 ac_cv_func_fork_works
=yes
21268 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21269 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21271 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21272 if test "x$ac_cv_func_vfork" = xyes
; then
21273 echo "$as_me:$LINENO: checking for working vfork" >&5
21274 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21275 if test "${ac_cv_func_vfork_works+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 if test "$cross_compiling" = yes; then
21279 ac_cv_func_vfork_works
=cross
21281 cat >conftest.
$ac_ext <<_ACEOF
21284 cat confdefs.h
>>conftest.
$ac_ext
21285 cat >>conftest.
$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 /* Thanks to Paul Eggert for this test. */
21289 #include <stdlib.h>
21290 #include <sys/types.h>
21291 #include <sys/stat.h>
21292 #include <sys/wait.h>
21294 # include <unistd.h>
21297 # include <vfork.h>
21299 /* On some sparc systems, changes by the child to local and incoming
21300 argument registers are propagated back to the parent. The compiler
21301 is told about this with #include <vfork.h>, but some compilers
21302 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21303 static variable whose address is put into a register that is
21304 clobbered by the vfork. */
21307 sparc_address_test (int arg)
21309 sparc_address_test (arg) int arg;
21312 static pid_t child;
21330 pid_t parent = getpid ();
21333 sparc_address_test (0);
21338 /* Here is another test for sparc vfork register problems. This
21339 test uses lots of local variables, at least as many local
21340 variables as main has allocated so far including compiler
21341 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21342 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21343 reuse the register of parent for one of the local variables,
21344 since it will think that parent can't possibly be used any more
21345 in this routine. Assigning to the local variable will thus
21346 munge parent in the parent process. */
21348 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21349 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21350 /* Convince the compiler that p..p7 are live; otherwise, it might
21351 use the same hardware register for all 8 local variables. */
21352 if (p != p1 || p != p2 || p != p3 || p != p4
21353 || p != p5 || p != p6 || p != p7)
21356 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21357 from child file descriptors. If the child closes a descriptor
21358 before it execs or exits, this munges the parent's descriptor
21359 as well. Test for this by closing stdout in the child. */
21360 _exit(close(fileno(stdout)) != 0);
21365 while (wait(&status) != child)
21368 /* Was there some problem with vforking? */
21371 /* Did the child fail? (This shouldn't happen.) */
21374 /* Did the vfork/compiler bug occur? */
21375 || parent != getpid()
21377 /* Did the file descriptor bug occur? */
21378 || fstat(fileno(stdout), &st) != 0
21383 rm -f conftest
$ac_exeext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385 (eval $ac_link) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_func_vfork_works
=yes
21396 echo "$as_me: program exited with status $ac_status" >&5
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.
$ac_ext >&5
21400 ( exit $ac_status )
21401 ac_cv_func_vfork_works
=no
21403 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21406 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21407 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21410 if test "x$ac_cv_func_fork_works" = xcross
; then
21411 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21412 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21413 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21416 if test "x$ac_cv_func_vfork_works" = xyes
; then
21418 cat >>confdefs.h
<<\_ACEOF
21419 #define HAVE_WORKING_VFORK 1
21424 cat >>confdefs.h
<<\_ACEOF
21429 if test "x$ac_cv_func_fork_works" = xyes
; then
21431 cat >>confdefs.h
<<\_ACEOF
21432 #define HAVE_WORKING_FORK 1
21438 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21439 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21440 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 cat >conftest.
$ac_ext <<_ACEOF
21446 cat confdefs.h
>>conftest.
$ac_ext
21447 cat >>conftest.
$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 #include <langinfo.h>
21453 char* cs = nl_langinfo(CODESET);
21458 rm -f conftest.
$ac_objext conftest
$ac_exeext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460 (eval $ac_link) 2>conftest.er1
21462 grep -v '^ *+' conftest.er1
>conftest.err
21464 cat conftest.err
>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try
='test -z "$ac_c_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try
='test -s conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 emacs_cv_langinfo_codeset
=yes
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.
$ac_ext >&5
21485 emacs_cv_langinfo_codeset
=no
21487 rm -f conftest.err conftest.
$ac_objext \
21488 conftest
$ac_exeext conftest.
$ac_ext
21491 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21492 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21493 if test $emacs_cv_langinfo_codeset = yes; then
21495 cat >>confdefs.h
<<\_ACEOF
21496 #define HAVE_LANGINFO_CODESET 1
21501 echo "$as_me:$LINENO: checking for size_t" >&5
21502 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21503 if test "${ac_cv_type_size_t+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 cat >conftest.
$ac_ext <<_ACEOF
21509 cat confdefs.h
>>conftest.
$ac_ext
21510 cat >>conftest.
$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 $ac_includes_default
21518 if (sizeof (size_t))
21524 rm -f conftest.
$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21528 grep -v '^ *+' conftest.er1
>conftest.err
21530 cat conftest.err
>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try
='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try
='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_type_size_t
=yes
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.
$ac_ext >&5
21551 ac_cv_type_size_t
=no
21553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21555 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21556 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21557 if test $ac_cv_type_size_t = yes; then
21559 cat >>confdefs.h
<<_ACEOF
21560 #define HAVE_SIZE_T 1
21567 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21568 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21569 if test "${ac_cv_type_mbstate_t+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 cat >conftest.
$ac_ext <<_ACEOF
21575 cat confdefs.h
>>conftest.
$ac_ext
21576 cat >>conftest.
$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 $ac_includes_default
21579 # include <wchar.h>
21583 mbstate_t x; return sizeof x;
21588 rm -f conftest.
$ac_objext
21589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590 (eval $ac_compile) 2>conftest.er1
21592 grep -v '^ *+' conftest.er1
>conftest.err
21594 cat conftest.err
>&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
21597 { ac_try
='test -z "$ac_c_werror_flag"
21598 || test ! -s conftest.err'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; } &&
21604 { ac_try
='test -s conftest.$ac_objext'
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 ac_cv_type_mbstate_t
=yes
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.
$ac_ext >&5
21615 ac_cv_type_mbstate_t
=no
21617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21619 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21620 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21621 if test $ac_cv_type_mbstate_t = yes; then
21623 cat >>confdefs.h
<<\_ACEOF
21624 #define HAVE_MBSTATE_T 1
21629 cat >>confdefs.h
<<\_ACEOF
21630 #define mbstate_t int
21635 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21636 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21637 if test "${emacs_cv_c_restrict+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 cat >conftest.
$ac_ext <<_ACEOF
21643 cat confdefs.h
>>conftest.
$ac_ext
21644 cat >>conftest.
$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 void fred (int *restrict x);
21655 rm -f conftest.
$ac_objext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21657 (eval $ac_compile) 2>conftest.er1
21659 grep -v '^ *+' conftest.er1
>conftest.err
21661 cat conftest.err
>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try
='test -z "$ac_c_werror_flag"
21665 || test ! -s conftest.err'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } &&
21671 { ac_try
='test -s conftest.$ac_objext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 emacs_cv_c_restrict
=yes
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.
$ac_ext >&5
21682 cat >conftest.
$ac_ext <<_ACEOF
21685 cat confdefs.h
>>conftest.
$ac_ext
21686 cat >>conftest.
$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 void fred (int *__restrict x);
21697 rm -f conftest.
$ac_objext
21698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21699 (eval $ac_compile) 2>conftest.er1
21701 grep -v '^ *+' conftest.er1
>conftest.err
21703 cat conftest.err
>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
21706 { ac_try
='test -z "$ac_c_werror_flag"
21707 || test ! -s conftest.err'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; } &&
21713 { ac_try
='test -s conftest.$ac_objext'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 emacs_cv_c_restrict
=__restrict
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.
$ac_ext >&5
21724 emacs_cv_c_restrict
=no
21726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21730 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21731 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21732 case "$emacs_cv_c_restrict" in
21733 yes) emacs_restrict
=restrict
;;
21734 no
) emacs_restrict
="";;
21735 *) emacs_restrict
="$emacs_cv_c_restrict";;
21737 if test "$emacs_restrict" != __restrict
; then
21739 cat >>confdefs.h
<<_ACEOF
21740 #define __restrict $emacs_restrict
21745 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21746 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21747 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 cat >conftest.
$ac_ext <<_ACEOF
21753 cat confdefs.h
>>conftest.
$ac_ext
21754 cat >>conftest.
$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 void fred (int x[__restrict]);
21765 rm -f conftest.
$ac_objext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767 (eval $ac_compile) 2>conftest.er1
21769 grep -v '^ *+' conftest.er1
>conftest.err
21771 cat conftest.err
>&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try
='test -z "$ac_c_werror_flag"
21775 || test ! -s conftest.err'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try
='test -s conftest.$ac_objext'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 emacs_cv_c_restrict_arr
=yes
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.
$ac_ext >&5
21792 emacs_cv_c_restrict_arr
=no
21794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21796 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21797 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21798 if test "$emacs_cv_c_restrict_arr" = yes; then
21800 cat >>confdefs.h
<<\_ACEOF
21801 #define __restrict_arr __restrict
21808 # Set up the CFLAGS for real compilation, so we can substitute it.
21809 CFLAGS
="$REAL_CFLAGS"
21810 CPPFLAGS
="$REAL_CPPFLAGS"
21812 #### Find out which version of Emacs this is.
21813 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21814 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21815 if test x
"${version}" = x
; then
21816 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21817 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21818 { (exit 1); exit 1; }; }
21821 ### Specify what sort of things we'll be editing into Makefile and config.h.
21822 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21858 cat >>confdefs.h
<<_ACEOF
21859 #define EMACS_CONFIGURATION "${canonical}"
21863 cat >>confdefs.h
<<_ACEOF
21864 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21868 cat >>confdefs.h
<<_ACEOF
21869 #define config_machfile "${machfile}"
21873 cat >>confdefs.h
<<_ACEOF
21874 #define config_opsysfile "${opsysfile}"
21878 cat >>confdefs.h
<<_ACEOF
21879 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21883 cat >>confdefs.h
<<_ACEOF
21884 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21888 cat >>confdefs.h
<<_ACEOF
21889 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21893 cat >>confdefs.h
<<_ACEOF
21894 #define UNEXEC_SRC ${UNEXEC_SRC}
21898 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21900 cat >>confdefs.h
<<\_ACEOF
21901 #define HAVE_X_WINDOWS 1
21905 if test "${USE_X_TOOLKIT}" != "none" ; then
21907 cat >>confdefs.h
<<\_ACEOF
21908 #define USE_X_TOOLKIT 1
21912 if test "${HAVE_X11}" = "yes" ; then
21914 cat >>confdefs.h
<<\_ACEOF
21919 if test "${HAVE_XFREE386}" = "yes" ; then
21921 cat >>confdefs.h
<<\_ACEOF
21922 #define HAVE_XFREE386 1
21926 if test "${HAVE_MENUS}" = "yes" ; then
21928 cat >>confdefs.h
<<\_ACEOF
21929 #define HAVE_MENUS 1
21933 if test "${GNU_MALLOC}" = "yes" ; then
21935 cat >>confdefs.h
<<\_ACEOF
21936 #define GNU_MALLOC 1
21940 if test "${REL_ALLOC}" = "yes" ; then
21942 cat >>confdefs.h
<<\_ACEOF
21943 #define REL_ALLOC 1
21952 #### Report on what we decided to do.
21953 #### Report GTK as a toolkit, even if it doesn't use Xt.
21954 #### It makes printing result more understandable as using GTK sets
21955 #### toolkit_scroll_bars to yes by default.
21956 if test "${HAVE_GTK}" = "yes"; then
21961 Configured for \`${canonical}'.
21963 Where should the build process find the source code? ${srcdir}
21964 What operating system and machine description files should Emacs use?
21965 \`${opsysfile}' and \`${machfile}'
21966 What compiler should emacs be built with? ${CC} ${CFLAGS}
21967 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21968 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21969 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21970 What window system should Emacs use? ${window_system}
21971 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21973 if test -n "${x_includes}"; then
21974 echo " Where do we find X Windows header files? ${x_includes}"
21976 echo " Where do we find X Windows header files? Standard dirs"
21978 if test -n "${x_libraries}"; then
21979 echo " Where do we find X Windows libraries? ${x_libraries}"
21981 echo " Where do we find X Windows libraries? Standard dirs"
21984 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21985 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21986 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21987 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21988 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21989 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21990 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21993 if test $USE_XASSERTS = yes; then
21994 echo " Compiling with asserts turned on."
21995 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22001 # Remove any trailing slashes in these variables.
22002 test "${prefix}" != NONE
&&
22003 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22004 test "${exec_prefix}" != NONE
&&
22005 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22007 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22008 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22009 ## from Makefile.c can correctly provide the arg `-traditional' to the
22012 cat >conftest.
$ac_ext <<_ACEOF
22015 cat confdefs.h
>>conftest.
$ac_ext
22016 cat >>conftest.
$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22021 $EGREP "yes..yes" >/dev
/null
2>&1; then
22022 CPP_NEED_TRADITIONAL
=no
22024 CPP_NEED_TRADITIONAL
=yes
22029 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"
22030 ac_config_commands
="$ac_config_commands default"
22031 cat >confcache
<<\_ACEOF
22032 # This file is a shell script that caches the results of configure
22033 # tests run on this system so they can be shared between configure
22034 # scripts and configure runs, see configure's option --config-cache.
22035 # It is not useful on other systems. If it contains results you don't
22036 # want to keep, you may remove or edit it.
22038 # config.status only pays attention to the cache file if you give it
22039 # the --recheck option to rerun configure.
22041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22043 # following values.
22047 # The following way of writing the cache mishandles newlines in values,
22048 # but we know of no workaround that is simple, portable, and efficient.
22049 # So, don't put newlines in cache variables' values.
22050 # Ultrix sh set writes to stderr and can't be redirected directly,
22051 # and sets the high bit in the cache file unless we assign to the vars.
22054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22056 # `set' does not quote correctly, so add quotes (double-quote
22057 # substitution turns \\\\ into \\, and sed turns \\ into \).
22060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22063 # `set' quotes correctly as required by POSIX, so do not add quotes.
22065 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22074 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22076 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22077 if test -w $cache_file; then
22078 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22079 cat confcache
>$cache_file
22081 echo "not updating unwritable cache $cache_file"
22086 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22087 # Let make expand exec_prefix.
22088 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22092 # trailing colons and then remove the whole line if VPATH becomes empty
22093 # (actually we leave an empty line to preserve line numbers).
22094 if test "x$srcdir" = x.
; then
22095 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22096 s/:*\$(srcdir):*/:/;
22097 s/:*\${srcdir}:*/:/;
22099 s/^\([^=]*=[ ]*\):*/\1/;
22105 DEFS
=-DHAVE_CONFIG_H
22109 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22110 # 1. Remove the extension, and $U if already installed.
22111 ac_i
=`echo "$ac_i" |
22112 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22114 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22115 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22117 LIBOBJS
=$ac_libobjs
22119 LTLIBOBJS
=$ac_ltlibobjs
22123 : ${CONFIG_STATUS=./config.status}
22124 ac_clean_files_save
=$ac_clean_files
22125 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22126 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22127 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22128 cat >$CONFIG_STATUS <<_ACEOF
22130 # Generated by $as_me.
22131 # Run this file to recreate the current configuration.
22132 # Compiler output produced by configure, useful for debugging
22133 # configure, is in config.log if it exists.
22136 ac_cs_recheck=false
22138 SHELL=\${CONFIG_SHELL-$SHELL}
22141 cat >>$CONFIG_STATUS <<\_ACEOF
22142 ## --------------------- ##
22143 ## M4sh Initialization. ##
22144 ## --------------------- ##
22146 # Be Bourne compatible
22147 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22150 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22151 # is contrary to our usage. Disable this feature.
22152 alias -g '${1+"$@"}'='"$@"'
22153 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22156 DUALCASE
=1; export DUALCASE
# for MKS sh
22158 # Support unset when possible.
22159 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22166 # Work around bugs in pre-3.0 UWIN ksh.
22167 $as_unset ENV MAIL MAILPATH
22174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22176 LC_TELEPHONE LC_TIME
22178 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22179 eval $as_var=C
; export $as_var
22185 # Required to use basename.
22186 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22192 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22193 as_basename
=basename
22199 # Name of the executable.
22200 as_me
=`$as_basename "$0" ||
22201 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22202 X"$0" : 'X\(//\)$' \| \
22203 X"$0" : 'X\(/\)$' \| \
22204 . : '\(.\)' 2>/dev/null ||
22206 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22207 /^X\/\(\/\/\)$/{ s//\1/; q; }
22208 /^X\/\(\/\).*/{ s//\1/; q; }
22212 # PATH needs CR, and LINENO needs CR and PATH.
22213 # Avoid depending upon Character Ranges.
22214 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22215 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22216 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22217 as_cr_digits
='0123456789'
22218 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22220 # The user is always right.
22221 if test "${PATH_SEPARATOR+set}" != set; then
22222 echo "#! /bin/sh" >conf$$.sh
22223 echo "exit 0" >>conf$$.sh
22225 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22234 as_lineno_1
=$LINENO
22235 as_lineno_2
=$LINENO
22236 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22237 test "x$as_lineno_1" != "x$as_lineno_2" &&
22238 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22239 # Find who we are. Look in the path if we contain no path at all
22242 *[\\/]* ) as_myself
=$0 ;;
22243 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22244 for as_dir
in $PATH
22247 test -z "$as_dir" && as_dir
=.
22248 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22253 # We did not find ourselves, most probably we were run as `sh COMMAND'
22254 # in which case we are not to be found in the path.
22255 if test "x$as_myself" = x
; then
22258 if test ! -f "$as_myself"; then
22259 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22260 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22261 { (exit 1); exit 1; }; }
22263 case $CONFIG_SHELL in
22265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22266 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22269 test -z "$as_dir" && as_dir
=.
22270 for as_base
in sh bash ksh sh5
; do
22273 if ("$as_dir/$as_base" -c '
22274 as_lineno_1=$LINENO
22275 as_lineno_2=$LINENO
22276 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22277 test "x$as_lineno_1" != "x$as_lineno_2" &&
22278 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22279 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22280 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22281 CONFIG_SHELL
=$as_dir/$as_base
22282 export CONFIG_SHELL
22283 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22292 # uniformly replaced by the line number. The first 'sed' inserts a
22293 # line-number line before each line; the second 'sed' does the real
22294 # work. The second script uses 'N' to pair each line-number line
22295 # with the numbered line, and appends trailing '-' during
22296 # substitution so that $LINENO is not a special case at line end.
22297 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22298 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22299 sed '=' <$as_myself |
22304 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22307 s,^['$as_cr_digits']*\n,,
22308 ' >$as_me.lineno
&&
22309 chmod +x
$as_me.lineno ||
22310 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22311 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22312 { (exit 1); exit 1; }; }
22314 # Don't try to exec as it changes $[0], causing all sort of problems
22315 # (the dirname of $[0] is not the place where we might find the
22316 # original and so on. Autoconf is especially sensible to this).
22318 # Exit status is that of the last command.
22323 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22324 *c
*,-n*) ECHO_N
= ECHO_C
='
22326 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22327 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22330 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22336 rm -f conf$$ conf$$.exe conf$$.
file
22338 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22339 # We could just check for DJGPP; but this test a) works b) is more generic
22340 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22341 if test -f conf$$.exe
; then
22342 # Don't use ln at all; we don't have any links
22347 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22352 rm -f conf$$ conf$$.exe conf$$.
file
22354 if mkdir
-p .
2>/dev
/null
; then
22357 test -d .
/-p && rmdir .
/-p
22361 as_executable_p
="test -f"
22363 # Sed expression to map a string onto a valid CPP name.
22364 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22366 # Sed expression to map a string onto a valid variable name.
22367 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22371 # We need space, tab and new line, in precisely that order.
22381 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22382 # report actual input values of CONFIG_FILES etc. instead of their
22383 # values after options handling. Logging --version etc. is OK.
22387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22388 ## Running $as_me. ##
22393 This file was extended by $as_me, which was
22394 generated by GNU Autoconf 2.59. Invocation command line was
22396 CONFIG_FILES = $CONFIG_FILES
22397 CONFIG_HEADERS = $CONFIG_HEADERS
22398 CONFIG_LINKS = $CONFIG_LINKS
22399 CONFIG_COMMANDS = $CONFIG_COMMANDS
22403 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22407 # Files that config.status was made for.
22408 if test -n "$ac_config_files"; then
22409 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22412 if test -n "$ac_config_headers"; then
22413 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22416 if test -n "$ac_config_links"; then
22417 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22420 if test -n "$ac_config_commands"; then
22421 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22424 cat >>$CONFIG_STATUS <<\_ACEOF
22427 \`$as_me' instantiates files from templates according to the
22428 current configuration.
22430 Usage: $0 [OPTIONS] [FILE]...
22432 -h, --help print this help, then exit
22433 -V, --version print version number, then exit
22434 -q, --quiet do not print progress messages
22435 -d, --debug don't remove temporary files
22436 --recheck update $as_me by reconfiguring in the same conditions
22437 --file=FILE[:TEMPLATE]
22438 instantiate the configuration file FILE
22439 --header=FILE[:TEMPLATE]
22440 instantiate the configuration header FILE
22442 Configuration files:
22445 Configuration headers:
22448 Configuration commands:
22451 Report bugs to <bug-autoconf@gnu.org>."
22454 cat >>$CONFIG_STATUS <<_ACEOF
22457 configured by $0, generated by GNU Autoconf 2.59,
22458 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22460 Copyright (C) 2003 Free Software Foundation, Inc.
22461 This config.status script is free software; the Free Software Foundation
22462 gives unlimited permission to copy, distribute and modify it."
22467 cat >>$CONFIG_STATUS <<\_ACEOF
22468 # If no file are specified by the user, then we need to provide default
22469 # value. By we need to know if files were specified by the user.
22475 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22476 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22484 *) # This is not an option, so the user has probably given explicit
22487 ac_need_defaults
=false
;;
22491 # Handling of the options.
22493 cat >>$CONFIG_STATUS <<\_ACEOF
22494 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22496 --version |
--vers* |
-V )
22497 echo "$ac_cs_version"; exit 0 ;;
22499 # Conflict between --help and --header
22500 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22501 Try \`$0 --help' for more information." >&5
22502 echo "$as_me: error: ambiguous option: $1
22503 Try \`$0 --help' for more information." >&2;}
22504 { (exit 1); exit 1; }; };;
22505 --help |
--hel |
-h )
22506 echo "$ac_cs_usage"; exit 0 ;;
22507 --debug |
--d* |
-d )
22509 --file |
--fil |
--fi |
--f )
22511 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22512 ac_need_defaults
=false
;;
22513 --header |
--heade |
--head |
--hea )
22515 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22516 ac_need_defaults
=false
;;
22517 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22518 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22521 # This is an error.
22522 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22523 Try \`$0 --help' for more information." >&5
22524 echo "$as_me: error: unrecognized option: $1
22525 Try \`$0 --help' for more information." >&2;}
22526 { (exit 1); exit 1; }; } ;;
22528 *) ac_config_targets
="$ac_config_targets $1" ;;
22534 ac_configure_extra_args
=
22536 if $ac_cs_silent; then
22538 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22542 cat >>$CONFIG_STATUS <<_ACEOF
22543 if \$ac_cs_recheck; then
22544 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22545 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22550 cat >>$CONFIG_STATUS <<_ACEOF
22552 # INIT-COMMANDS section.
22555 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 for ac_config_target
in $ac_config_targets
22564 case "$ac_config_target" in
22565 # Handling of arguments.
22566 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22567 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22568 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22569 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22570 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22571 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22572 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22573 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22574 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22575 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22576 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22577 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22578 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22579 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22580 { (exit 1); exit 1; }; };;
22584 # If the user did not use the arguments to specify the items to instantiate,
22585 # then the envvar interface is used. Set only those that are not.
22586 # We use the long form for the default assignment because of an extremely
22587 # bizarre bug on SunOS 4.1.3.
22588 if $ac_need_defaults; then
22589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22594 # Have a temporary directory for convenience. Make it in the build tree
22595 # simply because there is no reason to put it here, and in addition,
22596 # creating and moving files from /tmp can sometimes cause problems.
22597 # Create a temporary directory, and hook for its removal unless debugging.
22600 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22601 trap '{ (exit 1); exit 1; }' 1 2 13 15
22604 # Create a (secure) tmp directory for tmp files.
22607 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22608 test -n "$tmp" && test -d "$tmp"
22611 tmp
=.
/confstat$$
-$RANDOM
22612 (umask 077 && mkdir
$tmp)
22615 echo "$me: cannot create a temporary directory in ." >&2
22616 { (exit 1); exit 1; }
22621 cat >>$CONFIG_STATUS <<_ACEOF
22624 # CONFIG_FILES section.
22627 # No need to generate the scripts if there are no CONFIG_FILES.
22628 # This happens for instance when ./config.status config.h
22629 if test -n "\$CONFIG_FILES"; then
22630 # Protect against being on the right side of a sed subst in config.status.
22631 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22632 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22633 s,@SHELL@,$SHELL,;t t
22634 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22635 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22636 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22637 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22638 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22639 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22640 s,@exec_prefix@,$exec_prefix,;t t
22641 s,@prefix@,$prefix,;t t
22642 s,@program_transform_name@,$program_transform_name,;t t
22643 s,@bindir@,$bindir,;t t
22644 s,@sbindir@,$sbindir,;t t
22645 s,@libexecdir@,$libexecdir,;t t
22646 s,@datadir@,$datadir,;t t
22647 s,@sysconfdir@,$sysconfdir,;t t
22648 s,@sharedstatedir@,$sharedstatedir,;t t
22649 s,@localstatedir@,$localstatedir,;t t
22650 s,@libdir@,$libdir,;t t
22651 s,@includedir@,$includedir,;t t
22652 s,@oldincludedir@,$oldincludedir,;t t
22653 s,@infodir@,$infodir,;t t
22654 s,@mandir@,$mandir,;t t
22655 s,@build_alias@,$build_alias,;t t
22656 s,@host_alias@,$host_alias,;t t
22657 s,@target_alias@,$target_alias,;t t
22658 s,@DEFS@,$DEFS,;t t
22659 s,@ECHO_C@,$ECHO_C,;t t
22660 s,@ECHO_N@,$ECHO_N,;t t
22661 s,@ECHO_T@,$ECHO_T,;t t
22662 s,@LIBS@,$LIBS,;t t
22663 s,@MAINT@,$MAINT,;t t
22664 s,@build@,$build,;t t
22665 s,@build_cpu@,$build_cpu,;t t
22666 s,@build_vendor@,$build_vendor,;t t
22667 s,@build_os@,$build_os,;t t
22668 s,@host@,$host,;t t
22669 s,@host_cpu@,$host_cpu,;t t
22670 s,@host_vendor@,$host_vendor,;t t
22671 s,@host_os@,$host_os,;t t
22673 s,@CFLAGS@,$CFLAGS,;t t
22674 s,@LDFLAGS@,$LDFLAGS,;t t
22675 s,@CPPFLAGS@,$CPPFLAGS,;t t
22676 s,@ac_ct_CC@,$ac_ct_CC,;t t
22677 s,@EXEEXT@,$EXEEXT,;t t
22678 s,@OBJEXT@,$OBJEXT,;t t
22679 s,@LN_S@,$LN_S,;t t
22681 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22682 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22683 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22684 s,@RANLIB@,$RANLIB,;t t
22685 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22686 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22687 s,@EGREP@,$EGREP,;t t
22688 s,@LIBSOUND@,$LIBSOUND,;t t
22689 s,@SET_MAKE@,$SET_MAKE,;t t
22690 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22691 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22692 s,@GTK_LIBS@,$GTK_LIBS,;t t
22693 s,@ALLOCA@,$ALLOCA,;t t
22694 s,@liblockfile@,$liblockfile,;t t
22695 s,@LIBOBJS@,$LIBOBJS,;t t
22696 s,@NEED_SETGID@,$NEED_SETGID,;t t
22697 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22698 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22699 s,@version@,$version,;t t
22700 s,@configuration@,$configuration,;t t
22701 s,@canonical@,$canonical,;t t
22702 s,@srcdir@,$srcdir,;t t
22703 s,@lispdir@,$lispdir,;t t
22704 s,@locallisppath@,$locallisppath,;t t
22705 s,@lisppath@,$lisppath,;t t
22706 s,@x_default_search_path@,$x_default_search_path,;t t
22707 s,@etcdir@,$etcdir,;t t
22708 s,@archlibdir@,$archlibdir,;t t
22709 s,@docdir@,$docdir,;t t
22710 s,@bitmapdir@,$bitmapdir,;t t
22711 s,@gamedir@,$gamedir,;t t
22712 s,@gameuser@,$gameuser,;t t
22713 s,@c_switch_system@,$c_switch_system,;t t
22714 s,@c_switch_machine@,$c_switch_machine,;t t
22715 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22716 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22717 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22718 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22719 s,@machfile@,$machfile,;t t
22720 s,@opsysfile@,$opsysfile,;t t
22721 s,@carbon_appdir@,$carbon_appdir,;t t
22722 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22727 cat >>$CONFIG_STATUS <<\_ACEOF
22728 # Split the substitutions into bite-sized pieces for seds with
22729 # small command number limits, like on Digital OSF/1 and HP-UX.
22730 ac_max_sed_lines
=48
22731 ac_sed_frag
=1 # Number of current file.
22732 ac_beg
=1 # First line for current file.
22733 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22736 while $ac_more_lines; do
22737 if test $ac_beg -gt 1; then
22738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22740 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22742 if test ! -s $tmp/subs.frag
; then
22743 ac_more_lines
=false
22745 # The purpose of the label and of the branching condition is to
22746 # speed up the sed processing (if there are no `@' at all, there
22747 # is no need to browse any of the substitutions).
22748 # These are the two extra sed commands mentioned above.
22750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22751 if test -z "$ac_sed_cmds"; then
22752 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22754 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22756 ac_sed_frag
=`expr $ac_sed_frag + 1`
22758 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22761 if test -z "$ac_sed_cmds"; then
22764 fi # test -n "$CONFIG_FILES"
22767 cat >>$CONFIG_STATUS <<\_ACEOF
22768 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22771 - |
*:- |
*:-:* ) # input from stdin
22773 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22774 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22775 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22776 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22777 * ) ac_file_in
=$ac_file.
in ;;
22780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22781 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783 X"$ac_file" : 'X\(//\)[^/]' \| \
22784 X"$ac_file" : 'X\(//\)$' \| \
22785 X"$ac_file" : 'X\(/\)' \| \
22786 . : '\(.\)' 2>/dev/null ||
22788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22790 /^X\(\/\/\)$/{ s//\1/; q; }
22791 /^X\(\/\).*/{ s//\1/; q; }
22793 { if $as_mkdir_p; then
22798 while test ! -d "$as_dir"; do
22799 as_dirs
="$as_dir $as_dirs"
22800 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22802 X"$as_dir" : 'X\(//\)[^/]' \| \
22803 X"$as_dir" : 'X\(//\)$' \| \
22804 X"$as_dir" : 'X\(/\)' \| \
22805 . : '\(.\)' 2>/dev/null ||
22807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22809 /^X\(\/\/\)$/{ s//\1/; q; }
22810 /^X\(\/\).*/{ s//\1/; q; }
22813 test ! -n "$as_dirs" || mkdir
$as_dirs
22814 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22816 { (exit 1); exit 1; }; }; }
22820 if test "$ac_dir" != .
; then
22821 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22822 # A "../" for each directory in $ac_dir_suffix.
22823 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22825 ac_dir_suffix
= ac_top_builddir
=
22829 .
) # No --srcdir option. We are building in place.
22831 if test -z "$ac_top_builddir"; then
22834 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22836 [\\/]* | ?
:[\\/]* ) # Absolute path.
22837 ac_srcdir
=$srcdir$ac_dir_suffix;
22838 ac_top_srcdir
=$srcdir ;;
22839 *) # Relative path.
22840 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22841 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22844 # Do not use `cd foo && pwd` to compute absolute paths, because
22845 # the directories may not exist.
22847 .
) ac_abs_builddir
="$ac_dir";;
22850 .
) ac_abs_builddir
=`pwd`;;
22851 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22852 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22855 case $ac_abs_builddir in
22856 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22858 case ${ac_top_builddir}.
in
22859 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22860 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22861 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22864 case $ac_abs_builddir in
22865 .
) ac_abs_srcdir
=$ac_srcdir;;
22868 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22869 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22870 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22873 case $ac_abs_builddir in
22874 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22876 case $ac_top_srcdir in
22877 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22878 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22879 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22885 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22886 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22889 if test x
"$ac_file" != x-
; then
22890 { echo "$as_me:$LINENO: creating $ac_file" >&5
22891 echo "$as_me: creating $ac_file" >&6;}
22894 # Let's still pretend it is `configure' which instantiates (i.e., don't
22895 # use $as_me), people would be surprised to read:
22896 # /* config.h. Generated by config.status. */
22897 if test x
"$ac_file" = x-
; then
22900 configure_input
="$ac_file. "
22902 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22903 sed 's,.*/,,'` by configure."
22905 # First look for the input files in the build tree, otherwise in the
22907 ac_file_inputs
=`IFS=:
22908 for f in $ac_file_in; do
22910 -) echo $tmp/stdin ;;
22912 # Absolute (can't be DOS-style, as IFS=:)
22913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22914 echo "$as_me: error: cannot find input file: $f" >&2;}
22915 { (exit 1); exit 1; }; }
22918 if test -f "$f"; then
22921 elif test -f "$srcdir/$f"; then
22926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22927 echo "$as_me: error: cannot find input file: $f" >&2;}
22928 { (exit 1); exit 1; }; }
22931 done` ||
{ (exit 1); exit 1; }
22933 cat >>$CONFIG_STATUS <<_ACEOF
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22939 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22940 s
,@configure_input@
,$configure_input,;t t
22941 s
,@srcdir@
,$ac_srcdir,;t t
22942 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22943 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22944 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22945 s
,@builddir@
,$ac_builddir,;t t
22946 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22947 s
,@top_builddir@
,$ac_top_builddir,;t t
22948 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22949 s
,@INSTALL@
,$ac_INSTALL,;t t
22950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22952 if test x"$ac_file" != x-; then
22953 mv $tmp/out $ac_file
22961 cat >>$CONFIG_STATUS <<\_ACEOF
22964 # CONFIG_HEADER section.
22967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22970 # ac_d sets the value in "#define NAME VALUE" lines.
22971 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22972 ac_dB
='[ ].*$,\1#\2'
22975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22976 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22977 ac_uB
='$,\1#\2define\3'
22981 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22984 - |
*:- |
*:-:* ) # input from stdin
22986 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22989 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22990 * ) ac_file_in
=$ac_file.
in ;;
22993 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22994 echo "$as_me: creating $ac_file" >&6;}
22996 # First look for the input files in the build tree, otherwise in the
22998 ac_file_inputs
=`IFS=:
22999 for f in $ac_file_in; do
23001 -) echo $tmp/stdin ;;
23003 # Absolute (can't be DOS-style, as IFS=:)
23004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23005 echo "$as_me: error: cannot find input file: $f" >&2;}
23006 { (exit 1); exit 1; }; }
23007 # Do quote $f, to prevent DOS paths from being IFS'd.
23010 if test -f "$f"; then
23013 elif test -f "$srcdir/$f"; then
23018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23019 echo "$as_me: error: cannot find input file: $f" >&2;}
23020 { (exit 1); exit 1; }; }
23023 done` ||
{ (exit 1); exit 1; }
23024 # Remove the trailing spaces.
23025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23030 # `conftest.undefs', that substitutes the proper values into
23031 # config.h.in to produce config.h. The first handles `#define'
23032 # templates, and the second `#undef' templates.
23033 # And first: Protect against being on the right side of a sed subst in
23034 # config.status. Protect against being in an unquoted here document
23035 # in config.status.
23036 rm -f conftest.defines conftest.undefs
23037 # Using a here document instead of a string reduces the quoting nightmare.
23038 # Putting comments in sed scripts is not portable.
23040 # `end' is used to avoid that the second main sed command (meant for
23041 # 0-ary CPP macros) applies to n-ary macro definitions.
23042 # See the Autoconf documentation for `clear'.
23043 cat >confdef2sed.
sed <<\_ACEOF
23048 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23050 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23053 # If some macros were called several times there might be several times
23054 # the same #defines, which is useless. Nevertheless, we may not want to
23055 # sort them, since we want the *last* AC-DEFINE to be honored.
23056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23058 rm -f confdef2sed.sed
23060 # This sed command replaces #undef with comments. This is necessary, for
23061 # example, in the case of _POSIX_SOURCE, which is predefined and required
23062 # on some systems where configure will not decide to define it.
23063 cat >>conftest.undefs <<\_ACEOF
23064 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23067 # Break up conftest.defines because some shells have a limit on the size
23068 # of here documents, and old seds have small limits too (100 cmds).
23069 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23070 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23071 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23072 echo ' :' >>$CONFIG_STATUS
23073 rm -f conftest.tail
23074 while grep . conftest.defines >/dev/null
23076 # Write a limited-size here document to $tmp/defines.sed.
23077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23078 # Speed up: don't consider the non `#define' lines.
23079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23080 # Work around the forget-to-reset-the-flag bug.
23081 echo 't clr' >>$CONFIG_STATUS
23082 echo ': clr' >>$CONFIG_STATUS
23083 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23087 mv $tmp/out $tmp/in
23089 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23090 rm -f conftest.defines
23091 mv conftest.
tail conftest.defines
23093 rm -f conftest.defines
23094 echo ' fi # grep' >>$CONFIG_STATUS
23095 echo >>$CONFIG_STATUS
23097 # Break up conftest.undefs because some shells have a limit on the size
23098 # of here documents, and old seds have small limits too (100 cmds).
23099 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23100 rm -f conftest.
tail
23101 while grep . conftest.undefs
>/dev
/null
23103 # Write a limited-size here document to $tmp/undefs.sed.
23104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23105 # Speed up: don't consider the non
`#undef'
23106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23107 # Work around the forget-to-reset-the-flag bug.
23108 echo 't clr' >>$CONFIG_STATUS
23109 echo ': clr' >>$CONFIG_STATUS
23110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23114 mv $tmp/out $tmp/in
23116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23117 rm -f conftest.undefs
23118 mv conftest.tail conftest.undefs
23120 rm -f conftest.undefs
23122 cat >>$CONFIG_STATUS <<\_ACEOF
23123 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23124 # use $as_me), people would be surprised to read:
23125 # /* config.h. Generated by config.status. */
23126 if test x
"$ac_file" = x-
; then
23127 echo "/* Generated by configure. */" >$tmp/config.h
23129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23131 cat $tmp/in >>$tmp/config.h
23133 if test x
"$ac_file" != x-
; then
23134 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23136 echo "$as_me: $ac_file is unchanged" >&6;}
23138 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23140 X"$ac_file" : 'X\(//\)[^/]' \| \
23141 X"$ac_file" : 'X\(//\)$' \| \
23142 X"$ac_file" : 'X\(/\)' \| \
23143 . : '\(.\)' 2>/dev/null ||
23145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23147 /^X\(\/\/\)$/{ s//\1/; q; }
23148 /^X\(\/\).*/{ s//\1/; q; }
23150 { if $as_mkdir_p; then
23155 while test ! -d "$as_dir"; do
23156 as_dirs
="$as_dir $as_dirs"
23157 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23159 X"$as_dir" : 'X\(//\)[^/]' \| \
23160 X"$as_dir" : 'X\(//\)$' \| \
23161 X"$as_dir" : 'X\(/\)' \| \
23162 . : '\(.\)' 2>/dev/null ||
23164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23166 /^X\(\/\/\)$/{ s//\1/; q; }
23167 /^X\(\/\).*/{ s//\1/; q; }
23170 test ! -n "$as_dirs" || mkdir
$as_dirs
23171 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23173 { (exit 1); exit 1; }; }; }
23176 mv $tmp/config.h
$ac_file
23180 rm -f $tmp/config.h
23184 cat >>$CONFIG_STATUS <<\_ACEOF
23187 # CONFIG_COMMANDS section.
23189 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23190 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23191 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23192 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23193 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23194 X"$ac_dest" : 'X\(//\)[^/]' \| \
23195 X"$ac_dest" : 'X\(//\)$' \| \
23196 X"$ac_dest" : 'X\(/\)' \| \
23197 . : '\(.\)' 2>/dev/null ||
23199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23201 /^X\(\/\/\)$/{ s//\1/; q; }
23202 /^X\(\/\).*/{ s//\1/; q; }
23204 { if $as_mkdir_p; then
23209 while test ! -d "$as_dir"; do
23210 as_dirs
="$as_dir $as_dirs"
23211 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23213 X"$as_dir" : 'X\(//\)[^/]' \| \
23214 X"$as_dir" : 'X\(//\)$' \| \
23215 X"$as_dir" : 'X\(/\)' \| \
23216 . : '\(.\)' 2>/dev/null ||
23218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23220 /^X\(\/\/\)$/{ s//\1/; q; }
23221 /^X\(\/\).*/{ s//\1/; q; }
23224 test ! -n "$as_dirs" || mkdir
$as_dirs
23225 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23227 { (exit 1); exit 1; }; }; }
23231 if test "$ac_dir" != .
; then
23232 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23233 # A "../" for each directory in $ac_dir_suffix.
23234 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23236 ac_dir_suffix
= ac_top_builddir
=
23240 .
) # No --srcdir option. We are building in place.
23242 if test -z "$ac_top_builddir"; then
23245 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23247 [\\/]* | ?
:[\\/]* ) # Absolute path.
23248 ac_srcdir
=$srcdir$ac_dir_suffix;
23249 ac_top_srcdir
=$srcdir ;;
23250 *) # Relative path.
23251 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23252 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23255 # Do not use `cd foo && pwd` to compute absolute paths, because
23256 # the directories may not exist.
23258 .
) ac_abs_builddir
="$ac_dir";;
23261 .
) ac_abs_builddir
=`pwd`;;
23262 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23263 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23266 case $ac_abs_builddir in
23267 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23269 case ${ac_top_builddir}.
in
23270 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23271 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23272 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23275 case $ac_abs_builddir in
23276 .
) ac_abs_srcdir
=$ac_srcdir;;
23279 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23280 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23281 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23284 case $ac_abs_builddir in
23285 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23287 case $ac_top_srcdir in
23288 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23289 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23290 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23295 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23296 echo "$as_me: executing $ac_dest commands" >&6;}
23300 ### Make the necessary directories, if they don't exist.
23301 for dir
in etc lisp
; do
23302 test -d ${dir} || mkdir
${dir}
23305 # Build src/Makefile from ${srcdir}/src/Makefile.c
23306 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23307 # This must be done after src/config.h is built, since we rely on that file.
23309 # Now get this: Some word that is part of the ${srcdir} directory name
23310 # or the ${configuration} value might, just might, happen to be an
23311 # identifier like `sun4' or `i386' or something, and be predefined by
23312 # the C preprocessor to some helpful value like 1, or maybe the empty
23313 # string. Needless to say consequent macro substitutions are less
23314 # than conducive to the makefile finding the correct directory.
23315 undefs
="`echo $top_srcdir $configuration $canonical |
23316 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23317 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23320 echo creating src
/epaths.h
23321 ${MAKE-make} epaths-force
23323 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23324 # `..' to `. .' unless invoked with -traditional
23326 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23327 CPPFLAGS
="$CPPFLAGS -traditional"
23330 echo creating lib-src
/Makefile
23332 rm -f junk.c junk1.c junk2.c
23333 sed -e '/start of cpp stuff/q' \
23334 < Makefile.c
> junk1.c
23335 sed -e '1,/start of cpp stuff/d'\
23336 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23337 < Makefile.c
> junk.c
23338 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23339 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23340 cat junk1.c junk2.c
> Makefile.new
23341 rm -f junk.c junk1.c junk2.c
23342 chmod 444 Makefile.new
23343 mv -f Makefile.new Makefile
23346 echo creating src
/Makefile
23348 rm -f junk.c junk1.c junk2.c
23349 sed -e '/start of cpp stuff/q' \
23350 < Makefile.c
> junk1.c
23351 sed -e '1,/start of cpp stuff/d'\
23352 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23353 < Makefile.c
> junk.c
23354 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23355 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23356 cat junk1.c junk2.c
> Makefile.new
23357 rm -f junk.c junk1.c junk2.c
23358 chmod 444 Makefile.new
23359 mv -f Makefile.new Makefile
23362 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23363 echo creating src
/.gdbinit
23364 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23367 # This is how we know whether to re-run configure in certain cases.
23368 touch src
/config.stamp
23375 cat >>$CONFIG_STATUS <<\_ACEOF
23377 { (exit 0); exit 0; }
23379 chmod +x
$CONFIG_STATUS
23380 ac_clean_files
=$ac_clean_files_save
23383 # configure is writing to config.log, and then calls config.status.
23384 # config.status does its own redirection, appending to config.log.
23385 # Unfortunately, on DOS this fails, as config.log is still kept open
23386 # by configure, so config.status won't be able to write to it; its
23387 # output is simply discarded. So we exec the FD to /dev/null,
23388 # effectively closing config.log, so it can be properly (re)opened and
23389 # appended to by config.status. When coming back to configure, we
23390 # need to make the FD available again.
23391 if test "$no_create" != yes; then
23393 ac_config_status_args
=
23394 test "$silent" = yes &&
23395 ac_config_status_args
="$ac_config_status_args --quiet"
23397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23400 # would make configure fail if this is the last instruction.
23401 $ac_cs_success ||
{ (exit 1); exit 1; }