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 GETOPT_H GETOPTOBJS 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 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: 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." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1727 if test -f /usr
/lib
/crti.o
; then
1729 cat >>confdefs.h
<<\_ACEOF
1735 case "${canonical}" in
1736 alpha
*-*-netbsd*) machine
=alpha
;;
1737 i
[3456]86-*-netbsd*) machine
=intel386
;;
1739 # This is somewhat bogus.
1740 machine
=hp9000s300
;;
1741 powerpc-apple-netbsd
*) machine
=macppc
;;
1742 mips-
*-netbsd*) machine
=pmax
;;
1743 mipsel-
*-netbsd*) machine
=pmax
;;
1744 mipseb-
*-netbsd*) machine
=pmax
;;
1745 ns32k-
*-netbsd*) machine
=ns32000
;;
1746 powerpc-
*-netbsd*) machine
=macppc
;;
1747 sparc
*-*-netbsd*) machine
=sparc
;;
1748 vax-
*-netbsd*) machine
=vax
;;
1749 arm-
*-netbsd*) machine
=arm
;;
1756 case "${canonical}" in
1757 alpha
*-*-openbsd*) machine
=alpha
;;
1758 i386-
*-openbsd*) machine
=intel386
;;
1759 m68k-
*-openbsd*) machine
=hp9000s300
;;
1760 mipsel-
*-openbsd*) machine
=pmax
;;
1761 ns32k-
*-openbsd*) machine
=ns32000
;;
1762 sparc-
*-openbsd*) machine
=sparc
;;
1763 vax-
*-openbsd*) machine
=vax
;;
1770 case "${canonical}" in
1771 i
[3456]86-*-lynxos*) machine
=intel386
;;
1772 powerpc-
*-lynxos*) machine
=powerpc
;;
1777 arm-acorn-riscix1.1
* )
1778 machine
=acorn opsys
=riscix1-1
1780 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1781 ## This name is riscix12 instead of riscix1.2
1782 ## to avoid a file name conflict on MSDOS.
1783 machine
=acorn opsys
=riscix12
1789 case "${canonical}" in
1790 i
[345]86-*-bsdi*) machine
=intel386
;;
1791 sparc-
*-bsdi*) machine
=sparc
;;
1792 powerpc-
*-bsdi*) machine
=macppc
;;
1794 case "${canonical}" in
1795 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1796 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1797 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1798 *-*-bsdi3* ) opsys
=bsdos3
;;
1799 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1804 ## Strictly speaking, we need the version of the alliant operating
1805 ## system to choose the right machine file, but currently the
1806 ## configuration name doesn't tell us enough to choose the right
1807 ## one; we need to give alliants their own operating system name to
1808 ## do this right. When someone cares, they can help us.
1810 machine
=alliant4 opsys
=bsd4-2
1813 machine
=alliant-2800 opsys
=bsd4-3
1816 ## Alpha (DEC) machines.
1818 machine
=alpha opsys
=osf1
1819 # This is needed to find X11R6.1 libraries for certain tests.
1820 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1821 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1823 # due to non-traditional preprocessing with the current compiler
1824 # defaults. OSF 4 can also have that compiler version, and there
1825 # seems always to have been a usable /usr/bin/cpp.
1826 NON_GNU_CPP
=/usr
/bin
/cpp
1827 case "${canonical}" in
1828 alpha
*-dec-osf[5-9]*)
1833 alpha
*-*-linux-gnu* )
1834 machine
=alpha opsys
=gnu-linux
1838 machine
=arm opsys
=gnu-linux
1843 machine
=altos opsys
=usg5-2
1848 machine
=amdahl opsys
=usg5-2-2
1851 ## Apollo, Domain/OS
1853 machine
=apollo opsys
=bsd4-3
1856 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 machine
=att3b opsys
=usg5-2-2
1861 ## AT&T 3b1 - The Mighty Unix PC!
1863 machine
=7300 opsys
=usg5-2-2
1868 machine
=ibmrs6000 opsys
=aix3-2
1873 machine
=dpx2 opsys
=usg5-3
1878 machine
=sps7 opsys
=usg5-2
1881 ## CCI 5/32, 6/32 -- see "Tahoe".
1884 ## I don't know what configuration name to use for this; config.sub
1885 ## doesn't seem to know anything about it. Hey, Celerity users, get
1886 ## in touch with us!
1887 celerity-celerity-bsd
* )
1888 machine
=celerity opsys
=bsd4-2
1892 ## What operating systems does this chip run that Emacs has been
1896 ## We'll use the catch-all code at the bottom to guess the
1897 ## operating system.
1901 mips-compaq-nonstopux
* )
1902 machine
=nonstopux opsys
=nonstopux
1906 *-convex-bsd* |
*-convex-convexos* )
1907 machine
=convex opsys
=bsd4-3
1908 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1909 NON_GNU_CPP
="cc -E -P"
1913 i
[3456]86-cubix-sysv* )
1914 machine
=intel386 opsys
=usg5-3
1918 cydra
*-cydrome-sysv* )
1919 machine
=cydra5 opsys
=usg5-3
1922 ## Data General AViiON Machines
1923 ## DG changed naming conventions with the release of 5.4.4.10, they
1924 ## dropped the initial 5.4 but left the intervening R. Because of the
1925 ## R this shouldn't conflict with older versions of the OS (which I
1926 ## think were named like dgux4.*). In addition, DG new AViiONs series
1927 ## uses either Motorola M88k or Intel Pentium CPUs.
1928 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1929 machine
=aviion opsys
=dgux4
1931 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1932 ## This name is dgux5-4-3 instead of dgux5-4r3
1933 ## to avoid a file name conflict on MSDOS.
1934 machine
=aviion opsys
=dgux5-4-3
1936 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1937 machine
=aviion opsys
=dgux5-4r2
1940 machine
=aviion opsys
=dgux
1943 ## Data General AViiON Intel (x86) Machines
1944 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1945 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1946 i
[345]86-dg-dguxR4* )
1947 machine
=aviion-intel opsys
=dgux4
1951 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1952 machine
=pmax opsys
=bsd4-2
1954 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1955 machine
=pmax opsys
=bsd4-3
1958 machine
=pmax opsys
=ultrix4-3
1961 machine
=pmax opsys
=osf1
1963 mips-dec-mach_bsd4.3
* )
1964 machine
=pmax opsys
=mach-bsd4-3
1967 ## Motorola Delta machines
1968 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1969 machine
=delta opsys
=usg5-3
1970 if test -z "`type gnucc | grep 'not found'`"
1972 if test -s /etc
/167config
1973 then CC
="gnucc -m68040"
1974 else CC
="gnucc -m68881"
1977 if test -z "`type gcc | grep 'not found'`"
1983 m88k-motorola-sysv4
* )
1984 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1985 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1986 # I hope there are not other 4.0 versions for this machine
1987 # which really need usg5-4 instead.
1988 machine
=delta88k opsys
=usg5-4-2
1990 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1991 machine
=delta88k opsys
=usg5-3
1996 machine
=dual opsys
=usg5-2
1998 m68
*-dual-uniplus* )
1999 machine
=dual opsys
=unipl5-2
2004 machine
=elxsi opsys
=usg5-2
2009 machine
=ns16000 opsys
=umax
2012 ## The GEC 63 - apparently, this port isn't really finished yet.
2013 # I'm sure we finished off the last of the machines, though. -- fx
2015 ## Gould Power Node and NP1
2017 machine
=gould opsys
=bsd4-2
2020 machine
=gould opsys
=bsd4-3
2023 machine
=gould-np1 opsys
=bsd4-3
2026 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2027 ## as far as Emacs is concerned).
2029 # Build needs to be different on 7.0 and later releases
2030 case "`uname -r`" in
2031 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2032 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2034 NON_GNU_CPP
="/lib/cpp"
2036 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 machine
=nh3000 opsys
=cxux
2040 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2041 powerpc-harris-powerunix
)
2042 machine
=nh6000 opsys
=powerunix
2043 NON_GNU_CPP
="cc -Xo -E -P"
2045 ## SR2001/SR2201 running HI-UX/MPP
2046 hppa1.1
-hitachi-hiuxmpp* )
2047 machine
=sr2k opsys
=hiuxmpp
2049 hppa1.1
-hitachi-hiuxwe2* )
2050 machine
=sr2k opsys
=hiuxwe2
2053 xps
*-honeywell-sysv* )
2054 machine
=xps100 opsys
=usg5-2
2057 ## HP 9000 series 200 or 300
2059 machine
=hp9000s300 opsys
=bsd4-3
2061 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 case "`uname -r`" in
2064 ## Someone's system reports A.B8.05 for this.
2065 ## I wonder what other possibilities there are.
2066 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2067 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2069 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2070 *) machine
=hp9000s300 opsys
=hpux
;;
2074 ## HP 9000 series 700 and 800, running HP/UX
2076 machine
=hp800 opsys
=hpux
2079 machine
=hp800 opsys
=hpux8
2081 hppa
*-hp-hpux9shr* )
2082 machine
=hp800 opsys
=hpux9shr
2085 machine
=hp800 opsys
=hpux9
2087 hppa
*-hp-hpux10.2
* )
2088 machine
=hp800 opsys
=hpux10-20
2091 machine
=hp800 opsys
=hpux10
2093 hppa
*-hp-hpux1[1-9]* )
2094 machine
=hp800 opsys
=hpux11
2097 hppa
*-*-linux-gnu* )
2098 machine
=hp800 opsys
=gnu-linux
2101 ## HP 9000 series 700 and 800, running HP/UX
2103 ## Cross-compilation? Nah!
2104 case "`uname -r`" in
2105 ## Someone's system reports A.B8.05 for this.
2106 ## I wonder what other possibilities there are.
2107 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2108 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2110 *) machine
=hp800 opsys
=hpux10
;;
2114 machine
=hp800 opsys
=nextstep
2119 machine
=orion opsys
=bsd4-2
2121 clipper-orion-bsd
* )
2122 machine
=orion105 opsys
=bsd4-2
2126 i
[3456]86-ibm-aix1.1
* )
2127 machine
=ibmps2-aix opsys
=usg5-2-2
2129 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2130 machine
=ibmps2-aix opsys
=usg5-3
2133 machine
=ibm370aix opsys
=usg5-3
2136 machine
=ibms390 opsys
=gnu-linux
2138 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2139 machine
=ibmrs6000 opsys
=aix3-1
2141 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2142 machine
=ibmrs6000 opsys
=aix3-2-5
2144 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2145 machine
=ibmrs6000 opsys
=aix4-1
2147 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2148 machine
=ibmrs6000 opsys
=aix4-2
2150 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2151 machine
=ibmrs6000 opsys
=aix4-2
2153 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2154 machine
=ibmrs6000 opsys
=aix4
2156 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2157 machine
=ibmrs6000 opsys
=aix4-1
2159 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2160 machine
=ibmrs6000 opsys
=aix3-2
2163 machine
=ibmrt opsys
=bsd4-3
2166 machine
=ibmrt opsys
=bsd4-2
2169 machine
=ibmrt opsys
=bsd4-3
2172 machine
=ibmrt opsys
=bsd4-2
2175 machine
=ibmrt opsys
=bsd4-3
2178 machine
=ibmrt opsys
=bsd4-3
2181 machine
=ibmrt-aix opsys
=usg5-2-2
2184 ## Integrated Solutions `Optimum V'
2186 machine
=isi-ov opsys
=bsd4-2
2189 machine
=isi-ov opsys
=bsd4-3
2192 ## Intel 386 machines where we do care about the manufacturer
2193 i
[3456]86-intsys-sysv* )
2194 machine
=is386 opsys
=usg5-2-2
2198 i
[3456]86-prime-sysv* )
2199 machine
=i386 opsys
=usg5-3
2202 ## Sequent Symmetry running Dynix
2203 i
[3456]86-sequent-bsd* )
2204 machine
=symmetry opsys
=bsd4-3
2207 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2208 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2209 machine
=sequent-ptx opsys
=ptx4
2210 NON_GNU_CPP
=/lib
/cpp
2213 ## Sequent Symmetry running DYNIX/ptx
2214 ## Use the old cpp rather than the newer ANSI one.
2215 i
[3456]86-sequent-ptx* )
2216 machine
=sequent-ptx opsys
=ptx
2217 NON_GNU_CPP
="/lib/cpp"
2220 ## ncr machine running svr4.3.
2221 i
[3456]86-ncr-sysv4.3
)
2222 machine
=ncr386 opsys
=usg5-4-3
2225 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2226 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2227 i
[3456]86-ncr-sysv* )
2228 machine
=ncr386 opsys
=usg5-4-2
2231 ## Intel Paragon OSF/1
2233 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2238 machine
=i860 opsys
=usg5-4
2239 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2240 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2243 ## Macintosh PowerPC
2244 powerpc
*-*-linux-gnu* )
2245 machine
=macppc opsys
=gnu-linux
2248 ## Masscomp machines
2249 m68
*-masscomp-rtu* )
2250 machine
=masscomp opsys
=rtu
2253 ## Megatest machines
2254 m68
*-megatest-bsd* )
2255 machine
=mega68 opsys
=bsd4-2
2258 ## Workstations sold by MIPS
2259 ## This is not necessarily all workstations using the MIPS processor -
2260 ## Irises are produced by SGI, and DECstations by DEC.
2262 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2263 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2264 ## it gives for choosing between the alternatives seems to be "Use
2265 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2266 ## the BSD world." I'll assume that these are instructions for
2267 ## handling two odd situations, and that every other situation
2268 ## should use mips.h and usg5-2-2, they being listed first.
2271 ## Fall through to the general code at the bottom to decide on the OS.
2273 mips-mips-riscos4
* )
2274 machine
=mips4 opsys
=bsd4-3
2275 NON_GNU_CC
="cc -systype bsd43"
2276 NON_GNU_CPP
="cc -systype bsd43 -E"
2278 mips-mips-riscos5
* )
2279 machine
=mips4 opsys
=riscos5
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2284 machine
=mips opsys
=bsd4-3
2287 machine
=mips opsys
=usg5-2-2
2291 m68
*-next-* | m68k-
*-nextstep* )
2292 machine
=m68k opsys
=nextstep
2295 ## The complete machine from National Semiconductor
2297 machine
=ns32000 opsys
=usg5-2
2301 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2302 machine
=tower32 opsys
=usg5-2-2
2304 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2305 machine
=tower32v3 opsys
=usg5-3
2310 machine
=ews4800 opsys
=ux4800
2313 ## Nixdorf Targon 31
2314 m68
*-nixdorf-sysv* )
2315 machine
=targon31 opsys
=usg5-2-2
2320 machine
=nu opsys
=usg5-2
2325 machine
=plexus opsys
=usg5-2
2329 ## I don't really have any idea what sort of processor the Pyramid has,
2330 ## so I'm assuming it is its own architecture.
2331 pyramid-pyramid-bsd
* )
2332 machine
=pyramid opsys
=bsd4-2
2336 ns32k-sequent-bsd4.2
* )
2337 machine
=sequent opsys
=bsd4-2
2339 ns32k-sequent-bsd4.3
* )
2340 machine
=sequent opsys
=bsd4-3
2344 mips-siemens-sysv
* | mips-sni-sysv
*)
2345 machine
=mips-siemens opsys
=usg5-4
2346 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2347 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2350 ## Silicon Graphics machines
2351 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2353 machine
=irist opsys
=iris3-5
2355 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2356 machine
=irist opsys
=iris3-6
2360 machine
=iris4d opsys
=irix3-3
2363 machine
=iris4d opsys
=irix4-0
2366 machine
=iris4d opsys
=irix6-5
2367 # Without defining _LANGUAGE_C, things get masked out in the headers
2368 # so that, for instance, grepping for `free' in stdlib.h fails and
2369 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2370 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2371 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2374 machine
=iris4d opsys
=irix6-0
2375 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2376 # but presumably it does no harm.
2377 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2378 # -32 probably isn't necessary in later v.6s -- anyone know which?
2379 NON_GCC_TEST_OPTIONS
=-32
2381 mips-sgi-irix5.
[01]* )
2382 machine
=iris4d opsys
=irix5-0
2384 mips-sgi-irix5
* | mips-sgi-irix
* )
2385 machine
=iris4d opsys
=irix5-2
2390 machine
=news opsys
=bsd4-2
2393 machine
=news opsys
=bsd4-3
2395 m68
*-sony-newsos3* | m68
*-sony-news3*)
2396 machine
=news opsys
=bsd4-3
2398 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2399 machine
=news-risc opsys
=bsd4-3
2401 mips-sony-newsos6
* )
2402 machine
=news-r6 opsys
=newsos6
2405 machine
=news-risc opsys
=newsos5
2410 machine
=stride opsys
=usg5-2
2414 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2415 machine
=sparc opsys
=gnu-linux
2418 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2419 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2420 | rs6000-
*-solaris2*)
2421 case "${canonical}" in
2422 m68
*-sunos1* ) machine
=sun1
;;
2423 m68
*-sunos2* ) machine
=sun2
;;
2424 m68
* ) machine
=sun3
;;
2425 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2426 i
[3456]86-*-* ) machine
=intel386
;;
2427 powerpcle
* ) machine
=powerpcle
;;
2428 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2429 sparc
* ) machine
=sparc
;;
2432 case "${canonical}" in
2433 ## The Sun386 didn't get past 4.0.
2434 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2435 *-sunos4.0
* ) opsys
=sunos4-0
;;
2436 *-sunos4.1.
[3-9]*noshare
)
2437 ## This name is sunos413 instead of sunos4-1-3
2438 ## to avoid a file name conflict on MSDOS.
2440 NON_GNU_CPP
=/usr
/lib
/cpp
2441 NON_GCC_TEST_OPTIONS
=-Bstatic
2442 GCC_TEST_OPTIONS
=-static
2444 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2446 NON_GNU_CPP
=/usr
/lib
/cpp
2448 *-sunos4* |
*-sunos )
2450 NON_GCC_TEST_OPTIONS
=-Bstatic
2451 GCC_TEST_OPTIONS
=-static
2453 *-sunos5.3
* |
*-solaris2.3
* )
2455 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2457 *-sunos5.4
* |
*-solaris2.4
* )
2459 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.5
* |
*-solaris2.5
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.6
* |
*-solaris2.6
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5* |
*-solaris* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2478 ## Watch out for a compiler that we know will not work.
2479 case "${canonical}" in
2480 *-solaris* |
*-sunos5* )
2481 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2482 ## /usr/ucb/cc doesn't work;
2483 ## we should find some other compiler that does work.
2491 machine
=sparc opsys
=nextstep
2495 m68
*-tadpole-sysv* )
2496 machine
=tad68k opsys
=usg5-3
2500 tahoe-tahoe-bsd4.2
* )
2501 machine
=tahoe opsys
=bsd4-2
2503 tahoe-tahoe-bsd4.3
* )
2504 machine
=tahoe opsys
=bsd4-3
2507 ## Tandem Integrity S2
2509 machine
=tandem-s2 opsys
=usg5-3
2513 m88k-tektronix-sysv3
* )
2514 machine
=tekxd88 opsys
=usg5-3
2517 ## Tektronix 16000 box (6130?)
2518 ns16k-tektronix-bsd
* )
2519 machine
=ns16000 opsys
=bsd4-2
2522 ## src/m/tek4300.h hints that this is a m68k machine.
2523 m68
*-tektronix-bsd* )
2524 machine
=tek4300 opsys
=bsd4-3
2528 ## We seem to have lost the machine-description file titan.h!
2530 machine
=titan opsys
=usg5-3
2533 ## Ustation E30 (SS5E)
2534 m68
*-unisys-uniplus* )
2535 machine
=ustation opsystem
=unipl5-2
2541 case "${canonical}" in
2542 *-bsd4.1
* ) opsys
=bsd4-1
;;
2543 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2544 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2545 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2546 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2547 *-vms* ) opsys
=vms
;;
2553 ns16k-whitechapel-
* )
2555 ## We don't know what sort of OS runs on these; we'll let the
2556 ## operating system guessing code below try.
2561 machine
=wicat opsys
=usg5-2
2566 machine
=ia64 opsys
=gnu-linux
2569 ## Intel 386 machines where we don't care about the manufacturer
2572 case "${canonical}" in
2573 *-cygwin ) opsys
=cygwin
;;
2574 *-darwin* ) opsys
=darwin
2575 CPP
="${CC-cc} -E -no-cpp-precomp"
2577 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2578 *-isc2.2
* ) opsys
=isc2-2
;;
2579 *-isc4.0
* ) opsys
=isc4-0
;;
2580 *-isc4.
* ) opsys
=isc4-1
2581 GCC_TEST_OPTIONS
=-posix
2582 NON_GCC_TEST_OPTIONS
=-Xp
2584 *-isc* ) opsys
=isc3-0
;;
2585 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2586 *-esix* ) opsys
=esix
;;
2587 *-xenix* ) opsys
=xenix
;;
2588 *-linux-gnu* ) opsys
=gnu-linux
;;
2589 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2590 *-sco3.2v5
* ) opsys
=sco5
2591 NON_GNU_CPP
=/lib
/cpp
2592 # Prevent -belf from being passed to $CPP.
2593 # /lib/cpp does not accept it.
2594 OVERRIDE_CPPFLAGS
=" "
2596 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2597 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2598 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-386bsd* ) opsys
=386bsd
;;
2600 *-nextstep* ) opsys
=nextstep
;;
2601 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2605 ## m68k Linux-based GNU system
2607 machine
=m68k opsys
=gnu-linux
2610 ## Mips Linux-based GNU system
2611 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2612 machine
=mips opsys
=gnu-linux
2616 sparc-fujitsu-sysv4
* )
2617 machine
=sparc opsys
=uxpds
2618 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2623 f301-fujitsu-uxpv4.1
)
2624 machine
=f301 opsys
=uxpv
2627 ## Darwin / Mac OS X
2628 powerpc-apple-darwin
* )
2629 machine
=powermac opsys
=darwin
2630 # Define CPP as follows to make autoconf work correctly.
2631 CPP
="${CC-cc} -E -no-cpp-precomp"
2634 ## AMD x86-64 Linux-based GNU system
2635 x86_64-
*-linux-gnu* )
2636 machine
=amdx86-64 opsys
=gnu-linux
2644 ### If the code above didn't choose an operating system, just choose
2645 ### an operating system based on the configuration name. You really
2646 ### only want to use this when you have no idea what the right
2647 ### operating system is; if you know what operating systems a machine
2648 ### runs, it's cleaner to make it explicit in the case statement
2650 if test x
"${opsys}" = x
; then
2651 case "${canonical}" in
2652 *-gnu* ) opsys
=gnu
;;
2653 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2654 *-bsd4.2
) opsys
=bsd4-2
;;
2655 *-bsd4.3
) opsys
=bsd4-3
;;
2656 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2657 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2658 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2659 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2660 *-sysv4.2uw
* ) opsys
=unixware
;;
2661 *-sysv5uw* ) opsys
=unixware
;;
2662 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2663 *-sysv4.1
* |
*-sysvr4.1
* )
2664 NON_GNU_CPP
=/usr
/lib
/cpp
2666 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2667 if [ x
$NON_GNU_CPP = x
]; then
2668 if [ -f /usr
/ccs
/lib
/cpp
]; then
2669 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2671 NON_GNU_CPP
=/lib
/cpp
2675 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2684 if test $unported = yes; then
2685 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2686 Check \`etc/MACHINES' for recognized configuration names." >&5
2687 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2688 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2689 { (exit 1); exit 1; }; }
2692 machfile
="m/${machine}.h"
2693 opsysfile
="s/${opsys}.h"
2696 #### Choose a compiler.
2697 test -n "$CC" && cc_specified
=yes
2699 # Save the value of CFLAGS that the user specified.
2700 SPECIFIED_CFLAGS
="$CFLAGS"
2703 "yes" ) CC
="gcc" GCC
=yes ;;
2704 "no" ) : ${CC=cc} ;;
2708 ac_cpp
='$CPP $CPPFLAGS'
2709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC
="$CC" # Let the user override the test.
2723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir
=.
2728 for ac_exec_ext
in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$ac_cv_prog_CC"; then
2751 # Extract the first word of "gcc", so it can be a program name with args.
2752 set dummy gcc
; ac_word
=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir
=.
2766 for ac_exec_ext
in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_CC
="gcc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2778 if test -n "$ac_ct_CC"; then
2779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2780 echo "${ECHO_T}$ac_ct_CC" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC
="$CC" # Let the user override the test.
2803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir
=.
2808 for ac_exec_ext
in '' $ac_executable_extensions; do
2809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CC"; then
2821 echo "$as_me:$LINENO: result: $CC" >&5
2822 echo "${ECHO_T}$CC" >&6
2824 echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2829 if test -z "$ac_cv_prog_CC"; then
2831 # Extract the first word of "cc", so it can be a program name with args.
2832 set dummy cc
; ac_word
=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$ac_ct_CC"; then
2839 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_ac_ct_CC
="cc"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2860 echo "${ECHO_T}$ac_ct_CC" >&6
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2872 if test -z "$CC"; then
2873 # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc
; ac_word
=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC
="$CC" # Let the user override the test.
2884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir
=.
2889 for ac_exec_ext
in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892 ac_prog_rejected
=yes
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test $ac_prog_rejected = yes; then
2903 # We found a bogon in the path, so make sure we never use it.
2904 set dummy
$ac_cv_prog_CC
2906 if test $# != 0; then
2907 # We chose a different compiler from the bogus one.
2908 # However, it has the same basename, so the bogon will be chosen
2909 # first if we set CC to just the basename; use the full file name.
2911 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2917 if test -n "$CC"; then
2918 echo "$as_me:$LINENO: result: $CC" >&5
2919 echo "${ECHO_T}$CC" >&6
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC
="$CC" # Let the user override the test.
2940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir
=.
2945 for ac_exec_ext
in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 echo "$as_me:$LINENO: result: $CC" >&5
2959 echo "${ECHO_T}$CC" >&6
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2965 test -n "$CC" && break
2968 if test -z "$CC"; then
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973 set dummy
$ac_prog; ac_word
=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir
=.
2987 for ac_exec_ext
in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC
="$ac_prog"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3007 test -n "$ac_ct_CC" && break
3016 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: no acceptable C compiler found in \$PATH
3019 See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }
3022 # Provide some information about the compiler.
3023 echo "$as_me:$LINENO:" \
3024 "checking for C compiler version" >&5
3025 ac_compiler
=`set X $ac_compile; echo $2`
3026 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3027 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3032 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }
3036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3037 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 ac_clean_files_save
=$ac_clean_files
3058 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3059 # Try to create an executable without -o first, disregard a.out.
3060 # It will help us diagnose broken compilers, and finding out an intuition
3062 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3063 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3064 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3065 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3066 (eval $ac_link_default) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # Find the output, starting from the most likely. This scheme is
3071 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3074 # Be careful to initialize this variable, since it used to be cached.
3075 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3077 # b.out is created by i960 compilers.
3078 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3080 test -f "$ac_file" ||
continue
3082 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3085 # This is the source file.
3088 # We found the default executable, but exeext='' is most
3092 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 # FIXME: I believe we export ac_cv_exeext for Libtool,
3094 # but it would be cool to find out if it's true. Does anybody
3095 # maintain Libtool? --akim.
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.
$ac_ext >&5
3106 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C compiler cannot create executables
3109 See \`config.log' for more details." >&2;}
3110 { (exit 77); exit 77; }; }
3113 ac_exeext
=$ac_cv_exeext
3114 echo "$as_me:$LINENO: result: $ac_file" >&5
3115 echo "${ECHO_T}$ac_file" >&6
3117 # Check the compiler produces executables we can run. If not, either
3118 # the compiler is broken, or we cross compile.
3119 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3120 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3121 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3122 # If not cross compiling, check that we can run a simple program.
3123 if test "$cross_compiling" != yes; then
3124 if { ac_try
='./$ac_file'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3132 if test "$cross_compiling" = maybe
; then
3135 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3136 If you meant to cross compile, use \`--host'.
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: cannot run C compiled programs.
3139 If you meant to cross compile, use \`--host'.
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }
3145 echo "$as_me:$LINENO: result: yes" >&5
3146 echo "${ECHO_T}yes" >&6
3148 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3149 ac_clean_files
=$ac_clean_files_save
3150 # Check the compiler produces executables we can run. If not, either
3151 # the compiler is broken, or we cross compile.
3152 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3153 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3154 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3155 echo "${ECHO_T}$cross_compiling" >&6
3157 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3158 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3160 (eval $ac_link) 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; then
3164 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3165 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3166 # work properly (i.e., refer to `conftest.exe'), while it won't with
3168 for ac_file
in conftest.exe conftest conftest.
*; do
3169 test -f "$ac_file" ||
continue
3171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3172 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3182 See \`config.log' for more details." >&2;}
3183 { (exit 1); exit 1; }; }
3186 rm -f conftest
$ac_cv_exeext
3187 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3188 echo "${ECHO_T}$ac_cv_exeext" >&6
3190 rm -f conftest.
$ac_ext
3191 EXEEXT
=$ac_cv_exeext
3193 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3194 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3195 if test "${ac_cv_objext+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3201 cat confdefs.h
>>conftest.
$ac_ext
3202 cat >>conftest.
$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3213 rm -f conftest.o conftest.obj
3214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3215 (eval $ac_compile) 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; then
3219 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3221 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3222 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.
$ac_ext >&5
3230 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3231 See \`config.log' for more details." >&5
3232 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3237 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3239 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3240 echo "${ECHO_T}$ac_cv_objext" >&6
3241 OBJEXT
=$ac_cv_objext
3243 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3244 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3245 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 cat >conftest.
$ac_ext <<_ACEOF
3251 cat confdefs.h
>>conftest.
$ac_ext
3252 cat >>conftest.
$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3266 rm -f conftest.
$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>conftest.er1
3270 grep -v '^ *+' conftest.er1
>conftest.err
3272 cat conftest.err
>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try
='test -z "$ac_c_werror_flag"
3276 || test ! -s conftest.err'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try
='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.
$ac_ext >&5
3295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3296 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3299 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3300 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3301 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3302 ac_test_CFLAGS
=${CFLAGS+set}
3303 ac_save_CFLAGS
=$CFLAGS
3305 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3306 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_g+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 cat >conftest.
$ac_ext <<_ACEOF
3313 cat confdefs.h
>>conftest.
$ac_ext
3314 cat >>conftest.
$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 rm -f conftest.
$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>conftest.er1
3329 grep -v '^ *+' conftest.er1
>conftest.err
3331 cat conftest.err
>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try
='test -z "$ac_c_werror_flag"
3335 || test ! -s conftest.err'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try
='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.
$ac_ext >&5
3354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3357 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3358 if test "$ac_test_CFLAGS" = set; then
3359 CFLAGS
=$ac_save_CFLAGS
3360 elif test $ac_cv_prog_cc_g = yes; then
3361 if test "$GCC" = yes; then
3367 if test "$GCC" = yes; then
3373 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3374 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3375 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 ac_cv_prog_cc_stdc
=no
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 #include <sys/types.h>
3389 #include <sys/stat.h>
3390 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3391 struct buf { int x; };
3392 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3393 static char *e (p, i)
3399 static char *f (char * (*g) (char **, int), char **p, ...)
3404 s = g (p, va_arg (v,int));
3409 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3410 function prototypes and stuff, but not '\xHH' hex character constants.
3411 These don't provoke an error unfortunately, instead are silently treated
3412 as 'x'. The following induces an error, until -std1 is added to get
3413 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3414 array size at least. It's necessary to write '\x00'==0 to get something
3415 that's true only with -std1. */
3416 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3418 int test (int i, double x);
3419 struct s1 {int (*f) (int a);};
3420 struct s2 {int (*f) (double a);};
3421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3432 # Don't try gcc -ansi; that turns off useful extensions and
3433 # breaks some systems' header files.
3434 # AIX -qlanglvl=ansi
3435 # Ultrix and OSF/1 -std1
3436 # HP-UX 10.20 and later -Ae
3437 # HP-UX older versions -Aa -D_HPUX_SOURCE
3438 # SVR4 -Xc -D__EXTENSIONS__
3439 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC
="$ac_save_CC $ac_arg"
3442 rm -f conftest.
$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3446 grep -v '^ *+' conftest.er1
>conftest.err
3448 cat conftest.err
>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try
='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try
='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_prog_cc_stdc
=$ac_arg
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.
$ac_ext >&5
3471 rm -f conftest.err conftest.
$ac_objext
3473 rm -f conftest.
$ac_ext conftest.
$ac_objext
3478 case "x$ac_cv_prog_cc_stdc" in
3480 echo "$as_me:$LINENO: result: none needed" >&5
3481 echo "${ECHO_T}none needed" >&6 ;;
3483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3484 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3485 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3488 # Some people use a C++ compiler to compile C. Since we use `exit',
3489 # in C++ we need to declare it. In case someone uses the same compiler
3490 # for both compiling C and C++ we need to have the C++ compiler decide
3491 # the declaration of exit, since it's the most demanding environment.
3492 cat >conftest.
$ac_ext <<_ACEOF
3497 rm -f conftest.
$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3501 grep -v '^ *+' conftest.er1
>conftest.err
3503 cat conftest.err
>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try
='test -z "$ac_c_werror_flag"
3507 || test ! -s conftest.err'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; } &&
3513 { ac_try
='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 for ac_declaration
in \
3521 'extern "C" void std::exit (int) throw (); using std::exit;' \
3522 'extern "C" void std::exit (int); using std::exit;' \
3523 'extern "C" void exit (int) throw ();' \
3524 'extern "C" void exit (int);' \
3527 cat >conftest.
$ac_ext <<_ACEOF
3530 cat confdefs.h
>>conftest.
$ac_ext
3531 cat >>conftest.
$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3543 rm -f conftest.
$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3547 grep -v '^ *+' conftest.er1
>conftest.err
3549 cat conftest.err
>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try
='test -z "$ac_c_werror_flag"
3553 || test ! -s conftest.err'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try
='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.
$ac_ext >&5
3572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3573 cat >conftest.
$ac_ext <<_ACEOF
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.
$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3592 grep -v '^ *+' conftest.er1
>conftest.err
3594 cat conftest.err
>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try
='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try
='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.
$ac_ext >&5
3616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 if test -n "$ac_declaration"; then
3620 echo '#ifdef __cplusplus' >>confdefs.h
3621 echo $ac_declaration >>confdefs.h
3622 echo '#endif' >>confdefs.h
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.
$ac_ext >&5
3630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3632 ac_cpp
='$CPP $CPPFLAGS'
3633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3643 #### Some systems specify a CPP to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3651 #### Some systems specify a CC to use unless we are using GCC.
3652 #### Now that we know whether we are using GCC, we can decide whether
3653 #### to use that one.
3654 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3655 test x
$cc_specified != xyes
3660 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3662 CC
="$CC $GCC_TEST_OPTIONS"
3665 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3667 CC
="$CC $NON_GCC_TEST_OPTIONS"
3670 #### Some other nice autoconf tests.
3672 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3673 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3675 if test "$LN_S" = "ln -s"; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6
3679 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3680 echo "${ECHO_T}no, using $LN_S" >&6
3684 ac_cpp
='$CPP $CPPFLAGS'
3685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3690 # On Suns, sometimes $CPP names a directory.
3691 if test -n "$CPP" && test -d "$CPP"; then
3694 if test -z "$CPP"; then
3695 if test "${ac_cv_prog_CPP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 # Double quotes because CPP needs to be expanded
3699 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3702 for ac_c_preproc_warn_flag
in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.
$ac_ext <<_ACEOF
3713 cat confdefs.h
>>conftest.
$ac_ext
3714 cat >>conftest.
$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3717 # include <limits.h>
3719 # include <assert.h>
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1
>conftest.err
3728 cat conftest.err
>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev
/null
; then
3731 if test -s conftest.err
; then
3732 ac_cpp_err
=$ac_c_preproc_warn_flag
3733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3740 if test -z "$ac_cpp_err"; then
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.
$ac_ext >&5
3746 # Broken: fails on valid input.
3749 rm -f conftest.err conftest.
$ac_ext
3751 # OK, works on sane cases. Now check whether non-existent headers
3752 # can be detected and how.
3753 cat >conftest.
$ac_ext <<_ACEOF
3756 cat confdefs.h
>>conftest.
$ac_ext
3757 cat >>conftest.
$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3764 grep -v '^ *+' conftest.er1
>conftest.err
3766 cat conftest.err
>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev
/null
; then
3769 if test -s conftest.err
; then
3770 ac_cpp_err
=$ac_c_preproc_warn_flag
3771 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3778 if test -z "$ac_cpp_err"; then
3779 # Broken: success on invalid input.
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.
$ac_ext >&5
3785 # Passes both tests.
3789 rm -f conftest.err conftest.
$ac_ext
3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793 rm -f conftest.err conftest.
$ac_ext
3794 if $ac_preproc_ok; then
3806 echo "$as_me:$LINENO: result: $CPP" >&5
3807 echo "${ECHO_T}$CPP" >&6
3809 for ac_c_preproc_warn_flag
in '' yes
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3824 # include <limits.h>
3826 # include <assert.h>
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1
>conftest.err
3835 cat conftest.err
>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev
/null
; then
3838 if test -s conftest.err
; then
3839 ac_cpp_err
=$ac_c_preproc_warn_flag
3840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3847 if test -z "$ac_cpp_err"; then
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.
$ac_ext >&5
3853 # Broken: fails on valid input.
3856 rm -f conftest.err conftest.
$ac_ext
3858 # OK, works on sane cases. Now check whether non-existent headers
3859 # can be detected and how.
3860 cat >conftest.
$ac_ext <<_ACEOF
3863 cat confdefs.h
>>conftest.
$ac_ext
3864 cat >>conftest.
$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3871 grep -v '^ *+' conftest.er1
>conftest.err
3873 cat conftest.err
>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev
/null
; then
3876 if test -s conftest.err
; then
3877 ac_cpp_err
=$ac_c_preproc_warn_flag
3878 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3885 if test -z "$ac_cpp_err"; then
3886 # Broken: success on invalid input.
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.
$ac_ext >&5
3892 # Passes both tests.
3896 rm -f conftest.err conftest.
$ac_ext
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.
$ac_ext
3901 if $ac_preproc_ok; then
3904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&5
3906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3907 See \`config.log' for more details." >&2;}
3908 { (exit 1); exit 1; }; }
3912 ac_cpp
='$CPP $CPPFLAGS'
3913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3917 # Find a good install program. We prefer a C program (faster),
3918 # so one script is as good as another. But avoid the broken or
3919 # incompatible versions:
3920 # SysV /etc/install, /usr/sbin/install
3921 # SunOS /usr/etc/install
3922 # IRIX /sbin/install
3924 # AmigaOS /C/install, which installs bootblocks on floppy discs
3925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3928 # OS/2's system install, which has a completely different semantic
3929 # ./install, which can be erroneously created by make from ./install.sh.
3930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3932 if test -z "$INSTALL"; then
3933 if test "${ac_cv_path_install+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir
=.
3941 # Account for people who put trailing slashes in PATH elements.
3943 .
/ | .
// |
/cC
/* | \
3944 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3945 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3948 # OSF1 and SCO ODT 3.0 have their own names for install.
3949 # Don't use installbsd from OSF since it installs stuff as root
3951 for ac_prog
in ginstall scoinst
install; do
3952 for ac_exec_ext
in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3954 if test $ac_prog = install &&
3955 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3956 # AIX install. It has an incompatible calling convention.
3958 elif test $ac_prog = install &&
3959 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3960 # program-specific install script used by HP pwplus--don't use.
3963 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3975 if test "${ac_cv_path_install+set}" = set; then
3976 INSTALL
=$ac_cv_path_install
3978 # As a last resort, use the slow shell script. We don't cache a
3979 # path for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the path is relative.
3982 INSTALL
=$ac_install_sh
3985 echo "$as_me:$LINENO: result: $INSTALL" >&5
3986 echo "${ECHO_T}$INSTALL" >&6
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3996 if test "x$RANLIB" = x
; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4000 echo "$as_me:$LINENO: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_RANLIB+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test -n "$RANLIB"; then
4006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir
=.
4013 for ac_exec_ext
in '' $ac_executable_extensions; do
4014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 RANLIB
=$ac_cv_prog_RANLIB
4025 if test -n "$RANLIB"; then
4026 echo "$as_me:$LINENO: result: $RANLIB" >&5
4027 echo "${ECHO_T}$RANLIB" >&6
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4034 if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB
=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037 set dummy ranlib
; ac_word
=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir
=.
4051 for ac_exec_ext
in '' $ac_executable_extensions; do
4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4063 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4072 RANLIB
=$ac_ct_RANLIB
4074 RANLIB
="$ac_cv_prog_RANLIB"
4078 # Extract the first word of "install-info", so it can be a program name with args.
4079 set dummy install-info
; ac_word
=$2
4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 case $INSTALL_INFO in
4087 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir
=.
4095 for ac_exec_ext
in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4109 if test -n "$INSTALL_INFO"; then
4110 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4111 echo "${ECHO_T}$INSTALL_INFO" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 # Extract the first word of "install-info", so it can be a program name with args.
4118 set dummy install-info
; ac_word
=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 case $INSTALL_INFO in
4126 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4130 for as_dir
in /usr
/sbin
4133 test -z "$as_dir" && as_dir
=.
4134 for ac_exec_ext
in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4148 if test -n "$INSTALL_INFO"; then
4149 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4150 echo "${ECHO_T}$INSTALL_INFO" >&6
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4156 # Extract the first word of "install-info", so it can be a program name with args.
4157 set dummy install-info
; ac_word
=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 case $INSTALL_INFO in
4165 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir
=.
4173 for ac_exec_ext
in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4186 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4188 if test -n "$INSTALL_INFO"; then
4189 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4190 echo "${ECHO_T}$INSTALL_INFO" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4198 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4200 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4203 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4205 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4209 late_LDFLAGS
=$LDFLAGS
4210 if test "$GCC" = yes; then
4211 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4213 LDFLAGS
="$LDFLAGS -znocombreloc"
4216 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4217 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4219 cat >conftest.
$ac_ext <<_ACEOF
4222 rm -f conftest.
$ac_objext conftest
$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>conftest.er1
4226 grep -v '^ *+' conftest.er1
>conftest.err
4228 cat conftest.err
>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try
='test -z "$ac_c_werror_flag"
4232 || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try
='test -s conftest$ac_exeext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 echo "$as_me:$LINENO: result: yes" >&5
4245 echo "${ECHO_T}yes" >&6
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.
$ac_ext >&5
4250 LDFLAGS
=$late_LDFLAGS
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4254 rm -f conftest.err conftest.
$ac_objext \
4255 conftest
$ac_exeext conftest.
$ac_ext
4258 echo "$as_me:$LINENO: checking for egrep" >&5
4259 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4260 if test "${ac_cv_prog_egrep+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4264 then ac_cv_prog_egrep
='grep -E'
4265 else ac_cv_prog_egrep
='egrep'
4268 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4269 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4270 EGREP
=$ac_cv_prog_egrep
4274 echo "$as_me:$LINENO: checking for AIX" >&5
4275 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4276 cat >conftest.
$ac_ext <<_ACEOF
4279 cat confdefs.h
>>conftest.
$ac_ext
4280 cat >>conftest.
$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 $EGREP "yes" >/dev
/null
2>&1; then
4289 echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6
4291 cat >>confdefs.h
<<\_ACEOF
4292 #define _ALL_SOURCE 1
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4304 #### Extract some information from the operating system and machine files.
4306 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4307 - which libraries the lib-src programs will want, and
4308 - whether the GNU malloc routines are usable..." >&5
4309 echo "$as_me: checking the machine- and system-dependent files to find out
4310 - which libraries the lib-src programs will want, and
4311 - whether the GNU malloc routines are usable..." >&6;}
4313 ### First figure out CFLAGS (which we use for running the compiler here)
4314 ### and REAL_CFLAGS (which we use for real compilation).
4315 ### The two are the same except on a few systems, where they are made
4316 ### different to work around various lossages. For example,
4317 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4318 ### as implying static linking.
4320 ### If the CFLAGS env var is specified, we use that value
4321 ### instead of the default.
4323 ### It's not important that this name contain the PID; you can't run
4324 ### two configures in the same directory and have anything work
4326 tempcname
="conftest.c"
4329 #include "'${srcdir}'/src/'${opsysfile}'"
4330 #include "'${srcdir}'/src/'${machfile}'"
4331 #ifndef LIBS_MACHINE
4332 #define LIBS_MACHINE
4337 #ifndef C_SWITCH_SYSTEM
4338 #define C_SWITCH_SYSTEM
4340 #ifndef C_SWITCH_MACHINE
4341 #define C_SWITCH_MACHINE
4343 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4344 configure___ c_switch_system=C_SWITCH_SYSTEM
4345 configure___ c_switch_machine=C_SWITCH_MACHINE
4348 #define LIB_X11_LIB -lX11
4351 #ifndef LIBX11_MACHINE
4352 #define LIBX11_MACHINE
4355 #ifndef LIBX11_SYSTEM
4356 #define LIBX11_SYSTEM
4358 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4361 configure___ unexec=UNEXEC
4363 configure___ unexec=unexec.o
4366 #ifdef SYSTEM_MALLOC
4367 configure___ system_malloc=yes
4369 configure___ system_malloc=no
4372 #ifdef USE_MMAP_FOR_BUFFERS
4373 configure___ use_mmap_for_buffers=yes
4375 configure___ use_mmap_for_buffers=no
4378 #ifndef C_DEBUG_SWITCH
4379 #define C_DEBUG_SWITCH -g
4382 #ifndef C_OPTIMIZE_SWITCH
4384 #define C_OPTIMIZE_SWITCH -O2
4386 #define C_OPTIMIZE_SWITCH -O
4390 #ifndef LD_SWITCH_MACHINE
4391 #define LD_SWITCH_MACHINE
4394 #ifndef LD_SWITCH_SYSTEM
4395 #define LD_SWITCH_SYSTEM
4398 #ifndef LD_SWITCH_X_SITE_AUX
4399 #define LD_SWITCH_X_SITE_AUX
4402 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4403 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4405 #ifdef THIS_IS_CONFIGURE
4407 /* Get the CFLAGS for tests in configure. */
4409 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4411 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4414 #else /* not THIS_IS_CONFIGURE */
4416 /* Get the CFLAGS for real compilation. */
4418 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4420 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4423 #endif /* not THIS_IS_CONFIGURE */
4426 # The value of CPP is a quoted variable reference, so we need to do this
4427 # to get its actual value...
4428 CPP
=`eval "echo $CPP"`
4429 eval `${CPP} -Isrc ${tempcname} \
4430 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4431 if test "x$SPECIFIED_CFLAGS" = x
; then
4432 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4433 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4435 REAL_CFLAGS
="$CFLAGS"
4439 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4441 ### Make sure subsequent tests use flags consistent with the build flags.
4443 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4444 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4446 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4452 cat >>confdefs.h
<<\_ACEOF
4453 #define _GNU_SOURCE 1
4458 # Check whether --enable-largefile or --disable-largefile was given.
4459 if test "${enable_largefile+set}" = set; then
4460 enableval
="$enable_largefile"
4463 if test "$enable_largefile" != no
; then
4465 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4466 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4467 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 ac_cv_sys_largefile_CC
=no
4471 if test "$GCC" != yes; then
4474 # IRIX 6.2 and later do not support large files by default,
4475 # so use the C compiler's -n32 option if that helps.
4476 cat >conftest.
$ac_ext <<_ACEOF
4479 cat confdefs.h
>>conftest.
$ac_ext
4480 cat >>conftest.
$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <sys/types.h>
4483 /* Check that off_t can represent 2**63 - 1 correctly.
4484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4485 since some C++ compilers masquerading as C compilers
4486 incorrectly reject 9223372036854775807. */
4487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4489 && LARGE_OFF_T % 2147483647 == 1)
4499 rm -f conftest.
$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>conftest.er1
4503 grep -v '^ *+' conftest.er1
>conftest.err
4505 cat conftest.err
>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try
='test -z "$ac_c_werror_flag"
4509 || test ! -s conftest.err'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; } &&
4515 { ac_try
='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.
$ac_ext >&5
4527 rm -f conftest.err conftest.
$ac_objext
4529 rm -f conftest.
$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1
>conftest.err
4535 cat conftest.err
>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try
='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_cv_sys_largefile_CC
=' -n32'; break
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4557 rm -f conftest.err conftest.
$ac_objext
4561 rm -f conftest.
$ac_ext
4564 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4565 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4566 if test "$ac_cv_sys_largefile_CC" != no
; then
4567 CC
=$CC$ac_cv_sys_largefile_CC
4570 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4571 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4572 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_cv_sys_file_offset_bits
=no
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 /* Check that off_t can represent 2**63 - 1 correctly.
4585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586 since some C++ compilers masquerading as C compilers
4587 incorrectly reject 9223372036854775807. */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590 && LARGE_OFF_T % 2147483647 == 1)
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1
>conftest.err
4606 cat conftest.err
>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -z "$ac_c_werror_flag"
4610 || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try
='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.
$ac_ext >&5
4628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4629 cat >conftest.
$ac_ext <<_ACEOF
4632 cat confdefs.h
>>conftest.
$ac_ext
4633 cat >>conftest.
$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #define _FILE_OFFSET_BITS 64
4636 #include <sys/types.h>
4637 /* Check that off_t can represent 2**63 - 1 correctly.
4638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4639 since some C++ compilers masquerading as C compilers
4640 incorrectly reject 9223372036854775807. */
4641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4643 && LARGE_OFF_T % 2147483647 == 1)
4653 rm -f conftest.
$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1
>conftest.err
4659 cat conftest.err
>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try
='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try
='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_sys_file_offset_bits
=64; break
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.
$ac_ext >&5
4681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4686 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4687 if test "$ac_cv_sys_file_offset_bits" != no
; then
4689 cat >>confdefs.h
<<_ACEOF
4690 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4695 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4696 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4697 if test "${ac_cv_sys_large_files+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 ac_cv_sys_large_files
=no
4702 cat >conftest.
$ac_ext <<_ACEOF
4705 cat confdefs.h
>>conftest.
$ac_ext
4706 cat >>conftest.
$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <sys/types.h>
4709 /* Check that off_t can represent 2**63 - 1 correctly.
4710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4711 since some C++ compilers masquerading as C compilers
4712 incorrectly reject 9223372036854775807. */
4713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4715 && LARGE_OFF_T % 2147483647 == 1)
4725 rm -f conftest.
$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>conftest.er1
4729 grep -v '^ *+' conftest.er1
>conftest.err
4731 cat conftest.err
>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } &&
4734 { ac_try
='test -z "$ac_c_werror_flag"
4735 || test ! -s conftest.err'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; } &&
4741 { ac_try
='test -s conftest.$ac_objext'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.
$ac_ext >&5
4753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4754 cat >conftest.
$ac_ext <<_ACEOF
4757 cat confdefs.h
>>conftest.
$ac_ext
4758 cat >>conftest.
$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #define _LARGE_FILES 1
4761 #include <sys/types.h>
4762 /* Check that off_t can represent 2**63 - 1 correctly.
4763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4764 since some C++ compilers masquerading as C compilers
4765 incorrectly reject 9223372036854775807. */
4766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4768 && LARGE_OFF_T % 2147483647 == 1)
4778 rm -f conftest.
$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>conftest.er1
4782 grep -v '^ *+' conftest.er1
>conftest.err
4784 cat conftest.err
>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try
='test -z "$ac_c_werror_flag"
4788 || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try
='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_cv_sys_large_files
=1; break
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.
$ac_ext >&5
4806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4811 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4812 if test "$ac_cv_sys_large_files" != no
; then
4814 cat >>confdefs.h
<<_ACEOF
4815 #define _LARGE_FILES $ac_cv_sys_large_files
4823 if test "${with_sound}" != "no"; then
4824 # Sound support for GNU/Linux and the free BSDs.
4825 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4827 if test "${ac_cv_header_stdc+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4849 rm -f conftest.
$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1
>conftest.err
4855 cat conftest.err
>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try
='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try
='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 ac_cv_header_stdc
=yes
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.
$ac_ext >&5
4876 ac_cv_header_stdc
=no
4878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4880 if test $ac_cv_header_stdc = yes; then
4881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4882 cat >conftest.
$ac_ext <<_ACEOF
4885 cat confdefs.h
>>conftest.
$ac_ext
4886 cat >>conftest.
$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "memchr" >/dev
/null
2>&1; then
4895 ac_cv_header_stdc
=no
4901 if test $ac_cv_header_stdc = yes; then
4902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903 cat >conftest.
$ac_ext <<_ACEOF
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4913 $EGREP "free" >/dev
/null
2>&1; then
4916 ac_cv_header_stdc
=no
4922 if test $ac_cv_header_stdc = yes; then
4923 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4924 if test "$cross_compiling" = yes; then
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 #if ((' ' & 0x0FF) == 0x020)
4935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4938 # define ISLOWER(c) \
4939 (('a' <= (c) && (c) <= 'i') \
4940 || ('j' <= (c) && (c) <= 'r') \
4941 || ('s' <= (c) && (c) <= 'z'))
4942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4950 for (i = 0; i < 256; i++)
4951 if (XOR (islower (i), ISLOWER (i))
4952 || toupper (i) != TOUPPER (i))
4957 rm -f conftest
$ac_exeext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4970 echo "$as_me: program exited with status $ac_status" >&5
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.
$ac_ext >&5
4975 ac_cv_header_stdc
=no
4977 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4981 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4982 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4983 if test $ac_cv_header_stdc = yes; then
4985 cat >>confdefs.h
<<\_ACEOF
4986 #define STDC_HEADERS 1
4991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5001 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5002 inttypes.h stdint.h unistd.h
5004 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 cat >conftest.
$ac_ext <<_ACEOF
5013 cat confdefs.h
>>conftest.
$ac_ext
5014 cat >>conftest.
$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5018 #include <$ac_header>
5020 rm -f conftest.
$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1
>conftest.err
5026 cat conftest.err
>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try
='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try
='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 eval "$as_ac_Header=yes"
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.
$ac_ext >&5
5047 eval "$as_ac_Header=no"
5049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5054 cat >>confdefs.h
<<_ACEOF
5055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5068 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5070 echo "$as_me:$LINENO: checking for $ac_header" >&5
5071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5078 # Is the header compilable?
5079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5081 cat >conftest.
$ac_ext <<_ACEOF
5084 cat confdefs.h
>>conftest.
$ac_ext
5085 cat >>conftest.
$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 $ac_includes_default
5088 #include <$ac_header>
5090 rm -f conftest.
$ac_objext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>conftest.er1
5094 grep -v '^ *+' conftest.er1
>conftest.err
5096 cat conftest.err
>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try
='test -z "$ac_c_werror_flag"
5100 || test ! -s conftest.err'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try
='test -s conftest.$ac_objext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 ac_header_compiler
=yes
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.
$ac_ext >&5
5117 ac_header_compiler
=no
5119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5121 echo "${ECHO_T}$ac_header_compiler" >&6
5123 # Is the header present?
5124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5126 cat >conftest.
$ac_ext <<_ACEOF
5129 cat confdefs.h
>>conftest.
$ac_ext
5130 cat >>conftest.
$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <$ac_header>
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1
>conftest.err
5139 cat conftest.err
>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev
/null
; then
5142 if test -s conftest.err
; then
5143 ac_cpp_err
=$ac_c_preproc_warn_flag
5144 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5151 if test -z "$ac_cpp_err"; then
5152 ac_header_preproc
=yes
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.
$ac_ext >&5
5157 ac_header_preproc
=no
5159 rm -f conftest.err conftest.
$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5161 echo "${ECHO_T}$ac_header_preproc" >&6
5163 # So? What about this header?
5164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5170 ac_header_preproc
=yes
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5187 ## ------------------------------------------ ##
5188 ## Report this to the AC_PACKAGE_NAME lists. ##
5189 ## ------------------------------------------ ##
5192 sed "s/^/$as_me: WARNING: /" >&2
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 eval "$as_ac_Header=\$ac_header_preproc"
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5207 cat >>confdefs.h
<<_ACEOF
5208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 # Emulation library used on NetBSD.
5216 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5217 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5218 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 ac_check_lib_save_LIBS
=$LIBS
5222 LIBS
="-lossaudio $LIBS"
5223 cat >conftest.
$ac_ext <<_ACEOF
5226 cat confdefs.h
>>conftest.
$ac_ext
5227 cat >>conftest.
$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5230 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5245 rm -f conftest.
$ac_objext conftest
$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>conftest.er1
5249 grep -v '^ *+' conftest.er1
>conftest.err
5251 cat conftest.err
>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try
='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try
='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_lib_ossaudio__oss_ioctl
=yes
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.
$ac_ext >&5
5272 ac_cv_lib_ossaudio__oss_ioctl
=no
5274 rm -f conftest.err conftest.
$ac_objext \
5275 conftest
$ac_exeext conftest.
$ac_ext
5276 LIBS
=$ac_check_lib_save_LIBS
5278 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5279 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5280 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5314 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5315 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5316 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5317 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5320 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5322 echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5330 # Is the header compilable?
5331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5333 cat >conftest.
$ac_ext <<_ACEOF
5336 cat confdefs.h
>>conftest.
$ac_ext
5337 cat >>conftest.
$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 $ac_includes_default
5340 #include <$ac_header>
5342 rm -f conftest.
$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>conftest.er1
5346 grep -v '^ *+' conftest.er1
>conftest.err
5348 cat conftest.err
>&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try
='test -z "$ac_c_werror_flag"
5352 || test ! -s conftest.err'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; } &&
5358 { ac_try
='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 ac_header_compiler
=yes
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.
$ac_ext >&5
5369 ac_header_compiler
=no
5371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5373 echo "${ECHO_T}$ac_header_compiler" >&6
5375 # Is the header present?
5376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 #include <$ac_header>
5386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5389 grep -v '^ *+' conftest.er1
>conftest.err
5391 cat conftest.err
>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } >/dev
/null
; then
5394 if test -s conftest.err
; then
5395 ac_cpp_err
=$ac_c_preproc_warn_flag
5396 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5403 if test -z "$ac_cpp_err"; then
5404 ac_header_preproc
=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.
$ac_ext >&5
5409 ac_header_preproc
=no
5411 rm -f conftest.err conftest.
$ac_ext
5412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5413 echo "${ECHO_T}$ac_header_preproc" >&6
5415 # So? What about this header?
5416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5422 ac_header_preproc
=yes
5425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5439 ## ------------------------------------------ ##
5440 ## Report this to the AC_PACKAGE_NAME lists. ##
5441 ## ------------------------------------------ ##
5444 sed "s/^/$as_me: WARNING: /" >&2
5447 echo "$as_me:$LINENO: checking for $ac_header" >&5
5448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 eval "$as_ac_Header=\$ac_header_preproc"
5454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5459 cat >>confdefs.h
<<_ACEOF
5460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5468 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5469 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5470 cat >conftest.
$ac_ext <<_ACEOF
5473 cat confdefs.h
>>conftest.
$ac_ext
5474 cat >>conftest.
$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #include <sys/personality.h>
5480 personality (PER_LINUX32)
5485 rm -f conftest.
$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
5489 grep -v '^ *+' conftest.er1
>conftest.err
5491 cat conftest.err
>&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try
='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try
='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 emacs_cv_personality_linux32
=yes
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.
$ac_ext >&5
5512 emacs_cv_personality_linux32
=no
5514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5516 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5518 if test $emacs_cv_personality_linux32 = yes; then
5520 cat >>confdefs.h
<<\_ACEOF
5521 #define HAVE_PERSONALITY_LINUX32 1
5527 for ac_header
in term.h
5529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5530 echo "$as_me:$LINENO: checking for $ac_header" >&5
5531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 cat >conftest.
$ac_ext <<_ACEOF
5538 cat confdefs.h
>>conftest.
$ac_ext
5539 cat >>conftest.
$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <$ac_header>
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5546 grep -v '^ *+' conftest.er1
>conftest.err
5548 cat conftest.err
>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev
/null
; then
5551 if test -s conftest.err
; then
5552 ac_cpp_err
=$ac_c_preproc_warn_flag
5553 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5560 if test -z "$ac_cpp_err"; then
5561 eval "$as_ac_Header=yes"
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.
$ac_ext >&5
5566 eval "$as_ac_Header=no"
5568 rm -f conftest.err conftest.
$ac_ext
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h
<<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5582 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5583 if test "${ac_cv_header_stdc+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 cat >conftest.
$ac_ext <<_ACEOF
5589 cat confdefs.h
>>conftest.
$ac_ext
5590 cat >>conftest.
$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5605 rm -f conftest.
$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607 (eval $ac_compile) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1
>conftest.err
5611 cat conftest.err
>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try
='test -z "$ac_c_werror_flag"
5615 || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try
='test -s conftest.$ac_objext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_header_stdc
=yes
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.
$ac_ext >&5
5632 ac_cv_header_stdc
=no
5634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5636 if test $ac_cv_header_stdc = yes; then
5637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5638 cat >conftest.
$ac_ext <<_ACEOF
5641 cat confdefs.h
>>conftest.
$ac_ext
5642 cat >>conftest.
$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "memchr" >/dev
/null
2>&1; then
5651 ac_cv_header_stdc
=no
5657 if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659 cat >conftest.
$ac_ext <<_ACEOF
5662 cat confdefs.h
>>conftest.
$ac_ext
5663 cat >>conftest.
$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5669 $EGREP "free" >/dev
/null
2>&1; then
5672 ac_cv_header_stdc
=no
5678 if test $ac_cv_header_stdc = yes; then
5679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5680 if test "$cross_compiling" = yes; then
5683 cat >conftest.
$ac_ext <<_ACEOF
5686 cat confdefs.h
>>conftest.
$ac_ext
5687 cat >>conftest.
$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5690 #if ((' ' & 0x0FF) == 0x020)
5691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694 # define ISLOWER(c) \
5695 (('a' <= (c) && (c) <= 'i') \
5696 || ('j' <= (c) && (c) <= 'r') \
5697 || ('s' <= (c) && (c) <= 'z'))
5698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5706 for (i = 0; i < 256; i++)
5707 if (XOR (islower (i), ISLOWER (i))
5708 || toupper (i) != TOUPPER (i))
5713 rm -f conftest
$ac_exeext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5715 (eval $ac_link) 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5726 echo "$as_me: program exited with status $ac_status" >&5
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.
$ac_ext >&5
5731 ac_cv_header_stdc
=no
5733 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5737 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5738 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5739 if test $ac_cv_header_stdc = yes; then
5741 cat >>confdefs.h
<<\_ACEOF
5742 #define STDC_HEADERS 1
5747 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5748 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5749 if test "${ac_cv_header_time+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.
$ac_ext <<_ACEOF
5755 cat confdefs.h
>>conftest.
$ac_ext
5756 cat >>conftest.
$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 #include <sys/time.h>
5765 if ((struct tm *) 0)
5771 rm -f conftest.
$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5775 grep -v '^ *+' conftest.er1
>conftest.err
5777 cat conftest.err
>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try
='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try
='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_header_time
=yes
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.
$ac_ext >&5
5798 ac_cv_header_time
=no
5800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5802 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5803 echo "${ECHO_T}$ac_cv_header_time" >&6
5804 if test $ac_cv_header_time = yes; then
5806 cat >>confdefs.h
<<\_ACEOF
5807 #define TIME_WITH_SYS_TIME 1
5812 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5813 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5814 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.
$ac_ext <<_ACEOF
5820 cat confdefs.h
>>conftest.
$ac_ext
5821 cat >>conftest.
$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 $ac_includes_default
5828 char *p = (char *) sys_siglist;
5835 rm -f conftest.
$ac_objext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>conftest.er1
5839 grep -v '^ *+' conftest.er1
>conftest.err
5841 cat conftest.err
>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try
='test -z "$ac_c_werror_flag"
5845 || test ! -s conftest.err'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try
='test -s conftest.$ac_objext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_have_decl_sys_siglist
=yes
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5862 ac_cv_have_decl_sys_siglist
=no
5864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5866 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5867 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5868 if test $ac_cv_have_decl_sys_siglist = yes; then
5870 cat >>confdefs.h
<<_ACEOF
5871 #define HAVE_DECL_SYS_SIGLIST 1
5876 cat >>confdefs.h
<<_ACEOF
5877 #define HAVE_DECL_SYS_SIGLIST 0
5884 if test $ac_cv_have_decl_sys_siglist != yes; then
5885 # For Tru64, at least:
5886 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5887 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5888 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.
$ac_ext <<_ACEOF
5894 cat confdefs.h
>>conftest.
$ac_ext
5895 cat >>conftest.
$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5901 #ifndef __sys_siglist
5902 char *p = (char *) __sys_siglist;
5909 rm -f conftest.
$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>conftest.er1
5913 grep -v '^ *+' conftest.er1
>conftest.err
5915 cat conftest.err
>&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try
='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try
='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_have_decl___sys_siglist
=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.
$ac_ext >&5
5936 ac_cv_have_decl___sys_siglist
=no
5938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5940 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5941 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5942 if test $ac_cv_have_decl___sys_siglist = yes; then
5944 cat >>confdefs.h
<<_ACEOF
5945 #define HAVE_DECL___SYS_SIGLIST 1
5950 cat >>confdefs.h
<<_ACEOF
5951 #define HAVE_DECL___SYS_SIGLIST 0
5958 if test $ac_cv_have_decl___sys_siglist = yes; then
5960 cat >>confdefs.h
<<\_ACEOF
5961 #define sys_siglist __sys_siglist
5966 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5967 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5968 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.
$ac_ext <<_ACEOF
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5978 #include <sys/wait.h>
5980 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5983 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5991 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5996 rm -f conftest.
$ac_objext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998 (eval $ac_compile) 2>conftest.er1
6000 grep -v '^ *+' conftest.er1
>conftest.err
6002 cat conftest.err
>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try
='test -z "$ac_c_werror_flag"
6006 || test ! -s conftest.err'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try
='test -s conftest.$ac_objext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 ac_cv_header_sys_wait_h
=yes
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.
$ac_ext >&5
6023 ac_cv_header_sys_wait_h
=no
6025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6027 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6028 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6029 if test $ac_cv_header_sys_wait_h = yes; then
6031 cat >>confdefs.h
<<\_ACEOF
6032 #define HAVE_SYS_WAIT_H 1
6038 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6039 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6040 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.
$ac_ext <<_ACEOF
6046 cat confdefs.h
>>conftest.
$ac_ext
6047 cat >>conftest.
$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #ifdef TIME_WITH_SYS_TIME
6050 #include <sys/time.h>
6053 #ifdef HAVE_SYS_TIME_H
6054 #include <sys/time.h>
6065 static struct utimbuf x; x.actime = x.modtime;
6070 rm -f conftest.
$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6074 grep -v '^ *+' conftest.er1
>conftest.err
6076 cat conftest.err
>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try
='test -z "$ac_c_werror_flag"
6080 || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try
='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 emacs_cv_struct_utimbuf
=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 emacs_cv_struct_utimbuf
=no
6099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6101 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6102 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6103 if test $emacs_cv_struct_utimbuf = yes; then
6105 cat >>confdefs.h
<<\_ACEOF
6106 #define HAVE_STRUCT_UTIMBUF 1
6111 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6112 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6113 if test "${ac_cv_type_signal+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 cat >conftest.
$ac_ext <<_ACEOF
6119 cat confdefs.h
>>conftest.
$ac_ext
6120 cat >>conftest.
$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 #include <sys/types.h>
6128 extern "C" void (*signal (int, void (*)(int)))(int);
6130 void (*signal ()) ();
6141 rm -f conftest.
$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6145 grep -v '^ *+' conftest.er1
>conftest.err
6147 cat conftest.err
>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try
='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try
='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_type_signal
=void
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6168 ac_cv_type_signal
=int
6170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6173 echo "${ECHO_T}$ac_cv_type_signal" >&6
6175 cat >>confdefs.h
<<_ACEOF
6176 #define RETSIGTYPE $ac_cv_type_signal
6181 echo "$as_me:$LINENO: checking for speed_t" >&5
6182 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6183 if test "${emacs_cv_speed_t+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <termios.h>
6201 rm -f conftest.
$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6205 grep -v '^ *+' conftest.er1
>conftest.err
6207 cat conftest.err
>&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try
='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try
='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 emacs_cv_speed_t
=yes
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.
$ac_ext >&5
6230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6232 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6233 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6234 if test $emacs_cv_speed_t = yes; then
6236 cat >>confdefs.h
<<\_ACEOF
6237 #define HAVE_SPEED_T 1
6242 echo "$as_me:$LINENO: checking for struct timeval" >&5
6243 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6244 if test "${emacs_cv_struct_timeval+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 cat >conftest.
$ac_ext <<_ACEOF
6250 cat confdefs.h
>>conftest.
$ac_ext
6251 cat >>conftest.
$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 #ifdef TIME_WITH_SYS_TIME
6254 #include <sys/time.h>
6257 #ifdef HAVE_SYS_TIME_H
6258 #include <sys/time.h>
6266 static struct timeval x; x.tv_sec = x.tv_usec;
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6275 grep -v '^ *+' conftest.er1
>conftest.err
6277 cat conftest.err
>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try
='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 emacs_cv_struct_timeval
=yes
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6298 emacs_cv_struct_timeval
=no
6300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6303 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6304 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6305 if test $emacs_cv_struct_timeval = yes; then
6307 cat >>confdefs.h
<<\_ACEOF
6308 #define HAVE_TIMEVAL 1
6313 echo "$as_me:$LINENO: checking for struct exception" >&5
6314 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6315 if test "${emacs_cv_struct_exception+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 cat >conftest.
$ac_ext <<_ACEOF
6321 cat confdefs.h
>>conftest.
$ac_ext
6322 cat >>conftest.
$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6328 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6333 rm -f conftest.
$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try
='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try
='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 emacs_cv_struct_exception
=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.
$ac_ext >&5
6360 emacs_cv_struct_exception
=no
6362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6364 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6365 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6366 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6367 if test $emacs_cv_struct_exception != yes; then
6369 cat >>confdefs.h
<<\_ACEOF
6370 #define NO_MATHERR 1
6376 for ac_header
in sys
/socket.h
6378 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388 # Is the header compilable?
6389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6391 cat >conftest.
$ac_ext <<_ACEOF
6394 cat confdefs.h
>>conftest.
$ac_ext
6395 cat >>conftest.
$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6398 #include <$ac_header>
6400 rm -f conftest.
$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6404 grep -v '^ *+' conftest.er1
>conftest.err
6406 cat conftest.err
>&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try
='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try
='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_header_compiler
=yes
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.
$ac_ext >&5
6427 ac_header_compiler
=no
6429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6431 echo "${ECHO_T}$ac_header_compiler" >&6
6433 # Is the header present?
6434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6436 cat >conftest.
$ac_ext <<_ACEOF
6439 cat confdefs.h
>>conftest.
$ac_ext
6440 cat >>conftest.
$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 #include <$ac_header>
6444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6447 grep -v '^ *+' conftest.er1
>conftest.err
6449 cat conftest.err
>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } >/dev
/null
; then
6452 if test -s conftest.err
; then
6453 ac_cpp_err
=$ac_c_preproc_warn_flag
6454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6461 if test -z "$ac_cpp_err"; then
6462 ac_header_preproc
=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.
$ac_ext >&5
6467 ac_header_preproc
=no
6469 rm -f conftest.err conftest.
$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6471 echo "${ECHO_T}$ac_header_preproc" >&6
6473 # So? What about this header?
6474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6480 ac_header_preproc
=yes
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6497 ## ------------------------------------------ ##
6498 ## Report this to the AC_PACKAGE_NAME lists. ##
6499 ## ------------------------------------------ ##
6502 sed "s/^/$as_me: WARNING: /" >&2
6505 echo "$as_me:$LINENO: checking for $ac_header" >&5
6506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 eval "$as_ac_Header=\$ac_header_preproc"
6512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6517 cat >>confdefs.h
<<_ACEOF
6518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6526 for ac_header
in net
/if.h
6528 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 cat >conftest.
$ac_ext <<_ACEOF
6537 cat confdefs.h
>>conftest.
$ac_ext
6538 cat >>conftest.
$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 $ac_includes_default
6541 #if HAVE_SYS_SOCKET_H
6542 #include <sys/socket.h>
6545 #include <$ac_header>
6547 rm -f conftest.
$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>conftest.er1
6551 grep -v '^ *+' conftest.er1
>conftest.err
6553 cat conftest.err
>&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try
='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try
='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 eval "$as_ac_Header=yes"
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.
$ac_ext >&5
6574 eval "$as_ac_Header=no"
6576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6581 cat >>confdefs.h
<<_ACEOF
6582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6590 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6591 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6592 if test "${ac_cv_struct_tm+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 cat >conftest.
$ac_ext <<_ACEOF
6598 cat confdefs.h
>>conftest.
$ac_ext
6599 cat >>conftest.
$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <sys/types.h>
6607 struct tm *tp; tp->tm_sec;
6612 rm -f conftest.
$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1
>conftest.err
6618 cat conftest.err
>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try
='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try
='test -s conftest.$ac_objext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_struct_tm
=time.h
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.
$ac_ext >&5
6639 ac_cv_struct_tm
=sys
/time.h
6641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6644 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6645 if test $ac_cv_struct_tm = sys
/time.h
; then
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define TM_IN_SYS_TIME 1
6653 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6654 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6655 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 cat >conftest.
$ac_ext <<_ACEOF
6661 cat confdefs.h
>>conftest.
$ac_ext
6662 cat >>conftest.
$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <sys/types.h>
6665 #include <$ac_cv_struct_tm>
6671 static struct tm ac_aggr;
6672 if (ac_aggr.tm_zone)
6678 rm -f conftest.
$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>conftest.er1
6682 grep -v '^ *+' conftest.er1
>conftest.err
6684 cat conftest.err
>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try
='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try
='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_member_struct_tm_tm_zone
=yes
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6705 cat >conftest.
$ac_ext <<_ACEOF
6708 cat confdefs.h
>>conftest.
$ac_ext
6709 cat >>conftest.
$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 #include <sys/types.h>
6712 #include <$ac_cv_struct_tm>
6718 static struct tm ac_aggr;
6719 if (sizeof ac_aggr.tm_zone)
6725 rm -f conftest.
$ac_objext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727 (eval $ac_compile) 2>conftest.er1
6729 grep -v '^ *+' conftest.er1
>conftest.err
6731 cat conftest.err
>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try
='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try
='test -s conftest.$ac_objext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_member_struct_tm_tm_zone
=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.
$ac_ext >&5
6752 ac_cv_member_struct_tm_tm_zone
=no
6754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6759 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6760 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6762 cat >>confdefs.h
<<_ACEOF
6763 #define HAVE_STRUCT_TM_TM_ZONE 1
6769 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6771 cat >>confdefs.h
<<\_ACEOF
6772 #define HAVE_TM_ZONE 1
6776 echo "$as_me:$LINENO: checking for tzname" >&5
6777 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6778 if test "${ac_cv_var_tzname+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.
$ac_ext <<_ACEOF
6784 cat confdefs.h
>>conftest.
$ac_ext
6785 cat >>conftest.
$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6788 #ifndef tzname /* For SGI. */
6789 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6800 rm -f conftest.
$ac_objext conftest
$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try
='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try
='test -s conftest$ac_exeext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_var_tzname
=yes
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.
$ac_ext >&5
6829 rm -f conftest.err conftest.
$ac_objext \
6830 conftest
$ac_exeext conftest.
$ac_ext
6832 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6833 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6834 if test $ac_cv_var_tzname = yes; then
6836 cat >>confdefs.h
<<\_ACEOF
6837 #define HAVE_TZNAME 1
6843 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6844 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6845 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6859 static struct tm ac_aggr;
6860 if (ac_aggr.tm_gmtoff)
6866 rm -f conftest.
$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>conftest.er1
6870 grep -v '^ *+' conftest.er1
>conftest.err
6872 cat conftest.err
>&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try
='test -z "$ac_c_werror_flag"
6876 || test ! -s conftest.err'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; } &&
6882 { ac_try
='test -s conftest.$ac_objext'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6888 ac_cv_member_struct_tm_tm_gmtoff
=yes
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.
$ac_ext >&5
6893 cat >conftest.
$ac_ext <<_ACEOF
6896 cat confdefs.h
>>conftest.
$ac_ext
6897 cat >>conftest.
$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6904 static struct tm ac_aggr;
6905 if (sizeof ac_aggr.tm_gmtoff)
6911 rm -f conftest.
$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1
>conftest.err
6917 cat conftest.err
>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try
='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_member_struct_tm_tm_gmtoff
=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6938 ac_cv_member_struct_tm_tm_gmtoff
=no
6940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6944 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6945 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6946 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6948 cat >>confdefs.h
<<\_ACEOF
6949 #define HAVE_TM_GMTOFF 1
6954 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6955 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6956 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 #if HAVE_SYS_SOCKET_H
6967 #include <sys/socket.h>
6976 static struct ifreq ac_aggr;
6977 if (ac_aggr.ifr_flags)
6983 rm -f conftest.
$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -z "$ac_c_werror_flag"
6993 || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try
='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_cv_member_struct_ifreq_ifr_flags
=yes
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.
$ac_ext >&5
7010 cat >conftest.
$ac_ext <<_ACEOF
7013 cat confdefs.h
>>conftest.
$ac_ext
7014 cat >>conftest.
$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 $ac_includes_default
7017 #if HAVE_SYS_SOCKET_H
7018 #include <sys/socket.h>
7027 static struct ifreq ac_aggr;
7028 if (sizeof ac_aggr.ifr_flags)
7034 rm -f conftest.
$ac_objext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>conftest.er1
7038 grep -v '^ *+' conftest.er1
>conftest.err
7040 cat conftest.err
>&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try
='test -z "$ac_c_werror_flag"
7044 || test ! -s conftest.err'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; } &&
7050 { ac_try
='test -s conftest.$ac_objext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_member_struct_ifreq_ifr_flags
=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7061 ac_cv_member_struct_ifreq_ifr_flags
=no
7063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7068 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7069 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7071 cat >>confdefs.h
<<_ACEOF
7072 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7077 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7078 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7079 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.
$ac_ext <<_ACEOF
7085 cat confdefs.h
>>conftest.
$ac_ext
7086 cat >>conftest.
$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7089 #if HAVE_SYS_SOCKET_H
7090 #include <sys/socket.h>
7099 static struct ifreq ac_aggr;
7100 if (ac_aggr.ifr_hwaddr)
7106 rm -f conftest.
$ac_objext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7108 (eval $ac_compile) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1
>conftest.err
7112 cat conftest.err
>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try
='test -z "$ac_c_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try
='test -s conftest.$ac_objext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 cat >conftest.
$ac_ext <<_ACEOF
7136 cat confdefs.h
>>conftest.
$ac_ext
7137 cat >>conftest.
$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7140 #if HAVE_SYS_SOCKET_H
7141 #include <sys/socket.h>
7150 static struct ifreq ac_aggr;
7151 if (sizeof ac_aggr.ifr_hwaddr)
7157 rm -f conftest.
$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1
>conftest.err
7163 cat conftest.err
>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try
='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try
='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.
$ac_ext >&5
7184 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7190 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7191 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7192 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7194 cat >>confdefs.h
<<_ACEOF
7195 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7200 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7201 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7202 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.
$ac_ext <<_ACEOF
7208 cat confdefs.h
>>conftest.
$ac_ext
7209 cat >>conftest.
$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 $ac_includes_default
7212 #if HAVE_SYS_SOCKET_H
7213 #include <sys/socket.h>
7222 static struct ifreq ac_aggr;
7223 if (ac_aggr.ifr_netmask)
7229 rm -f conftest.
$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>conftest.er1
7233 grep -v '^ *+' conftest.er1
>conftest.err
7235 cat conftest.err
>&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try
='test -z "$ac_c_werror_flag"
7239 || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try
='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.
$ac_ext >&5
7256 cat >conftest.
$ac_ext <<_ACEOF
7259 cat confdefs.h
>>conftest.
$ac_ext
7260 cat >>conftest.
$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7263 #if HAVE_SYS_SOCKET_H
7264 #include <sys/socket.h>
7273 static struct ifreq ac_aggr;
7274 if (sizeof ac_aggr.ifr_netmask)
7280 rm -f conftest.
$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7284 grep -v '^ *+' conftest.er1
>conftest.err
7286 cat conftest.err
>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try
='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try
='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.
$ac_ext >&5
7307 ac_cv_member_struct_ifreq_ifr_netmask
=no
7309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7314 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7315 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7317 cat >>confdefs.h
<<_ACEOF
7318 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7323 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7324 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7325 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 cat >conftest.
$ac_ext <<_ACEOF
7331 cat confdefs.h
>>conftest.
$ac_ext
7332 cat >>conftest.
$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 $ac_includes_default
7335 #if HAVE_SYS_SOCKET_H
7336 #include <sys/socket.h>
7345 static struct ifreq ac_aggr;
7346 if (ac_aggr.ifr_broadaddr)
7352 rm -f conftest.
$ac_objext
7353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354 (eval $ac_compile) 2>conftest.er1
7356 grep -v '^ *+' conftest.er1
>conftest.err
7358 cat conftest.err
>&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try
='test -z "$ac_c_werror_flag"
7362 || test ! -s conftest.err'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; } &&
7368 { ac_try
='test -s conftest.$ac_objext'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.
$ac_ext >&5
7379 cat >conftest.
$ac_ext <<_ACEOF
7382 cat confdefs.h
>>conftest.
$ac_ext
7383 cat >>conftest.
$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 $ac_includes_default
7386 #if HAVE_SYS_SOCKET_H
7387 #include <sys/socket.h>
7396 static struct ifreq ac_aggr;
7397 if (sizeof ac_aggr.ifr_broadaddr)
7403 rm -f conftest.
$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>conftest.er1
7407 grep -v '^ *+' conftest.er1
>conftest.err
7409 cat conftest.err
>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try
='test -z "$ac_c_werror_flag"
7413 || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try
='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.
$ac_ext >&5
7430 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7440 cat >>confdefs.h
<<_ACEOF
7441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7446 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.
$ac_ext <<_ACEOF
7454 cat confdefs.h
>>conftest.
$ac_ext
7455 cat >>conftest.
$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7468 static struct ifreq ac_aggr;
7469 if (ac_aggr.ifr_addr)
7475 rm -f conftest.
$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7479 grep -v '^ *+' conftest.er1
>conftest.err
7481 cat conftest.err
>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -z "$ac_c_werror_flag"
7485 || test ! -s conftest.err'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; } &&
7491 { ac_try
='test -s conftest.$ac_objext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 ac_cv_member_struct_ifreq_ifr_addr
=yes
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.
$ac_ext >&5
7502 cat >conftest.
$ac_ext <<_ACEOF
7505 cat confdefs.h
>>conftest.
$ac_ext
7506 cat >>conftest.
$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 #if HAVE_SYS_SOCKET_H
7510 #include <sys/socket.h>
7519 static struct ifreq ac_aggr;
7520 if (sizeof ac_aggr.ifr_addr)
7526 rm -f conftest.
$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try
='test -z "$ac_c_werror_flag"
7536 || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try
='test -s conftest.$ac_objext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_member_struct_ifreq_ifr_addr
=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.
$ac_ext >&5
7553 ac_cv_member_struct_ifreq_ifr_addr
=no
7555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7559 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7560 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7561 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7563 cat >>confdefs.h
<<_ACEOF
7564 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7572 echo "$as_me:$LINENO: checking for function prototypes" >&5
7573 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7574 if test "$ac_cv_prog_cc_stdc" != no
; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576 echo "${ECHO_T}yes" >&6
7578 cat >>confdefs.h
<<\_ACEOF
7579 #define PROTOTYPES 1
7583 cat >>confdefs.h
<<\_ACEOF
7584 #define __PROTOTYPES 1
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7592 echo "$as_me:$LINENO: checking for working volatile" >&5
7593 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7594 if test "${ac_cv_c_volatile+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 cat >conftest.
$ac_ext <<_ACEOF
7600 cat confdefs.h
>>conftest.
$ac_ext
7601 cat >>conftest.
$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7614 rm -f conftest.
$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>conftest.er1
7618 grep -v '^ *+' conftest.er1
>conftest.err
7620 cat conftest.err
>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try
='test -z "$ac_c_werror_flag"
7624 || test ! -s conftest.err'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; } &&
7630 { ac_try
='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_cv_c_volatile
=yes
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.
$ac_ext >&5
7643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7646 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7647 if test $ac_cv_c_volatile = no
; then
7649 cat >>confdefs.h
<<\_ACEOF
7655 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7656 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7657 if test "${ac_cv_c_const+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 cat >conftest.
$ac_ext <<_ACEOF
7663 cat confdefs.h
>>conftest.
$ac_ext
7664 cat >>conftest.
$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7670 /* FIXME: Include the comments suggested by Paul. */
7672 /* Ultrix mips cc rejects this. */
7673 typedef int charset[2];
7675 /* SunOS 4.1.1 cc rejects this. */
7676 char const *const *ccp;
7678 /* NEC SVR4.0.2 mips cc rejects this. */
7679 struct point {int x, y;};
7680 static struct point const zero = {0,0};
7681 /* AIX XL C 1.02.0.0 rejects this.
7682 It does not let you subtract one const X* pointer from another in
7683 an arm of an if-expression whose if-part is not a constant
7685 const char *g = "string";
7686 ccp = &g + (g ? g-g : 0);
7687 /* HPUX 7.0 cc rejects these. */
7690 ccp = (char const *const *) p;
7691 { /* SCO 3.2v4 cc rejects this. */
7693 char const *s = 0 ? (char *) 0 : (char const *) 0;
7697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7699 const int *foo = &x[0];
7702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7703 typedef const int *iptr;
7707 { /* AIX XL C 1.02.0.0 rejects this saying
7708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7709 struct s { int j; const int *ap[3]; };
7710 struct s *b; b->j = 5;
7712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7721 rm -f conftest.
$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>conftest.er1
7725 grep -v '^ *+' conftest.er1
>conftest.err
7727 cat conftest.err
>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try
='test -z "$ac_c_werror_flag"
7731 || test ! -s conftest.err'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try
='test -s conftest.$ac_objext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.
$ac_ext >&5
7750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7753 echo "${ECHO_T}$ac_cv_c_const" >&6
7754 if test $ac_cv_c_const = no
; then
7756 cat >>confdefs.h
<<\_ACEOF
7762 echo "$as_me:$LINENO: checking for void * support" >&5
7763 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7764 if test "${emacs_cv_void_star+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.
$ac_ext <<_ACEOF
7770 cat confdefs.h
>>conftest.
$ac_ext
7771 cat >>conftest.
$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7782 rm -f conftest.
$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>conftest.er1
7786 grep -v '^ *+' conftest.er1
>conftest.err
7788 cat conftest.err
>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try
='test -z "$ac_c_werror_flag"
7792 || test ! -s conftest.err'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try
='test -s conftest.$ac_objext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 emacs_cv_void_star
=yes
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.
$ac_ext >&5
7809 emacs_cv_void_star
=no
7811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7813 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7814 echo "${ECHO_T}$emacs_cv_void_star" >&6
7815 if test $emacs_cv_void_star = yes; then
7816 cat >>confdefs.h
<<\_ACEOF
7817 #define POINTER_TYPE void
7821 cat >>confdefs.h
<<\_ACEOF
7822 #define POINTER_TYPE char
7831 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7832 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7833 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7834 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 cat >conftest.
make <<\_ACEOF
7839 @
echo 'ac_maketemp="$(MAKE)"'
7841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7842 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7843 if test -n "$ac_maketemp"; then
7844 eval ac_cv_prog_make_
${ac_make}_set
=yes
7846 eval ac_cv_prog_make_
${ac_make}_set
=no
7850 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7851 echo "$as_me:$LINENO: result: yes" >&5
7852 echo "${ECHO_T}yes" >&6
7855 echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7857 SET_MAKE
="MAKE=${MAKE-make}"
7861 echo "$as_me:$LINENO: checking for long file names" >&5
7862 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7863 if test "${ac_cv_sys_long_file_names+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 ac_cv_sys_long_file_names
=yes
7867 # Test for long file names in all the places we know might matter:
7868 # . the current directory, where building will happen
7869 # $prefix/lib where we will be installing things
7870 # $exec_prefix/lib likewise
7871 # eval it to expand exec_prefix.
7872 # $TMPDIR if set, where it might want to write temporary files
7873 # if $TMPDIR is not set:
7874 # /tmp where it might want to write temporary files
7877 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7880 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7882 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7883 test -d $ac_dir ||
continue
7884 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7885 ac_xdir
=$ac_dir/cf$$
7886 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7887 ac_tf1
=$ac_xdir/conftest9012345
7888 ac_tf2
=$ac_xdir/conftest9012346
7889 (echo 1 >$ac_tf1) 2>/dev
/null
7890 (echo 2 >$ac_tf2) 2>/dev
/null
7891 ac_val
=`cat $ac_tf1 2>/dev/null`
7892 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7893 ac_cv_sys_long_file_names
=no
7894 rm -rf $ac_xdir 2>/dev
/null
7897 rm -rf $ac_xdir 2>/dev
/null
7900 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7901 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7902 if test $ac_cv_sys_long_file_names = yes; then
7904 cat >>confdefs.h
<<\_ACEOF
7905 #define HAVE_LONG_FILE_NAMES 1
7911 #### Choose a window system.
7913 echo "$as_me:$LINENO: checking for X" >&5
7914 echo $ECHO_N "checking for X... $ECHO_C" >&6
7917 # Check whether --with-x or --without-x was given.
7918 if test "${with_x+set}" = set; then
7922 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7923 if test "x$with_x" = xno
; then
7924 # The user explicitly disabled X.
7927 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7928 # Both variables are already set.
7931 if test "${ac_cv_have_x+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 # One or both of the vars are not set, and there is no cached value.
7935 ac_x_includes
=no ac_x_libraries
=no
7937 if mkdir conftest.dir
; then
7939 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7940 cat >Imakefile
<<'_ACEOF'
7942 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7944 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7946 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7947 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7948 for ac_extension
in a so sl
; do
7949 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7950 test -f $ac_im_libdir/libX11.
$ac_extension; then
7951 ac_im_usrlibdir
=$ac_im_libdir; break
7954 # Screen out bogus values from the imake configuration. They are
7955 # bogus both because they are the default anyway, and because
7956 # using them would break gcc on systems where it needs fixed includes.
7957 case $ac_im_incroot in
7959 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7961 case $ac_im_usrlibdir in
7963 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7970 # Standard set of common directories for X headers.
7971 # Check X11 before X11Rn because it is often a symlink to the current release.
7983 /usr/local/X11/include
7984 /usr/local/X11R6/include
7985 /usr/local/X11R5/include
7986 /usr/local/X11R4/include
7988 /usr/local/include/X11
7989 /usr/local/include/X11R6
7990 /usr/local/include/X11R5
7991 /usr/local/include/X11R4
7995 /usr/XFree86/include/X11
7999 /usr/unsupported/include
8001 /usr/local/x11r5/include
8002 /usr/lpp/Xamples/include
8004 /usr/openwin/include
8005 /usr/openwin/share/include'
8007 if test "$ac_x_includes" = no
; then
8008 # Guess where to find include files, by looking for Intrinsic.h.
8009 # First, try using that file with no special directory specified.
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <X11/Intrinsic.h>
8018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8021 grep -v '^ *+' conftest.er1
>conftest.err
8023 cat conftest.err
>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } >/dev
/null
; then
8026 if test -s conftest.err
; then
8027 ac_cpp_err
=$ac_c_preproc_warn_flag
8028 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8035 if test -z "$ac_cpp_err"; then
8036 # We can compile using X headers with no special include directory.
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.
$ac_ext >&5
8042 for ac_dir
in $ac_x_header_dirs; do
8043 if test -r "$ac_dir/X11/Intrinsic.h"; then
8044 ac_x_includes
=$ac_dir
8049 rm -f conftest.err conftest.
$ac_ext
8050 fi # $ac_x_includes = no
8052 if test "$ac_x_libraries" = no
; then
8053 # Check for the libraries.
8054 # See if we find them without any special options.
8055 # Don't add to $LIBS permanently.
8058 cat >conftest.
$ac_ext <<_ACEOF
8061 cat confdefs.h
>>conftest.
$ac_ext
8062 cat >>conftest.
$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 #include <X11/Intrinsic.h>
8073 rm -f conftest.
$ac_objext conftest
$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>conftest.er1
8077 grep -v '^ *+' conftest.er1
>conftest.err
8079 cat conftest.err
>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try
='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8096 # We can link X programs with no special library path.
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8103 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8105 # Don't even attempt the hair of trying to link an X program!
8106 for ac_extension
in a so sl
; do
8107 if test -r $ac_dir/libXt.
$ac_extension; then
8108 ac_x_libraries
=$ac_dir
8114 rm -f conftest.err conftest.
$ac_objext \
8115 conftest
$ac_exeext conftest.
$ac_ext
8116 fi # $ac_x_libraries = no
8118 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8119 # Didn't find X anywhere. Cache the known absence of X.
8120 ac_cv_have_x
="have_x=no"
8122 # Record where we found X for the cache.
8123 ac_cv_have_x
="have_x=yes \
8124 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8129 eval "$ac_cv_have_x"
8132 if test "$have_x" != yes; then
8133 echo "$as_me:$LINENO: result: $have_x" >&5
8134 echo "${ECHO_T}$have_x" >&6
8137 # If each of the values was on the command line, it overrides each guess.
8138 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8139 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8140 # Update the cache value to reflect the command line values.
8141 ac_cv_have_x
="have_x=yes \
8142 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8143 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8144 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8147 if test "$no_x" = yes; then
8153 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8154 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8155 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8156 x_default_search_path
=""
8157 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8159 ${x_library}/X11/%L/%T/%N%C%S:\
8160 ${x_library}/X11/%l/%T/%N%C%S:\
8161 ${x_library}/X11/%T/%N%C%S:\
8162 ${x_library}/X11/%L/%T/%N%S:\
8163 ${x_library}/X11/%l/%T/%N%S:\
8164 ${x_library}/X11/%T/%N%S"
8165 if test x
"${x_default_search_path}" = x
; then
8166 x_default_search_path
=${x_search_path}
8168 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8172 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8173 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8176 if test x
"${x_includes}" = x
; then
8177 bitmapdir
=/usr
/include
/X11
/bitmaps
8179 # accumulate include directories that have X11 bitmap subdirectories
8181 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8182 if test -d "${bmd}/X11/bitmaps"; then
8183 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8185 if test -d "${bmd}/bitmaps"; then
8186 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8189 if test ${bmd_acc} != "dummyval"; then
8190 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8195 if test "${with_carbon}" != no
; then
8196 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8197 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8198 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8199 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8203 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8205 # Is the header compilable?
8206 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8207 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8208 cat >conftest.
$ac_ext <<_ACEOF
8211 cat confdefs.h
>>conftest.
$ac_ext
8212 cat >>conftest.
$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #include <Carbon/Carbon.h>
8217 rm -f conftest.
$ac_objext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>conftest.er1
8221 grep -v '^ *+' conftest.er1
>conftest.err
8223 cat conftest.err
>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try
='test -z "$ac_c_werror_flag"
8227 || test ! -s conftest.err'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try
='test -s conftest.$ac_objext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_header_compiler
=yes
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.
$ac_ext >&5
8244 ac_header_compiler
=no
8246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8248 echo "${ECHO_T}$ac_header_compiler" >&6
8250 # Is the header present?
8251 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8252 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8253 cat >conftest.
$ac_ext <<_ACEOF
8256 cat confdefs.h
>>conftest.
$ac_ext
8257 cat >>conftest.
$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 #include <Carbon/Carbon.h>
8261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8262 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } >/dev
/null
; then
8269 if test -s conftest.err
; then
8270 ac_cpp_err
=$ac_c_preproc_warn_flag
8271 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8278 if test -z "$ac_cpp_err"; then
8279 ac_header_preproc
=yes
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.
$ac_ext >&5
8284 ac_header_preproc
=no
8286 rm -f conftest.err conftest.
$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8288 echo "${ECHO_T}$ac_header_preproc" >&6
8290 # So? What about this header?
8291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8296 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8297 ac_header_preproc
=yes
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8307 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8309 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8311 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8314 ## ------------------------------------------ ##
8315 ## Report this to the AC_PACKAGE_NAME lists. ##
8316 ## ------------------------------------------ ##
8319 sed "s/^/$as_me: WARNING: /" >&2
8322 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8323 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8324 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8329 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8330 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8333 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8339 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8340 if test "${with_carbon+set}" != set \
8341 && test "${carbon_appdir_x+set}" != set; then
8345 if test "${HAVE_CARBON}" = yes; then
8349 case "${window_system}" in
8353 case "${with_x_toolkit}" in
8354 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8355 motif
) USE_X_TOOLKIT
=MOTIF
;;
8357 USE_X_TOOLKIT
=none
;;
8358 no
) USE_X_TOOLKIT
=none
;;
8359 * ) USE_X_TOOLKIT
=maybe
;;
8369 ### If we're using X11, we should use the X menu package.
8372 yes ) HAVE_MENUS
=yes ;;
8375 if test "${opsys}" = "hpux9"; then
8376 case "${x_libraries}" in
8378 opsysfile
="s/hpux9-x11r4.h"
8383 if test "${opsys}" = "hpux9shr"; then
8384 case "${x_libraries}" in
8386 opsysfile
="s/hpux9shxr4.h"
8391 ### Compute the unexec source name from the object name.
8392 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8394 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8395 # Assume not, until told otherwise.
8398 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8399 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8400 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 cat >conftest.
$ac_ext <<_ACEOF
8406 cat confdefs.h
>>conftest.
$ac_ext
8407 cat >>conftest.
$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8411 #define malloc_get_state innocuous_malloc_get_state
8413 /* System header to define __stub macros and hopefully few prototypes,
8414 which can conflict with char malloc_get_state (); below.
8415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8416 <limits.h> exists even on freestanding compilers. */
8419 # include <limits.h>
8421 # include <assert.h>
8424 #undef malloc_get_state
8426 /* Override any gcc2 internal prototype to avoid an error. */
8431 /* We use char because int might match the return type of a gcc2
8432 builtin and then its argument prototype would still apply. */
8433 char malloc_get_state ();
8434 /* The GNU C library defines this for functions which it implements
8435 to always fail with ENOSYS. Some functions are actually named
8436 something starting with __ and the normal name is an alias. */
8437 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8440 char (*f) () = malloc_get_state;
8449 return f != malloc_get_state;
8454 rm -f conftest.
$ac_objext conftest
$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1
>conftest.err
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try
='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try
='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_func_malloc_get_state
=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 ac_cv_func_malloc_get_state
=no
8483 rm -f conftest.err conftest.
$ac_objext \
8484 conftest
$ac_exeext conftest.
$ac_ext
8486 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8487 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8488 if test $ac_cv_func_malloc_get_state = yes; then
8494 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8495 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8496 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 cat >conftest.
$ac_ext <<_ACEOF
8502 cat confdefs.h
>>conftest.
$ac_ext
8503 cat >>conftest.
$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8507 #define malloc_set_state innocuous_malloc_set_state
8509 /* System header to define __stub macros and hopefully few prototypes,
8510 which can conflict with char malloc_set_state (); below.
8511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8512 <limits.h> exists even on freestanding compilers. */
8515 # include <limits.h>
8517 # include <assert.h>
8520 #undef malloc_set_state
8522 /* Override any gcc2 internal prototype to avoid an error. */
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8529 char malloc_set_state ();
8530 /* The GNU C library defines this for functions which it implements
8531 to always fail with ENOSYS. Some functions are actually named
8532 something starting with __ and the normal name is an alias. */
8533 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8536 char (*f) () = malloc_set_state;
8545 return f != malloc_set_state;
8550 rm -f conftest.
$ac_objext conftest
$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>conftest.er1
8554 grep -v '^ *+' conftest.er1
>conftest.err
8556 cat conftest.err
>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try
='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try
='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_cv_func_malloc_set_state
=yes
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.
$ac_ext >&5
8577 ac_cv_func_malloc_set_state
=no
8579 rm -f conftest.err conftest.
$ac_objext \
8580 conftest
$ac_exeext conftest.
$ac_ext
8582 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8583 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8584 if test $ac_cv_func_malloc_set_state = yes; then
8590 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8591 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8592 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.
$ac_ext <<_ACEOF
8598 cat confdefs.h
>>conftest.
$ac_ext
8599 cat >>conftest.
$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 extern void (* __after_morecore_hook)();
8605 __after_morecore_hook = 0
8610 rm -f conftest.
$ac_objext conftest
$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -z "$ac_c_werror_flag"
8620 || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try
='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 emacs_cv_var___after_morecore_hook
=yes
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.
$ac_ext >&5
8637 emacs_cv_var___after_morecore_hook
=no
8639 rm -f conftest.err conftest.
$ac_objext \
8640 conftest
$ac_exeext conftest.
$ac_ext
8642 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8643 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8644 if test $emacs_cv_var___after_morecore_hook = no
; then
8647 if test "${system_malloc}" = "yes"; then
8650 (The GNU allocators don't work with this system configuration.)"
8652 if test "$doug_lea_malloc" = "yes" ; then
8653 if test "$GNU_MALLOC" = yes ; then
8655 (Using Doug Lea's new malloc from the GNU C Library.)"
8658 cat >>confdefs.h
<<\_ACEOF
8659 #define DOUG_LEA_MALLOC 1
8664 if test x
"${REL_ALLOC}" = x
; then
8665 REL_ALLOC
=${GNU_MALLOC}
8671 for ac_header
in stdlib.h unistd.h
8673 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8675 echo "$as_me:$LINENO: checking for $ac_header" >&5
8676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8683 # Is the header compilable?
8684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8686 cat >conftest.
$ac_ext <<_ACEOF
8689 cat confdefs.h
>>conftest.
$ac_ext
8690 cat >>conftest.
$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 $ac_includes_default
8693 #include <$ac_header>
8695 rm -f conftest.
$ac_objext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697 (eval $ac_compile) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1
>conftest.err
8701 cat conftest.err
>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try
='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try
='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_header_compiler
=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.
$ac_ext >&5
8722 ac_header_compiler
=no
8724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8726 echo "${ECHO_T}$ac_header_compiler" >&6
8728 # Is the header present?
8729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8731 cat >conftest.
$ac_ext <<_ACEOF
8734 cat confdefs.h
>>conftest.
$ac_ext
8735 cat >>conftest.
$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 #include <$ac_header>
8739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8742 grep -v '^ *+' conftest.er1
>conftest.err
8744 cat conftest.err
>&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } >/dev
/null
; then
8747 if test -s conftest.err
; then
8748 ac_cpp_err
=$ac_c_preproc_warn_flag
8749 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8756 if test -z "$ac_cpp_err"; then
8757 ac_header_preproc
=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.
$ac_ext >&5
8762 ac_header_preproc
=no
8764 rm -f conftest.err conftest.
$ac_ext
8765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8766 echo "${ECHO_T}$ac_header_preproc" >&6
8768 # So? What about this header?
8769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8775 ac_header_preproc
=yes
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8792 ## ------------------------------------------ ##
8793 ## Report this to the AC_PACKAGE_NAME lists. ##
8794 ## ------------------------------------------ ##
8797 sed "s/^/$as_me: WARNING: /" >&2
8800 echo "$as_me:$LINENO: checking for $ac_header" >&5
8801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 eval "$as_ac_Header=\$ac_header_preproc"
8807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8812 cat >>confdefs.h
<<_ACEOF
8813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8821 for ac_func
in getpagesize
8823 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8824 echo "$as_me:$LINENO: checking for $ac_func" >&5
8825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8826 if eval "test \"\${$as_ac_var+set}\" = set"; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 cat >conftest.
$ac_ext <<_ACEOF
8832 cat confdefs.h
>>conftest.
$ac_ext
8833 cat >>conftest.
$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8837 #define $ac_func innocuous_$ac_func
8839 /* System header to define __stub macros and hopefully few prototypes,
8840 which can conflict with char $ac_func (); below.
8841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8842 <limits.h> exists even on freestanding compilers. */
8845 # include <limits.h>
8847 # include <assert.h>
8852 /* Override any gcc2 internal prototype to avoid an error. */
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8860 /* The GNU C library defines this for functions which it implements
8861 to always fail with ENOSYS. Some functions are actually named
8862 something starting with __ and the normal name is an alias. */
8863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8866 char (*f) () = $ac_func;
8875 return f != $ac_func;
8880 rm -f conftest.
$ac_objext conftest
$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>conftest.er1
8884 grep -v '^ *+' conftest.er1
>conftest.err
8886 cat conftest.err
>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try
='test -z "$ac_c_werror_flag"
8890 || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try
='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 eval "$as_ac_var=yes"
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.
$ac_ext >&5
8907 eval "$as_ac_var=no"
8909 rm -f conftest.err conftest.
$ac_objext \
8910 conftest
$ac_exeext conftest.
$ac_ext
8912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8914 if test `eval echo '${'$as_ac_var'}'` = yes; then
8915 cat >>confdefs.h
<<_ACEOF
8916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8922 echo "$as_me:$LINENO: checking for working mmap" >&5
8923 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8924 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 if test "$cross_compiling" = yes; then
8928 ac_cv_func_mmap_fixed_mapped
=no
8930 cat >conftest.
$ac_ext <<_ACEOF
8933 cat confdefs.h
>>conftest.
$ac_ext
8934 cat >>conftest.
$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 $ac_includes_default
8937 /* malloc might have been renamed as rpl_malloc. */
8940 /* Thanks to Mike Haertel and Jim Avera for this test.
8941 Here is a matrix of mmap possibilities:
8942 mmap private not fixed
8943 mmap private fixed at somewhere currently unmapped
8944 mmap private fixed at somewhere already mapped
8945 mmap shared not fixed
8946 mmap shared fixed at somewhere currently unmapped
8947 mmap shared fixed at somewhere already mapped
8948 For private mappings, we should verify that changes cannot be read()
8949 back from the file, nor mmap's back from the file at a different
8950 address. (There have been systems where private was not correctly
8951 implemented like the infamous i386 svr4.0, and systems where the
8952 VM page cache was not coherent with the file system buffer cache
8953 like early versions of FreeBSD and possibly contemporary NetBSD.)
8954 For shared mappings, we should conversely verify that changes get
8955 propagated back to all the places they're supposed to be.
8957 Grep wants private fixed already mapped.
8958 The main things grep needs to know about mmap are:
8959 * does it exist and is it safe to write into the mmap'd area
8960 * how to use it (BSD variants) */
8963 #include <sys/mman.h>
8965 #if !STDC_HEADERS && !HAVE_STDLIB_H
8969 /* This mess was copied from the GNU getpagesize.h. */
8970 #if !HAVE_GETPAGESIZE
8971 /* Assume that all systems that can run configure have sys/param.h. */
8972 # if !HAVE_SYS_PARAM_H
8973 # define HAVE_SYS_PARAM_H 1
8976 # ifdef _SC_PAGESIZE
8977 # define getpagesize() sysconf(_SC_PAGESIZE)
8978 # else /* no _SC_PAGESIZE */
8979 # if HAVE_SYS_PARAM_H
8980 # include <sys/param.h>
8981 # ifdef EXEC_PAGESIZE
8982 # define getpagesize() EXEC_PAGESIZE
8983 # else /* no EXEC_PAGESIZE */
8985 # define getpagesize() NBPG * CLSIZE
8988 # endif /* no CLSIZE */
8989 # else /* no NBPG */
8991 # define getpagesize() NBPC
8992 # else /* no NBPC */
8994 # define getpagesize() PAGESIZE
8995 # endif /* PAGESIZE */
8996 # endif /* no NBPC */
8997 # endif /* no NBPG */
8998 # endif /* no EXEC_PAGESIZE */
8999 # else /* no HAVE_SYS_PARAM_H */
9000 # define getpagesize() 8192 /* punt totally */
9001 # endif /* no HAVE_SYS_PARAM_H */
9002 # endif /* no _SC_PAGESIZE */
9004 #endif /* no HAVE_GETPAGESIZE */
9009 char *data, *data2, *data3;
9013 pagesize = getpagesize ();
9015 /* First, make a file with some known garbage in it. */
9016 data = (char *) malloc (pagesize);
9019 for (i = 0; i < pagesize; ++i)
9020 *(data + i) = rand ();
9022 fd = creat ("conftest.mmap", 0600);
9025 if (write (fd, data, pagesize) != pagesize)
9029 /* Next, try to mmap the file at a fixed address which already has
9030 something else allocated at it. If we can, also make sure that
9031 we see the same garbage. */
9032 fd = open ("conftest.mmap", O_RDWR);
9035 data2 = (char *) malloc (2 * pagesize);
9038 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9039 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9040 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9042 for (i = 0; i < pagesize; ++i)
9043 if (*(data + i) != *(data2 + i))
9046 /* Finally, make sure that changes to the mapped area do not
9047 percolate back to the file as seen by read(). (This is a bug on
9048 some variants of i386 svr4.0.) */
9049 for (i = 0; i < pagesize; ++i)
9050 *(data2 + i) = *(data2 + i) + 1;
9051 data3 = (char *) malloc (pagesize);
9054 if (read (fd, data3, pagesize) != pagesize)
9056 for (i = 0; i < pagesize; ++i)
9057 if (*(data + i) != *(data3 + i))
9063 rm -f conftest
$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_func_mmap_fixed_mapped
=yes
9076 echo "$as_me: program exited with status $ac_status" >&5
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9081 ac_cv_func_mmap_fixed_mapped
=no
9083 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9087 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9088 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9090 cat >>confdefs.h
<<\_ACEOF
9097 if test $use_mmap_for_buffers = yes; then
9101 LIBS
="$libsrc_libs $LIBS"
9104 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9105 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9106 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 ac_check_lib_save_LIBS
=$LIBS
9111 cat >conftest.
$ac_ext <<_ACEOF
9114 cat confdefs.h
>>conftest.
$ac_ext
9115 cat >>conftest.
$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9118 /* Override any gcc2 internal prototype to avoid an error. */
9122 /* We use char because int might match the return type of a gcc2
9123 builtin and then its argument prototype would still apply. */
9133 rm -f conftest.
$ac_objext conftest
$ac_exeext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>conftest.er1
9137 grep -v '^ *+' conftest.er1
>conftest.err
9139 cat conftest.err
>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try
='test -z "$ac_c_werror_flag"
9143 || test ! -s conftest.err'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; } &&
9149 { ac_try
='test -s conftest$ac_exeext'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; }; then
9155 ac_cv_lib_dnet_dnet_ntoa
=yes
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.
$ac_ext >&5
9160 ac_cv_lib_dnet_dnet_ntoa
=no
9162 rm -f conftest.err conftest.
$ac_objext \
9163 conftest
$ac_exeext conftest.
$ac_ext
9164 LIBS
=$ac_check_lib_save_LIBS
9166 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9167 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9168 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9169 cat >>confdefs.h
<<_ACEOF
9170 #define HAVE_LIBDNET 1
9178 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9179 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9180 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 ac_check_lib_save_LIBS
=$LIBS
9185 cat >conftest.
$ac_ext <<_ACEOF
9188 cat confdefs.h
>>conftest.
$ac_ext
9189 cat >>conftest.
$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9201 rm -f conftest.
$ac_objext conftest
$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>conftest.er1
9205 grep -v '^ *+' conftest.er1
>conftest.err
9207 cat conftest.err
>&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try
='test -z "$ac_c_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try
='test -s conftest$ac_exeext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_cv_lib_Xbsd_main
=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.
$ac_ext >&5
9228 ac_cv_lib_Xbsd_main
=no
9230 rm -f conftest.err conftest.
$ac_objext \
9231 conftest
$ac_exeext conftest.
$ac_ext
9232 LIBS
=$ac_check_lib_save_LIBS
9234 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9235 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9236 if test $ac_cv_lib_Xbsd_main = yes; then
9237 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9242 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9243 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9244 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 ac_check_lib_save_LIBS
=$LIBS
9248 LIBS
="-lpthreads $LIBS"
9249 cat >conftest.
$ac_ext <<_ACEOF
9252 cat confdefs.h
>>conftest.
$ac_ext
9253 cat >>conftest.
$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9256 /* Override any gcc2 internal prototype to avoid an error. */
9260 /* We use char because int might match the return type of a gcc2
9261 builtin and then its argument prototype would still apply. */
9271 rm -f conftest.
$ac_objext conftest
$ac_exeext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>conftest.er1
9275 grep -v '^ *+' conftest.er1
>conftest.err
9277 cat conftest.err
>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try
='test -z "$ac_c_werror_flag"
9281 || test ! -s conftest.err'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; } &&
9287 { ac_try
='test -s conftest$ac_exeext'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_lib_pthreads_cma_open
=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.
$ac_ext >&5
9298 ac_cv_lib_pthreads_cma_open
=no
9300 rm -f conftest.err conftest.
$ac_objext \
9301 conftest
$ac_exeext conftest.
$ac_ext
9302 LIBS
=$ac_check_lib_save_LIBS
9304 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9305 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9306 if test $ac_cv_lib_pthreads_cma_open = yes; then
9307 cat >>confdefs.h
<<_ACEOF
9308 #define HAVE_LIBPTHREADS 1
9311 LIBS
="-lpthreads $LIBS"
9316 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9317 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9318 if test -d /usr
/X386
/include
; then
9320 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9324 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9325 echo "${ECHO_T}$HAVE_XFREE386" >&6
9330 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9331 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9332 if test "${gdb_cv_bigtoc+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9338 *) gdb_cv_bigtoc
=-bbigtoc ;;
9341 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9342 cat >conftest.
$ac_ext <<_ACEOF
9345 cat confdefs.h
>>conftest.
$ac_ext
9346 cat >>conftest.
$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9357 rm -f conftest.
$ac_objext conftest
$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9361 grep -v '^ *+' conftest.er1
>conftest.err
9363 cat conftest.err
>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try
='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try
='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.
$ac_ext >&5
9386 rm -f conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9390 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9391 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9395 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9396 # used for the tests that follow. We set them back to REAL_CFLAGS and
9397 # REAL_CPPFLAGS later on.
9399 REAL_CPPFLAGS
="$CPPFLAGS"
9401 if test "${HAVE_X11}" = "yes"; then
9402 DEFS
="$C_SWITCH_X_SITE $DEFS"
9403 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9405 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9406 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9408 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9409 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9410 # but it's more convenient here to set LD_RUN_PATH
9411 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9412 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9413 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9417 if test "${opsys}" = "gnu-linux"; then
9418 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9419 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9420 cat >conftest.
$ac_ext <<_ACEOF
9423 cat confdefs.h
>>conftest.
$ac_ext
9424 cat >>conftest.
$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9430 XOpenDisplay ("foo");
9435 rm -f conftest.
$ac_objext conftest
$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437 (eval $ac_link) 2>conftest.er1
9439 grep -v '^ *+' conftest.er1
>conftest.err
9441 cat conftest.err
>&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try
='test -z "$ac_c_werror_flag"
9445 || test ! -s conftest.err'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; } &&
9451 { ac_try
='test -s conftest$ac_exeext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 xlinux_first_failure
=no
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.
$ac_ext >&5
9462 xlinux_first_failure
=yes
9464 rm -f conftest.err conftest.
$ac_objext \
9465 conftest
$ac_exeext conftest.
$ac_ext
9466 if test "${xlinux_first_failure}" = "yes"; then
9467 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9468 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9469 OLD_CPPFLAGS
="$CPPFLAGS"
9471 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9472 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9473 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9474 LIBS
="$LIBS -b i486-linuxaout"
9475 cat >conftest.
$ac_ext <<_ACEOF
9478 cat confdefs.h
>>conftest.
$ac_ext
9479 cat >>conftest.
$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9485 XOpenDisplay ("foo");
9490 rm -f conftest.
$ac_objext conftest
$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9494 grep -v '^ *+' conftest.er1
>conftest.err
9496 cat conftest.err
>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try
='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try
='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 xlinux_second_failure
=no
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.
$ac_ext >&5
9517 xlinux_second_failure
=yes
9519 rm -f conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 if test "${xlinux_second_failure}" = "yes"; then
9522 # If we get the same failure with -b, there is no use adding -b.
9523 # So take it out. This plays safe.
9524 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9525 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9526 CPPFLAGS
="$OLD_CPPFLAGS"
9528 echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6
9531 echo "$as_me:$LINENO: result: yes" >&5
9532 echo "${ECHO_T}yes" >&6
9535 echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6
9540 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9541 # header files included from there.
9542 echo "$as_me:$LINENO: checking for Xkb" >&5
9543 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9544 cat >conftest.
$ac_ext <<_ACEOF
9547 cat confdefs.h
>>conftest.
$ac_ext
9548 cat >>conftest.
$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 #include <X11/Xlib.h>
9551 #include <X11/XKBlib.h>
9555 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9560 rm -f conftest.
$ac_objext conftest
$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9564 grep -v '^ *+' conftest.er1
>conftest.err
9566 cat conftest.err
>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try
='test -z "$ac_c_werror_flag"
9570 || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try
='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.
$ac_ext >&5
9589 rm -f conftest.err conftest.
$ac_objext \
9590 conftest
$ac_exeext conftest.
$ac_ext
9591 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9592 echo "${ECHO_T}$emacs_xkb" >&6
9593 if test $emacs_xkb = yes; then
9595 cat >>confdefs.h
<<\_ACEOF
9596 #define HAVE_XKBGETKEYBOARD 1
9605 for ac_func
in XrmSetDatabase XScreenResourceString \
9606 XScreenNumberOfScreen XSetWMProtocols
9608 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9609 echo "$as_me:$LINENO: checking for $ac_func" >&5
9610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9611 if eval "test \"\${$as_ac_var+set}\" = set"; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 cat >conftest.
$ac_ext <<_ACEOF
9617 cat confdefs.h
>>conftest.
$ac_ext
9618 cat >>conftest.
$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define $ac_func innocuous_$ac_func
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9630 # include <limits.h>
9632 # include <assert.h>
9637 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9651 char (*f) () = $ac_func;
9660 return f != $ac_func;
9665 rm -f conftest.
$ac_objext conftest
$ac_exeext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>conftest.er1
9669 grep -v '^ *+' conftest.er1
>conftest.err
9671 cat conftest.err
>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try
='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try
='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 eval "$as_ac_var=yes"
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.
$ac_ext >&5
9692 eval "$as_ac_var=no"
9694 rm -f conftest.err conftest.
$ac_objext \
9695 conftest
$ac_exeext conftest.
$ac_ext
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699 if test `eval echo '${'$as_ac_var'}'` = yes; then
9700 cat >>confdefs.h
<<_ACEOF
9701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9709 if test "${window_system}" = "x11"; then
9710 echo "$as_me:$LINENO: checking X11 version 6" >&5
9711 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9712 if test "${emacs_cv_x11_version_6+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.
$ac_ext <<_ACEOF
9718 cat confdefs.h
>>conftest.
$ac_ext
9719 cat >>conftest.
$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <X11/Xlib.h>
9725 #if XlibSpecificationRelease < 6
9733 rm -f conftest.
$ac_objext conftest
$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1
>conftest.err
9739 cat conftest.err
>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try
='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try
='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 emacs_cv_x11_version_6
=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.
$ac_ext >&5
9760 emacs_cv_x11_version_6
=no
9762 rm -f conftest.err conftest.
$ac_objext \
9763 conftest
$ac_exeext conftest.
$ac_ext
9766 if test $emacs_cv_x11_version_6 = yes; then
9767 echo "$as_me:$LINENO: result: 6 or newer" >&5
9768 echo "${ECHO_T}6 or newer" >&6
9770 cat >>confdefs.h
<<\_ACEOF
9771 #define HAVE_X11R6 1
9775 echo "$as_me:$LINENO: result: before 6" >&5
9776 echo "${ECHO_T}before 6" >&6
9780 if test "${window_system}" = "x11"; then
9781 echo "$as_me:$LINENO: checking X11 version 5" >&5
9782 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9783 if test "${emacs_cv_x11_version_5+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.
$ac_ext <<_ACEOF
9789 cat confdefs.h
>>conftest.
$ac_ext
9790 cat >>conftest.
$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <X11/Xlib.h>
9796 #if XlibSpecificationRelease < 5
9804 rm -f conftest.
$ac_objext conftest
$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9808 grep -v '^ *+' conftest.er1
>conftest.err
9810 cat conftest.err
>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try
='test -z "$ac_c_werror_flag"
9814 || test ! -s conftest.err'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try
='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 emacs_cv_x11_version_5
=yes
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.
$ac_ext >&5
9831 emacs_cv_x11_version_5
=no
9833 rm -f conftest.err conftest.
$ac_objext \
9834 conftest
$ac_exeext conftest.
$ac_ext
9837 if test $emacs_cv_x11_version_5 = yes; then
9838 echo "$as_me:$LINENO: result: 5 or newer" >&5
9839 echo "${ECHO_T}5 or newer" >&6
9842 cat >>confdefs.h
<<\_ACEOF
9843 #define HAVE_X11R5 1
9848 echo "$as_me:$LINENO: result: before 5" >&5
9849 echo "${ECHO_T}before 5" >&6
9856 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9857 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9858 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9859 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9860 { (exit 1); exit 1; }; };
9864 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9866 if test "X${with_pkg_config_prog}" != X
; then
9867 PKG_CONFIG
="${with_pkg_config_prog}"
9872 if test -z "$PKG_CONFIG"; then
9873 # Extract the first word of "pkg-config", so it can be a program name with args.
9874 set dummy pkg-config
; ac_word
=$2
9875 echo "$as_me:$LINENO: checking for $ac_word" >&5
9876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9889 test -z "$as_dir" && as_dir
=.
9890 for ac_exec_ext
in '' $ac_executable_extensions; do
9891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9903 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9905 if test -n "$PKG_CONFIG"; then
9906 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9907 echo "${ECHO_T}$PKG_CONFIG" >&6
9909 echo "$as_me:$LINENO: result: no" >&5
9910 echo "${ECHO_T}no" >&6
9915 if test "$PKG_CONFIG" = "no" ; then
9916 echo "*** The pkg-config script could not be found. Make sure it is"
9917 echo "*** in your path, or give the full path to pkg-config with"
9918 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9919 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9921 PKG_CONFIG_MIN_VERSION
=0.9.0
9922 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9923 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9924 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9926 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9927 echo "$as_me:$LINENO: result: yes" >&5
9928 echo "${ECHO_T}yes" >&6
9931 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9932 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9933 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9934 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9935 echo "${ECHO_T}$GTK_CFLAGS" >&6
9937 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9938 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9939 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9940 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9941 echo "${ECHO_T}$GTK_LIBS" >&6
9945 ## If we have a custom action on failure, don't print errors, but
9946 ## do set a variable so people can do so.
9947 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9948 echo $GTK_PKG_ERRORS
9954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9959 if test $succeeded = yes; then
9962 { { 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
9963 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;}
9964 { (exit 1); exit 1; }; }
9969 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9970 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9971 LIBS
="$GTK_LIBS $LIBS"
9974 cat >>confdefs.h
<<\_ACEOF
9980 if test "$with_toolkit_scroll_bars" != no
; then
9981 with_toolkit_scroll_bars
=yes
9984 HAVE_GTK_MULTIDISPLAY
=no
9986 for ac_func
in gdk_display_open
9988 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9989 echo "$as_me:$LINENO: checking for $ac_func" >&5
9990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_var+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 cat >conftest.
$ac_ext <<_ACEOF
9997 cat confdefs.h
>>conftest.
$ac_ext
9998 cat >>conftest.
$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002 #define $ac_func innocuous_$ac_func
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char $ac_func (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10010 # include <limits.h>
10012 # include <assert.h>
10017 /* Override any gcc2 internal prototype to avoid an error. */
10022 /* We use char because int might match the return type of a gcc2
10023 builtin and then its argument prototype would still apply. */
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10031 char (*f) () = $ac_func;
10040 return f != $ac_func;
10045 rm -f conftest.
$ac_objext conftest
$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try
='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try
='test -s conftest$ac_exeext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 eval "$as_ac_var=yes"
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 eval "$as_ac_var=no"
10074 rm -f conftest.err conftest.
$ac_objext \
10075 conftest
$ac_exeext conftest.
$ac_ext
10077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10079 if test `eval echo '${'$as_ac_var'}'` = yes; then
10080 cat >>confdefs.h
<<_ACEOF
10081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10083 HAVE_GTK_MULTIDISPLAY
=yes
10087 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10089 cat >>confdefs.h
<<\_ACEOF
10090 #define HAVE_GTK_MULTIDISPLAY 1
10094 HAVE_GTK_FILE_SELECTION
=no
10096 for ac_func
in gtk_file_selection_new
10098 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10099 echo "$as_me:$LINENO: checking for $ac_func" >&5
10100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_var+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.
$ac_ext <<_ACEOF
10107 cat confdefs.h
>>conftest.
$ac_ext
10108 cat >>conftest.
$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10112 #define $ac_func innocuous_$ac_func
10114 /* System header to define __stub macros and hopefully few prototypes,
10115 which can conflict with char $ac_func (); below.
10116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10117 <limits.h> exists even on freestanding compilers. */
10120 # include <limits.h>
10122 # include <assert.h>
10127 /* Override any gcc2 internal prototype to avoid an error. */
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10141 char (*f) () = $ac_func;
10150 return f != $ac_func;
10155 rm -f conftest.
$ac_objext conftest
$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>conftest.er1
10159 grep -v '^ *+' conftest.er1
>conftest.err
10161 cat conftest.err
>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try
='test -z "$ac_c_werror_flag"
10165 || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try
='test -s conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.
$ac_ext >&5
10182 eval "$as_ac_var=no"
10184 rm -f conftest.err conftest.
$ac_objext \
10185 conftest
$ac_exeext conftest.
$ac_ext
10187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10189 if test `eval echo '${'$as_ac_var'}'` = yes; then
10190 cat >>confdefs.h
<<_ACEOF
10191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10193 HAVE_GTK_FILE_SELECTION
=yes
10198 HAVE_GTK_FILE_CHOOSER
=no
10200 for ac_func
in gtk_file_chooser_dialog_new
10202 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10203 echo "$as_me:$LINENO: checking for $ac_func" >&5
10204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10205 if eval "test \"\${$as_ac_var+set}\" = set"; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 cat >conftest.
$ac_ext <<_ACEOF
10211 cat confdefs.h
>>conftest.
$ac_ext
10212 cat >>conftest.
$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10216 #define $ac_func innocuous_$ac_func
10218 /* System header to define __stub macros and hopefully few prototypes,
10219 which can conflict with char $ac_func (); below.
10220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10221 <limits.h> exists even on freestanding compilers. */
10224 # include <limits.h>
10226 # include <assert.h>
10231 /* Override any gcc2 internal prototype to avoid an error. */
10236 /* We use char because int might match the return type of a gcc2
10237 builtin and then its argument prototype would still apply. */
10239 /* The GNU C library defines this for functions which it implements
10240 to always fail with ENOSYS. Some functions are actually named
10241 something starting with __ and the normal name is an alias. */
10242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10245 char (*f) () = $ac_func;
10254 return f != $ac_func;
10259 rm -f conftest.
$ac_objext conftest
$ac_exeext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10263 grep -v '^ *+' conftest.er1
>conftest.err
10265 cat conftest.err
>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try
='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try
='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 eval "$as_ac_var=yes"
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.
$ac_ext >&5
10286 eval "$as_ac_var=no"
10288 rm -f conftest.err conftest.
$ac_objext \
10289 conftest
$ac_exeext conftest.
$ac_ext
10291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10293 if test `eval echo '${'$as_ac_var'}'` = yes; then
10294 cat >>confdefs.h
<<_ACEOF
10295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10297 HAVE_GTK_FILE_CHOOSER
=yes
10302 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10303 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10305 cat >>confdefs.h
<<\_ACEOF
10306 #define HAVE_GTK_FILE_BOTH 1
10311 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10312 HAVE_GTK_AND_PTHREAD
=no
10314 for ac_header
in pthread.h
10316 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo "$as_me:$LINENO: checking for $ac_header" >&5
10319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326 # Is the header compilable?
10327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10329 cat >conftest.
$ac_ext <<_ACEOF
10332 cat confdefs.h
>>conftest.
$ac_ext
10333 cat >>conftest.
$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 $ac_includes_default
10336 #include <$ac_header>
10338 rm -f conftest.
$ac_objext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340 (eval $ac_compile) 2>conftest.er1
10342 grep -v '^ *+' conftest.er1
>conftest.err
10344 cat conftest.err
>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try
='test -z "$ac_c_werror_flag"
10348 || test ! -s conftest.err'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try
='test -s conftest.$ac_objext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_header_compiler
=yes
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.
$ac_ext >&5
10365 ac_header_compiler
=no
10367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10369 echo "${ECHO_T}$ac_header_compiler" >&6
10371 # Is the header present?
10372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10374 cat >conftest.
$ac_ext <<_ACEOF
10377 cat confdefs.h
>>conftest.
$ac_ext
10378 cat >>conftest.
$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 #include <$ac_header>
10382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10383 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10385 grep -v '^ *+' conftest.er1
>conftest.err
10387 cat conftest.err
>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } >/dev
/null
; then
10390 if test -s conftest.err
; then
10391 ac_cpp_err
=$ac_c_preproc_warn_flag
10392 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10399 if test -z "$ac_cpp_err"; then
10400 ac_header_preproc
=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.
$ac_ext >&5
10405 ac_header_preproc
=no
10407 rm -f conftest.err conftest.
$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10409 echo "${ECHO_T}$ac_header_preproc" >&6
10411 # So? What about this header?
10412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10418 ac_header_preproc
=yes
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10435 ## ------------------------------------------ ##
10436 ## Report this to the AC_PACKAGE_NAME lists. ##
10437 ## ------------------------------------------ ##
10440 sed "s/^/$as_me: WARNING: /" >&2
10443 echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 eval "$as_ac_Header=\$ac_header_preproc"
10450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10455 cat >>confdefs.h
<<_ACEOF
10456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10463 if test "$ac_cv_header_pthread_h"; then
10464 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10465 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10466 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 ac_check_lib_save_LIBS
=$LIBS
10470 LIBS
="-lpthread $LIBS"
10471 cat >conftest.
$ac_ext <<_ACEOF
10474 cat confdefs.h
>>conftest.
$ac_ext
10475 cat >>conftest.
$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484 char pthread_self ();
10493 rm -f conftest.
$ac_objext conftest
$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>conftest.er1
10497 grep -v '^ *+' conftest.er1
>conftest.err
10499 cat conftest.err
>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try
='test -z "$ac_c_werror_flag"
10503 || test ! -s conftest.err'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try
='test -s conftest$ac_exeext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_lib_pthread_pthread_self
=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.
$ac_ext >&5
10520 ac_cv_lib_pthread_pthread_self
=no
10522 rm -f conftest.err conftest.
$ac_objext \
10523 conftest
$ac_exeext conftest.
$ac_ext
10524 LIBS
=$ac_check_lib_save_LIBS
10526 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10528 if test $ac_cv_lib_pthread_pthread_self = yes; then
10529 HAVE_GTK_AND_PTHREAD
=yes
10533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10534 GTK_LIBS
="$GTK_LIBS -lpthread"
10536 cat >>confdefs.h
<<\_ACEOF
10537 #define HAVE_GTK_AND_PTHREAD 1
10544 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10545 if test x
"${HAVE_X11R5}" = xyes
; then
10546 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10547 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10548 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 cat >conftest.
$ac_ext <<_ACEOF
10554 cat confdefs.h
>>conftest.
$ac_ext
10555 cat >>conftest.
$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10558 #include <X11/Intrinsic.h>
10559 #include <X11/Xaw/Simple.h>
10568 rm -f conftest.
$ac_objext conftest
$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10572 grep -v '^ *+' conftest.er1
>conftest.err
10574 cat conftest.err
>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try
='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try
='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 emacs_cv_x11_version_5_with_xaw
=yes
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.
$ac_ext >&5
10595 emacs_cv_x11_version_5_with_xaw
=no
10597 rm -f conftest.err conftest.
$ac_objext \
10598 conftest
$ac_exeext conftest.
$ac_ext
10601 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10602 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10603 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10604 USE_X_TOOLKIT
=LUCID
10606 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10607 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10615 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10617 if test "${USE_X_TOOLKIT}" != "none"; then
10618 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10619 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10620 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 cat >conftest.
$ac_ext <<_ACEOF
10626 cat confdefs.h
>>conftest.
$ac_ext
10627 cat >>conftest.
$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 #include <X11/Intrinsic.h>
10633 #if XtSpecificationRelease < 6
10641 rm -f conftest.
$ac_objext conftest
$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643 (eval $ac_link) 2>conftest.er1
10645 grep -v '^ *+' conftest.er1
>conftest.err
10647 cat conftest.err
>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try
='test -z "$ac_c_werror_flag"
10651 || test ! -s conftest.err'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try
='test -s conftest$ac_exeext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 emacs_cv_x11_toolkit_version_6
=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.
$ac_ext >&5
10668 emacs_cv_x11_toolkit_version_6
=no
10670 rm -f conftest.err conftest.
$ac_objext \
10671 conftest
$ac_exeext conftest.
$ac_ext
10674 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10675 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10676 echo "$as_me:$LINENO: result: 6 or newer" >&5
10677 echo "${ECHO_T}6 or newer" >&6
10679 cat >>confdefs.h
<<\_ACEOF
10680 #define HAVE_X11XTR6 1
10684 echo "$as_me:$LINENO: result: before 6" >&5
10685 echo "${ECHO_T}before 6" >&6
10689 if test x
$HAVE_X11XTR6 = xyes
; then
10690 LIBS
="-lXt -lSM -lICE $LIBS"
10695 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10696 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10697 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 ac_check_lib_save_LIBS
=$LIBS
10702 cat >conftest.
$ac_ext <<_ACEOF
10705 cat confdefs.h
>>conftest.
$ac_ext
10706 cat >>conftest.
$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10709 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10715 char XmuConvertStandardSelection ();
10719 XmuConvertStandardSelection ();
10724 rm -f conftest.
$ac_objext conftest
$ac_exeext
10725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10726 (eval $ac_link) 2>conftest.er1
10728 grep -v '^ *+' conftest.er1
>conftest.err
10730 cat conftest.err
>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try
='test -z "$ac_c_werror_flag"
10734 || test ! -s conftest.err'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try
='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.
$ac_ext >&5
10751 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10753 rm -f conftest.err conftest.
$ac_objext \
10754 conftest
$ac_exeext conftest.
$ac_ext
10755 LIBS
=$ac_check_lib_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10758 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10759 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10760 cat >>confdefs.h
<<_ACEOF
10761 #define HAVE_LIBXMU 1
10768 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10771 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10772 if test "${HAVE_X11}" = "yes"; then
10773 if test "${USE_X_TOOLKIT}" != "none"; then
10775 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10776 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10777 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 ac_check_lib_save_LIBS
=$LIBS
10781 LIBS
="-lXext $LIBS"
10782 cat >conftest.
$ac_ext <<_ACEOF
10785 cat confdefs.h
>>conftest.
$ac_ext
10786 cat >>conftest.
$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10789 /* Override any gcc2 internal prototype to avoid an error. */
10793 /* We use char because int might match the return type of a gcc2
10794 builtin and then its argument prototype would still apply. */
10795 char XShapeQueryExtension ();
10799 XShapeQueryExtension ();
10804 rm -f conftest.
$ac_objext conftest
$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>conftest.er1
10808 grep -v '^ *+' conftest.er1
>conftest.err
10810 cat conftest.err
>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try
='test -z "$ac_c_werror_flag"
10814 || test ! -s conftest.err'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try
='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.
$ac_ext >&5
10831 ac_cv_lib_Xext_XShapeQueryExtension
=no
10833 rm -f conftest.err conftest.
$ac_objext \
10834 conftest
$ac_exeext conftest.
$ac_ext
10835 LIBS
=$ac_check_lib_save_LIBS
10837 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10838 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10839 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10840 cat >>confdefs.h
<<_ACEOF
10841 #define HAVE_LIBXEXT 1
10844 LIBS
="-lXext $LIBS"
10851 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10852 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10853 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10854 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.
$ac_ext <<_ACEOF
10860 cat confdefs.h
>>conftest.
$ac_ext
10861 cat >>conftest.
$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10867 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10870 Motif version prior to 2.1.
10876 rm -f conftest.
$ac_objext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878 (eval $ac_compile) 2>conftest.er1
10880 grep -v '^ *+' conftest.er1
>conftest.err
10882 cat conftest.err
>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try
='test -z "$ac_c_werror_flag"
10886 || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try
='test -s conftest.$ac_objext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 emacs_cv_motif_version_2_1
=yes
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.
$ac_ext >&5
10903 emacs_cv_motif_version_2_1
=no
10905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10907 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10908 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10909 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10910 if test $emacs_cv_motif_version_2_1 = yes; then
10913 cat >>confdefs.h
<<\_ACEOF
10914 #define HAVE_MOTIF_2_1 1
10917 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10918 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10919 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 ac_check_lib_save_LIBS
=$LIBS
10924 cat >conftest.
$ac_ext <<_ACEOF
10927 cat confdefs.h
>>conftest.
$ac_ext
10928 cat >>conftest.
$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 /* Override any gcc2 internal prototype to avoid an error. */
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10937 char XpCreateContext ();
10941 XpCreateContext ();
10946 rm -f conftest.
$ac_objext conftest
$ac_exeext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10948 (eval $ac_link) 2>conftest.er1
10950 grep -v '^ *+' conftest.er1
>conftest.err
10952 cat conftest.err
>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try
='test -z "$ac_c_werror_flag"
10956 || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try
='test -s conftest$ac_exeext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_cv_lib_Xp_XpCreateContext
=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.
$ac_ext >&5
10973 ac_cv_lib_Xp_XpCreateContext
=no
10975 rm -f conftest.err conftest.
$ac_objext \
10976 conftest
$ac_exeext conftest.
$ac_ext
10977 LIBS
=$ac_check_lib_save_LIBS
10979 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10980 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10981 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10985 if test ${HAVE_LIBXP} = yes; then
10987 cat >>confdefs.h
<<\_ACEOF
10988 #define HAVE_LIBXP 1
10993 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10994 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10995 if test "${emacs_cv_lesstif+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 # We put this in CFLAGS temporarily to precede other -I options
10999 # that might be in CFLAGS temporarily.
11000 # We put this in CPPFLAGS where it precedes the other -I options.
11001 OLD_CPPFLAGS
=$CPPFLAGS
11003 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11004 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11005 cat >conftest.
$ac_ext <<_ACEOF
11008 cat confdefs.h
>>conftest.
$ac_ext
11009 cat >>conftest.
$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11020 rm -f conftest.
$ac_objext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>conftest.er1
11024 grep -v '^ *+' conftest.er1
>conftest.err
11026 cat conftest.err
>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try
='test -z "$ac_c_werror_flag"
11030 || test ! -s conftest.err'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try
='test -s conftest.$ac_objext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 emacs_cv_lesstif
=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.
$ac_ext >&5
11047 emacs_cv_lesstif
=no
11049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11051 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11052 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11053 if test $emacs_cv_lesstif = yes; then
11054 # Make sure this -I option remains in CPPFLAGS after it is set
11055 # back to REAL_CPPFLAGS.
11056 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11057 # have those other -I options anyway. Ultimately, having this
11058 # directory ultimately in CPPFLAGS will be enough.
11059 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11060 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11063 CPPFLAGS
=$OLD_CPPFLAGS
11068 ### Is -lXaw3d available?
11070 if test "${HAVE_X11}" = "yes"; then
11071 if test "${USE_X_TOOLKIT}" != "none"; then
11072 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11073 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11074 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.
$ac_ext <<_ACEOF
11080 cat confdefs.h
>>conftest.
$ac_ext
11081 cat >>conftest.
$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 #include <X11/Xaw3d/Scrollbar.h>
11085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11088 grep -v '^ *+' conftest.er1
>conftest.err
11090 cat conftest.err
>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } >/dev
/null
; then
11093 if test -s conftest.err
; then
11094 ac_cpp_err
=$ac_c_preproc_warn_flag
11095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11102 if test -z "$ac_cpp_err"; then
11103 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.
$ac_ext >&5
11108 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11110 rm -f conftest.err conftest.
$ac_ext
11112 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11113 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11114 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11115 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11116 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11117 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 ac_check_lib_save_LIBS
=$LIBS
11121 LIBS
="-lXaw3d $LIBS"
11122 cat >conftest.
$ac_ext <<_ACEOF
11125 cat confdefs.h
>>conftest.
$ac_ext
11126 cat >>conftest.
$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11129 /* Override any gcc2 internal prototype to avoid an error. */
11133 /* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135 char XawScrollbarSetThumb ();
11139 XawScrollbarSetThumb ();
11144 rm -f conftest.
$ac_objext conftest
$ac_exeext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11146 (eval $ac_link) 2>conftest.er1
11148 grep -v '^ *+' conftest.er1
>conftest.err
11150 cat conftest.err
>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try
='test -z "$ac_c_werror_flag"
11154 || test ! -s conftest.err'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try
='test -s conftest$ac_exeext'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.
$ac_ext >&5
11171 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11173 rm -f conftest.err conftest.
$ac_objext \
11174 conftest
$ac_exeext conftest.
$ac_ext
11175 LIBS
=$ac_check_lib_save_LIBS
11177 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11178 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11179 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11186 if test "${HAVE_XAW3D}" = "yes"; then
11188 cat >>confdefs.h
<<\_ACEOF
11189 #define HAVE_XAW3D 1
11198 USE_TOOLKIT_SCROLL_BARS
=no
11199 if test "${with_toolkit_scroll_bars}" != "no"; then
11200 if test "${USE_X_TOOLKIT}" != "none"; then
11201 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11202 cat >>confdefs.h
<<\_ACEOF
11203 #define USE_TOOLKIT_SCROLL_BARS 1
11207 USE_TOOLKIT_SCROLL_BARS
=yes
11208 elif test "${HAVE_XAW3D}" = "yes"; then
11209 cat >>confdefs.h
<<\_ACEOF
11210 #define USE_TOOLKIT_SCROLL_BARS 1
11213 USE_TOOLKIT_SCROLL_BARS
=yes
11215 elif test "${HAVE_GTK}" = "yes"; then
11216 cat >>confdefs.h
<<\_ACEOF
11217 #define USE_TOOLKIT_SCROLL_BARS 1
11220 USE_TOOLKIT_SCROLL_BARS
=yes
11221 elif test "${HAVE_CARBON}" = "yes"; then
11222 cat >>confdefs.h
<<\_ACEOF
11223 #define USE_TOOLKIT_SCROLL_BARS 1
11226 USE_TOOLKIT_SCROLL_BARS
=yes
11230 cat >conftest.
$ac_ext <<_ACEOF
11233 cat confdefs.h
>>conftest.
$ac_ext
11234 cat >>conftest.
$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 #include <X11/Xlib.h>
11238 #include <X11/Xresource.h>
11247 rm -f conftest.
$ac_objext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11249 (eval $ac_compile) 2>conftest.er1
11251 grep -v '^ *+' conftest.er1
>conftest.err
11253 cat conftest.err
>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try
='test -z "$ac_c_werror_flag"
11257 || test ! -s conftest.err'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; } &&
11263 { ac_try
='test -s conftest.$ac_objext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11271 cat >>confdefs.h
<<\_ACEOF
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11284 if test "${with_xim}" != "no"; then
11286 cat >>confdefs.h
<<\_ACEOF
11293 if test "${HAVE_XIM}" != "no"; then
11294 late_CFLAGS
=$CFLAGS
11295 if test "$GCC" = yes; then
11296 CFLAGS
="$CFLAGS --pedantic-errors"
11298 cat >conftest.
$ac_ext <<_ACEOF
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 #include <X11/Xlib.h>
11306 #include <X11/Xresource.h>
11315 XPointer *client_data;
11317 /* If we're not using GCC, it's probably not XFree86, and this is
11318 probably right, but we can't use something like --pedantic-errors. */
11319 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11320 char*, XIMProc, XPointer*);
11322 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11328 rm -f conftest.
$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11332 grep -v '^ *+' conftest.er1
>conftest.err
11334 cat conftest.err
>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try
='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try
='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 emacs_cv_arg6_star
=yes
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11358 if test "$emacs_cv_arg6_star" = yes; then
11359 cat >>confdefs.h
<<\_ACEOF
11360 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11364 cat >>confdefs.h
<<\_ACEOF
11365 #define XRegisterIMInstantiateCallback_arg6 XPointer
11369 CFLAGS
=$late_CFLAGS
11372 ### Use -lXpm if available, unless `--with-xpm=no'.
11374 if test "${HAVE_X11}" = "yes"; then
11375 if test "${with_xpm}" != "no"; then
11376 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11377 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11378 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11379 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11383 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11385 # Is the header compilable?
11386 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11387 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 $ac_includes_default
11395 #include <X11/xpm.h>
11397 rm -f conftest.
$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11401 grep -v '^ *+' conftest.er1
>conftest.err
11403 cat conftest.err
>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try
='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try
='test -s conftest.$ac_objext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 ac_header_compiler
=yes
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.
$ac_ext >&5
11424 ac_header_compiler
=no
11426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11428 echo "${ECHO_T}$ac_header_compiler" >&6
11430 # Is the header present?
11431 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11432 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11433 cat >conftest.
$ac_ext <<_ACEOF
11436 cat confdefs.h
>>conftest.
$ac_ext
11437 cat >>conftest.
$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 #include <X11/xpm.h>
11441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11442 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11444 grep -v '^ *+' conftest.er1
>conftest.err
11446 cat conftest.err
>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } >/dev
/null
; then
11449 if test -s conftest.err
; then
11450 ac_cpp_err
=$ac_c_preproc_warn_flag
11451 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11458 if test -z "$ac_cpp_err"; then
11459 ac_header_preproc
=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.
$ac_ext >&5
11464 ac_header_preproc
=no
11466 rm -f conftest.err conftest.
$ac_ext
11467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11468 echo "${ECHO_T}$ac_header_preproc" >&6
11470 # So? What about this header?
11471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11473 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11474 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11476 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11477 ac_header_preproc
=yes
11480 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11481 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11483 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11485 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11487 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11489 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11491 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11494 ## ------------------------------------------ ##
11495 ## Report this to the AC_PACKAGE_NAME lists. ##
11496 ## ------------------------------------------ ##
11499 sed "s/^/$as_me: WARNING: /" >&2
11502 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11503 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11504 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11509 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11510 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11513 if test $ac_cv_header_X11_xpm_h = yes; then
11514 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11515 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11516 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 ac_check_lib_save_LIBS
=$LIBS
11520 LIBS
="-lXpm -lX11 $LIBS"
11521 cat >conftest.
$ac_ext <<_ACEOF
11524 cat confdefs.h
>>conftest.
$ac_ext
11525 cat >>conftest.
$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11528 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char XpmReadFileToPixmap ();
11538 XpmReadFileToPixmap ();
11543 rm -f conftest.
$ac_objext conftest
$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>conftest.er1
11547 grep -v '^ *+' conftest.er1
>conftest.err
11549 cat conftest.err
>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try
='test -z "$ac_c_werror_flag"
11553 || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try
='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.
$ac_ext >&5
11570 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11572 rm -f conftest.err conftest.
$ac_objext \
11573 conftest
$ac_exeext conftest.
$ac_ext
11574 LIBS
=$ac_check_lib_save_LIBS
11576 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11577 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11578 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11585 if test "${HAVE_XPM}" = "yes"; then
11586 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11587 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11588 cat >conftest.
$ac_ext <<_ACEOF
11591 cat confdefs.h
>>conftest.
$ac_ext
11592 cat >>conftest.
$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include "X11/xpm.h"
11595 #ifndef XpmReturnAllocPixels
11596 no_return_alloc_pixels
11600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11601 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11609 if test "${HAVE_XPM}" = "yes"; then
11610 echo "$as_me:$LINENO: result: yes" >&5
11611 echo "${ECHO_T}yes" >&6
11613 echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6
11619 if test "${HAVE_XPM}" = "yes"; then
11621 cat >>confdefs.h
<<\_ACEOF
11628 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11630 if test "${HAVE_X11}" = "yes"; then
11631 if test "${with_jpeg}" != "no"; then
11632 if test "${ac_cv_header_jerror_h+set}" = set; then
11633 echo "$as_me:$LINENO: checking for jerror.h" >&5
11634 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11635 if test "${ac_cv_header_jerror_h+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11639 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11641 # Is the header compilable?
11642 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11643 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11644 cat >conftest.
$ac_ext <<_ACEOF
11647 cat confdefs.h
>>conftest.
$ac_ext
11648 cat >>conftest.
$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 #include <jerror.h>
11653 rm -f conftest.
$ac_objext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11655 (eval $ac_compile) 2>conftest.er1
11657 grep -v '^ *+' conftest.er1
>conftest.err
11659 cat conftest.err
>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try
='test -z "$ac_c_werror_flag"
11663 || test ! -s conftest.err'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try
='test -s conftest.$ac_objext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_header_compiler
=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.
$ac_ext >&5
11680 ac_header_compiler
=no
11682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11684 echo "${ECHO_T}$ac_header_compiler" >&6
11686 # Is the header present?
11687 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11688 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11689 cat >conftest.
$ac_ext <<_ACEOF
11692 cat confdefs.h
>>conftest.
$ac_ext
11693 cat >>conftest.
$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <jerror.h>
11697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11698 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11700 grep -v '^ *+' conftest.er1
>conftest.err
11702 cat conftest.err
>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } >/dev
/null
; then
11705 if test -s conftest.err
; then
11706 ac_cpp_err
=$ac_c_preproc_warn_flag
11707 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11714 if test -z "$ac_cpp_err"; then
11715 ac_header_preproc
=yes
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.
$ac_ext >&5
11720 ac_header_preproc
=no
11722 rm -f conftest.err conftest.
$ac_ext
11723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11724 echo "${ECHO_T}$ac_header_preproc" >&6
11726 # So? What about this header?
11727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11729 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11730 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11732 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11733 ac_header_preproc
=yes
11736 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11737 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11739 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11741 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11743 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11745 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11747 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11750 ## ------------------------------------------ ##
11751 ## Report this to the AC_PACKAGE_NAME lists. ##
11752 ## ------------------------------------------ ##
11755 sed "s/^/$as_me: WARNING: /" >&2
11758 echo "$as_me:$LINENO: checking for jerror.h" >&5
11759 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11760 if test "${ac_cv_header_jerror_h+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 ac_cv_header_jerror_h
=$ac_header_preproc
11765 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11766 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11769 if test $ac_cv_header_jerror_h = yes; then
11770 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11771 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11772 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 ac_check_lib_save_LIBS
=$LIBS
11776 LIBS
="-ljpeg $LIBS"
11777 cat >conftest.
$ac_ext <<_ACEOF
11780 cat confdefs.h
>>conftest.
$ac_ext
11781 cat >>conftest.
$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11784 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11790 char jpeg_destroy_compress ();
11794 jpeg_destroy_compress ();
11799 rm -f conftest.
$ac_objext conftest
$ac_exeext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11801 (eval $ac_link) 2>conftest.er1
11803 grep -v '^ *+' conftest.er1
>conftest.err
11805 cat conftest.err
>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try
='test -z "$ac_c_werror_flag"
11809 || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try
='test -s conftest$ac_exeext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.
$ac_ext >&5
11826 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11828 rm -f conftest.err conftest.
$ac_objext \
11829 conftest
$ac_exeext conftest.
$ac_ext
11830 LIBS
=$ac_check_lib_save_LIBS
11832 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11833 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11834 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11844 if test "${HAVE_JPEG}" = "yes"; then
11845 cat >>confdefs.h
<<\_ACEOF
11846 #define HAVE_JPEG 1
11849 cat >conftest.
$ac_ext <<_ACEOF
11852 cat confdefs.h
>>conftest.
$ac_ext
11853 cat >>conftest.
$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <jpeglib.h>
11856 version=JPEG_LIB_VERSION
11859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11860 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11861 cat >>confdefs.h
<<\_ACEOF
11862 #define HAVE_JPEG 1
11866 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11867 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11875 ### Use -lpng if available, unless `--with-png=no'.
11877 if test "${HAVE_X11}" = "yes"; then
11878 if test "${with_png}" != "no"; then
11879 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11880 # in /usr/include/libpng.
11883 for ac_header
in png.h libpng
/png.h
11885 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11887 echo "$as_me:$LINENO: checking for $ac_header" >&5
11888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11895 # Is the header compilable?
11896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11898 cat >conftest.
$ac_ext <<_ACEOF
11901 cat confdefs.h
>>conftest.
$ac_ext
11902 cat >>conftest.
$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 $ac_includes_default
11905 #include <$ac_header>
11907 rm -f conftest.
$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909 (eval $ac_compile) 2>conftest.er1
11911 grep -v '^ *+' conftest.er1
>conftest.err
11913 cat conftest.err
>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try
='test -z "$ac_c_werror_flag"
11917 || test ! -s conftest.err'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try
='test -s conftest.$ac_objext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_header_compiler
=yes
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.
$ac_ext >&5
11934 ac_header_compiler
=no
11936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6
11940 # Is the header present?
11941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11943 cat >conftest.
$ac_ext <<_ACEOF
11946 cat confdefs.h
>>conftest.
$ac_ext
11947 cat >>conftest.
$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <$ac_header>
11951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11954 grep -v '^ *+' conftest.er1
>conftest.err
11956 cat conftest.err
>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } >/dev
/null
; then
11959 if test -s conftest.err
; then
11960 ac_cpp_err
=$ac_c_preproc_warn_flag
11961 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11968 if test -z "$ac_cpp_err"; then
11969 ac_header_preproc
=yes
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11974 ac_header_preproc
=no
11976 rm -f conftest.err conftest.
$ac_ext
11977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11978 echo "${ECHO_T}$ac_header_preproc" >&6
11980 # So? What about this header?
11981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11987 ac_header_preproc
=yes
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004 ## ------------------------------------------ ##
12005 ## Report this to the AC_PACKAGE_NAME lists. ##
12006 ## ------------------------------------------ ##
12009 sed "s/^/$as_me: WARNING: /" >&2
12012 echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 eval "$as_ac_Header=\$ac_header_preproc"
12019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12024 cat >>confdefs.h
<<_ACEOF
12025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12032 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12033 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12034 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12035 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 ac_check_lib_save_LIBS
=$LIBS
12039 LIBS
="-lpng -lz -lm $LIBS"
12040 cat >conftest.
$ac_ext <<_ACEOF
12043 cat confdefs.h
>>conftest.
$ac_ext
12044 cat >>conftest.
$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12047 /* Override any gcc2 internal prototype to avoid an error. */
12051 /* We use char because int might match the return type of a gcc2
12052 builtin and then its argument prototype would still apply. */
12053 char png_get_channels ();
12057 png_get_channels ();
12062 rm -f conftest.
$ac_objext conftest
$ac_exeext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064 (eval $ac_link) 2>conftest.er1
12066 grep -v '^ *+' conftest.er1
>conftest.err
12068 cat conftest.err
>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try
='test -z "$ac_c_werror_flag"
12072 || test ! -s conftest.err'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try
='test -s conftest$ac_exeext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_lib_png_png_get_channels
=yes
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.
$ac_ext >&5
12089 ac_cv_lib_png_png_get_channels
=no
12091 rm -f conftest.err conftest.
$ac_objext \
12092 conftest
$ac_exeext conftest.
$ac_ext
12093 LIBS
=$ac_check_lib_save_LIBS
12095 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12096 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12097 if test $ac_cv_lib_png_png_get_channels = yes; then
12104 if test "${HAVE_PNG}" = "yes"; then
12106 cat >>confdefs.h
<<\_ACEOF
12113 ### Use -ltiff if available, unless `--with-tiff=no'.
12115 if test "${HAVE_X11}" = "yes"; then
12116 if test "${with_tiff}" != "no"; then
12117 if test "${ac_cv_header_tiffio_h+set}" = set; then
12118 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12119 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12120 if test "${ac_cv_header_tiffio_h+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12124 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12126 # Is the header compilable?
12127 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12128 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12129 cat >conftest.
$ac_ext <<_ACEOF
12132 cat confdefs.h
>>conftest.
$ac_ext
12133 cat >>conftest.
$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 $ac_includes_default
12136 #include <tiffio.h>
12138 rm -f conftest.
$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1
>conftest.err
12144 cat conftest.err
>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try
='test -z "$ac_c_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try
='test -s conftest.$ac_objext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_header_compiler
=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.
$ac_ext >&5
12165 ac_header_compiler
=no
12167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 echo "${ECHO_T}$ac_header_compiler" >&6
12171 # Is the header present?
12172 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12173 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12174 cat >conftest.
$ac_ext <<_ACEOF
12177 cat confdefs.h
>>conftest.
$ac_ext
12178 cat >>conftest.
$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include <tiffio.h>
12182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12183 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12185 grep -v '^ *+' conftest.er1
>conftest.err
12187 cat conftest.err
>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } >/dev
/null
; then
12190 if test -s conftest.err
; then
12191 ac_cpp_err
=$ac_c_preproc_warn_flag
12192 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12199 if test -z "$ac_cpp_err"; then
12200 ac_header_preproc
=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 ac_header_preproc
=no
12207 rm -f conftest.err conftest.
$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 echo "${ECHO_T}$ac_header_preproc" >&6
12211 # So? What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12217 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12218 ac_header_preproc
=yes
12221 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12222 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12224 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12226 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12228 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12230 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12232 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12235 ## ------------------------------------------ ##
12236 ## Report this to the AC_PACKAGE_NAME lists. ##
12237 ## ------------------------------------------ ##
12240 sed "s/^/$as_me: WARNING: /" >&2
12243 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12244 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12245 if test "${ac_cv_header_tiffio_h+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 ac_cv_header_tiffio_h
=$ac_header_preproc
12250 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12251 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12254 if test $ac_cv_header_tiffio_h = yes; then
12256 # At least one tiff package requires the jpeg library.
12257 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12258 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12259 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12260 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 ac_check_lib_save_LIBS
=$LIBS
12264 LIBS
="-ltiff $tifflibs $LIBS"
12265 cat >conftest.
$ac_ext <<_ACEOF
12268 cat confdefs.h
>>conftest.
$ac_ext
12269 cat >>conftest.
$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12272 /* Override any gcc2 internal prototype to avoid an error. */
12276 /* We use char because int might match the return type of a gcc2
12277 builtin and then its argument prototype would still apply. */
12278 char TIFFGetVersion ();
12287 rm -f conftest.
$ac_objext conftest
$ac_exeext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289 (eval $ac_link) 2>conftest.er1
12291 grep -v '^ *+' conftest.er1
>conftest.err
12293 cat conftest.err
>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try
='test -z "$ac_c_werror_flag"
12297 || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try
='test -s conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_lib_tiff_TIFFGetVersion
=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 ac_cv_lib_tiff_TIFFGetVersion
=no
12316 rm -f conftest.err conftest.
$ac_objext \
12317 conftest
$ac_exeext conftest.
$ac_ext
12318 LIBS
=$ac_check_lib_save_LIBS
12320 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12321 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12322 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12331 if test "${HAVE_TIFF}" = "yes"; then
12333 cat >>confdefs.h
<<\_ACEOF
12334 #define HAVE_TIFF 1
12340 ### Use -lgif if available, unless `--with-gif=no'.
12342 if test "${HAVE_X11}" = "yes"; then
12343 if test "${with_gif}" != "no"; then
12344 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12345 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12346 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12347 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12351 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12353 # Is the header compilable?
12354 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12355 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12356 cat >conftest.
$ac_ext <<_ACEOF
12359 cat confdefs.h
>>conftest.
$ac_ext
12360 cat >>conftest.
$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 $ac_includes_default
12363 #include <gif_lib.h>
12365 rm -f conftest.
$ac_objext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367 (eval $ac_compile) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1
>conftest.err
12371 cat conftest.err
>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try
='test -z "$ac_c_werror_flag"
12375 || test ! -s conftest.err'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try
='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_header_compiler
=yes
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.
$ac_ext >&5
12392 ac_header_compiler
=no
12394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6
12398 # Is the header present?
12399 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12400 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12401 cat >conftest.
$ac_ext <<_ACEOF
12404 cat confdefs.h
>>conftest.
$ac_ext
12405 cat >>conftest.
$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <gif_lib.h>
12409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12412 grep -v '^ *+' conftest.er1
>conftest.err
12414 cat conftest.err
>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } >/dev
/null
; then
12417 if test -s conftest.err
; then
12418 ac_cpp_err
=$ac_c_preproc_warn_flag
12419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12426 if test -z "$ac_cpp_err"; then
12427 ac_header_preproc
=yes
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.
$ac_ext >&5
12432 ac_header_preproc
=no
12434 rm -f conftest.err conftest.
$ac_ext
12435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12436 echo "${ECHO_T}$ac_header_preproc" >&6
12438 # So? What about this header?
12439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12441 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12442 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12444 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12445 ac_header_preproc
=yes
12448 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12449 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12451 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12453 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12455 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12457 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12459 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12462 ## ------------------------------------------ ##
12463 ## Report this to the AC_PACKAGE_NAME lists. ##
12464 ## ------------------------------------------ ##
12467 sed "s/^/$as_me: WARNING: /" >&2
12470 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12471 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12472 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 ac_cv_header_gif_lib_h
=$ac_header_preproc
12477 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12478 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12481 if test $ac_cv_header_gif_lib_h = yes; then
12482 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12483 # Earlier versions can crash Emacs.
12484 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12485 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12486 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 ac_check_lib_save_LIBS
=$LIBS
12490 LIBS
="-lungif $LIBS"
12491 cat >conftest.
$ac_ext <<_ACEOF
12494 cat confdefs.h
>>conftest.
$ac_ext
12495 cat >>conftest.
$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12498 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char EGifPutExtensionLast ();
12508 EGifPutExtensionLast ();
12513 rm -f conftest.
$ac_objext conftest
$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>conftest.er1
12517 grep -v '^ *+' conftest.er1
>conftest.err
12519 cat conftest.err
>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try
='test -z "$ac_c_werror_flag"
12523 || test ! -s conftest.err'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; } &&
12529 { ac_try
='test -s conftest$ac_exeext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.
$ac_ext >&5
12540 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12542 rm -f conftest.err conftest.
$ac_objext \
12543 conftest
$ac_exeext conftest.
$ac_ext
12544 LIBS
=$ac_check_lib_save_LIBS
12546 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12547 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12548 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12557 if test "${HAVE_GIF}" = "yes"; then
12559 cat >>confdefs.h
<<\_ACEOF
12566 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12567 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12568 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12569 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12573 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12575 # Is the header compilable?
12576 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12577 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12578 cat >conftest.
$ac_ext <<_ACEOF
12581 cat confdefs.h
>>conftest.
$ac_ext
12582 cat >>conftest.
$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 $ac_includes_default
12585 #include <malloc/malloc.h>
12587 rm -f conftest.
$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>conftest.er1
12591 grep -v '^ *+' conftest.er1
>conftest.err
12593 cat conftest.err
>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try
='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try
='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_header_compiler
=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.
$ac_ext >&5
12614 ac_header_compiler
=no
12616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12618 echo "${ECHO_T}$ac_header_compiler" >&6
12620 # Is the header present?
12621 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12622 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12623 cat >conftest.
$ac_ext <<_ACEOF
12626 cat confdefs.h
>>conftest.
$ac_ext
12627 cat >>conftest.
$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 #include <malloc/malloc.h>
12631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12634 grep -v '^ *+' conftest.er1
>conftest.err
12636 cat conftest.err
>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } >/dev
/null
; then
12639 if test -s conftest.err
; then
12640 ac_cpp_err
=$ac_c_preproc_warn_flag
12641 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12648 if test -z "$ac_cpp_err"; then
12649 ac_header_preproc
=yes
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.
$ac_ext >&5
12654 ac_header_preproc
=no
12656 rm -f conftest.err conftest.
$ac_ext
12657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12658 echo "${ECHO_T}$ac_header_preproc" >&6
12660 # So? What about this header?
12661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12663 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12664 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12666 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12667 ac_header_preproc
=yes
12670 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12671 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12673 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12675 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12677 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12679 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12681 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12684 ## ------------------------------------------ ##
12685 ## Report this to the AC_PACKAGE_NAME lists. ##
12686 ## ------------------------------------------ ##
12689 sed "s/^/$as_me: WARNING: /" >&2
12692 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12693 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12694 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12699 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12700 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12703 if test $ac_cv_header_malloc_malloc_h = yes; then
12705 cat >>confdefs.h
<<\_ACEOF
12706 #define HAVE_MALLOC_MALLOC_H 1
12713 ### Use Mac OS X Carbon API to implement GUI.
12714 if test "${HAVE_CARBON}" = "yes"; then
12716 cat >>confdefs.h
<<\_ACEOF
12717 #define HAVE_CARBON 1
12720 ## Specify the install directory
12722 if test "${carbon_appdir_x}" != ""; then
12723 case ${carbon_appdir_x} in
12724 y | ye |
yes) carbon_appdir
=/Applications
;;
12725 * ) carbon_appdir
=${carbon_appdir_x} ;;
12728 # We also have mouse menus.
12731 tmp_CFLAGS
="$CFLAGS"
12732 CFLAGS
="$CFLAGS -framework Carbon"
12733 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12734 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12735 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 cat >conftest.
$ac_ext <<_ACEOF
12741 cat confdefs.h
>>conftest.
$ac_ext
12742 cat >>conftest.
$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12746 #define CancelMenuTracking innocuous_CancelMenuTracking
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char CancelMenuTracking (); below.
12750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12751 <limits.h> exists even on freestanding compilers. */
12754 # include <limits.h>
12756 # include <assert.h>
12759 #undef CancelMenuTracking
12761 /* Override any gcc2 internal prototype to avoid an error. */
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768 char CancelMenuTracking ();
12769 /* The GNU C library defines this for functions which it implements
12770 to always fail with ENOSYS. Some functions are actually named
12771 something starting with __ and the normal name is an alias. */
12772 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12775 char (*f) () = CancelMenuTracking;
12784 return f != CancelMenuTracking;
12789 rm -f conftest.
$ac_objext conftest
$ac_exeext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>conftest.er1
12793 grep -v '^ *+' conftest.er1
>conftest.err
12795 cat conftest.err
>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try
='test -z "$ac_c_werror_flag"
12799 || test ! -s conftest.err'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try
='test -s conftest$ac_exeext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_func_CancelMenuTracking
=yes
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.
$ac_ext >&5
12816 ac_cv_func_CancelMenuTracking
=no
12818 rm -f conftest.err conftest.
$ac_objext \
12819 conftest
$ac_exeext conftest.
$ac_ext
12821 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12822 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12823 if test $ac_cv_func_CancelMenuTracking = yes; then
12829 if test "$have_cmt" = yes; then
12831 cat >>confdefs.h
<<\_ACEOF
12832 #define HAVE_CANCELMENUTRACKING 1
12836 CFLAGS
="$tmp_CFLAGS"
12839 ### Use session management (-lSM -lICE) if available
12841 if test "${HAVE_X11}" = "yes"; then
12842 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12843 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12844 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12845 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12849 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12851 # Is the header compilable?
12852 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12853 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12854 cat >conftest.
$ac_ext <<_ACEOF
12857 cat confdefs.h
>>conftest.
$ac_ext
12858 cat >>conftest.
$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 $ac_includes_default
12861 #include <X11/SM/SMlib.h>
12863 rm -f conftest.
$ac_objext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>conftest.er1
12867 grep -v '^ *+' conftest.er1
>conftest.err
12869 cat conftest.err
>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try
='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try
='test -s conftest.$ac_objext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 ac_header_compiler
=yes
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.
$ac_ext >&5
12890 ac_header_compiler
=no
12892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12894 echo "${ECHO_T}$ac_header_compiler" >&6
12896 # Is the header present?
12897 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12898 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12899 cat >conftest.
$ac_ext <<_ACEOF
12902 cat confdefs.h
>>conftest.
$ac_ext
12903 cat >>conftest.
$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 #include <X11/SM/SMlib.h>
12907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12908 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12910 grep -v '^ *+' conftest.er1
>conftest.err
12912 cat conftest.err
>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } >/dev
/null
; then
12915 if test -s conftest.err
; then
12916 ac_cpp_err
=$ac_c_preproc_warn_flag
12917 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12924 if test -z "$ac_cpp_err"; then
12925 ac_header_preproc
=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.
$ac_ext >&5
12930 ac_header_preproc
=no
12932 rm -f conftest.err conftest.
$ac_ext
12933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12934 echo "${ECHO_T}$ac_header_preproc" >&6
12936 # So? What about this header?
12937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12939 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12940 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12942 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12943 ac_header_preproc
=yes
12946 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12947 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12949 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12951 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12953 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12955 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12957 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12960 ## ------------------------------------------ ##
12961 ## Report this to the AC_PACKAGE_NAME lists. ##
12962 ## ------------------------------------------ ##
12965 sed "s/^/$as_me: WARNING: /" >&2
12968 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12969 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12970 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12975 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12976 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12979 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12980 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12981 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12982 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 ac_check_lib_save_LIBS
=$LIBS
12986 LIBS
="-lSM -lICE $LIBS"
12987 cat >conftest.
$ac_ext <<_ACEOF
12990 cat confdefs.h
>>conftest.
$ac_ext
12991 cat >>conftest.
$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 /* Override any gcc2 internal prototype to avoid an error. */
12998 /* We use char because int might match the return type of a gcc2
12999 builtin and then its argument prototype would still apply. */
13000 char SmcOpenConnection ();
13004 SmcOpenConnection ();
13009 rm -f conftest.
$ac_objext conftest
$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>conftest.er1
13013 grep -v '^ *+' conftest.er1
>conftest.err
13015 cat conftest.err
>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try
='test -z "$ac_c_werror_flag"
13019 || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try
='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_lib_SM_SmcOpenConnection
=yes
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.
$ac_ext >&5
13036 ac_cv_lib_SM_SmcOpenConnection
=no
13038 rm -f conftest.err conftest.
$ac_objext \
13039 conftest
$ac_exeext conftest.
$ac_ext
13040 LIBS
=$ac_check_lib_save_LIBS
13042 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13043 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13044 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13052 if test "${HAVE_X_SM}" = "yes"; then
13054 cat >>confdefs.h
<<\_ACEOF
13055 #define HAVE_X_SM 1
13060 *) LIBS
="-lSM -lICE $LIBS" ;;
13065 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13066 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13067 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13068 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 cat >conftest.
$ac_ext <<_ACEOF
13074 cat confdefs.h
>>conftest.
$ac_ext
13075 cat >>conftest.
$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13086 rm -f conftest.
$ac_objext conftest
$ac_exeext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13088 (eval $ac_link) 2>conftest.er1
13090 grep -v '^ *+' conftest.er1
>conftest.err
13092 cat conftest.err
>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try
='test -z "$ac_c_werror_flag"
13096 || test ! -s conftest.err'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try
='test -s conftest$ac_exeext'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 emacs_cv_netdb_declares_h_errno
=yes
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.
$ac_ext >&5
13113 emacs_cv_netdb_declares_h_errno
=no
13115 rm -f conftest.err conftest.
$ac_objext \
13116 conftest
$ac_exeext conftest.
$ac_ext
13118 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13119 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13120 if test $emacs_cv_netdb_declares_h_errno = yes; then
13122 cat >>confdefs.h
<<\_ACEOF
13123 #define HAVE_H_ERRNO 1
13128 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13129 # for constant arguments. Useless!
13130 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13131 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13132 if test "${ac_cv_working_alloca_h+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 cat >conftest.
$ac_ext <<_ACEOF
13138 cat confdefs.h
>>conftest.
$ac_ext
13139 cat >>conftest.
$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <alloca.h>
13145 char *p = (char *) alloca (2 * sizeof (int));
13150 rm -f conftest.
$ac_objext conftest
$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>conftest.er1
13154 grep -v '^ *+' conftest.er1
>conftest.err
13156 cat conftest.err
>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try
='test -z "$ac_c_werror_flag"
13160 || test ! -s conftest.err'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; } &&
13166 { ac_try
='test -s conftest$ac_exeext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_cv_working_alloca_h
=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.
$ac_ext >&5
13177 ac_cv_working_alloca_h
=no
13179 rm -f conftest.err conftest.
$ac_objext \
13180 conftest
$ac_exeext conftest.
$ac_ext
13182 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13183 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13184 if test $ac_cv_working_alloca_h = yes; then
13186 cat >>confdefs.h
<<\_ACEOF
13187 #define HAVE_ALLOCA_H 1
13192 echo "$as_me:$LINENO: checking for alloca" >&5
13193 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13194 if test "${ac_cv_func_alloca_works+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 cat >conftest.
$ac_ext <<_ACEOF
13200 cat confdefs.h
>>conftest.
$ac_ext
13201 cat >>conftest.
$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13204 # define alloca __builtin_alloca
13207 # include <malloc.h>
13208 # define alloca _alloca
13211 # include <alloca.h>
13216 # ifndef alloca /* predefined by HP cc +Olibcalls */
13227 char *p = (char *) alloca (1);
13232 rm -f conftest.
$ac_objext conftest
$ac_exeext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234 (eval $ac_link) 2>conftest.er1
13236 grep -v '^ *+' conftest.er1
>conftest.err
13238 cat conftest.err
>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try
='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try
='test -s conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_func_alloca_works
=yes
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.
$ac_ext >&5
13259 ac_cv_func_alloca_works
=no
13261 rm -f conftest.err conftest.
$ac_objext \
13262 conftest
$ac_exeext conftest.
$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13267 if test $ac_cv_func_alloca_works = yes; then
13269 cat >>confdefs.h
<<\_ACEOF
13270 #define HAVE_ALLOCA 1
13274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13275 # that cause trouble. Some versions do not even contain alloca or
13276 # contain a buggy version. If you still want to use their alloca,
13277 # use ar to extract alloca.o from them instead of compiling alloca.c.
13279 ALLOCA
=alloca.
$ac_objext
13281 cat >>confdefs.h
<<\_ACEOF
13286 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13288 if test "${ac_cv_os_cray+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 cat >conftest.
$ac_ext <<_ACEOF
13294 cat confdefs.h
>>conftest.
$ac_ext
13295 cat >>conftest.
$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #if defined(CRAY) && ! defined(CRAY2)
13304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305 $EGREP "webecray" >/dev
/null
2>&1; then
13313 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13314 echo "${ECHO_T}$ac_cv_os_cray" >&6
13315 if test $ac_cv_os_cray = yes; then
13316 for ac_func
in _getb67 GETB67 getb67
; do
13317 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13318 echo "$as_me:$LINENO: checking for $ac_func" >&5
13319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13320 if eval "test \"\${$as_ac_var+set}\" = set"; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 cat >conftest.
$ac_ext <<_ACEOF
13326 cat confdefs.h
>>conftest.
$ac_ext
13327 cat >>conftest.
$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13331 #define $ac_func innocuous_$ac_func
13333 /* System header to define __stub macros and hopefully few prototypes,
13334 which can conflict with char $ac_func (); below.
13335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13336 <limits.h> exists even on freestanding compilers. */
13339 # include <limits.h>
13341 # include <assert.h>
13346 /* Override any gcc2 internal prototype to avoid an error. */
13351 /* We use char because int might match the return type of a gcc2
13352 builtin and then its argument prototype would still apply. */
13354 /* The GNU C library defines this for functions which it implements
13355 to always fail with ENOSYS. Some functions are actually named
13356 something starting with __ and the normal name is an alias. */
13357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13360 char (*f) () = $ac_func;
13369 return f != $ac_func;
13374 rm -f conftest.
$ac_objext conftest
$ac_exeext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376 (eval $ac_link) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1
>conftest.err
13380 cat conftest.err
>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try
='test -z "$ac_c_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try
='test -s conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 eval "$as_ac_var=yes"
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.
$ac_ext >&5
13401 eval "$as_ac_var=no"
13403 rm -f conftest.err conftest.
$ac_objext \
13404 conftest
$ac_exeext conftest.
$ac_ext
13406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13408 if test `eval echo '${'$as_ac_var'}'` = yes; then
13410 cat >>confdefs.h
<<_ACEOF
13411 #define CRAY_STACKSEG_END $ac_func
13420 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13421 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13422 if test "${ac_cv_c_stack_direction+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 if test "$cross_compiling" = yes; then
13426 ac_cv_c_stack_direction
=0
13428 cat >conftest.
$ac_ext <<_ACEOF
13431 cat confdefs.h
>>conftest.
$ac_ext
13432 cat >>conftest.
$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 find_stack_direction ()
13437 static char *addr = 0;
13442 return find_stack_direction ();
13445 return (&dummy > addr) ? 1 : -1;
13451 exit (find_stack_direction () < 0);
13454 rm -f conftest
$ac_exeext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_c_stack_direction
=1
13467 echo "$as_me: program exited with status $ac_status" >&5
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.
$ac_ext >&5
13471 ( exit $ac_status )
13472 ac_cv_c_stack_direction
=-1
13474 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13480 cat >>confdefs.h
<<_ACEOF
13481 #define STACK_DIRECTION $ac_cv_c_stack_direction
13488 # fmod, logb, and frexp are found in -lm on most systems.
13489 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13491 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13492 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13493 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 ac_check_lib_save_LIBS
=$LIBS
13498 cat >conftest.
$ac_ext <<_ACEOF
13501 cat confdefs.h
>>conftest.
$ac_ext
13502 cat >>conftest.
$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13505 /* Override any gcc2 internal prototype to avoid an error. */
13509 /* We use char because int might match the return type of a gcc2
13510 builtin and then its argument prototype would still apply. */
13520 rm -f conftest.
$ac_objext conftest
$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1
>conftest.err
13526 cat conftest.err
>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try
='test -z "$ac_c_werror_flag"
13530 || test ! -s conftest.err'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try
='test -s conftest$ac_exeext'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }; then
13542 ac_cv_lib_m_sqrt
=yes
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.
$ac_ext >&5
13547 ac_cv_lib_m_sqrt
=no
13549 rm -f conftest.err conftest.
$ac_objext \
13550 conftest
$ac_exeext conftest.
$ac_ext
13551 LIBS
=$ac_check_lib_save_LIBS
13553 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13554 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13555 if test $ac_cv_lib_m_sqrt = yes; then
13556 cat >>confdefs.h
<<_ACEOF
13557 #define HAVE_LIBM 1
13565 # Check for mail-locking functions in a "mail" library. Probably this should
13566 # have the same check as for liblockfile below.
13568 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13569 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13570 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 ac_check_lib_save_LIBS
=$LIBS
13574 LIBS
="-lmail $LIBS"
13575 cat >conftest.
$ac_ext <<_ACEOF
13578 cat confdefs.h
>>conftest.
$ac_ext
13579 cat >>conftest.
$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13582 /* Override any gcc2 internal prototype to avoid an error. */
13586 /* We use char because int might match the return type of a gcc2
13587 builtin and then its argument prototype would still apply. */
13597 rm -f conftest.
$ac_objext conftest
$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13601 grep -v '^ *+' conftest.er1
>conftest.err
13603 cat conftest.err
>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try
='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try
='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_lib_mail_maillock
=yes
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.
$ac_ext >&5
13624 ac_cv_lib_mail_maillock
=no
13626 rm -f conftest.err conftest.
$ac_objext \
13627 conftest
$ac_exeext conftest.
$ac_ext
13628 LIBS
=$ac_check_lib_save_LIBS
13630 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13631 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13632 if test $ac_cv_lib_mail_maillock = yes; then
13633 cat >>confdefs.h
<<_ACEOF
13634 #define HAVE_LIBMAIL 1
13637 LIBS
="-lmail $LIBS"
13642 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13643 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13644 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 ac_check_lib_save_LIBS
=$LIBS
13648 LIBS
="-llockfile $LIBS"
13649 cat >conftest.
$ac_ext <<_ACEOF
13652 cat confdefs.h
>>conftest.
$ac_ext
13653 cat >>conftest.
$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13656 /* Override any gcc2 internal prototype to avoid an error. */
13660 /* We use char because int might match the return type of a gcc2
13661 builtin and then its argument prototype would still apply. */
13671 rm -f conftest.
$ac_objext conftest
$ac_exeext
13672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13673 (eval $ac_link) 2>conftest.er1
13675 grep -v '^ *+' conftest.er1
>conftest.err
13677 cat conftest.err
>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try
='test -z "$ac_c_werror_flag"
13681 || test ! -s conftest.err'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try
='test -s conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_lib_lockfile_maillock
=yes
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.
$ac_ext >&5
13698 ac_cv_lib_lockfile_maillock
=no
13700 rm -f conftest.err conftest.
$ac_objext \
13701 conftest
$ac_exeext conftest.
$ac_ext
13702 LIBS
=$ac_check_lib_save_LIBS
13704 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13705 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13706 if test $ac_cv_lib_lockfile_maillock = yes; then
13707 cat >>confdefs.h
<<_ACEOF
13708 #define HAVE_LIBLOCKFILE 1
13711 LIBS
="-llockfile $LIBS"
13715 # If we have the shared liblockfile, assume we must use it for mail
13716 # locking (e.g. Debian). If we couldn't link against liblockfile
13717 # (no liblockfile.a installed), ensure that we don't need to.
13718 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13719 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13720 set dummy liblockfile.so
; ac_word
=$2
13721 echo "$as_me:$LINENO: checking for $ac_word" >&5
13722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13723 if test "${ac_cv_prog_liblockfile+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 if test -n "$liblockfile"; then
13727 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13730 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13731 for as_dir
in $as_dummy
13734 test -z "$as_dir" && as_dir
=.
13735 for ac_exec_ext
in '' $ac_executable_extensions; do
13736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13737 ac_cv_prog_liblockfile
="yes"
13738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13747 liblockfile
=$ac_cv_prog_liblockfile
13748 if test -n "$liblockfile"; then
13749 echo "$as_me:$LINENO: result: $liblockfile" >&5
13750 echo "${ECHO_T}$liblockfile" >&6
13752 echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13756 if test $ac_cv_prog_liblockfile = yes; then
13757 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13758 This probably means that movemail could lose mail.
13759 There may be a \`development' package to install containing liblockfile." >&5
13760 echo "$as_me: error: Shared liblockfile found but can't link against it.
13761 This probably means that movemail could lose mail.
13762 There may be a \`development' package to install containing liblockfile." >&2;}
13763 { (exit 1); exit 1; }; }
13768 for ac_func
in touchlock
13770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_var+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cat >conftest.
$ac_ext <<_ACEOF
13779 cat confdefs.h
>>conftest.
$ac_ext
13780 cat >>conftest.
$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13784 #define $ac_func innocuous_$ac_func
13786 /* System header to define __stub macros and hopefully few prototypes,
13787 which can conflict with char $ac_func (); below.
13788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13789 <limits.h> exists even on freestanding compilers. */
13792 # include <limits.h>
13794 # include <assert.h>
13799 /* Override any gcc2 internal prototype to avoid an error. */
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13807 /* The GNU C library defines this for functions which it implements
13808 to always fail with ENOSYS. Some functions are actually named
13809 something starting with __ and the normal name is an alias. */
13810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13813 char (*f) () = $ac_func;
13822 return f != $ac_func;
13827 rm -f conftest.
$ac_objext conftest
$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>conftest.er1
13831 grep -v '^ *+' conftest.er1
>conftest.err
13833 cat conftest.err
>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try
='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try
='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 eval "$as_ac_var=yes"
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.
$ac_ext >&5
13854 eval "$as_ac_var=no"
13856 rm -f conftest.err conftest.
$ac_objext \
13857 conftest
$ac_exeext conftest.
$ac_ext
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13861 if test `eval echo '${'$as_ac_var'}'` = yes; then
13862 cat >>confdefs.h
<<_ACEOF
13863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13870 for ac_header
in maillock.h
13872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874 echo "$as_me:$LINENO: checking for $ac_header" >&5
13875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13882 # Is the header compilable?
13883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13885 cat >conftest.
$ac_ext <<_ACEOF
13888 cat confdefs.h
>>conftest.
$ac_ext
13889 cat >>conftest.
$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 $ac_includes_default
13892 #include <$ac_header>
13894 rm -f conftest.
$ac_objext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>conftest.er1
13898 grep -v '^ *+' conftest.er1
>conftest.err
13900 cat conftest.err
>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try
='test -z "$ac_c_werror_flag"
13904 || test ! -s conftest.err'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; } &&
13910 { ac_try
='test -s conftest.$ac_objext'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 ac_header_compiler
=yes
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.
$ac_ext >&5
13921 ac_header_compiler
=no
13923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13925 echo "${ECHO_T}$ac_header_compiler" >&6
13927 # Is the header present?
13928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13930 cat >conftest.
$ac_ext <<_ACEOF
13933 cat confdefs.h
>>conftest.
$ac_ext
13934 cat >>conftest.
$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 #include <$ac_header>
13938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1
>conftest.err
13943 cat conftest.err
>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } >/dev
/null
; then
13946 if test -s conftest.err
; then
13947 ac_cpp_err
=$ac_c_preproc_warn_flag
13948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13955 if test -z "$ac_cpp_err"; then
13956 ac_header_preproc
=yes
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.
$ac_ext >&5
13961 ac_header_preproc
=no
13963 rm -f conftest.err conftest.
$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13965 echo "${ECHO_T}$ac_header_preproc" >&6
13967 # So? What about this header?
13968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13974 ac_header_preproc
=yes
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13991 ## ------------------------------------------ ##
13992 ## Report this to the AC_PACKAGE_NAME lists. ##
13993 ## ------------------------------------------ ##
13996 sed "s/^/$as_me: WARNING: /" >&2
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 eval "$as_ac_Header=\$ac_header_preproc"
14006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14011 cat >>confdefs.h
<<_ACEOF
14012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14088 for ac_func
in gethostname getdomainname dup2 \
14089 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14090 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14091 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14092 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14093 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14094 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14095 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14096 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14098 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14099 echo "$as_me:$LINENO: checking for $ac_func" >&5
14100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14101 if eval "test \"\${$as_ac_var+set}\" = set"; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 cat >conftest.
$ac_ext <<_ACEOF
14107 cat confdefs.h
>>conftest.
$ac_ext
14108 cat >>conftest.
$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14112 #define $ac_func innocuous_$ac_func
14114 /* System header to define __stub macros and hopefully few prototypes,
14115 which can conflict with char $ac_func (); below.
14116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14117 <limits.h> exists even on freestanding compilers. */
14120 # include <limits.h>
14122 # include <assert.h>
14127 /* Override any gcc2 internal prototype to avoid an error. */
14132 /* We use char because int might match the return type of a gcc2
14133 builtin and then its argument prototype would still apply. */
14135 /* The GNU C library defines this for functions which it implements
14136 to always fail with ENOSYS. Some functions are actually named
14137 something starting with __ and the normal name is an alias. */
14138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 char (*f) () = $ac_func;
14150 return f != $ac_func;
14155 rm -f conftest.
$ac_objext conftest
$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1
>conftest.err
14161 cat conftest.err
>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try
='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try
='test -s conftest$ac_exeext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 eval "$as_ac_var=yes"
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14182 eval "$as_ac_var=no"
14184 rm -f conftest.err conftest.
$ac_objext \
14185 conftest
$ac_exeext conftest.
$ac_ext
14187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14189 if test `eval echo '${'$as_ac_var'}'` = yes; then
14190 cat >>confdefs.h
<<_ACEOF
14191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14199 for ac_header
in sys
/un.h
14201 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14203 echo "$as_me:$LINENO: checking for $ac_header" >&5
14204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14211 # Is the header compilable?
14212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14214 cat >conftest.
$ac_ext <<_ACEOF
14217 cat confdefs.h
>>conftest.
$ac_ext
14218 cat >>conftest.
$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 $ac_includes_default
14221 #include <$ac_header>
14223 rm -f conftest.
$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>conftest.er1
14227 grep -v '^ *+' conftest.er1
>conftest.err
14229 cat conftest.err
>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try
='test -z "$ac_c_werror_flag"
14233 || test ! -s conftest.err'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try
='test -s conftest.$ac_objext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_header_compiler
=yes
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.
$ac_ext >&5
14250 ac_header_compiler
=no
14252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14254 echo "${ECHO_T}$ac_header_compiler" >&6
14256 # Is the header present?
14257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14259 cat >conftest.
$ac_ext <<_ACEOF
14262 cat confdefs.h
>>conftest.
$ac_ext
14263 cat >>conftest.
$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <$ac_header>
14267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1
>conftest.err
14272 cat conftest.err
>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } >/dev
/null
; then
14275 if test -s conftest.err
; then
14276 ac_cpp_err
=$ac_c_preproc_warn_flag
14277 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14284 if test -z "$ac_cpp_err"; then
14285 ac_header_preproc
=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.
$ac_ext >&5
14290 ac_header_preproc
=no
14292 rm -f conftest.err conftest.
$ac_ext
14293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14294 echo "${ECHO_T}$ac_header_preproc" >&6
14296 # So? What about this header?
14297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14303 ac_header_preproc
=yes
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14320 ## ------------------------------------------ ##
14321 ## Report this to the AC_PACKAGE_NAME lists. ##
14322 ## ------------------------------------------ ##
14325 sed "s/^/$as_me: WARNING: /" >&2
14328 echo "$as_me:$LINENO: checking for $ac_header" >&5
14329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 eval "$as_ac_Header=\$ac_header_preproc"
14335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14340 cat >>confdefs.h
<<_ACEOF
14341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14352 for ac_header
in stdlib.h sys
/time.h unistd.h
14354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14364 # Is the header compilable?
14365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14367 cat >conftest.
$ac_ext <<_ACEOF
14370 cat confdefs.h
>>conftest.
$ac_ext
14371 cat >>conftest.
$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 $ac_includes_default
14374 #include <$ac_header>
14376 rm -f conftest.
$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>conftest.er1
14380 grep -v '^ *+' conftest.er1
>conftest.err
14382 cat conftest.err
>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try
='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try
='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_header_compiler
=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.
$ac_ext >&5
14403 ac_header_compiler
=no
14405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14407 echo "${ECHO_T}$ac_header_compiler" >&6
14409 # Is the header present?
14410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14412 cat >conftest.
$ac_ext <<_ACEOF
14415 cat confdefs.h
>>conftest.
$ac_ext
14416 cat >>conftest.
$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 #include <$ac_header>
14420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14421 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14423 grep -v '^ *+' conftest.er1
>conftest.err
14425 cat conftest.err
>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } >/dev
/null
; then
14428 if test -s conftest.err
; then
14429 ac_cpp_err
=$ac_c_preproc_warn_flag
14430 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14437 if test -z "$ac_cpp_err"; then
14438 ac_header_preproc
=yes
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.
$ac_ext >&5
14443 ac_header_preproc
=no
14445 rm -f conftest.err conftest.
$ac_ext
14446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14447 echo "${ECHO_T}$ac_header_preproc" >&6
14449 # So? What about this header?
14450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14456 ac_header_preproc
=yes
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14473 ## ------------------------------------------ ##
14474 ## Report this to the AC_PACKAGE_NAME lists. ##
14475 ## ------------------------------------------ ##
14478 sed "s/^/$as_me: WARNING: /" >&2
14481 echo "$as_me:$LINENO: checking for $ac_header" >&5
14482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 eval "$as_ac_Header=\$ac_header_preproc"
14488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14493 cat >>confdefs.h
<<_ACEOF
14494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14502 for ac_func
in alarm
14504 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14505 echo "$as_me:$LINENO: checking for $ac_func" >&5
14506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14507 if eval "test \"\${$as_ac_var+set}\" = set"; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 cat >conftest.
$ac_ext <<_ACEOF
14513 cat confdefs.h
>>conftest.
$ac_ext
14514 cat >>conftest.
$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14518 #define $ac_func innocuous_$ac_func
14520 /* System header to define __stub macros and hopefully few prototypes,
14521 which can conflict with char $ac_func (); below.
14522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14523 <limits.h> exists even on freestanding compilers. */
14526 # include <limits.h>
14528 # include <assert.h>
14533 /* Override any gcc2 internal prototype to avoid an error. */
14538 /* We use char because int might match the return type of a gcc2
14539 builtin and then its argument prototype would still apply. */
14541 /* The GNU C library defines this for functions which it implements
14542 to always fail with ENOSYS. Some functions are actually named
14543 something starting with __ and the normal name is an alias. */
14544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14547 char (*f) () = $ac_func;
14556 return f != $ac_func;
14561 rm -f conftest.
$ac_objext conftest
$ac_exeext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14563 (eval $ac_link) 2>conftest.er1
14565 grep -v '^ *+' conftest.er1
>conftest.err
14567 cat conftest.err
>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try
='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try
='test -s conftest$ac_exeext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 eval "$as_ac_var=yes"
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.
$ac_ext >&5
14588 eval "$as_ac_var=no"
14590 rm -f conftest.err conftest.
$ac_objext \
14591 conftest
$ac_exeext conftest.
$ac_ext
14593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14595 if test `eval echo '${'$as_ac_var'}'` = yes; then
14596 cat >>confdefs.h
<<_ACEOF
14597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14603 echo "$as_me:$LINENO: checking for working mktime" >&5
14604 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14605 if test "${ac_cv_func_working_mktime+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 if test "$cross_compiling" = yes; then
14609 ac_cv_func_working_mktime
=no
14611 cat >conftest.
$ac_ext <<_ACEOF
14614 cat confdefs.h
>>conftest.
$ac_ext
14615 cat >>conftest.
$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 /* Test program from Paul Eggert and Tony Leneis. */
14618 #if TIME_WITH_SYS_TIME
14619 # include <sys/time.h>
14622 # if HAVE_SYS_TIME_H
14623 # include <sys/time.h>
14630 # include <stdlib.h>
14634 # include <unistd.h>
14638 # define alarm(X) /* empty */
14641 /* Work around redefinition to rpl_putenv by other config tests. */
14644 static time_t time_t_max;
14645 static time_t time_t_min;
14647 /* Values we'll use to set the TZ environment variable. */
14648 static char *tz_strings[] = {
14649 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14650 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14652 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14654 /* Fail if mktime fails to convert a date in the spring-forward gap.
14655 Based on a problem report from Andreas Jaeger. */
14657 spring_forward_gap ()
14659 /* glibc (up to about 1998-10-07) failed this test. */
14662 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14663 instead of "TZ=America/Vancouver" in order to detect the bug even
14664 on systems that don't support the Olson extension, or don't have the
14665 full zoneinfo tables installed. */
14666 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14675 if (mktime (&tm) == (time_t)-1)
14684 if ((lt = localtime (&now)) && mktime (lt) != now)
14692 mktime_test1 (now);
14693 mktime_test1 ((time_t) (time_t_max - now));
14694 mktime_test1 ((time_t) (time_t_min + now));
14700 /* Based on code from Ariel Faigon. */
14710 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14720 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14721 now = mktime (&tm);
14722 if (now != (time_t) -1)
14724 struct tm *lt = localtime (&now);
14726 && lt->tm_year == tm.tm_year
14727 && lt->tm_mon == tm.tm_mon
14728 && lt->tm_mday == tm.tm_mday
14729 && lt->tm_hour == tm.tm_hour
14730 && lt->tm_min == tm.tm_min
14731 && lt->tm_sec == tm.tm_sec
14732 && lt->tm_yday == tm.tm_yday
14733 && lt->tm_wday == tm.tm_wday
14734 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14735 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14746 /* This test makes some buggy mktime implementations loop.
14747 Give up after 60 seconds; a mktime slower than that
14748 isn't worth using anyway. */
14751 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14754 if ((time_t) -1 < 0)
14755 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14757 delta = time_t_max / 997; /* a suitable prime number */
14758 for (i = 0; i < N_STRINGS; i++)
14761 putenv (tz_strings[i]);
14763 for (t = 0; t <= time_t_max - delta; t += delta)
14765 mktime_test ((time_t) 1);
14766 mktime_test ((time_t) (60 * 60));
14767 mktime_test ((time_t) (60 * 60 * 24));
14769 for (j = 1; 0 < j; j *= 2)
14771 bigtime_test (j - 1);
14774 spring_forward_gap ();
14778 rm -f conftest
$ac_exeext
14779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14780 (eval $ac_link) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 ac_cv_func_working_mktime
=yes
14791 echo "$as_me: program exited with status $ac_status" >&5
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.
$ac_ext >&5
14795 ( exit $ac_status )
14796 ac_cv_func_working_mktime
=no
14798 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14801 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14802 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14803 if test $ac_cv_func_working_mktime = no
; then
14805 "mktime.$ac_objext" | \
14806 *" mktime.$ac_objext" | \
14807 "mktime.$ac_objext "* | \
14808 *" mktime.$ac_objext "* ) ;;
14809 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14814 if test "$ac_cv_func_working_mktime" = no
; then
14816 cat >>confdefs.h
<<\_ACEOF
14817 #define BROKEN_MKTIME 1
14822 ac_have_func
=no
# yes means we've found a way to get the load average.
14824 # Make sure getloadavg.c is where it belongs, at configure-time.
14825 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14826 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14827 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14828 { (exit 1); exit 1; }; }
14832 # Check for getloadavg, but be sure not to touch the cache variable.
14833 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14834 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14835 if test "${ac_cv_func_getloadavg+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 cat >conftest.
$ac_ext <<_ACEOF
14841 cat confdefs.h
>>conftest.
$ac_ext
14842 cat >>conftest.
$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14846 #define getloadavg innocuous_getloadavg
14848 /* System header to define __stub macros and hopefully few prototypes,
14849 which can conflict with char getloadavg (); below.
14850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14851 <limits.h> exists even on freestanding compilers. */
14854 # include <limits.h>
14856 # include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error. */
14866 /* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14868 char getloadavg ();
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14875 char (*f) () = getloadavg;
14884 return f != getloadavg;
14889 rm -f conftest.
$ac_objext conftest
$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>conftest.er1
14893 grep -v '^ *+' conftest.er1
>conftest.err
14895 cat conftest.err
>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try
='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try
='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_func_getloadavg
=yes
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.
$ac_ext >&5
14916 ac_cv_func_getloadavg
=no
14918 rm -f conftest.err conftest.
$ac_objext \
14919 conftest
$ac_exeext conftest.
$ac_ext
14921 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14922 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14923 if test $ac_cv_func_getloadavg = yes; then
14928 ) && ac_have_func
=yes
14930 # On HPUX9, an unprivileged user can get load averages through this function.
14932 for ac_func
in pstat_getdynamic
14934 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14935 echo "$as_me:$LINENO: checking for $ac_func" >&5
14936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14937 if eval "test \"\${$as_ac_var+set}\" = set"; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 cat >conftest.
$ac_ext <<_ACEOF
14943 cat confdefs.h
>>conftest.
$ac_ext
14944 cat >>conftest.
$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14948 #define $ac_func innocuous_$ac_func
14950 /* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char $ac_func (); below.
14952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14953 <limits.h> exists even on freestanding compilers. */
14956 # include <limits.h>
14958 # include <assert.h>
14963 /* Override any gcc2 internal prototype to avoid an error. */
14968 /* We use char because int might match the return type of a gcc2
14969 builtin and then its argument prototype would still apply. */
14971 /* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14977 char (*f) () = $ac_func;
14986 return f != $ac_func;
14991 rm -f conftest.
$ac_objext conftest
$ac_exeext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993 (eval $ac_link) 2>conftest.er1
14995 grep -v '^ *+' conftest.er1
>conftest.err
14997 cat conftest.err
>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try
='test -z "$ac_c_werror_flag"
15001 || test ! -s conftest.err'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try
='test -s conftest$ac_exeext'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 eval "$as_ac_var=yes"
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.
$ac_ext >&5
15018 eval "$as_ac_var=no"
15020 rm -f conftest.err conftest.
$ac_objext \
15021 conftest
$ac_exeext conftest.
$ac_ext
15023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15025 if test `eval echo '${'$as_ac_var'}'` = yes; then
15026 cat >>confdefs.h
<<_ACEOF
15027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15034 # Solaris has libkstat which does not require root.
15036 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15037 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15038 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 ac_check_lib_save_LIBS
=$LIBS
15042 LIBS
="-lkstat $LIBS"
15043 cat >conftest.
$ac_ext <<_ACEOF
15046 cat confdefs.h
>>conftest.
$ac_ext
15047 cat >>conftest.
$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15050 /* Override any gcc2 internal prototype to avoid an error. */
15054 /* We use char because int might match the return type of a gcc2
15055 builtin and then its argument prototype would still apply. */
15056 char kstat_open ();
15065 rm -f conftest.
$ac_objext conftest
$ac_exeext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15067 (eval $ac_link) 2>conftest.er1
15069 grep -v '^ *+' conftest.er1
>conftest.err
15071 cat conftest.err
>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try
='test -z "$ac_c_werror_flag"
15075 || test ! -s conftest.err'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try
='test -s conftest$ac_exeext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_cv_lib_kstat_kstat_open
=yes
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.
$ac_ext >&5
15092 ac_cv_lib_kstat_kstat_open
=no
15094 rm -f conftest.err conftest.
$ac_objext \
15095 conftest
$ac_exeext conftest.
$ac_ext
15096 LIBS
=$ac_check_lib_save_LIBS
15098 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15099 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15100 if test $ac_cv_lib_kstat_kstat_open = yes; then
15101 cat >>confdefs.h
<<_ACEOF
15102 #define HAVE_LIBKSTAT 1
15105 LIBS
="-lkstat $LIBS"
15109 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15111 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15112 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15113 # to get the right answer into the cache.
15114 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15115 if test $ac_have_func = no
; then
15116 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15117 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15118 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 ac_check_lib_save_LIBS
=$LIBS
15123 cat >conftest.
$ac_ext <<_ACEOF
15126 cat confdefs.h
>>conftest.
$ac_ext
15127 cat >>conftest.
$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any gcc2 internal prototype to avoid an error. */
15134 /* We use char because int might match the return type of a gcc2
15135 builtin and then its argument prototype would still apply. */
15145 rm -f conftest.
$ac_objext conftest
$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147 (eval $ac_link) 2>conftest.er1
15149 grep -v '^ *+' conftest.er1
>conftest.err
15151 cat conftest.err
>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try
='test -z "$ac_c_werror_flag"
15155 || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try
='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_lib_elf_elf_begin
=yes
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.
$ac_ext >&5
15172 ac_cv_lib_elf_elf_begin
=no
15174 rm -f conftest.err conftest.
$ac_objext \
15175 conftest
$ac_exeext conftest.
$ac_ext
15176 LIBS
=$ac_check_lib_save_LIBS
15178 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15179 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15180 if test $ac_cv_lib_elf_elf_begin = yes; then
15185 if test $ac_have_func = no
; then
15186 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15187 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15188 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_check_lib_save_LIBS
=$LIBS
15193 cat >conftest.
$ac_ext <<_ACEOF
15196 cat confdefs.h
>>conftest.
$ac_ext
15197 cat >>conftest.
$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15215 rm -f conftest.
$ac_objext conftest
$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15219 grep -v '^ *+' conftest.er1
>conftest.err
15221 cat conftest.err
>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try
='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try
='test -s conftest$ac_exeext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_cv_lib_kvm_kvm_open
=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.
$ac_ext >&5
15242 ac_cv_lib_kvm_kvm_open
=no
15244 rm -f conftest.err conftest.
$ac_objext \
15245 conftest
$ac_exeext conftest.
$ac_ext
15246 LIBS
=$ac_check_lib_save_LIBS
15248 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15249 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15250 if test $ac_cv_lib_kvm_kvm_open = yes; then
15254 # Check for the 4.4BSD definition of getloadavg.
15255 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15256 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15257 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 ac_check_lib_save_LIBS
=$LIBS
15261 LIBS
="-lutil $LIBS"
15262 cat >conftest.
$ac_ext <<_ACEOF
15265 cat confdefs.h
>>conftest.
$ac_ext
15266 cat >>conftest.
$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15269 /* Override any gcc2 internal prototype to avoid an error. */
15273 /* We use char because int might match the return type of a gcc2
15274 builtin and then its argument prototype would still apply. */
15275 char getloadavg ();
15284 rm -f conftest.
$ac_objext conftest
$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>conftest.er1
15288 grep -v '^ *+' conftest.er1
>conftest.err
15290 cat conftest.err
>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try
='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try
='test -s conftest$ac_exeext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_cv_lib_util_getloadavg
=yes
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.
$ac_ext >&5
15311 ac_cv_lib_util_getloadavg
=no
15313 rm -f conftest.err conftest.
$ac_objext \
15314 conftest
$ac_exeext conftest.
$ac_ext
15315 LIBS
=$ac_check_lib_save_LIBS
15317 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15318 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15319 if test $ac_cv_lib_util_getloadavg = yes; then
15320 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15325 if test $ac_have_func = no
; then
15326 # There is a commonly available library for RS/6000 AIX.
15327 # Since it is not a standard part of AIX, it might be installed locally.
15328 ac_getloadavg_LIBS
=$LIBS
15329 LIBS
="-L/usr/local/lib $LIBS"
15330 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15331 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15332 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 ac_check_lib_save_LIBS
=$LIBS
15336 LIBS
="-lgetloadavg $LIBS"
15337 cat >conftest.
$ac_ext <<_ACEOF
15340 cat confdefs.h
>>conftest.
$ac_ext
15341 cat >>conftest.
$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15344 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15350 char getloadavg ();
15359 rm -f conftest.
$ac_objext conftest
$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>conftest.er1
15363 grep -v '^ *+' conftest.er1
>conftest.err
15365 cat conftest.err
>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try
='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try
='test -s conftest$ac_exeext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_cv_lib_getloadavg_getloadavg
=yes
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.
$ac_ext >&5
15386 ac_cv_lib_getloadavg_getloadavg
=no
15388 rm -f conftest.err conftest.
$ac_objext \
15389 conftest
$ac_exeext conftest.
$ac_ext
15390 LIBS
=$ac_check_lib_save_LIBS
15392 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15393 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15394 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15395 LIBS
="-lgetloadavg $LIBS"
15397 LIBS
=$ac_getloadavg_LIBS
15402 # Make sure it is really in the library, if we think we found it,
15403 # otherwise set up the replacement function.
15405 for ac_func
in getloadavg
15407 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 echo "$as_me:$LINENO: checking for $ac_func" >&5
15409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15410 if eval "test \"\${$as_ac_var+set}\" = set"; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 cat >conftest.
$ac_ext <<_ACEOF
15416 cat confdefs.h
>>conftest.
$ac_ext
15417 cat >>conftest.
$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15421 #define $ac_func innocuous_$ac_func
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15429 # include <limits.h>
15431 # include <assert.h>
15436 /* Override any gcc2 internal prototype to avoid an error. */
15441 /* We use char because int might match the return type of a gcc2
15442 builtin and then its argument prototype would still apply. */
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 char (*f) () = $ac_func;
15459 return f != $ac_func;
15464 rm -f conftest.
$ac_objext conftest
$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466 (eval $ac_link) 2>conftest.er1
15468 grep -v '^ *+' conftest.er1
>conftest.err
15470 cat conftest.err
>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try
='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try
='test -s conftest$ac_exeext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 eval "$as_ac_var=yes"
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.
$ac_ext >&5
15491 eval "$as_ac_var=no"
15493 rm -f conftest.err conftest.
$ac_objext \
15494 conftest
$ac_exeext conftest.
$ac_ext
15496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15498 if test `eval echo '${'$as_ac_var'}'` = yes; then
15499 cat >>confdefs.h
<<_ACEOF
15500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15505 "getloadavg.$ac_objext" | \
15506 *" getloadavg.$ac_objext" | \
15507 "getloadavg.$ac_objext "* | \
15508 *" getloadavg.$ac_objext "* ) ;;
15509 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15513 cat >>confdefs.h
<<\_ACEOF
15514 #define C_GETLOADAVG 1
15517 # Figure out what our getloadavg.c needs.
15519 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15520 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15521 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15522 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15526 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15528 # Is the header compilable?
15529 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15530 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15531 cat >conftest.
$ac_ext <<_ACEOF
15534 cat confdefs.h
>>conftest.
$ac_ext
15535 cat >>conftest.
$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 $ac_includes_default
15538 #include <sys/dg_sys_info.h>
15540 rm -f conftest.
$ac_objext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>conftest.er1
15544 grep -v '^ *+' conftest.er1
>conftest.err
15546 cat conftest.err
>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try
='test -z "$ac_c_werror_flag"
15550 || test ! -s conftest.err'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; } &&
15556 { ac_try
='test -s conftest.$ac_objext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 ac_header_compiler
=yes
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.
$ac_ext >&5
15567 ac_header_compiler
=no
15569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15571 echo "${ECHO_T}$ac_header_compiler" >&6
15573 # Is the header present?
15574 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15575 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15576 cat >conftest.
$ac_ext <<_ACEOF
15579 cat confdefs.h
>>conftest.
$ac_ext
15580 cat >>conftest.
$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <sys/dg_sys_info.h>
15584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15585 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15587 grep -v '^ *+' conftest.er1
>conftest.err
15589 cat conftest.err
>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } >/dev
/null
; then
15592 if test -s conftest.err
; then
15593 ac_cpp_err
=$ac_c_preproc_warn_flag
15594 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15601 if test -z "$ac_cpp_err"; then
15602 ac_header_preproc
=yes
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.
$ac_ext >&5
15607 ac_header_preproc
=no
15609 rm -f conftest.err conftest.
$ac_ext
15610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15611 echo "${ECHO_T}$ac_header_preproc" >&6
15613 # So? What about this header?
15614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15616 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15617 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15619 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15620 ac_header_preproc
=yes
15623 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15624 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15626 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15628 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15630 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15632 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15634 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15637 ## ------------------------------------------ ##
15638 ## Report this to the AC_PACKAGE_NAME lists. ##
15639 ## ------------------------------------------ ##
15642 sed "s/^/$as_me: WARNING: /" >&2
15645 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15646 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15647 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15652 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15653 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15656 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15659 cat >>confdefs.h
<<\_ACEOF
15664 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15665 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15666 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 ac_check_lib_save_LIBS
=$LIBS
15671 cat >conftest.
$ac_ext <<_ACEOF
15674 cat confdefs.h
>>conftest.
$ac_ext
15675 cat >>conftest.
$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15678 /* Override any gcc2 internal prototype to avoid an error. */
15682 /* We use char because int might match the return type of a gcc2
15683 builtin and then its argument prototype would still apply. */
15684 char dg_sys_info ();
15693 rm -f conftest.
$ac_objext conftest
$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>conftest.er1
15697 grep -v '^ *+' conftest.er1
>conftest.err
15699 cat conftest.err
>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try
='test -z "$ac_c_werror_flag"
15703 || test ! -s conftest.err'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try
='test -s conftest$ac_exeext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_lib_dgc_dg_sys_info
=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.
$ac_ext >&5
15720 ac_cv_lib_dgc_dg_sys_info
=no
15722 rm -f conftest.err conftest.
$ac_objext \
15723 conftest
$ac_exeext conftest.
$ac_ext
15724 LIBS
=$ac_check_lib_save_LIBS
15726 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15727 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15728 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15729 cat >>confdefs.h
<<_ACEOF
15730 #define HAVE_LIBDGC 1
15741 if test "${ac_cv_header_locale_h+set}" = set; then
15742 echo "$as_me:$LINENO: checking for locale.h" >&5
15743 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15744 if test "${ac_cv_header_locale_h+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15748 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15750 # Is the header compilable?
15751 echo "$as_me:$LINENO: checking locale.h usability" >&5
15752 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15753 cat >conftest.
$ac_ext <<_ACEOF
15756 cat confdefs.h
>>conftest.
$ac_ext
15757 cat >>conftest.
$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 $ac_includes_default
15760 #include <locale.h>
15762 rm -f conftest.
$ac_objext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764 (eval $ac_compile) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1
>conftest.err
15768 cat conftest.err
>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try
='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try
='test -s conftest.$ac_objext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_header_compiler
=yes
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.
$ac_ext >&5
15789 ac_header_compiler
=no
15791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15793 echo "${ECHO_T}$ac_header_compiler" >&6
15795 # Is the header present?
15796 echo "$as_me:$LINENO: checking locale.h presence" >&5
15797 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15798 cat >conftest.
$ac_ext <<_ACEOF
15801 cat confdefs.h
>>conftest.
$ac_ext
15802 cat >>conftest.
$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 #include <locale.h>
15806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15809 grep -v '^ *+' conftest.er1
>conftest.err
15811 cat conftest.err
>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } >/dev
/null
; then
15814 if test -s conftest.err
; then
15815 ac_cpp_err
=$ac_c_preproc_warn_flag
15816 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15823 if test -z "$ac_cpp_err"; then
15824 ac_header_preproc
=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.
$ac_ext >&5
15829 ac_header_preproc
=no
15831 rm -f conftest.err conftest.
$ac_ext
15832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15833 echo "${ECHO_T}$ac_header_preproc" >&6
15835 # So? What about this header?
15836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15838 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15839 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15841 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15842 ac_header_preproc
=yes
15845 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15846 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15848 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15850 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15852 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15854 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15856 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15859 ## ------------------------------------------ ##
15860 ## Report this to the AC_PACKAGE_NAME lists. ##
15861 ## ------------------------------------------ ##
15864 sed "s/^/$as_me: WARNING: /" >&2
15867 echo "$as_me:$LINENO: checking for locale.h" >&5
15868 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15869 if test "${ac_cv_header_locale_h+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 ac_cv_header_locale_h
=$ac_header_preproc
15874 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15875 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15881 for ac_func
in setlocale
15883 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15884 echo "$as_me:$LINENO: checking for $ac_func" >&5
15885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_var+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 cat >conftest.
$ac_ext <<_ACEOF
15892 cat confdefs.h
>>conftest.
$ac_ext
15893 cat >>conftest.
$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15897 #define $ac_func innocuous_$ac_func
15899 /* System header to define __stub macros and hopefully few prototypes,
15900 which can conflict with char $ac_func (); below.
15901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902 <limits.h> exists even on freestanding compilers. */
15905 # include <limits.h>
15907 # include <assert.h>
15912 /* Override any gcc2 internal prototype to avoid an error. */
15917 /* We use char because int might match the return type of a gcc2
15918 builtin and then its argument prototype would still apply. */
15920 /* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
15923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15926 char (*f) () = $ac_func;
15935 return f != $ac_func;
15940 rm -f conftest.
$ac_objext conftest
$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>conftest.er1
15944 grep -v '^ *+' conftest.er1
>conftest.err
15946 cat conftest.err
>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try
='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try
='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 eval "$as_ac_var=yes"
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.
$ac_ext >&5
15967 eval "$as_ac_var=no"
15969 rm -f conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15974 if test `eval echo '${'$as_ac_var'}'` = yes; then
15975 cat >>confdefs.h
<<_ACEOF
15976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15983 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15984 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15985 # Irix 4.0.5F has the header but not the library.
15986 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15989 cat >>confdefs.h
<<\_ACEOF
15995 if test $ac_have_func = no
; then
15996 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15997 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15998 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15999 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16003 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16005 # Is the header compilable?
16006 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16007 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16008 cat >conftest.
$ac_ext <<_ACEOF
16011 cat confdefs.h
>>conftest.
$ac_ext
16012 cat >>conftest.
$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16015 #include <inq_stats/cpustats.h>
16017 rm -f conftest.
$ac_objext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16019 (eval $ac_compile) 2>conftest.er1
16021 grep -v '^ *+' conftest.er1
>conftest.err
16023 cat conftest.err
>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try
='test -z "$ac_c_werror_flag"
16027 || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try
='test -s conftest.$ac_objext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler
=yes
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.
$ac_ext >&5
16044 ac_header_compiler
=no
16046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16048 echo "${ECHO_T}$ac_header_compiler" >&6
16050 # Is the header present?
16051 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16052 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16053 cat >conftest.
$ac_ext <<_ACEOF
16056 cat confdefs.h
>>conftest.
$ac_ext
16057 cat >>conftest.
$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <inq_stats/cpustats.h>
16061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16064 grep -v '^ *+' conftest.er1
>conftest.err
16066 cat conftest.err
>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } >/dev
/null
; then
16069 if test -s conftest.err
; then
16070 ac_cpp_err
=$ac_c_preproc_warn_flag
16071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16078 if test -z "$ac_cpp_err"; then
16079 ac_header_preproc
=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.
$ac_ext >&5
16084 ac_header_preproc
=no
16086 rm -f conftest.err conftest.
$ac_ext
16087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16088 echo "${ECHO_T}$ac_header_preproc" >&6
16090 # So? What about this header?
16091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16094 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16097 ac_header_preproc
=yes
16100 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16101 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16103 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16105 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16107 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16109 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16111 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16114 ## ------------------------------------------ ##
16115 ## Report this to the AC_PACKAGE_NAME lists. ##
16116 ## ------------------------------------------ ##
16119 sed "s/^/$as_me: WARNING: /" >&2
16122 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16123 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16124 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16129 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16130 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16133 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16136 cat >>confdefs.h
<<\_ACEOF
16141 cat >>confdefs.h
<<\_ACEOF
16150 if test $ac_have_func = no
; then
16151 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16152 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16153 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16154 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16160 # Is the header compilable?
16161 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16162 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16163 cat >conftest.
$ac_ext <<_ACEOF
16166 cat confdefs.h
>>conftest.
$ac_ext
16167 cat >>conftest.
$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 $ac_includes_default
16170 #include <sys/cpustats.h>
16172 rm -f conftest.
$ac_objext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16174 (eval $ac_compile) 2>conftest.er1
16176 grep -v '^ *+' conftest.er1
>conftest.err
16178 cat conftest.err
>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try
='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try
='test -s conftest.$ac_objext'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_header_compiler
=yes
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.
$ac_ext >&5
16199 ac_header_compiler
=no
16201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16203 echo "${ECHO_T}$ac_header_compiler" >&6
16205 # Is the header present?
16206 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16207 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16208 cat >conftest.
$ac_ext <<_ACEOF
16211 cat confdefs.h
>>conftest.
$ac_ext
16212 cat >>conftest.
$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 #include <sys/cpustats.h>
16216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16219 grep -v '^ *+' conftest.er1
>conftest.err
16221 cat conftest.err
>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } >/dev
/null
; then
16224 if test -s conftest.err
; then
16225 ac_cpp_err
=$ac_c_preproc_warn_flag
16226 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16233 if test -z "$ac_cpp_err"; then
16234 ac_header_preproc
=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.
$ac_ext >&5
16239 ac_header_preproc
=no
16241 rm -f conftest.err conftest.
$ac_ext
16242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16243 echo "${ECHO_T}$ac_header_preproc" >&6
16245 # So? What about this header?
16246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16249 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16251 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16252 ac_header_preproc
=yes
16255 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16256 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16258 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16260 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16262 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16264 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16266 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16269 ## ------------------------------------------ ##
16270 ## Report this to the AC_PACKAGE_NAME lists. ##
16271 ## ------------------------------------------ ##
16274 sed "s/^/$as_me: WARNING: /" >&2
16277 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16278 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16279 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16284 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16285 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16288 if test $ac_cv_header_sys_cpustats_h = yes; then
16289 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16298 if test $ac_have_func = no
; then
16300 for ac_header
in mach
/mach.h
16302 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo "$as_me:$LINENO: checking for $ac_header" >&5
16305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 # Is the header compilable?
16313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16315 cat >conftest.
$ac_ext <<_ACEOF
16318 cat confdefs.h
>>conftest.
$ac_ext
16319 cat >>conftest.
$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16322 #include <$ac_header>
16324 rm -f conftest.
$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16328 grep -v '^ *+' conftest.er1
>conftest.err
16330 cat conftest.err
>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try
='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try
='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_header_compiler
=yes
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.
$ac_ext >&5
16351 ac_header_compiler
=no
16353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16355 echo "${ECHO_T}$ac_header_compiler" >&6
16357 # Is the header present?
16358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16360 cat >conftest.
$ac_ext <<_ACEOF
16363 cat confdefs.h
>>conftest.
$ac_ext
16364 cat >>conftest.
$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 #include <$ac_header>
16368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16371 grep -v '^ *+' conftest.er1
>conftest.err
16373 cat conftest.err
>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } >/dev
/null
; then
16376 if test -s conftest.err
; then
16377 ac_cpp_err
=$ac_c_preproc_warn_flag
16378 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16385 if test -z "$ac_cpp_err"; then
16386 ac_header_preproc
=yes
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.
$ac_ext >&5
16391 ac_header_preproc
=no
16393 rm -f conftest.err conftest.
$ac_ext
16394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16395 echo "${ECHO_T}$ac_header_preproc" >&6
16397 # So? What about this header?
16398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16404 ac_header_preproc
=yes
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16421 ## ------------------------------------------ ##
16422 ## Report this to the AC_PACKAGE_NAME lists. ##
16423 ## ------------------------------------------ ##
16426 sed "s/^/$as_me: WARNING: /" >&2
16429 echo "$as_me:$LINENO: checking for $ac_header" >&5
16430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 eval "$as_ac_Header=\$ac_header_preproc"
16436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16441 cat >>confdefs.h
<<_ACEOF
16442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16452 for ac_header
in nlist.h
16454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16456 echo "$as_me:$LINENO: checking for $ac_header" >&5
16457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16464 # Is the header compilable?
16465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16467 cat >conftest.
$ac_ext <<_ACEOF
16470 cat confdefs.h
>>conftest.
$ac_ext
16471 cat >>conftest.
$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 $ac_includes_default
16474 #include <$ac_header>
16476 rm -f conftest.
$ac_objext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16478 (eval $ac_compile) 2>conftest.er1
16480 grep -v '^ *+' conftest.er1
>conftest.err
16482 cat conftest.err
>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try
='test -z "$ac_c_werror_flag"
16486 || test ! -s conftest.err'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try
='test -s conftest.$ac_objext'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_header_compiler
=yes
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.
$ac_ext >&5
16503 ac_header_compiler
=no
16505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507 echo "${ECHO_T}$ac_header_compiler" >&6
16509 # Is the header present?
16510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16512 cat >conftest.
$ac_ext <<_ACEOF
16515 cat confdefs.h
>>conftest.
$ac_ext
16516 cat >>conftest.
$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <$ac_header>
16520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1
>conftest.err
16525 cat conftest.err
>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } >/dev
/null
; then
16528 if test -s conftest.err
; then
16529 ac_cpp_err
=$ac_c_preproc_warn_flag
16530 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16537 if test -z "$ac_cpp_err"; then
16538 ac_header_preproc
=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.
$ac_ext >&5
16543 ac_header_preproc
=no
16545 rm -f conftest.err conftest.
$ac_ext
16546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16547 echo "${ECHO_T}$ac_header_preproc" >&6
16549 # So? What about this header?
16550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16556 ac_header_preproc
=yes
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16573 ## ------------------------------------------ ##
16574 ## Report this to the AC_PACKAGE_NAME lists. ##
16575 ## ------------------------------------------ ##
16578 sed "s/^/$as_me: WARNING: /" >&2
16581 echo "$as_me:$LINENO: checking for $ac_header" >&5
16582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 eval "$as_ac_Header=\$ac_header_preproc"
16588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16593 cat >>confdefs.h
<<_ACEOF
16594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16596 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16597 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16598 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 cat >conftest.
$ac_ext <<_ACEOF
16604 cat confdefs.h
>>conftest.
$ac_ext
16605 cat >>conftest.
$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16612 static struct nlist ac_aggr;
16613 if (ac_aggr.n_un.n_name)
16619 rm -f conftest.
$ac_objext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16621 (eval $ac_compile) 2>conftest.er1
16623 grep -v '^ *+' conftest.er1
>conftest.err
16625 cat conftest.err
>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try
='test -z "$ac_c_werror_flag"
16629 || test ! -s conftest.err'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; } &&
16635 { ac_try
='test -s conftest.$ac_objext'
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_cv_member_struct_nlist_n_un_n_name
=yes
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.
$ac_ext >&5
16646 cat >conftest.
$ac_ext <<_ACEOF
16649 cat confdefs.h
>>conftest.
$ac_ext
16650 cat >>conftest.
$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16657 static struct nlist ac_aggr;
16658 if (sizeof ac_aggr.n_un.n_name)
16664 rm -f conftest.
$ac_objext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16666 (eval $ac_compile) 2>conftest.er1
16668 grep -v '^ *+' conftest.er1
>conftest.err
16670 cat conftest.err
>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try
='test -z "$ac_c_werror_flag"
16674 || test ! -s conftest.err'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } &&
16680 { ac_try
='test -s conftest.$ac_objext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_cv_member_struct_nlist_n_un_n_name
=yes
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.
$ac_ext >&5
16691 ac_cv_member_struct_nlist_n_un_n_name
=no
16693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16697 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16698 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16699 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16701 cat >>confdefs.h
<<_ACEOF
16702 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16706 cat >>confdefs.h
<<\_ACEOF
16707 #define NLIST_NAME_UNION 1
16721 # Some definitions of getloadavg require that the program be installed setgid.
16722 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16723 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16724 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 cat >conftest.
$ac_ext <<_ACEOF
16730 cat confdefs.h
>>conftest.
$ac_ext
16731 cat >>conftest.
$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16734 #ifdef LDAV_PRIVILEGED
16735 Yowza Am I SETGID yet
16738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16739 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16740 ac_cv_func_getloadavg_setgid
=yes
16742 ac_cv_func_getloadavg_setgid
=no
16747 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16748 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16749 if test $ac_cv_func_getloadavg_setgid = yes; then
16752 cat >>confdefs.h
<<\_ACEOF
16753 #define GETLOADAVG_PRIVILEGED 1
16760 if test $ac_cv_func_getloadavg_setgid = yes; then
16761 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16762 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16763 if test "${ac_cv_group_kmem+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16767 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16768 # If we got an error (system does not support symlinks), try without -L.
16769 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16770 ac_cv_group_kmem
=`echo $ac_ls_output \
16771 | sed -ne 's/[ ][ ]*/ /g;
16772 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16776 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16777 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16778 KMEM_GROUP
=$ac_cv_group_kmem
16780 if test "x$ac_save_LIBS" = x
; then
16781 GETLOADAVG_LIBS
=$LIBS
16783 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16789 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16790 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16791 if test "${ac_cv_sys_largefile_source+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 ac_cv_sys_largefile_source
=no
16796 cat >conftest.
$ac_ext <<_ACEOF
16799 cat confdefs.h
>>conftest.
$ac_ext
16800 cat >>conftest.
$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16811 rm -f conftest.
$ac_objext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16813 (eval $ac_compile) 2>conftest.er1
16815 grep -v '^ *+' conftest.er1
>conftest.err
16817 cat conftest.err
>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try
='test -z "$ac_c_werror_flag"
16821 || test ! -s conftest.err'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try
='test -s conftest.$ac_objext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.
$ac_ext >&5
16839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16840 cat >conftest.
$ac_ext <<_ACEOF
16843 cat confdefs.h
>>conftest.
$ac_ext
16844 cat >>conftest.
$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 #define _LARGEFILE_SOURCE 1
16856 rm -f conftest.
$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16860 grep -v '^ *+' conftest.er1
>conftest.err
16862 cat conftest.err
>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try
='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try
='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_cv_sys_largefile_source
=1; break
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.
$ac_ext >&5
16884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16888 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16889 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16890 if test "$ac_cv_sys_largefile_source" != no
; then
16892 cat >>confdefs.h
<<_ACEOF
16893 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16899 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16900 # in glibc 2.1.3, but that breaks too many other things.
16901 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16902 echo "$as_me:$LINENO: checking for fseeko" >&5
16903 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16904 if test "${ac_cv_func_fseeko+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 cat >conftest.
$ac_ext <<_ACEOF
16910 cat confdefs.h
>>conftest.
$ac_ext
16911 cat >>conftest.
$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16917 return fseeko && fseeko (stdin, 0, 0);
16922 rm -f conftest.
$ac_objext conftest
$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>conftest.er1
16926 grep -v '^ *+' conftest.er1
>conftest.err
16928 cat conftest.err
>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try
='test -z "$ac_c_werror_flag"
16932 || test ! -s conftest.err'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try
='test -s conftest$ac_exeext'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 ac_cv_func_fseeko
=yes
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.
$ac_ext >&5
16949 ac_cv_func_fseeko
=no
16951 rm -f conftest.err conftest.
$ac_objext \
16952 conftest
$ac_exeext conftest.
$ac_ext
16954 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16955 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16956 if test $ac_cv_func_fseeko = yes; then
16958 cat >>confdefs.h
<<\_ACEOF
16959 #define HAVE_FSEEKO 1
16965 # Configure getopt.
16966 # getopt.m4 serial 10
16968 # The getopt module assume you want GNU getopt, with getopt_long etc,
16969 # rather than vanilla POSIX getopt. This means your your code should
16970 # always include <getopt.h> for the getopt prototypes.
16982 # Prerequisites of lib/getopt*.
16989 for ac_header
in getopt.h
16991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16993 echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17001 # Is the header compilable?
17002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17004 cat >conftest.
$ac_ext <<_ACEOF
17007 cat confdefs.h
>>conftest.
$ac_ext
17008 cat >>conftest.
$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 $ac_includes_default
17011 #include <$ac_header>
17013 rm -f conftest.
$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015 (eval $ac_compile) 2>conftest.er1
17017 grep -v '^ *+' conftest.er1
>conftest.err
17019 cat conftest.err
>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try
='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try
='test -s conftest.$ac_objext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_header_compiler
=yes
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.
$ac_ext >&5
17040 ac_header_compiler
=no
17042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044 echo "${ECHO_T}$ac_header_compiler" >&6
17046 # Is the header present?
17047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17049 cat >conftest.
$ac_ext <<_ACEOF
17052 cat confdefs.h
>>conftest.
$ac_ext
17053 cat >>conftest.
$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 #include <$ac_header>
17057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17058 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17060 grep -v '^ *+' conftest.er1
>conftest.err
17062 cat conftest.err
>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } >/dev
/null
; then
17065 if test -s conftest.err
; then
17066 ac_cpp_err
=$ac_c_preproc_warn_flag
17067 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17074 if test -z "$ac_cpp_err"; then
17075 ac_header_preproc
=yes
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.
$ac_ext >&5
17080 ac_header_preproc
=no
17082 rm -f conftest.err conftest.
$ac_ext
17083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17084 echo "${ECHO_T}$ac_header_preproc" >&6
17086 # So? What about this header?
17087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17093 ac_header_preproc
=yes
17096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17110 ## ------------------------------------------ ##
17111 ## Report this to the AC_PACKAGE_NAME lists. ##
17112 ## ------------------------------------------ ##
17115 sed "s/^/$as_me: WARNING: /" >&2
17118 echo "$as_me:$LINENO: checking for $ac_header" >&5
17119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 eval "$as_ac_Header=\$ac_header_preproc"
17125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17130 cat >>confdefs.h
<<_ACEOF
17131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17140 if test -z "$GETOPT_H"; then
17142 for ac_func
in getopt_long_only
17144 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145 echo "$as_me:$LINENO: checking for $ac_func" >&5
17146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17147 if eval "test \"\${$as_ac_var+set}\" = set"; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 cat >conftest.
$ac_ext <<_ACEOF
17153 cat confdefs.h
>>conftest.
$ac_ext
17154 cat >>conftest.
$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158 #define $ac_func innocuous_$ac_func
17160 /* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char $ac_func (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17166 # include <limits.h>
17168 # include <assert.h>
17173 /* Override any gcc2 internal prototype to avoid an error. */
17178 /* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17181 /* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17187 char (*f) () = $ac_func;
17196 return f != $ac_func;
17201 rm -f conftest.
$ac_objext conftest
$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1
>conftest.err
17207 cat conftest.err
>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try
='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try
='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 eval "$as_ac_var=yes"
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17228 eval "$as_ac_var=no"
17230 rm -f conftest.err conftest.
$ac_objext \
17231 conftest
$ac_exeext conftest.
$ac_ext
17233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h
<<_ACEOF
17237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17247 if test -z "$GETOPT_H"; then
17248 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17249 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17250 if test "${ac_cv_have_decl_optreset+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 cat >conftest.
$ac_ext <<_ACEOF
17256 cat confdefs.h
>>conftest.
$ac_ext
17257 cat >>conftest.
$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <getopt.h>
17265 char *p = (char *) optreset;
17272 rm -f conftest.
$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274 (eval $ac_compile) 2>conftest.er1
17276 grep -v '^ *+' conftest.er1
>conftest.err
17278 cat conftest.err
>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try
='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try
='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_cv_have_decl_optreset
=yes
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.
$ac_ext >&5
17299 ac_cv_have_decl_optreset
=no
17301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17304 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17305 if test $ac_cv_have_decl_optreset = yes; then
17311 if test -z "$GETOPT_H"; then
17312 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17313 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17314 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 if test "$cross_compiling" = yes; then
17318 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17319 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17320 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 cat >conftest.
$ac_ext <<_ACEOF
17326 cat confdefs.h
>>conftest.
$ac_ext
17327 cat >>conftest.
$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 #include <getopt.h>
17334 #ifndef getopt_clip
17335 char *p = (char *) getopt_clip;
17342 rm -f conftest.
$ac_objext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17344 (eval $ac_compile) 2>conftest.er1
17346 grep -v '^ *+' conftest.er1
>conftest.err
17348 cat conftest.err
>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } &&
17351 { ac_try
='test -z "$ac_c_werror_flag"
17352 || test ! -s conftest.err'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try
='test -s conftest.$ac_objext'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 ac_cv_have_decl_getopt_clip
=yes
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.
$ac_ext >&5
17369 ac_cv_have_decl_getopt_clip
=no
17371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17374 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17375 if test $ac_cv_have_decl_getopt_clip = yes; then
17376 gl_cv_func_gnu_getopt
=no
17378 gl_cv_func_gnu_getopt
=yes
17382 cat >conftest.
$ac_ext <<_ACEOF
17385 cat confdefs.h
>>conftest.
$ac_ext
17386 cat >>conftest.
$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 #include <getopt.h>
17394 myargv[0] = "conftest";
17397 return getopt (2, myargv, "+a") != '?';
17403 rm -f conftest
$ac_exeext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405 (eval $ac_link) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 gl_cv_func_gnu_getopt
=yes
17416 echo "$as_me: program exited with status $ac_status" >&5
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.
$ac_ext >&5
17420 ( exit $ac_status )
17421 gl_cv_func_gnu_getopt
=no
17423 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17426 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17427 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17428 if test "$gl_cv_func_gnu_getopt" = "no"; then
17435 if test -n "$GETOPT_H"; then
17440 cat >>confdefs.h
<<\_ACEOF
17441 #define __GETOPT_PREFIX rpl_
17447 GETOPTOBJS
='getopt.o getopt1.o'
17454 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17455 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17456 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 # Use it with a single arg.
17460 cat >conftest.
$ac_ext <<_ACEOF
17463 cat confdefs.h
>>conftest.
$ac_ext
17464 cat >>conftest.
$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 $ac_includes_default
17475 rm -f conftest.
$ac_objext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17477 (eval $ac_compile) 2>conftest.er1
17479 grep -v '^ *+' conftest.er1
>conftest.err
17481 cat conftest.err
>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try
='test -z "$ac_c_werror_flag"
17485 || test ! -s conftest.err'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try
='test -s conftest.$ac_objext'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_cv_func_getpgrp_void
=no
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.
$ac_ext >&5
17502 ac_cv_func_getpgrp_void
=yes
17504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17507 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17508 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17509 if test $ac_cv_func_getpgrp_void = yes; then
17511 cat >>confdefs.h
<<\_ACEOF
17512 #define GETPGRP_VOID 1
17519 for ac_func
in strftime
17521 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17522 echo "$as_me:$LINENO: checking for $ac_func" >&5
17523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17524 if eval "test \"\${$as_ac_var+set}\" = set"; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 cat >conftest.
$ac_ext <<_ACEOF
17530 cat confdefs.h
>>conftest.
$ac_ext
17531 cat >>conftest.
$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17535 #define $ac_func innocuous_$ac_func
17537 /* System header to define __stub macros and hopefully few prototypes,
17538 which can conflict with char $ac_func (); below.
17539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17540 <limits.h> exists even on freestanding compilers. */
17543 # include <limits.h>
17545 # include <assert.h>
17550 /* Override any gcc2 internal prototype to avoid an error. */
17555 /* We use char because int might match the return type of a gcc2
17556 builtin and then its argument prototype would still apply. */
17558 /* The GNU C library defines this for functions which it implements
17559 to always fail with ENOSYS. Some functions are actually named
17560 something starting with __ and the normal name is an alias. */
17561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17564 char (*f) () = $ac_func;
17573 return f != $ac_func;
17578 rm -f conftest.
$ac_objext conftest
$ac_exeext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580 (eval $ac_link) 2>conftest.er1
17582 grep -v '^ *+' conftest.er1
>conftest.err
17584 cat conftest.err
>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try
='test -z "$ac_c_werror_flag"
17588 || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try
='test -s conftest$ac_exeext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 eval "$as_ac_var=yes"
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.
$ac_ext >&5
17605 eval "$as_ac_var=no"
17607 rm -f conftest.err conftest.
$ac_objext \
17608 conftest
$ac_exeext conftest.
$ac_ext
17610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17612 if test `eval echo '${'$as_ac_var'}'` = yes; then
17613 cat >>confdefs.h
<<_ACEOF
17614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17618 # strftime is in -lintl on SCO UNIX.
17619 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17620 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17621 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 ac_check_lib_save_LIBS
=$LIBS
17625 LIBS
="-lintl $LIBS"
17626 cat >conftest.
$ac_ext <<_ACEOF
17629 cat confdefs.h
>>conftest.
$ac_ext
17630 cat >>conftest.
$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17633 /* Override any gcc2 internal prototype to avoid an error. */
17637 /* We use char because int might match the return type of a gcc2
17638 builtin and then its argument prototype would still apply. */
17648 rm -f conftest.
$ac_objext conftest
$ac_exeext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17650 (eval $ac_link) 2>conftest.er1
17652 grep -v '^ *+' conftest.er1
>conftest.err
17654 cat conftest.err
>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try
='test -z "$ac_c_werror_flag"
17658 || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try
='test -s conftest$ac_exeext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_cv_lib_intl_strftime
=yes
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.
$ac_ext >&5
17675 ac_cv_lib_intl_strftime
=no
17677 rm -f conftest.err conftest.
$ac_objext \
17678 conftest
$ac_exeext conftest.
$ac_ext
17679 LIBS
=$ac_check_lib_save_LIBS
17681 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17682 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17683 if test $ac_cv_lib_intl_strftime = yes; then
17684 cat >>confdefs.h
<<\_ACEOF
17685 #define HAVE_STRFTIME 1
17688 LIBS
="-lintl $LIBS"
17697 for ac_func
in grantpt
17699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17700 echo "$as_me:$LINENO: checking for $ac_func" >&5
17701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17702 if eval "test \"\${$as_ac_var+set}\" = set"; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 cat >conftest.
$ac_ext <<_ACEOF
17708 cat confdefs.h
>>conftest.
$ac_ext
17709 cat >>conftest.
$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713 #define $ac_func innocuous_$ac_func
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17721 # include <limits.h>
17723 # include <assert.h>
17728 /* Override any gcc2 internal prototype to avoid an error. */
17733 /* We use char because int might match the return type of a gcc2
17734 builtin and then its argument prototype would still apply. */
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17742 char (*f) () = $ac_func;
17751 return f != $ac_func;
17756 rm -f conftest.
$ac_objext conftest
$ac_exeext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17758 (eval $ac_link) 2>conftest.er1
17760 grep -v '^ *+' conftest.er1
>conftest.err
17762 cat conftest.err
>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try
='test -z "$ac_c_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try
='test -s conftest$ac_exeext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 eval "$as_ac_var=yes"
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.
$ac_ext >&5
17783 eval "$as_ac_var=no"
17785 rm -f conftest.err conftest.
$ac_objext \
17786 conftest
$ac_exeext conftest.
$ac_ext
17788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17790 if test `eval echo '${'$as_ac_var'}'` = yes; then
17791 cat >>confdefs.h
<<_ACEOF
17792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17799 # PTY-related GNU extensions.
17801 for ac_func
in getpt
17803 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17804 echo "$as_me:$LINENO: checking for $ac_func" >&5
17805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17806 if eval "test \"\${$as_ac_var+set}\" = set"; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 cat >conftest.
$ac_ext <<_ACEOF
17812 cat confdefs.h
>>conftest.
$ac_ext
17813 cat >>conftest.
$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17817 #define $ac_func innocuous_$ac_func
17819 /* System header to define __stub macros and hopefully few prototypes,
17820 which can conflict with char $ac_func (); below.
17821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822 <limits.h> exists even on freestanding compilers. */
17825 # include <limits.h>
17827 # include <assert.h>
17832 /* Override any gcc2 internal prototype to avoid an error. */
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17840 /* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17846 char (*f) () = $ac_func;
17855 return f != $ac_func;
17860 rm -f conftest.
$ac_objext conftest
$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1
>conftest.err
17866 cat conftest.err
>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try
='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try
='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 eval "$as_ac_var=yes"
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.
$ac_ext >&5
17887 eval "$as_ac_var=no"
17889 rm -f conftest.err conftest.
$ac_objext \
17890 conftest
$ac_exeext conftest.
$ac_ext
17892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17894 if test `eval echo '${'$as_ac_var'}'` = yes; then
17895 cat >>confdefs.h
<<_ACEOF
17896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17903 # Check this now, so that we will NOT find the above functions in ncurses.
17904 # That is because we have not set up to link ncurses in lib-src.
17905 # It's better to believe a function is not available
17906 # than to expect to find it in ncurses.
17908 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17909 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17910 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 ac_check_lib_save_LIBS
=$LIBS
17914 LIBS
="-lncurses $LIBS"
17915 cat >conftest.
$ac_ext <<_ACEOF
17918 cat confdefs.h
>>conftest.
$ac_ext
17919 cat >>conftest.
$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17922 /* Override any gcc2 internal prototype to avoid an error. */
17926 /* We use char because int might match the return type of a gcc2
17927 builtin and then its argument prototype would still apply. */
17937 rm -f conftest.
$ac_objext conftest
$ac_exeext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939 (eval $ac_link) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1
>conftest.err
17943 cat conftest.err
>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try
='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try
='test -s conftest$ac_exeext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_cv_lib_ncurses_tparm
=yes
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.
$ac_ext >&5
17964 ac_cv_lib_ncurses_tparm
=no
17966 rm -f conftest.err conftest.
$ac_objext \
17967 conftest
$ac_exeext conftest.
$ac_ext
17968 LIBS
=$ac_check_lib_save_LIBS
17970 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17971 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17972 if test $ac_cv_lib_ncurses_tparm = yes; then
17973 cat >>confdefs.h
<<_ACEOF
17974 #define HAVE_LIBNCURSES 1
17977 LIBS
="-lncurses $LIBS"
17982 # Do we need the Hesiod library to provide the support routines?
17983 if test "$with_hesiod" = yes ; then
17984 # Don't set $LIBS here -- see comments above.
17986 echo "$as_me:$LINENO: checking for res_send" >&5
17987 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17988 if test "${ac_cv_func_res_send+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 cat >conftest.
$ac_ext <<_ACEOF
17994 cat confdefs.h
>>conftest.
$ac_ext
17995 cat >>conftest.
$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17999 #define res_send innocuous_res_send
18001 /* System header to define __stub macros and hopefully few prototypes,
18002 which can conflict with char res_send (); below.
18003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004 <limits.h> exists even on freestanding compilers. */
18007 # include <limits.h>
18009 # include <assert.h>
18014 /* Override any gcc2 internal prototype to avoid an error. */
18019 /* We use char because int might match the return type of a gcc2
18020 builtin and then its argument prototype would still apply. */
18022 /* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025 #if defined (__stub_res_send) || defined (__stub___res_send)
18028 char (*f) () = res_send;
18037 return f != res_send;
18042 rm -f conftest.
$ac_objext conftest
$ac_exeext
18043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044 (eval $ac_link) 2>conftest.er1
18046 grep -v '^ *+' conftest.er1
>conftest.err
18048 cat conftest.err
>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try
='test -z "$ac_c_werror_flag"
18052 || test ! -s conftest.err'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try
='test -s conftest$ac_exeext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_cv_func_res_send
=yes
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.
$ac_ext >&5
18069 ac_cv_func_res_send
=no
18071 rm -f conftest.err conftest.
$ac_objext \
18072 conftest
$ac_exeext conftest.
$ac_ext
18074 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18075 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18076 if test $ac_cv_func_res_send = yes; then
18079 echo "$as_me:$LINENO: checking for __res_send" >&5
18080 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18081 if test "${ac_cv_func___res_send+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 cat >conftest.
$ac_ext <<_ACEOF
18087 cat confdefs.h
>>conftest.
$ac_ext
18088 cat >>conftest.
$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18092 #define __res_send innocuous___res_send
18094 /* System header to define __stub macros and hopefully few prototypes,
18095 which can conflict with char __res_send (); below.
18096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18097 <limits.h> exists even on freestanding compilers. */
18100 # include <limits.h>
18102 # include <assert.h>
18107 /* Override any gcc2 internal prototype to avoid an error. */
18112 /* We use char because int might match the return type of a gcc2
18113 builtin and then its argument prototype would still apply. */
18114 char __res_send ();
18115 /* The GNU C library defines this for functions which it implements
18116 to always fail with ENOSYS. Some functions are actually named
18117 something starting with __ and the normal name is an alias. */
18118 #if defined (__stub___res_send) || defined (__stub_____res_send)
18121 char (*f) () = __res_send;
18130 return f != __res_send;
18135 rm -f conftest.
$ac_objext conftest
$ac_exeext
18136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18137 (eval $ac_link) 2>conftest.er1
18139 grep -v '^ *+' conftest.er1
>conftest.err
18141 cat conftest.err
>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } &&
18144 { ac_try
='test -z "$ac_c_werror_flag"
18145 || test ! -s conftest.err'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } &&
18151 { ac_try
='test -s conftest$ac_exeext'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 ac_cv_func___res_send
=yes
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.
$ac_ext >&5
18162 ac_cv_func___res_send
=no
18164 rm -f conftest.err conftest.
$ac_objext \
18165 conftest
$ac_exeext conftest.
$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18168 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18169 if test $ac_cv_func___res_send = yes; then
18172 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18173 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18174 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 ac_check_lib_save_LIBS
=$LIBS
18178 LIBS
="-lresolv $LIBS"
18179 cat >conftest.
$ac_ext <<_ACEOF
18182 cat confdefs.h
>>conftest.
$ac_ext
18183 cat >>conftest.
$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18186 /* Override any gcc2 internal prototype to avoid an error. */
18190 /* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18201 rm -f conftest.
$ac_objext conftest
$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>conftest.er1
18205 grep -v '^ *+' conftest.er1
>conftest.err
18207 cat conftest.err
>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try
='test -z "$ac_c_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try
='test -s conftest$ac_exeext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_cv_lib_resolv_res_send
=yes
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.
$ac_ext >&5
18228 ac_cv_lib_resolv_res_send
=no
18230 rm -f conftest.err conftest.
$ac_objext \
18231 conftest
$ac_exeext conftest.
$ac_ext
18232 LIBS
=$ac_check_lib_save_LIBS
18234 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18235 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18236 if test $ac_cv_lib_resolv_res_send = yes; then
18239 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18240 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18241 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_check_lib_save_LIBS
=$LIBS
18245 LIBS
="-lresolv $LIBS"
18246 cat >conftest.
$ac_ext <<_ACEOF
18249 cat confdefs.h
>>conftest.
$ac_ext
18250 cat >>conftest.
$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 /* Override any gcc2 internal prototype to avoid an error. */
18257 /* We use char because int might match the return type of a gcc2
18258 builtin and then its argument prototype would still apply. */
18259 char __res_send ();
18268 rm -f conftest.
$ac_objext conftest
$ac_exeext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18270 (eval $ac_link) 2>conftest.er1
18272 grep -v '^ *+' conftest.er1
>conftest.err
18274 cat conftest.err
>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try
='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try
='test -s conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 ac_cv_lib_resolv___res_send
=yes
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.
$ac_ext >&5
18295 ac_cv_lib_resolv___res_send
=no
18297 rm -f conftest.err conftest.
$ac_objext \
18298 conftest
$ac_exeext conftest.
$ac_ext
18299 LIBS
=$ac_check_lib_save_LIBS
18301 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18302 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18303 if test $ac_cv_lib_resolv___res_send = yes; then
18313 if test "$resolv" = yes ; then
18316 cat >>confdefs.h
<<\_ACEOF
18317 #define HAVE_LIBRESOLV 1
18323 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18324 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18325 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 cat >conftest.
$ac_ext <<_ACEOF
18331 cat confdefs.h
>>conftest.
$ac_ext
18332 cat >>conftest.
$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18334 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18336 #define hes_getmailhost innocuous_hes_getmailhost
18338 /* System header to define __stub macros and hopefully few prototypes,
18339 which can conflict with char hes_getmailhost (); below.
18340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341 <limits.h> exists even on freestanding compilers. */
18344 # include <limits.h>
18346 # include <assert.h>
18349 #undef hes_getmailhost
18351 /* Override any gcc2 internal prototype to avoid an error. */
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18358 char hes_getmailhost ();
18359 /* The GNU C library defines this for functions which it implements
18360 to always fail with ENOSYS. Some functions are actually named
18361 something starting with __ and the normal name is an alias. */
18362 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18365 char (*f) () = hes_getmailhost;
18374 return f != hes_getmailhost;
18379 rm -f conftest.
$ac_objext conftest
$ac_exeext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381 (eval $ac_link) 2>conftest.er1
18383 grep -v '^ *+' conftest.er1
>conftest.err
18385 cat conftest.err
>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try
='test -z "$ac_c_werror_flag"
18389 || test ! -s conftest.err'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try
='test -s conftest$ac_exeext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 ac_cv_func_hes_getmailhost
=yes
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.
$ac_ext >&5
18406 ac_cv_func_hes_getmailhost
=no
18408 rm -f conftest.err conftest.
$ac_objext \
18409 conftest
$ac_exeext conftest.
$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18412 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18413 if test $ac_cv_func_hes_getmailhost = yes; then
18416 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18417 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18418 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 ac_check_lib_save_LIBS
=$LIBS
18422 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18423 cat >conftest.
$ac_ext <<_ACEOF
18426 cat confdefs.h
>>conftest.
$ac_ext
18427 cat >>conftest.
$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18430 /* Override any gcc2 internal prototype to avoid an error. */
18434 /* We use char because int might match the return type of a gcc2
18435 builtin and then its argument prototype would still apply. */
18436 char hes_getmailhost ();
18440 hes_getmailhost ();
18445 rm -f conftest.
$ac_objext conftest
$ac_exeext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>conftest.er1
18449 grep -v '^ *+' conftest.er1
>conftest.err
18451 cat conftest.err
>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try
='test -z "$ac_c_werror_flag"
18455 || test ! -s conftest.err'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try
='test -s conftest$ac_exeext'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_lib_hesiod_hes_getmailhost
=yes
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.
$ac_ext >&5
18472 ac_cv_lib_hesiod_hes_getmailhost
=no
18474 rm -f conftest.err conftest.
$ac_objext \
18475 conftest
$ac_exeext conftest.
$ac_ext
18476 LIBS
=$ac_check_lib_save_LIBS
18478 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18479 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18480 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18482 cat >>confdefs.h
<<\_ACEOF
18483 #define HAVE_LIBHESIOD 1
18494 # These tell us which Kerberos-related libraries to use.
18495 if test "${with_kerberos+set}" = set; then
18497 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18498 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18499 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 ac_check_lib_save_LIBS
=$LIBS
18503 LIBS
="-lcom_err $LIBS"
18504 cat >conftest.
$ac_ext <<_ACEOF
18507 cat confdefs.h
>>conftest.
$ac_ext
18508 cat >>conftest.
$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18511 /* Override any gcc2 internal prototype to avoid an error. */
18515 /* We use char because int might match the return type of a gcc2
18516 builtin and then its argument prototype would still apply. */
18526 rm -f conftest.
$ac_objext conftest
$ac_exeext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18528 (eval $ac_link) 2>conftest.er1
18530 grep -v '^ *+' conftest.er1
>conftest.err
18532 cat conftest.err
>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try
='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try
='test -s conftest$ac_exeext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_cv_lib_com_err_com_err
=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.
$ac_ext >&5
18553 ac_cv_lib_com_err_com_err
=no
18555 rm -f conftest.err conftest.
$ac_objext \
18556 conftest
$ac_exeext conftest.
$ac_ext
18557 LIBS
=$ac_check_lib_save_LIBS
18559 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18560 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18561 if test $ac_cv_lib_com_err_com_err = yes; then
18562 cat >>confdefs.h
<<_ACEOF
18563 #define HAVE_LIBCOM_ERR 1
18566 LIBS
="-lcom_err $LIBS"
18571 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18572 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18573 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 ac_check_lib_save_LIBS
=$LIBS
18577 LIBS
="-lk5crypto $LIBS"
18578 cat >conftest.
$ac_ext <<_ACEOF
18581 cat confdefs.h
>>conftest.
$ac_ext
18582 cat >>conftest.
$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18585 /* Override any gcc2 internal prototype to avoid an error. */
18589 /* We use char because int might match the return type of a gcc2
18590 builtin and then its argument prototype would still apply. */
18591 char mit_des_cbc_encrypt ();
18595 mit_des_cbc_encrypt ();
18600 rm -f conftest.
$ac_objext conftest
$ac_exeext
18601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18602 (eval $ac_link) 2>conftest.er1
18604 grep -v '^ *+' conftest.er1
>conftest.err
18606 cat conftest.err
>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } &&
18609 { ac_try
='test -z "$ac_c_werror_flag"
18610 || test ! -s conftest.err'
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try
='test -s conftest$ac_exeext'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
18622 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18624 echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.
$ac_ext >&5
18627 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18629 rm -f conftest.err conftest.
$ac_objext \
18630 conftest
$ac_exeext conftest.
$ac_ext
18631 LIBS
=$ac_check_lib_save_LIBS
18633 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18634 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18635 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18636 cat >>confdefs.h
<<_ACEOF
18637 #define HAVE_LIBK5CRYPTO 1
18640 LIBS
="-lk5crypto $LIBS"
18645 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18646 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18647 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 ac_check_lib_save_LIBS
=$LIBS
18651 LIBS
="-lcrypto $LIBS"
18652 cat >conftest.
$ac_ext <<_ACEOF
18655 cat confdefs.h
>>conftest.
$ac_ext
18656 cat >>conftest.
$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any gcc2 internal prototype to avoid an error. */
18663 /* We use char because int might match the return type of a gcc2
18664 builtin and then its argument prototype would still apply. */
18665 char mit_des_cbc_encrypt ();
18669 mit_des_cbc_encrypt ();
18674 rm -f conftest.
$ac_objext conftest
$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676 (eval $ac_link) 2>conftest.er1
18678 grep -v '^ *+' conftest.er1
>conftest.err
18680 cat conftest.err
>&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try
='test -z "$ac_c_werror_flag"
18684 || test ! -s conftest.err'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try
='test -s conftest$ac_exeext'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.
$ac_ext >&5
18701 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18703 rm -f conftest.err conftest.
$ac_objext \
18704 conftest
$ac_exeext conftest.
$ac_ext
18705 LIBS
=$ac_check_lib_save_LIBS
18707 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18708 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18709 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18710 cat >>confdefs.h
<<_ACEOF
18711 #define HAVE_LIBCRYPTO 1
18714 LIBS
="-lcrypto $LIBS"
18719 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18720 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18721 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18724 ac_check_lib_save_LIBS
=$LIBS
18725 LIBS
="-lkrb5 $LIBS"
18726 cat >conftest.
$ac_ext <<_ACEOF
18729 cat confdefs.h
>>conftest.
$ac_ext
18730 cat >>conftest.
$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18733 /* Override any gcc2 internal prototype to avoid an error. */
18737 /* We use char because int might match the return type of a gcc2
18738 builtin and then its argument prototype would still apply. */
18739 char krb5_init_context ();
18743 krb5_init_context ();
18748 rm -f conftest.
$ac_objext conftest
$ac_exeext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750 (eval $ac_link) 2>conftest.er1
18752 grep -v '^ *+' conftest.er1
>conftest.err
18754 cat conftest.err
>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try
='test -z "$ac_c_werror_flag"
18758 || test ! -s conftest.err'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try
='test -s conftest$ac_exeext'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_cv_lib_krb5_krb5_init_context
=yes
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.
$ac_ext >&5
18775 ac_cv_lib_krb5_krb5_init_context
=no
18777 rm -f conftest.err conftest.
$ac_objext \
18778 conftest
$ac_exeext conftest.
$ac_ext
18779 LIBS
=$ac_check_lib_save_LIBS
18781 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18782 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18783 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18784 cat >>confdefs.h
<<_ACEOF
18785 #define HAVE_LIBKRB5 1
18788 LIBS
="-lkrb5 $LIBS"
18792 if test "${with_kerberos5+set}" != set; then
18794 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18795 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18796 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 ac_check_lib_save_LIBS
=$LIBS
18800 LIBS
="-ldes425 $LIBS"
18801 cat >conftest.
$ac_ext <<_ACEOF
18804 cat confdefs.h
>>conftest.
$ac_ext
18805 cat >>conftest.
$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18808 /* Override any gcc2 internal prototype to avoid an error. */
18812 /* We use char because int might match the return type of a gcc2
18813 builtin and then its argument prototype would still apply. */
18814 char des_cbc_encrypt ();
18818 des_cbc_encrypt ();
18823 rm -f conftest.
$ac_objext conftest
$ac_exeext
18824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18825 (eval $ac_link) 2>conftest.er1
18827 grep -v '^ *+' conftest.er1
>conftest.err
18829 cat conftest.err
>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try
='test -z "$ac_c_werror_flag"
18833 || test ! -s conftest.err'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; } &&
18839 { ac_try
='test -s conftest$ac_exeext'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_cv_lib_des425_des_cbc_encrypt
=yes
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.
$ac_ext >&5
18850 ac_cv_lib_des425_des_cbc_encrypt
=no
18852 rm -f conftest.err conftest.
$ac_objext \
18853 conftest
$ac_exeext conftest.
$ac_ext
18854 LIBS
=$ac_check_lib_save_LIBS
18856 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18857 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18858 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18859 cat >>confdefs.h
<<_ACEOF
18860 #define HAVE_LIBDES425 1
18863 LIBS
="-ldes425 $LIBS"
18867 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18868 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18869 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_check_lib_save_LIBS
=$LIBS
18874 cat >conftest.
$ac_ext <<_ACEOF
18877 cat confdefs.h
>>conftest.
$ac_ext
18878 cat >>conftest.
$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any gcc2 internal prototype to avoid an error. */
18885 /* We use char because int might match the return type of a gcc2
18886 builtin and then its argument prototype would still apply. */
18887 char des_cbc_encrypt ();
18891 des_cbc_encrypt ();
18896 rm -f conftest.
$ac_objext conftest
$ac_exeext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18898 (eval $ac_link) 2>conftest.er1
18900 grep -v '^ *+' conftest.er1
>conftest.err
18902 cat conftest.err
>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try
='test -z "$ac_c_werror_flag"
18906 || test ! -s conftest.err'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try
='test -s conftest$ac_exeext'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 ac_cv_lib_des_des_cbc_encrypt
=yes
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.
$ac_ext >&5
18923 ac_cv_lib_des_des_cbc_encrypt
=no
18925 rm -f conftest.err conftest.
$ac_objext \
18926 conftest
$ac_exeext conftest.
$ac_ext
18927 LIBS
=$ac_check_lib_save_LIBS
18929 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18930 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18931 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18932 cat >>confdefs.h
<<_ACEOF
18933 #define HAVE_LIBDES 1
18943 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18944 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18945 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 ac_check_lib_save_LIBS
=$LIBS
18949 LIBS
="-lkrb4 $LIBS"
18950 cat >conftest.
$ac_ext <<_ACEOF
18953 cat confdefs.h
>>conftest.
$ac_ext
18954 cat >>conftest.
$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18957 /* Override any gcc2 internal prototype to avoid an error. */
18961 /* We use char because int might match the return type of a gcc2
18962 builtin and then its argument prototype would still apply. */
18963 char krb_get_cred ();
18972 rm -f conftest.
$ac_objext conftest
$ac_exeext
18973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18974 (eval $ac_link) 2>conftest.er1
18976 grep -v '^ *+' conftest.er1
>conftest.err
18978 cat conftest.err
>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try
='test -z "$ac_c_werror_flag"
18982 || test ! -s conftest.err'
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try
='test -s conftest$ac_exeext'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_cv_lib_krb4_krb_get_cred
=yes
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.
$ac_ext >&5
18999 ac_cv_lib_krb4_krb_get_cred
=no
19001 rm -f conftest.err conftest.
$ac_objext \
19002 conftest
$ac_exeext conftest.
$ac_ext
19003 LIBS
=$ac_check_lib_save_LIBS
19005 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19006 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19007 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19008 cat >>confdefs.h
<<_ACEOF
19009 #define HAVE_LIBKRB4 1
19012 LIBS
="-lkrb4 $LIBS"
19016 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19017 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19018 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS
=$LIBS
19023 cat >conftest.
$ac_ext <<_ACEOF
19026 cat confdefs.h
>>conftest.
$ac_ext
19027 cat >>conftest.
$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any gcc2 internal prototype to avoid an error. */
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19036 char krb_get_cred ();
19045 rm -f conftest.
$ac_objext conftest
$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047 (eval $ac_link) 2>conftest.er1
19049 grep -v '^ *+' conftest.er1
>conftest.err
19051 cat conftest.err
>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try
='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try
='test -s conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_krb_krb_get_cred
=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.
$ac_ext >&5
19072 ac_cv_lib_krb_krb_get_cred
=no
19074 rm -f conftest.err conftest.
$ac_objext \
19075 conftest
$ac_exeext conftest.
$ac_ext
19076 LIBS
=$ac_check_lib_save_LIBS
19078 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19079 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19080 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19081 cat >>confdefs.h
<<_ACEOF
19082 #define HAVE_LIBKRB 1
19093 if test "${with_kerberos5+set}" = set; then
19095 for ac_header
in krb5.h
19097 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19099 echo "$as_me:$LINENO: checking for $ac_header" >&5
19100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19107 # Is the header compilable?
19108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19110 cat >conftest.
$ac_ext <<_ACEOF
19113 cat confdefs.h
>>conftest.
$ac_ext
19114 cat >>conftest.
$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 $ac_includes_default
19117 #include <$ac_header>
19119 rm -f conftest.
$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19123 grep -v '^ *+' conftest.er1
>conftest.err
19125 cat conftest.err
>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try
='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try
='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_header_compiler
=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.
$ac_ext >&5
19146 ac_header_compiler
=no
19148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19150 echo "${ECHO_T}$ac_header_compiler" >&6
19152 # Is the header present?
19153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19155 cat >conftest.
$ac_ext <<_ACEOF
19158 cat confdefs.h
>>conftest.
$ac_ext
19159 cat >>conftest.
$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <$ac_header>
19163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19166 grep -v '^ *+' conftest.er1
>conftest.err
19168 cat conftest.err
>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } >/dev
/null
; then
19171 if test -s conftest.err
; then
19172 ac_cpp_err
=$ac_c_preproc_warn_flag
19173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19180 if test -z "$ac_cpp_err"; then
19181 ac_header_preproc
=yes
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.
$ac_ext >&5
19186 ac_header_preproc
=no
19188 rm -f conftest.err conftest.
$ac_ext
19189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19190 echo "${ECHO_T}$ac_header_preproc" >&6
19192 # So? What about this header?
19193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19199 ac_header_preproc
=yes
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19216 ## ------------------------------------------ ##
19217 ## Report this to the AC_PACKAGE_NAME lists. ##
19218 ## ------------------------------------------ ##
19221 sed "s/^/$as_me: WARNING: /" >&2
19224 echo "$as_me:$LINENO: checking for $ac_header" >&5
19225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 eval "$as_ac_Header=\$ac_header_preproc"
19231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19236 cat >>confdefs.h
<<_ACEOF
19237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246 for ac_header
in des.h
19248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19250 echo "$as_me:$LINENO: checking for $ac_header" >&5
19251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19258 # Is the header compilable?
19259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19261 cat >conftest.
$ac_ext <<_ACEOF
19264 cat confdefs.h
>>conftest.
$ac_ext
19265 cat >>conftest.
$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 $ac_includes_default
19268 #include <$ac_header>
19270 rm -f conftest.
$ac_objext
19271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19272 (eval $ac_compile) 2>conftest.er1
19274 grep -v '^ *+' conftest.er1
>conftest.err
19276 cat conftest.err
>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try
='test -z "$ac_c_werror_flag"
19280 || test ! -s conftest.err'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try
='test -s conftest.$ac_objext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_header_compiler
=yes
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19297 ac_header_compiler
=no
19299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19301 echo "${ECHO_T}$ac_header_compiler" >&6
19303 # Is the header present?
19304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19306 cat >conftest.
$ac_ext <<_ACEOF
19309 cat confdefs.h
>>conftest.
$ac_ext
19310 cat >>conftest.
$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <$ac_header>
19314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19317 grep -v '^ *+' conftest.er1
>conftest.err
19319 cat conftest.err
>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } >/dev
/null
; then
19322 if test -s conftest.err
; then
19323 ac_cpp_err
=$ac_c_preproc_warn_flag
19324 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19331 if test -z "$ac_cpp_err"; then
19332 ac_header_preproc
=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.
$ac_ext >&5
19337 ac_header_preproc
=no
19339 rm -f conftest.err conftest.
$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19341 echo "${ECHO_T}$ac_header_preproc" >&6
19343 # So? What about this header?
19344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19350 ac_header_preproc
=yes
19353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19367 ## ------------------------------------------ ##
19368 ## Report this to the AC_PACKAGE_NAME lists. ##
19369 ## ------------------------------------------ ##
19372 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
19382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19387 cat >>confdefs.h
<<_ACEOF
19388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19393 for ac_header
in kerberosIV
/des.h
19395 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19397 echo "$as_me:$LINENO: checking for $ac_header" >&5
19398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19405 # Is the header compilable?
19406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19408 cat >conftest.
$ac_ext <<_ACEOF
19411 cat confdefs.h
>>conftest.
$ac_ext
19412 cat >>conftest.
$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 $ac_includes_default
19415 #include <$ac_header>
19417 rm -f conftest.
$ac_objext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19419 (eval $ac_compile) 2>conftest.er1
19421 grep -v '^ *+' conftest.er1
>conftest.err
19423 cat conftest.err
>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try
='test -z "$ac_c_werror_flag"
19427 || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try
='test -s conftest.$ac_objext'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_header_compiler
=yes
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.
$ac_ext >&5
19444 ac_header_compiler
=no
19446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19448 echo "${ECHO_T}$ac_header_compiler" >&6
19450 # Is the header present?
19451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19453 cat >conftest.
$ac_ext <<_ACEOF
19456 cat confdefs.h
>>conftest.
$ac_ext
19457 cat >>conftest.
$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <$ac_header>
19461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19464 grep -v '^ *+' conftest.er1
>conftest.err
19466 cat conftest.err
>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } >/dev
/null
; then
19469 if test -s conftest.err
; then
19470 ac_cpp_err
=$ac_c_preproc_warn_flag
19471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19478 if test -z "$ac_cpp_err"; then
19479 ac_header_preproc
=yes
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.
$ac_ext >&5
19484 ac_header_preproc
=no
19486 rm -f conftest.err conftest.
$ac_ext
19487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19488 echo "${ECHO_T}$ac_header_preproc" >&6
19490 # So? What about this header?
19491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19497 ac_header_preproc
=yes
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19514 ## ------------------------------------------ ##
19515 ## Report this to the AC_PACKAGE_NAME lists. ##
19516 ## ------------------------------------------ ##
19519 sed "s/^/$as_me: WARNING: /" >&2
19522 echo "$as_me:$LINENO: checking for $ac_header" >&5
19523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 eval "$as_ac_Header=\$ac_header_preproc"
19529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19534 cat >>confdefs.h
<<_ACEOF
19535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19540 for ac_header
in kerberos
/des.h
19542 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19544 echo "$as_me:$LINENO: checking for $ac_header" >&5
19545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19552 # Is the header compilable?
19553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19555 cat >conftest.
$ac_ext <<_ACEOF
19558 cat confdefs.h
>>conftest.
$ac_ext
19559 cat >>conftest.
$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 $ac_includes_default
19562 #include <$ac_header>
19564 rm -f conftest.
$ac_objext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566 (eval $ac_compile) 2>conftest.er1
19568 grep -v '^ *+' conftest.er1
>conftest.err
19570 cat conftest.err
>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try
='test -z "$ac_c_werror_flag"
19574 || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try
='test -s conftest.$ac_objext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_header_compiler
=yes
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.
$ac_ext >&5
19591 ac_header_compiler
=no
19593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6
19597 # Is the header present?
19598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19600 cat >conftest.
$ac_ext <<_ACEOF
19603 cat confdefs.h
>>conftest.
$ac_ext
19604 cat >>conftest.
$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 #include <$ac_header>
19608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19611 grep -v '^ *+' conftest.er1
>conftest.err
19613 cat conftest.err
>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } >/dev
/null
; then
19616 if test -s conftest.err
; then
19617 ac_cpp_err
=$ac_c_preproc_warn_flag
19618 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19625 if test -z "$ac_cpp_err"; then
19626 ac_header_preproc
=yes
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.
$ac_ext >&5
19631 ac_header_preproc
=no
19633 rm -f conftest.err conftest.
$ac_ext
19634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19635 echo "${ECHO_T}$ac_header_preproc" >&6
19637 # So? What about this header?
19638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19644 ac_header_preproc
=yes
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19661 ## ------------------------------------------ ##
19662 ## Report this to the AC_PACKAGE_NAME lists. ##
19663 ## ------------------------------------------ ##
19666 sed "s/^/$as_me: WARNING: /" >&2
19669 echo "$as_me:$LINENO: checking for $ac_header" >&5
19670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 eval "$as_ac_Header=\$ac_header_preproc"
19676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19681 cat >>confdefs.h
<<_ACEOF
19682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19698 for ac_header
in krb.h
19700 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19702 echo "$as_me:$LINENO: checking for $ac_header" >&5
19703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19710 # Is the header compilable?
19711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19713 cat >conftest.
$ac_ext <<_ACEOF
19716 cat confdefs.h
>>conftest.
$ac_ext
19717 cat >>conftest.
$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 $ac_includes_default
19720 #include <$ac_header>
19722 rm -f conftest.
$ac_objext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>conftest.er1
19726 grep -v '^ *+' conftest.er1
>conftest.err
19728 cat conftest.err
>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } &&
19731 { ac_try
='test -z "$ac_c_werror_flag"
19732 || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try
='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_header_compiler
=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.
$ac_ext >&5
19749 ac_header_compiler
=no
19751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19753 echo "${ECHO_T}$ac_header_compiler" >&6
19755 # Is the header present?
19756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19758 cat >conftest.
$ac_ext <<_ACEOF
19761 cat confdefs.h
>>conftest.
$ac_ext
19762 cat >>conftest.
$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 #include <$ac_header>
19766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19767 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19769 grep -v '^ *+' conftest.er1
>conftest.err
19771 cat conftest.err
>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } >/dev
/null
; then
19774 if test -s conftest.err
; then
19775 ac_cpp_err
=$ac_c_preproc_warn_flag
19776 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19783 if test -z "$ac_cpp_err"; then
19784 ac_header_preproc
=yes
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.
$ac_ext >&5
19789 ac_header_preproc
=no
19791 rm -f conftest.err conftest.
$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19793 echo "${ECHO_T}$ac_header_preproc" >&6
19795 # So? What about this header?
19796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19802 ac_header_preproc
=yes
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19819 ## ------------------------------------------ ##
19820 ## Report this to the AC_PACKAGE_NAME lists. ##
19821 ## ------------------------------------------ ##
19824 sed "s/^/$as_me: WARNING: /" >&2
19827 echo "$as_me:$LINENO: checking for $ac_header" >&5
19828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 eval "$as_ac_Header=\$ac_header_preproc"
19834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19839 cat >>confdefs.h
<<_ACEOF
19840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19845 for ac_header
in kerberosIV
/krb.h
19847 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849 echo "$as_me:$LINENO: checking for $ac_header" >&5
19850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857 # Is the header compilable?
19858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19860 cat >conftest.
$ac_ext <<_ACEOF
19863 cat confdefs.h
>>conftest.
$ac_ext
19864 cat >>conftest.
$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 $ac_includes_default
19867 #include <$ac_header>
19869 rm -f conftest.
$ac_objext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871 (eval $ac_compile) 2>conftest.er1
19873 grep -v '^ *+' conftest.er1
>conftest.err
19875 cat conftest.err
>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try
='test -z "$ac_c_werror_flag"
19879 || test ! -s conftest.err'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try
='test -s conftest.$ac_objext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_header_compiler
=yes
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.
$ac_ext >&5
19896 ac_header_compiler
=no
19898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19900 echo "${ECHO_T}$ac_header_compiler" >&6
19902 # Is the header present?
19903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19905 cat >conftest.
$ac_ext <<_ACEOF
19908 cat confdefs.h
>>conftest.
$ac_ext
19909 cat >>conftest.
$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #include <$ac_header>
19913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19916 grep -v '^ *+' conftest.er1
>conftest.err
19918 cat conftest.err
>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } >/dev
/null
; then
19921 if test -s conftest.err
; then
19922 ac_cpp_err
=$ac_c_preproc_warn_flag
19923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19930 if test -z "$ac_cpp_err"; then
19931 ac_header_preproc
=yes
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.
$ac_ext >&5
19936 ac_header_preproc
=no
19938 rm -f conftest.err conftest.
$ac_ext
19939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19940 echo "${ECHO_T}$ac_header_preproc" >&6
19942 # So? What about this header?
19943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19949 ac_header_preproc
=yes
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19966 ## ------------------------------------------ ##
19967 ## Report this to the AC_PACKAGE_NAME lists. ##
19968 ## ------------------------------------------ ##
19971 sed "s/^/$as_me: WARNING: /" >&2
19974 echo "$as_me:$LINENO: checking for $ac_header" >&5
19975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 eval "$as_ac_Header=\$ac_header_preproc"
19981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19986 cat >>confdefs.h
<<_ACEOF
19987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19992 for ac_header
in kerberos
/krb.h
19994 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19996 echo "$as_me:$LINENO: checking for $ac_header" >&5
19997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20004 # Is the header compilable?
20005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20007 cat >conftest.
$ac_ext <<_ACEOF
20010 cat confdefs.h
>>conftest.
$ac_ext
20011 cat >>conftest.
$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 $ac_includes_default
20014 #include <$ac_header>
20016 rm -f conftest.
$ac_objext
20017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20018 (eval $ac_compile) 2>conftest.er1
20020 grep -v '^ *+' conftest.er1
>conftest.err
20022 cat conftest.err
>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try
='test -z "$ac_c_werror_flag"
20026 || test ! -s conftest.err'
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; } &&
20032 { ac_try
='test -s conftest.$ac_objext'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; }; then
20038 ac_header_compiler
=yes
20040 echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.
$ac_ext >&5
20043 ac_header_compiler
=no
20045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20047 echo "${ECHO_T}$ac_header_compiler" >&6
20049 # Is the header present?
20050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20052 cat >conftest.
$ac_ext <<_ACEOF
20055 cat confdefs.h
>>conftest.
$ac_ext
20056 cat >>conftest.
$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 #include <$ac_header>
20060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20063 grep -v '^ *+' conftest.er1
>conftest.err
20065 cat conftest.err
>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } >/dev
/null
; then
20068 if test -s conftest.err
; then
20069 ac_cpp_err
=$ac_c_preproc_warn_flag
20070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20077 if test -z "$ac_cpp_err"; then
20078 ac_header_preproc
=yes
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.
$ac_ext >&5
20083 ac_header_preproc
=no
20085 rm -f conftest.err conftest.
$ac_ext
20086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20087 echo "${ECHO_T}$ac_header_preproc" >&6
20089 # So? What about this header?
20090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20096 ac_header_preproc
=yes
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20113 ## ------------------------------------------ ##
20114 ## Report this to the AC_PACKAGE_NAME lists. ##
20115 ## ------------------------------------------ ##
20118 sed "s/^/$as_me: WARNING: /" >&2
20121 echo "$as_me:$LINENO: checking for $ac_header" >&5
20122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 eval "$as_ac_Header=\$ac_header_preproc"
20128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20133 cat >>confdefs.h
<<_ACEOF
20134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20151 for ac_header
in com_err.h
20153 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20155 echo "$as_me:$LINENO: checking for $ac_header" >&5
20156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20163 # Is the header compilable?
20164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20166 cat >conftest.
$ac_ext <<_ACEOF
20169 cat confdefs.h
>>conftest.
$ac_ext
20170 cat >>conftest.
$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20173 #include <$ac_header>
20175 rm -f conftest.
$ac_objext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177 (eval $ac_compile) 2>conftest.er1
20179 grep -v '^ *+' conftest.er1
>conftest.err
20181 cat conftest.err
>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try
='test -z "$ac_c_werror_flag"
20185 || test ! -s conftest.err'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try
='test -s conftest.$ac_objext'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 ac_header_compiler
=yes
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.
$ac_ext >&5
20202 ac_header_compiler
=no
20204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20206 echo "${ECHO_T}$ac_header_compiler" >&6
20208 # Is the header present?
20209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20211 cat >conftest.
$ac_ext <<_ACEOF
20214 cat confdefs.h
>>conftest.
$ac_ext
20215 cat >>conftest.
$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 #include <$ac_header>
20219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20220 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20222 grep -v '^ *+' conftest.er1
>conftest.err
20224 cat conftest.err
>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } >/dev
/null
; then
20227 if test -s conftest.err
; then
20228 ac_cpp_err
=$ac_c_preproc_warn_flag
20229 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20236 if test -z "$ac_cpp_err"; then
20237 ac_header_preproc
=yes
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.
$ac_ext >&5
20242 ac_header_preproc
=no
20244 rm -f conftest.err conftest.
$ac_ext
20245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20246 echo "${ECHO_T}$ac_header_preproc" >&6
20248 # So? What about this header?
20249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20255 ac_header_preproc
=yes
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20272 ## ------------------------------------------ ##
20273 ## Report this to the AC_PACKAGE_NAME lists. ##
20274 ## ------------------------------------------ ##
20277 sed "s/^/$as_me: WARNING: /" >&2
20280 echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 eval "$as_ac_Header=\$ac_header_preproc"
20287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20292 cat >>confdefs.h
<<_ACEOF
20293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20302 # Solaris requires -lintl if you want strerror (which calls dgettext)
20303 # to return localized messages.
20305 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20306 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20307 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 ac_check_lib_save_LIBS
=$LIBS
20311 LIBS
="-lintl $LIBS"
20312 cat >conftest.
$ac_ext <<_ACEOF
20315 cat confdefs.h
>>conftest.
$ac_ext
20316 cat >>conftest.
$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20334 rm -f conftest.
$ac_objext conftest
$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>conftest.er1
20338 grep -v '^ *+' conftest.er1
>conftest.err
20340 cat conftest.err
>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try
='test -z "$ac_c_werror_flag"
20344 || test ! -s conftest.err'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try
='test -s conftest$ac_exeext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_lib_intl_dgettext
=yes
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.
$ac_ext >&5
20361 ac_cv_lib_intl_dgettext
=no
20363 rm -f conftest.err conftest.
$ac_objext \
20364 conftest
$ac_exeext conftest.
$ac_ext
20365 LIBS
=$ac_check_lib_save_LIBS
20367 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20368 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20369 if test $ac_cv_lib_intl_dgettext = yes; then
20370 cat >>confdefs.h
<<_ACEOF
20371 #define HAVE_LIBINTL 1
20374 LIBS
="-lintl $LIBS"
20379 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20380 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20381 if test "${emacs_cv_localtime_cache+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 if test x
$ac_cv_func_tzset = xyes
; then
20385 if test "$cross_compiling" = yes; then
20386 # If we have tzset, assume the worst when cross-compiling.
20387 emacs_cv_localtime_cache
=yes
20389 cat >conftest.
$ac_ext <<_ACEOF
20392 cat confdefs.h
>>conftest.
$ac_ext
20393 cat >>conftest.
$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20396 extern char **environ;
20400 for (to = from = environ; (*to = *from); from++)
20401 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20404 char TZ_GMT0[] = "TZ=GMT0";
20405 char TZ_PST8[] = "TZ=PST8";
20408 time_t now = time ((time_t *) 0);
20409 int hour_GMT0, hour_unset;
20410 if (putenv (TZ_GMT0) != 0)
20412 hour_GMT0 = localtime (&now)->tm_hour;
20414 hour_unset = localtime (&now)->tm_hour;
20415 if (putenv (TZ_PST8) != 0)
20417 if (localtime (&now)->tm_hour == hour_GMT0)
20420 if (localtime (&now)->tm_hour != hour_unset)
20425 rm -f conftest
$ac_exeext
20426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20427 (eval $ac_link) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 emacs_cv_localtime_cache
=no
20438 echo "$as_me: program exited with status $ac_status" >&5
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.
$ac_ext >&5
20442 ( exit $ac_status )
20443 emacs_cv_localtime_cache
=yes
20445 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20448 # If we lack tzset, report that localtime does not cache TZ,
20449 # since we can't invalidate the cache if we don't have tzset.
20450 emacs_cv_localtime_cache
=no
20453 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20454 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20455 if test $emacs_cv_localtime_cache = yes; then
20457 cat >>confdefs.h
<<\_ACEOF
20458 #define LOCALTIME_CACHE 1
20463 if test "x$HAVE_TIMEVAL" = xyes
; then
20465 for ac_func
in gettimeofday
20467 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20468 echo "$as_me:$LINENO: checking for $ac_func" >&5
20469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20470 if eval "test \"\${$as_ac_var+set}\" = set"; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 cat >conftest.
$ac_ext <<_ACEOF
20476 cat confdefs.h
>>conftest.
$ac_ext
20477 cat >>conftest.
$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20481 #define $ac_func innocuous_$ac_func
20483 /* System header to define __stub macros and hopefully few prototypes,
20484 which can conflict with char $ac_func (); below.
20485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20486 <limits.h> exists even on freestanding compilers. */
20489 # include <limits.h>
20491 # include <assert.h>
20496 /* Override any gcc2 internal prototype to avoid an error. */
20501 /* We use char because int might match the return type of a gcc2
20502 builtin and then its argument prototype would still apply. */
20504 /* The GNU C library defines this for functions which it implements
20505 to always fail with ENOSYS. Some functions are actually named
20506 something starting with __ and the normal name is an alias. */
20507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20510 char (*f) () = $ac_func;
20519 return f != $ac_func;
20524 rm -f conftest.
$ac_objext conftest
$ac_exeext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20526 (eval $ac_link) 2>conftest.er1
20528 grep -v '^ *+' conftest.er1
>conftest.err
20530 cat conftest.err
>&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try
='test -z "$ac_c_werror_flag"
20534 || test ! -s conftest.err'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try
='test -s conftest$ac_exeext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 eval "$as_ac_var=yes"
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.
$ac_ext >&5
20551 eval "$as_ac_var=no"
20553 rm -f conftest.err conftest.
$ac_objext \
20554 conftest
$ac_exeext conftest.
$ac_ext
20556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20558 if test `eval echo '${'$as_ac_var'}'` = yes; then
20559 cat >>confdefs.h
<<_ACEOF
20560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20566 if test $ac_cv_func_gettimeofday = yes; then
20567 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20568 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20569 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 cat >conftest.
$ac_ext <<_ACEOF
20575 cat confdefs.h
>>conftest.
$ac_ext
20576 cat >>conftest.
$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20579 #ifdef TIME_WITH_SYS_TIME
20580 #include <sys/time.h>
20583 #ifdef HAVE_SYS_TIME_H
20584 #include <sys/time.h>
20592 struct timeval time;
20593 gettimeofday (&time, 0);
20598 rm -f conftest.
$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>conftest.er1
20602 grep -v '^ *+' conftest.er1
>conftest.err
20604 cat conftest.err
>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try
='test -z "$ac_c_werror_flag"
20608 || test ! -s conftest.err'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; } &&
20614 { ac_try
='test -s conftest.$ac_objext'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 emacs_cv_gettimeofday_two_arguments
=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.
$ac_ext >&5
20625 emacs_cv_gettimeofday_two_arguments
=no
20627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20629 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20630 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20631 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20633 cat >>confdefs.h
<<\_ACEOF
20634 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20641 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20642 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20643 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20644 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 cat >conftest.
$ac_ext <<_ACEOF
20650 cat confdefs.h
>>conftest.
$ac_ext
20651 cat >>conftest.
$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <sys/types.h>
20654 #include <$ac_cv_struct_tm>
20660 static struct tm ac_aggr;
20661 if (ac_aggr.tm_zone)
20667 rm -f conftest.
$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20671 grep -v '^ *+' conftest.er1
>conftest.err
20673 cat conftest.err
>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try
='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try
='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_member_struct_tm_tm_zone
=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.
$ac_ext >&5
20694 cat >conftest.
$ac_ext <<_ACEOF
20697 cat confdefs.h
>>conftest.
$ac_ext
20698 cat >>conftest.
$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 #include <sys/types.h>
20701 #include <$ac_cv_struct_tm>
20707 static struct tm ac_aggr;
20708 if (sizeof ac_aggr.tm_zone)
20714 rm -f conftest.
$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>conftest.er1
20718 grep -v '^ *+' conftest.er1
>conftest.err
20720 cat conftest.err
>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try
='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try
='test -s conftest.$ac_objext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_member_struct_tm_tm_zone
=yes
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.
$ac_ext >&5
20741 ac_cv_member_struct_tm_tm_zone
=no
20743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20748 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20749 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20751 cat >>confdefs.h
<<_ACEOF
20752 #define HAVE_STRUCT_TM_TM_ZONE 1
20758 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20760 cat >>confdefs.h
<<\_ACEOF
20761 #define HAVE_TM_ZONE 1
20765 echo "$as_me:$LINENO: checking for tzname" >&5
20766 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20767 if test "${ac_cv_var_tzname+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 #ifndef tzname /* For SGI. */
20778 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20789 rm -f conftest.
$ac_objext conftest
$ac_exeext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20791 (eval $ac_link) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1
>conftest.err
20795 cat conftest.err
>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try
='test -z "$ac_c_werror_flag"
20799 || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try
='test -s conftest$ac_exeext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_var_tzname
=yes
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.
$ac_ext >&5
20816 ac_cv_var_tzname
=no
20818 rm -f conftest.err conftest.
$ac_objext \
20819 conftest
$ac_exeext conftest.
$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20822 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20823 if test $ac_cv_var_tzname = yes; then
20825 cat >>confdefs.h
<<\_ACEOF
20826 #define HAVE_TZNAME 1
20833 if test "$ac_cv_func_gettimeofday" = yes; then
20834 echo "$as_me:$LINENO: checking for struct timezone" >&5
20835 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20836 if test "${emacs_cv_struct_timezone+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 cat >conftest.
$ac_ext <<_ACEOF
20842 cat confdefs.h
>>conftest.
$ac_ext
20843 cat >>conftest.
$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <sys/time.h>
20849 struct timezone tz;
20854 rm -f conftest.
$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>conftest.er1
20858 grep -v '^ *+' conftest.er1
>conftest.err
20860 cat conftest.err
>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try
='test -z "$ac_c_werror_flag"
20864 || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try
='test -s conftest.$ac_objext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 if test "$cross_compiling" = yes; then
20877 emacs_cv_struct_timezone
=yes
20879 cat >conftest.
$ac_ext <<_ACEOF
20882 cat confdefs.h
>>conftest.
$ac_ext
20883 cat >>conftest.
$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20886 #ifdef TIME_WITH_SYS_TIME
20887 #include <sys/time.h>
20890 #ifdef HAVE_SYS_TIME_H
20891 #include <sys/time.h>
20897 struct timeval time;
20898 struct timezone dummy;
20899 exit (gettimeofday (&time, &dummy));
20902 rm -f conftest
$ac_exeext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904 (eval $ac_link) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 emacs_cv_struct_timezone
=yes
20915 echo "$as_me: program exited with status $ac_status" >&5
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.
$ac_ext >&5
20919 ( exit $ac_status )
20920 emacs_cv_struct_timezone
=no
20922 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.
$ac_ext >&5
20928 emacs_cv_struct_timezone
=no
20930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20932 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20933 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20937 echo "$as_me:$LINENO: checking for socket" >&5
20938 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20939 if test "${ac_cv_func_socket+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 cat >conftest.
$ac_ext <<_ACEOF
20945 cat confdefs.h
>>conftest.
$ac_ext
20946 cat >>conftest.
$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20950 #define socket innocuous_socket
20952 /* System header to define __stub macros and hopefully few prototypes,
20953 which can conflict with char socket (); below.
20954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955 <limits.h> exists even on freestanding compilers. */
20958 # include <limits.h>
20960 # include <assert.h>
20965 /* Override any gcc2 internal prototype to avoid an error. */
20970 /* We use char because int might match the return type of a gcc2
20971 builtin and then its argument prototype would still apply. */
20973 /* The GNU C library defines this for functions which it implements
20974 to always fail with ENOSYS. Some functions are actually named
20975 something starting with __ and the normal name is an alias. */
20976 #if defined (__stub_socket) || defined (__stub___socket)
20979 char (*f) () = socket;
20988 return f != socket;
20993 rm -f conftest.
$ac_objext conftest
$ac_exeext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995 (eval $ac_link) 2>conftest.er1
20997 grep -v '^ *+' conftest.er1
>conftest.err
20999 cat conftest.err
>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try
='test -z "$ac_c_werror_flag"
21003 || test ! -s conftest.err'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try
='test -s conftest$ac_exeext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_func_socket
=yes
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.
$ac_ext >&5
21020 ac_cv_func_socket
=no
21022 rm -f conftest.err conftest.
$ac_objext \
21023 conftest
$ac_exeext conftest.
$ac_ext
21025 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21026 echo "${ECHO_T}$ac_cv_func_socket" >&6
21027 if test $ac_cv_func_socket = yes; then
21033 if test $ok_so_far = yes; then
21034 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21035 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21036 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21037 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21041 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21043 # Is the header compilable?
21044 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21045 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21046 cat >conftest.
$ac_ext <<_ACEOF
21049 cat confdefs.h
>>conftest.
$ac_ext
21050 cat >>conftest.
$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 $ac_includes_default
21053 #include <netinet/in.h>
21055 rm -f conftest.
$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21059 grep -v '^ *+' conftest.er1
>conftest.err
21061 cat conftest.err
>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try
='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try
='test -s conftest.$ac_objext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ac_header_compiler
=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.
$ac_ext >&5
21082 ac_header_compiler
=no
21084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21090 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21091 cat >conftest.
$ac_ext <<_ACEOF
21094 cat confdefs.h
>>conftest.
$ac_ext
21095 cat >>conftest.
$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <netinet/in.h>
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1
>conftest.err
21104 cat conftest.err
>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } >/dev
/null
; then
21107 if test -s conftest.err
; then
21108 ac_cpp_err
=$ac_c_preproc_warn_flag
21109 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21116 if test -z "$ac_cpp_err"; then
21117 ac_header_preproc
=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.
$ac_ext >&5
21122 ac_header_preproc
=no
21124 rm -f conftest.err conftest.
$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21128 # So? What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21135 ac_header_preproc
=yes
21138 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21152 ## ------------------------------------------ ##
21153 ## Report this to the AC_PACKAGE_NAME lists. ##
21154 ## ------------------------------------------ ##
21157 sed "s/^/$as_me: WARNING: /" >&2
21160 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21161 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21162 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 ac_cv_header_netinet_in_h
=$ac_header_preproc
21167 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21168 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21171 if test $ac_cv_header_netinet_in_h = yes; then
21179 if test $ok_so_far = yes; then
21180 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21181 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21182 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21183 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21187 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21189 # Is the header compilable?
21190 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21191 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21192 cat >conftest.
$ac_ext <<_ACEOF
21195 cat confdefs.h
>>conftest.
$ac_ext
21196 cat >>conftest.
$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 $ac_includes_default
21199 #include <arpa/inet.h>
21201 rm -f conftest.
$ac_objext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203 (eval $ac_compile) 2>conftest.er1
21205 grep -v '^ *+' conftest.er1
>conftest.err
21207 cat conftest.err
>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try
='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try
='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_header_compiler
=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.
$ac_ext >&5
21228 ac_header_compiler
=no
21230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21232 echo "${ECHO_T}$ac_header_compiler" >&6
21234 # Is the header present?
21235 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21236 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21237 cat >conftest.
$ac_ext <<_ACEOF
21240 cat confdefs.h
>>conftest.
$ac_ext
21241 cat >>conftest.
$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 #include <arpa/inet.h>
21245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21246 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21248 grep -v '^ *+' conftest.er1
>conftest.err
21250 cat conftest.err
>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } >/dev
/null
; then
21253 if test -s conftest.err
; then
21254 ac_cpp_err
=$ac_c_preproc_warn_flag
21255 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21262 if test -z "$ac_cpp_err"; then
21263 ac_header_preproc
=yes
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.
$ac_ext >&5
21268 ac_header_preproc
=no
21270 rm -f conftest.err conftest.
$ac_ext
21271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21272 echo "${ECHO_T}$ac_header_preproc" >&6
21274 # So? What about this header?
21275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21277 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21278 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21280 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21281 ac_header_preproc
=yes
21284 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21285 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21287 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21289 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21291 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21293 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21295 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21298 ## ------------------------------------------ ##
21299 ## Report this to the AC_PACKAGE_NAME lists. ##
21300 ## ------------------------------------------ ##
21303 sed "s/^/$as_me: WARNING: /" >&2
21306 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21307 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21308 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21313 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21314 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21317 if test $ac_cv_header_arpa_inet_h = yes; then
21325 if test $ok_so_far = yes; then
21327 cat >>confdefs.h
<<\_ACEOF
21328 #define HAVE_INET_SOCKETS 1
21334 for ac_header
in sys
/ioctl.h
21336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21338 echo "$as_me:$LINENO: checking for $ac_header" >&5
21339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21346 # Is the header compilable?
21347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21349 cat >conftest.
$ac_ext <<_ACEOF
21352 cat confdefs.h
>>conftest.
$ac_ext
21353 cat >>conftest.
$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 $ac_includes_default
21356 #include <$ac_header>
21358 rm -f conftest.
$ac_objext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21362 grep -v '^ *+' conftest.er1
>conftest.err
21364 cat conftest.err
>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try
='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try
='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_header_compiler
=yes
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.
$ac_ext >&5
21385 ac_header_compiler
=no
21387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21389 echo "${ECHO_T}$ac_header_compiler" >&6
21391 # Is the header present?
21392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21394 cat >conftest.
$ac_ext <<_ACEOF
21397 cat confdefs.h
>>conftest.
$ac_ext
21398 cat >>conftest.
$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 #include <$ac_header>
21402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21405 grep -v '^ *+' conftest.er1
>conftest.err
21407 cat conftest.err
>&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } >/dev
/null
; then
21410 if test -s conftest.err
; then
21411 ac_cpp_err
=$ac_c_preproc_warn_flag
21412 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21419 if test -z "$ac_cpp_err"; then
21420 ac_header_preproc
=yes
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.
$ac_ext >&5
21425 ac_header_preproc
=no
21427 rm -f conftest.err conftest.
$ac_ext
21428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21429 echo "${ECHO_T}$ac_header_preproc" >&6
21431 # So? What about this header?
21432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21438 ac_header_preproc
=yes
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21455 ## ------------------------------------------ ##
21456 ## Report this to the AC_PACKAGE_NAME lists. ##
21457 ## ------------------------------------------ ##
21460 sed "s/^/$as_me: WARNING: /" >&2
21463 echo "$as_me:$LINENO: checking for $ac_header" >&5
21464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 eval "$as_ac_Header=\$ac_header_preproc"
21470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21475 cat >>confdefs.h
<<_ACEOF
21476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21484 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21486 cat >>confdefs.h
<<\_ACEOF
21487 #define HAVE_AIX_SMT_EXP 1
21492 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21493 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21494 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21495 echo "$as_me:$LINENO: result: yes" >&5
21496 echo "${ECHO_T}yes" >&6
21498 cat >>confdefs.h
<<\_ACEOF
21499 #define HAVE_DEV_PTMX 1
21503 echo "$as_me:$LINENO: result: no" >&5
21504 echo "${ECHO_T}no" >&6
21507 echo "$as_me:$LINENO: checking for pid_t" >&5
21508 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21509 if test "${ac_cv_type_pid_t+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 cat >conftest.
$ac_ext <<_ACEOF
21515 cat confdefs.h
>>conftest.
$ac_ext
21516 cat >>conftest.
$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21524 if (sizeof (pid_t))
21530 rm -f conftest.
$ac_objext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21532 (eval $ac_compile) 2>conftest.er1
21534 grep -v '^ *+' conftest.er1
>conftest.err
21536 cat conftest.err
>&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try
='test -z "$ac_c_werror_flag"
21540 || test ! -s conftest.err'
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); }; } &&
21546 { ac_try
='test -s conftest.$ac_objext'
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; }; then
21552 ac_cv_type_pid_t
=yes
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.
$ac_ext >&5
21557 ac_cv_type_pid_t
=no
21559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21561 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21562 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21563 if test $ac_cv_type_pid_t = yes; then
21567 cat >>confdefs.h
<<_ACEOF
21575 for ac_header
in unistd.h vfork.h
21577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21579 echo "$as_me:$LINENO: checking for $ac_header" >&5
21580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21587 # Is the header compilable?
21588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21590 cat >conftest.
$ac_ext <<_ACEOF
21593 cat confdefs.h
>>conftest.
$ac_ext
21594 cat >>conftest.
$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21597 #include <$ac_header>
21599 rm -f conftest.
$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>conftest.er1
21603 grep -v '^ *+' conftest.er1
>conftest.err
21605 cat conftest.err
>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try
='test -z "$ac_c_werror_flag"
21609 || test ! -s conftest.err'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try
='test -s conftest.$ac_objext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_header_compiler
=yes
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.
$ac_ext >&5
21626 ac_header_compiler
=no
21628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21630 echo "${ECHO_T}$ac_header_compiler" >&6
21632 # Is the header present?
21633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21635 cat >conftest.
$ac_ext <<_ACEOF
21638 cat confdefs.h
>>conftest.
$ac_ext
21639 cat >>conftest.
$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 #include <$ac_header>
21643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21644 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21646 grep -v '^ *+' conftest.er1
>conftest.err
21648 cat conftest.err
>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } >/dev
/null
; then
21651 if test -s conftest.err
; then
21652 ac_cpp_err
=$ac_c_preproc_warn_flag
21653 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21660 if test -z "$ac_cpp_err"; then
21661 ac_header_preproc
=yes
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.
$ac_ext >&5
21666 ac_header_preproc
=no
21668 rm -f conftest.err conftest.
$ac_ext
21669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21670 echo "${ECHO_T}$ac_header_preproc" >&6
21672 # So? What about this header?
21673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21679 ac_header_preproc
=yes
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21696 ## ------------------------------------------ ##
21697 ## Report this to the AC_PACKAGE_NAME lists. ##
21698 ## ------------------------------------------ ##
21701 sed "s/^/$as_me: WARNING: /" >&2
21704 echo "$as_me:$LINENO: checking for $ac_header" >&5
21705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 eval "$as_ac_Header=\$ac_header_preproc"
21711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21716 cat >>confdefs.h
<<_ACEOF
21717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21726 for ac_func
in fork vfork
21728 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21729 echo "$as_me:$LINENO: checking for $ac_func" >&5
21730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21731 if eval "test \"\${$as_ac_var+set}\" = set"; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.
$ac_ext <<_ACEOF
21737 cat confdefs.h
>>conftest.
$ac_ext
21738 cat >>conftest.
$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21742 #define $ac_func innocuous_$ac_func
21744 /* System header to define __stub macros and hopefully few prototypes,
21745 which can conflict with char $ac_func (); below.
21746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21747 <limits.h> exists even on freestanding compilers. */
21750 # include <limits.h>
21752 # include <assert.h>
21757 /* Override any gcc2 internal prototype to avoid an error. */
21762 /* We use char because int might match the return type of a gcc2
21763 builtin and then its argument prototype would still apply. */
21765 /* The GNU C library defines this for functions which it implements
21766 to always fail with ENOSYS. Some functions are actually named
21767 something starting with __ and the normal name is an alias. */
21768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21771 char (*f) () = $ac_func;
21780 return f != $ac_func;
21785 rm -f conftest.
$ac_objext conftest
$ac_exeext
21786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787 (eval $ac_link) 2>conftest.er1
21789 grep -v '^ *+' conftest.er1
>conftest.err
21791 cat conftest.err
>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
21794 { ac_try
='test -z "$ac_c_werror_flag"
21795 || test ! -s conftest.err'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; } &&
21801 { ac_try
='test -s conftest$ac_exeext'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }; then
21807 eval "$as_ac_var=yes"
21809 echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.
$ac_ext >&5
21812 eval "$as_ac_var=no"
21814 rm -f conftest.err conftest.
$ac_objext \
21815 conftest
$ac_exeext conftest.
$ac_ext
21817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21819 if test `eval echo '${'$as_ac_var'}'` = yes; then
21820 cat >>confdefs.h
<<_ACEOF
21821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21827 if test "x$ac_cv_func_fork" = xyes
; then
21828 echo "$as_me:$LINENO: checking for working fork" >&5
21829 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21830 if test "${ac_cv_func_fork_works+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 if test "$cross_compiling" = yes; then
21834 ac_cv_func_fork_works
=cross
21836 cat >conftest.
$ac_ext <<_ACEOF
21837 /* By Ruediger Kuhlmann. */
21838 #include <sys/types.h>
21840 # include <unistd.h>
21842 /* Some systems only have a dummy stub for fork() */
21850 rm -f conftest
$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 ac_cv_func_fork_works
=yes
21863 echo "$as_me: program exited with status $ac_status" >&5
21864 echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.
$ac_ext >&5
21867 ( exit $ac_status )
21868 ac_cv_func_fork_works
=no
21870 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21873 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21874 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21877 ac_cv_func_fork_works
=$ac_cv_func_fork
21879 if test "x$ac_cv_func_fork_works" = xcross
; then
21881 *-*-amigaos* |
*-*-msdosdjgpp*)
21882 # Override, as these systems have only a dummy fork() stub
21883 ac_cv_func_fork_works
=no
21886 ac_cv_func_fork_works
=yes
21889 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21890 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21892 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21893 if test "x$ac_cv_func_vfork" = xyes
; then
21894 echo "$as_me:$LINENO: checking for working vfork" >&5
21895 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21896 if test "${ac_cv_func_vfork_works+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 if test "$cross_compiling" = yes; then
21900 ac_cv_func_vfork_works
=cross
21902 cat >conftest.
$ac_ext <<_ACEOF
21905 cat confdefs.h
>>conftest.
$ac_ext
21906 cat >>conftest.
$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 /* Thanks to Paul Eggert for this test. */
21910 #include <stdlib.h>
21911 #include <sys/types.h>
21912 #include <sys/stat.h>
21913 #include <sys/wait.h>
21915 # include <unistd.h>
21918 # include <vfork.h>
21920 /* On some sparc systems, changes by the child to local and incoming
21921 argument registers are propagated back to the parent. The compiler
21922 is told about this with #include <vfork.h>, but some compilers
21923 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21924 static variable whose address is put into a register that is
21925 clobbered by the vfork. */
21928 sparc_address_test (int arg)
21930 sparc_address_test (arg) int arg;
21933 static pid_t child;
21951 pid_t parent = getpid ();
21954 sparc_address_test (0);
21959 /* Here is another test for sparc vfork register problems. This
21960 test uses lots of local variables, at least as many local
21961 variables as main has allocated so far including compiler
21962 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21963 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21964 reuse the register of parent for one of the local variables,
21965 since it will think that parent can't possibly be used any more
21966 in this routine. Assigning to the local variable will thus
21967 munge parent in the parent process. */
21969 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21970 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21971 /* Convince the compiler that p..p7 are live; otherwise, it might
21972 use the same hardware register for all 8 local variables. */
21973 if (p != p1 || p != p2 || p != p3 || p != p4
21974 || p != p5 || p != p6 || p != p7)
21977 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21978 from child file descriptors. If the child closes a descriptor
21979 before it execs or exits, this munges the parent's descriptor
21980 as well. Test for this by closing stdout in the child. */
21981 _exit(close(fileno(stdout)) != 0);
21986 while (wait(&status) != child)
21989 /* Was there some problem with vforking? */
21992 /* Did the child fail? (This shouldn't happen.) */
21995 /* Did the vfork/compiler bug occur? */
21996 || parent != getpid()
21998 /* Did the file descriptor bug occur? */
21999 || fstat(fileno(stdout), &st) != 0
22004 rm -f conftest
$ac_exeext
22005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22006 (eval $ac_link) 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 ac_cv_func_vfork_works
=yes
22017 echo "$as_me: program exited with status $ac_status" >&5
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.
$ac_ext >&5
22021 ( exit $ac_status )
22022 ac_cv_func_vfork_works
=no
22024 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22027 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22028 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22031 if test "x$ac_cv_func_fork_works" = xcross
; then
22032 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22033 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22034 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22037 if test "x$ac_cv_func_vfork_works" = xyes
; then
22039 cat >>confdefs.h
<<\_ACEOF
22040 #define HAVE_WORKING_VFORK 1
22045 cat >>confdefs.h
<<\_ACEOF
22050 if test "x$ac_cv_func_fork_works" = xyes
; then
22052 cat >>confdefs.h
<<\_ACEOF
22053 #define HAVE_WORKING_FORK 1
22059 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22060 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22061 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 cat >conftest.
$ac_ext <<_ACEOF
22067 cat confdefs.h
>>conftest.
$ac_ext
22068 cat >>conftest.
$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <langinfo.h>
22074 char* cs = nl_langinfo(CODESET);
22079 rm -f conftest.
$ac_objext conftest
$ac_exeext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22081 (eval $ac_link) 2>conftest.er1
22083 grep -v '^ *+' conftest.er1
>conftest.err
22085 cat conftest.err
>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try
='test -z "$ac_c_werror_flag"
22089 || test ! -s conftest.err'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; } &&
22095 { ac_try
='test -s conftest$ac_exeext'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 emacs_cv_langinfo_codeset
=yes
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.
$ac_ext >&5
22106 emacs_cv_langinfo_codeset
=no
22108 rm -f conftest.err conftest.
$ac_objext \
22109 conftest
$ac_exeext conftest.
$ac_ext
22112 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22113 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22114 if test $emacs_cv_langinfo_codeset = yes; then
22116 cat >>confdefs.h
<<\_ACEOF
22117 #define HAVE_LANGINFO_CODESET 1
22122 echo "$as_me:$LINENO: checking for size_t" >&5
22123 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22124 if test "${ac_cv_type_size_t+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 cat >conftest.
$ac_ext <<_ACEOF
22130 cat confdefs.h
>>conftest.
$ac_ext
22131 cat >>conftest.
$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 $ac_includes_default
22139 if (sizeof (size_t))
22145 rm -f conftest.
$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>conftest.er1
22149 grep -v '^ *+' conftest.er1
>conftest.err
22151 cat conftest.err
>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try
='test -z "$ac_c_werror_flag"
22155 || test ! -s conftest.err'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; } &&
22161 { ac_try
='test -s conftest.$ac_objext'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; }; then
22167 ac_cv_type_size_t
=yes
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.
$ac_ext >&5
22172 ac_cv_type_size_t
=no
22174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22176 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22177 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22178 if test $ac_cv_type_size_t = yes; then
22180 cat >>confdefs.h
<<_ACEOF
22181 #define HAVE_SIZE_T 1
22188 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22189 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22190 if test "${ac_cv_type_mbstate_t+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 cat >conftest.
$ac_ext <<_ACEOF
22196 cat confdefs.h
>>conftest.
$ac_ext
22197 cat >>conftest.
$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199 $ac_includes_default
22200 # include <wchar.h>
22204 mbstate_t x; return sizeof x;
22209 rm -f conftest.
$ac_objext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211 (eval $ac_compile) 2>conftest.er1
22213 grep -v '^ *+' conftest.er1
>conftest.err
22215 cat conftest.err
>&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
22218 { ac_try
='test -z "$ac_c_werror_flag"
22219 || test ! -s conftest.err'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try
='test -s conftest.$ac_objext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ac_cv_type_mbstate_t
=yes
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.
$ac_ext >&5
22236 ac_cv_type_mbstate_t
=no
22238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22240 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22241 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22242 if test $ac_cv_type_mbstate_t = yes; then
22244 cat >>confdefs.h
<<\_ACEOF
22245 #define HAVE_MBSTATE_T 1
22250 cat >>confdefs.h
<<\_ACEOF
22251 #define mbstate_t int
22256 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22257 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22258 if test "${emacs_cv_c_restrict+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 cat >conftest.
$ac_ext <<_ACEOF
22264 cat confdefs.h
>>conftest.
$ac_ext
22265 cat >>conftest.
$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267 void fred (int *restrict x);
22276 rm -f conftest.
$ac_objext
22277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22278 (eval $ac_compile) 2>conftest.er1
22280 grep -v '^ *+' conftest.er1
>conftest.err
22282 cat conftest.err
>&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
22285 { ac_try
='test -z "$ac_c_werror_flag"
22286 || test ! -s conftest.err'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; } &&
22292 { ac_try
='test -s conftest.$ac_objext'
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298 emacs_cv_c_restrict
=yes
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.
$ac_ext >&5
22303 cat >conftest.
$ac_ext <<_ACEOF
22306 cat confdefs.h
>>conftest.
$ac_ext
22307 cat >>conftest.
$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 void fred (int *__restrict x);
22318 rm -f conftest.
$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>conftest.er1
22322 grep -v '^ *+' conftest.er1
>conftest.err
22324 cat conftest.err
>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try
='test -z "$ac_c_werror_flag"
22328 || test ! -s conftest.err'
22329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330 (eval $ac_try) 2>&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; } &&
22334 { ac_try
='test -s conftest.$ac_objext'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 emacs_cv_c_restrict
=__restrict
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.
$ac_ext >&5
22345 emacs_cv_c_restrict
=no
22347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22351 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22352 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22353 case "$emacs_cv_c_restrict" in
22354 yes) emacs_restrict
=restrict
;;
22355 no
) emacs_restrict
="";;
22356 *) emacs_restrict
="$emacs_cv_c_restrict";;
22358 if test "$emacs_restrict" != __restrict
; then
22360 cat >>confdefs.h
<<_ACEOF
22361 #define __restrict $emacs_restrict
22366 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22367 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22368 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 cat >conftest.
$ac_ext <<_ACEOF
22374 cat confdefs.h
>>conftest.
$ac_ext
22375 cat >>conftest.
$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 void fred (int x[__restrict]);
22386 rm -f conftest.
$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388 (eval $ac_compile) 2>conftest.er1
22390 grep -v '^ *+' conftest.er1
>conftest.err
22392 cat conftest.err
>&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try
='test -z "$ac_c_werror_flag"
22396 || test ! -s conftest.err'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; } &&
22402 { ac_try
='test -s conftest.$ac_objext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 emacs_cv_c_restrict_arr
=yes
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.
$ac_ext >&5
22413 emacs_cv_c_restrict_arr
=no
22415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22417 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22418 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22419 if test "$emacs_cv_c_restrict_arr" = yes; then
22421 cat >>confdefs.h
<<\_ACEOF
22422 #define __restrict_arr __restrict
22429 # Set up the CFLAGS for real compilation, so we can substitute it.
22430 CFLAGS
="$REAL_CFLAGS"
22431 CPPFLAGS
="$REAL_CPPFLAGS"
22433 #### Find out which version of Emacs this is.
22434 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22435 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22436 if test x
"${version}" = x
; then
22437 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22438 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22439 { (exit 1); exit 1; }; }
22442 ### Specify what sort of things we'll be editing into Makefile and config.h.
22443 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22479 cat >>confdefs.h
<<_ACEOF
22480 #define EMACS_CONFIGURATION "${canonical}"
22484 cat >>confdefs.h
<<_ACEOF
22485 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22489 cat >>confdefs.h
<<_ACEOF
22490 #define config_machfile "${machfile}"
22494 cat >>confdefs.h
<<_ACEOF
22495 #define config_opsysfile "${opsysfile}"
22499 cat >>confdefs.h
<<_ACEOF
22500 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22504 cat >>confdefs.h
<<_ACEOF
22505 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22509 cat >>confdefs.h
<<_ACEOF
22510 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22514 cat >>confdefs.h
<<_ACEOF
22515 #define UNEXEC_SRC ${UNEXEC_SRC}
22519 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22521 cat >>confdefs.h
<<\_ACEOF
22522 #define HAVE_X_WINDOWS 1
22526 if test "${USE_X_TOOLKIT}" != "none" ; then
22528 cat >>confdefs.h
<<\_ACEOF
22529 #define USE_X_TOOLKIT 1
22533 if test "${HAVE_X11}" = "yes" ; then
22535 cat >>confdefs.h
<<\_ACEOF
22540 if test "${HAVE_XFREE386}" = "yes" ; then
22542 cat >>confdefs.h
<<\_ACEOF
22543 #define HAVE_XFREE386 1
22547 if test "${HAVE_MENUS}" = "yes" ; then
22549 cat >>confdefs.h
<<\_ACEOF
22550 #define HAVE_MENUS 1
22554 if test "${GNU_MALLOC}" = "yes" ; then
22556 cat >>confdefs.h
<<\_ACEOF
22557 #define GNU_MALLOC 1
22561 if test "${REL_ALLOC}" = "yes" ; then
22563 cat >>confdefs.h
<<\_ACEOF
22564 #define REL_ALLOC 1
22573 #### Report on what we decided to do.
22574 #### Report GTK as a toolkit, even if it doesn't use Xt.
22575 #### It makes printing result more understandable as using GTK sets
22576 #### toolkit_scroll_bars to yes by default.
22577 if test "${HAVE_GTK}" = "yes"; then
22582 Configured for \`${canonical}'.
22584 Where should the build process find the source code? ${srcdir}
22585 What operating system and machine description files should Emacs use?
22586 \`${opsysfile}' and \`${machfile}'
22587 What compiler should emacs be built with? ${CC} ${CFLAGS}
22588 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22589 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22590 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22591 What window system should Emacs use? ${window_system}
22592 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22594 if test -n "${x_includes}"; then
22595 echo " Where do we find X Windows header files? ${x_includes}"
22597 echo " Where do we find X Windows header files? Standard dirs"
22599 if test -n "${x_libraries}"; then
22600 echo " Where do we find X Windows libraries? ${x_libraries}"
22602 echo " Where do we find X Windows libraries? Standard dirs"
22605 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22606 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22607 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22608 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22609 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22610 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22611 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22614 if test $USE_XASSERTS = yes; then
22615 echo " Compiling with asserts turned on."
22616 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22622 # Remove any trailing slashes in these variables.
22623 test "${prefix}" != NONE
&&
22624 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22625 test "${exec_prefix}" != NONE
&&
22626 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22628 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22629 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22630 ## from Makefile.c can correctly provide the arg `-traditional' to the
22633 cat >conftest.
$ac_ext <<_ACEOF
22636 cat confdefs.h
>>conftest.
$ac_ext
22637 cat >>conftest.
$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22642 $EGREP "yes..yes" >/dev
/null
2>&1; then
22643 CPP_NEED_TRADITIONAL
=no
22645 CPP_NEED_TRADITIONAL
=yes
22650 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"
22651 ac_config_commands
="$ac_config_commands default"
22652 cat >confcache
<<\_ACEOF
22653 # This file is a shell script that caches the results of configure
22654 # tests run on this system so they can be shared between configure
22655 # scripts and configure runs, see configure's option --config-cache.
22656 # It is not useful on other systems. If it contains results you don't
22657 # want to keep, you may remove or edit it.
22659 # config.status only pays attention to the cache file if you give it
22660 # the --recheck option to rerun configure.
22662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22664 # following values.
22668 # The following way of writing the cache mishandles newlines in values,
22669 # but we know of no workaround that is simple, portable, and efficient.
22670 # So, don't put newlines in cache variables' values.
22671 # Ultrix sh set writes to stderr and can't be redirected directly,
22672 # and sets the high bit in the cache file unless we assign to the vars.
22675 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22677 # `set' does not quote correctly, so add quotes (double-quote
22678 # substitution turns \\\\ into \\, and sed turns \\ into \).
22681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22684 # `set' quotes correctly as required by POSIX, so do not add quotes.
22686 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22695 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22697 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22698 if test -w $cache_file; then
22699 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22700 cat confcache
>$cache_file
22702 echo "not updating unwritable cache $cache_file"
22707 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22708 # Let make expand exec_prefix.
22709 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22713 # trailing colons and then remove the whole line if VPATH becomes empty
22714 # (actually we leave an empty line to preserve line numbers).
22715 if test "x$srcdir" = x.
; then
22716 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22717 s/:*\$(srcdir):*/:/;
22718 s/:*\${srcdir}:*/:/;
22720 s/^\([^=]*=[ ]*\):*/\1/;
22726 DEFS
=-DHAVE_CONFIG_H
22730 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22731 # 1. Remove the extension, and $U if already installed.
22732 ac_i
=`echo "$ac_i" |
22733 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22735 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22736 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22738 LIBOBJS
=$ac_libobjs
22740 LTLIBOBJS
=$ac_ltlibobjs
22744 : ${CONFIG_STATUS=./config.status}
22745 ac_clean_files_save
=$ac_clean_files
22746 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22749 cat >$CONFIG_STATUS <<_ACEOF
22751 # Generated by $as_me.
22752 # Run this file to recreate the current configuration.
22753 # Compiler output produced by configure, useful for debugging
22754 # configure, is in config.log if it exists.
22757 ac_cs_recheck=false
22759 SHELL=\${CONFIG_SHELL-$SHELL}
22762 cat >>$CONFIG_STATUS <<\_ACEOF
22763 ## --------------------- ##
22764 ## M4sh Initialization. ##
22765 ## --------------------- ##
22767 # Be Bourne compatible
22768 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22771 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22772 # is contrary to our usage. Disable this feature.
22773 alias -g '${1+"$@"}'='"$@"'
22774 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22777 DUALCASE
=1; export DUALCASE
# for MKS sh
22779 # Support unset when possible.
22780 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22787 # Work around bugs in pre-3.0 UWIN ksh.
22788 $as_unset ENV MAIL MAILPATH
22795 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22796 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22797 LC_TELEPHONE LC_TIME
22799 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22800 eval $as_var=C
; export $as_var
22806 # Required to use basename.
22807 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22813 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22814 as_basename
=basename
22820 # Name of the executable.
22821 as_me
=`$as_basename "$0" ||
22822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22823 X"$0" : 'X\(//\)$' \| \
22824 X"$0" : 'X\(/\)$' \| \
22825 . : '\(.\)' 2>/dev/null ||
22827 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22828 /^X\/\(\/\/\)$/{ s//\1/; q; }
22829 /^X\/\(\/\).*/{ s//\1/; q; }
22833 # PATH needs CR, and LINENO needs CR and PATH.
22834 # Avoid depending upon Character Ranges.
22835 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22836 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22837 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22838 as_cr_digits
='0123456789'
22839 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22841 # The user is always right.
22842 if test "${PATH_SEPARATOR+set}" != set; then
22843 echo "#! /bin/sh" >conf$$.sh
22844 echo "exit 0" >>conf$$.sh
22846 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22855 as_lineno_1
=$LINENO
22856 as_lineno_2
=$LINENO
22857 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22858 test "x$as_lineno_1" != "x$as_lineno_2" &&
22859 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22860 # Find who we are. Look in the path if we contain no path at all
22863 *[\\/]* ) as_myself
=$0 ;;
22864 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22865 for as_dir
in $PATH
22868 test -z "$as_dir" && as_dir
=.
22869 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22874 # We did not find ourselves, most probably we were run as `sh COMMAND'
22875 # in which case we are not to be found in the path.
22876 if test "x$as_myself" = x
; then
22879 if test ! -f "$as_myself"; then
22880 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22881 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22882 { (exit 1); exit 1; }; }
22884 case $CONFIG_SHELL in
22886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22887 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22890 test -z "$as_dir" && as_dir
=.
22891 for as_base
in sh bash ksh sh5
; do
22894 if ("$as_dir/$as_base" -c '
22895 as_lineno_1=$LINENO
22896 as_lineno_2=$LINENO
22897 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22898 test "x$as_lineno_1" != "x$as_lineno_2" &&
22899 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22900 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22901 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22902 CONFIG_SHELL
=$as_dir/$as_base
22903 export CONFIG_SHELL
22904 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22912 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22913 # uniformly replaced by the line number. The first 'sed' inserts a
22914 # line-number line before each line; the second 'sed' does the real
22915 # work. The second script uses 'N' to pair each line-number line
22916 # with the numbered line, and appends trailing '-' during
22917 # substitution so that $LINENO is not a special case at line end.
22918 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22919 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22920 sed '=' <$as_myself |
22925 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22928 s,^['$as_cr_digits']*\n,,
22929 ' >$as_me.lineno
&&
22930 chmod +x
$as_me.lineno ||
22931 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22932 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22933 { (exit 1); exit 1; }; }
22935 # Don't try to exec as it changes $[0], causing all sort of problems
22936 # (the dirname of $[0] is not the place where we might find the
22937 # original and so on. Autoconf is especially sensible to this).
22939 # Exit status is that of the last command.
22944 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22945 *c
*,-n*) ECHO_N
= ECHO_C
='
22947 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22948 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22951 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22957 rm -f conf$$ conf$$.exe conf$$.
file
22959 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22960 # We could just check for DJGPP; but this test a) works b) is more generic
22961 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22962 if test -f conf$$.exe
; then
22963 # Don't use ln at all; we don't have any links
22968 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22973 rm -f conf$$ conf$$.exe conf$$.
file
22975 if mkdir
-p .
2>/dev
/null
; then
22978 test -d .
/-p && rmdir .
/-p
22982 as_executable_p
="test -f"
22984 # Sed expression to map a string onto a valid CPP name.
22985 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22987 # Sed expression to map a string onto a valid variable name.
22988 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22992 # We need space, tab and new line, in precisely that order.
23002 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23003 # report actual input values of CONFIG_FILES etc. instead of their
23004 # values after options handling. Logging --version etc. is OK.
23008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23009 ## Running $as_me. ##
23014 This file was extended by $as_me, which was
23015 generated by GNU Autoconf 2.59. Invocation command line was
23017 CONFIG_FILES = $CONFIG_FILES
23018 CONFIG_HEADERS = $CONFIG_HEADERS
23019 CONFIG_LINKS = $CONFIG_LINKS
23020 CONFIG_COMMANDS = $CONFIG_COMMANDS
23024 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23028 # Files that config.status was made for.
23029 if test -n "$ac_config_files"; then
23030 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23033 if test -n "$ac_config_headers"; then
23034 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23037 if test -n "$ac_config_links"; then
23038 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23041 if test -n "$ac_config_commands"; then
23042 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23045 cat >>$CONFIG_STATUS <<\_ACEOF
23048 \`$as_me' instantiates files from templates according to the
23049 current configuration.
23051 Usage: $0 [OPTIONS] [FILE]...
23053 -h, --help print this help, then exit
23054 -V, --version print version number, then exit
23055 -q, --quiet do not print progress messages
23056 -d, --debug don't remove temporary files
23057 --recheck update $as_me by reconfiguring in the same conditions
23058 --file=FILE[:TEMPLATE]
23059 instantiate the configuration file FILE
23060 --header=FILE[:TEMPLATE]
23061 instantiate the configuration header FILE
23063 Configuration files:
23066 Configuration headers:
23069 Configuration commands:
23072 Report bugs to <bug-autoconf@gnu.org>."
23075 cat >>$CONFIG_STATUS <<_ACEOF
23078 configured by $0, generated by GNU Autoconf 2.59,
23079 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23081 Copyright (C) 2003 Free Software Foundation, Inc.
23082 This config.status script is free software; the Free Software Foundation
23083 gives unlimited permission to copy, distribute and modify it."
23088 cat >>$CONFIG_STATUS <<\_ACEOF
23089 # If no file are specified by the user, then we need to provide default
23090 # value. By we need to know if files were specified by the user.
23096 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23097 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23105 *) # This is not an option, so the user has probably given explicit
23108 ac_need_defaults
=false
;;
23112 # Handling of the options.
23114 cat >>$CONFIG_STATUS <<\_ACEOF
23115 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23117 --version |
--vers* |
-V )
23118 echo "$ac_cs_version"; exit 0 ;;
23120 # Conflict between --help and --header
23121 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23122 Try \`$0 --help' for more information." >&5
23123 echo "$as_me: error: ambiguous option: $1
23124 Try \`$0 --help' for more information." >&2;}
23125 { (exit 1); exit 1; }; };;
23126 --help |
--hel |
-h )
23127 echo "$ac_cs_usage"; exit 0 ;;
23128 --debug |
--d* |
-d )
23130 --file |
--fil |
--fi |
--f )
23132 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23133 ac_need_defaults
=false
;;
23134 --header |
--heade |
--head |
--hea )
23136 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23137 ac_need_defaults
=false
;;
23138 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23139 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23142 # This is an error.
23143 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23144 Try \`$0 --help' for more information." >&5
23145 echo "$as_me: error: unrecognized option: $1
23146 Try \`$0 --help' for more information." >&2;}
23147 { (exit 1); exit 1; }; } ;;
23149 *) ac_config_targets
="$ac_config_targets $1" ;;
23155 ac_configure_extra_args
=
23157 if $ac_cs_silent; then
23159 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23163 cat >>$CONFIG_STATUS <<_ACEOF
23164 if \$ac_cs_recheck; then
23165 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23166 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23171 cat >>$CONFIG_STATUS <<_ACEOF
23173 # INIT-COMMANDS section.
23176 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23182 cat >>$CONFIG_STATUS <<\_ACEOF
23183 for ac_config_target
in $ac_config_targets
23185 case "$ac_config_target" in
23186 # Handling of arguments.
23187 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23188 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23189 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23190 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23191 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23192 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23193 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23194 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23195 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23196 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23197 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23198 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23199 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23200 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23201 { (exit 1); exit 1; }; };;
23205 # If the user did not use the arguments to specify the items to instantiate,
23206 # then the envvar interface is used. Set only those that are not.
23207 # We use the long form for the default assignment because of an extremely
23208 # bizarre bug on SunOS 4.1.3.
23209 if $ac_need_defaults; then
23210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23215 # Have a temporary directory for convenience. Make it in the build tree
23216 # simply because there is no reason to put it here, and in addition,
23217 # creating and moving files from /tmp can sometimes cause problems.
23218 # Create a temporary directory, and hook for its removal unless debugging.
23221 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23222 trap '{ (exit 1); exit 1; }' 1 2 13 15
23225 # Create a (secure) tmp directory for tmp files.
23228 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23229 test -n "$tmp" && test -d "$tmp"
23232 tmp
=.
/confstat$$
-$RANDOM
23233 (umask 077 && mkdir
$tmp)
23236 echo "$me: cannot create a temporary directory in ." >&2
23237 { (exit 1); exit 1; }
23242 cat >>$CONFIG_STATUS <<_ACEOF
23245 # CONFIG_FILES section.
23248 # No need to generate the scripts if there are no CONFIG_FILES.
23249 # This happens for instance when ./config.status config.h
23250 if test -n "\$CONFIG_FILES"; then
23251 # Protect against being on the right side of a sed subst in config.status.
23252 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23253 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23254 s,@SHELL@,$SHELL,;t t
23255 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23256 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23257 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23258 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23259 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23260 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23261 s,@exec_prefix@,$exec_prefix,;t t
23262 s,@prefix@,$prefix,;t t
23263 s,@program_transform_name@,$program_transform_name,;t t
23264 s,@bindir@,$bindir,;t t
23265 s,@sbindir@,$sbindir,;t t
23266 s,@libexecdir@,$libexecdir,;t t
23267 s,@datadir@,$datadir,;t t
23268 s,@sysconfdir@,$sysconfdir,;t t
23269 s,@sharedstatedir@,$sharedstatedir,;t t
23270 s,@localstatedir@,$localstatedir,;t t
23271 s,@libdir@,$libdir,;t t
23272 s,@includedir@,$includedir,;t t
23273 s,@oldincludedir@,$oldincludedir,;t t
23274 s,@infodir@,$infodir,;t t
23275 s,@mandir@,$mandir,;t t
23276 s,@build_alias@,$build_alias,;t t
23277 s,@host_alias@,$host_alias,;t t
23278 s,@target_alias@,$target_alias,;t t
23279 s,@DEFS@,$DEFS,;t t
23280 s,@ECHO_C@,$ECHO_C,;t t
23281 s,@ECHO_N@,$ECHO_N,;t t
23282 s,@ECHO_T@,$ECHO_T,;t t
23283 s,@LIBS@,$LIBS,;t t
23284 s,@MAINT@,$MAINT,;t t
23285 s,@build@,$build,;t t
23286 s,@build_cpu@,$build_cpu,;t t
23287 s,@build_vendor@,$build_vendor,;t t
23288 s,@build_os@,$build_os,;t t
23289 s,@host@,$host,;t t
23290 s,@host_cpu@,$host_cpu,;t t
23291 s,@host_vendor@,$host_vendor,;t t
23292 s,@host_os@,$host_os,;t t
23294 s,@CFLAGS@,$CFLAGS,;t t
23295 s,@LDFLAGS@,$LDFLAGS,;t t
23296 s,@CPPFLAGS@,$CPPFLAGS,;t t
23297 s,@ac_ct_CC@,$ac_ct_CC,;t t
23298 s,@EXEEXT@,$EXEEXT,;t t
23299 s,@OBJEXT@,$OBJEXT,;t t
23300 s,@LN_S@,$LN_S,;t t
23302 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23303 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23305 s,@RANLIB@,$RANLIB,;t t
23306 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23307 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23308 s,@EGREP@,$EGREP,;t t
23309 s,@LIBSOUND@,$LIBSOUND,;t t
23310 s,@SET_MAKE@,$SET_MAKE,;t t
23311 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23312 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23313 s,@GTK_LIBS@,$GTK_LIBS,;t t
23314 s,@ALLOCA@,$ALLOCA,;t t
23315 s,@liblockfile@,$liblockfile,;t t
23316 s,@LIBOBJS@,$LIBOBJS,;t t
23317 s,@NEED_SETGID@,$NEED_SETGID,;t t
23318 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23319 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23320 s,@GETOPT_H@,$GETOPT_H,;t t
23321 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23322 s,@version@,$version,;t t
23323 s,@configuration@,$configuration,;t t
23324 s,@canonical@,$canonical,;t t
23325 s,@srcdir@,$srcdir,;t t
23326 s,@lispdir@,$lispdir,;t t
23327 s,@locallisppath@,$locallisppath,;t t
23328 s,@lisppath@,$lisppath,;t t
23329 s,@x_default_search_path@,$x_default_search_path,;t t
23330 s,@etcdir@,$etcdir,;t t
23331 s,@archlibdir@,$archlibdir,;t t
23332 s,@docdir@,$docdir,;t t
23333 s,@bitmapdir@,$bitmapdir,;t t
23334 s,@gamedir@,$gamedir,;t t
23335 s,@gameuser@,$gameuser,;t t
23336 s,@c_switch_system@,$c_switch_system,;t t
23337 s,@c_switch_machine@,$c_switch_machine,;t t
23338 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23339 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23340 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23341 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23342 s,@machfile@,$machfile,;t t
23343 s,@opsysfile@,$opsysfile,;t t
23344 s,@carbon_appdir@,$carbon_appdir,;t t
23345 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23351 # Split the substitutions into bite-sized pieces for seds with
23352 # small command number limits, like on Digital OSF/1 and HP-UX.
23353 ac_max_sed_lines
=48
23354 ac_sed_frag
=1 # Number of current file.
23355 ac_beg
=1 # First line for current file.
23356 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23359 while $ac_more_lines; do
23360 if test $ac_beg -gt 1; then
23361 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23363 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23365 if test ! -s $tmp/subs.frag
; then
23366 ac_more_lines
=false
23368 # The purpose of the label and of the branching condition is to
23369 # speed up the sed processing (if there are no `@' at all, there
23370 # is no need to browse any of the substitutions).
23371 # These are the two extra sed commands mentioned above.
23373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23374 if test -z "$ac_sed_cmds"; then
23375 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23377 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23379 ac_sed_frag
=`expr $ac_sed_frag + 1`
23381 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23384 if test -z "$ac_sed_cmds"; then
23387 fi # test -n "$CONFIG_FILES"
23390 cat >>$CONFIG_STATUS <<\_ACEOF
23391 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23394 - |
*:- |
*:-:* ) # input from stdin
23396 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23397 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23398 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23399 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23400 * ) ac_file_in
=$ac_file.
in ;;
23403 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23404 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23405 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23406 X"$ac_file" : 'X\(//\)[^/]' \| \
23407 X"$ac_file" : 'X\(//\)$' \| \
23408 X"$ac_file" : 'X\(/\)' \| \
23409 . : '\(.\)' 2>/dev/null ||
23411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23413 /^X\(\/\/\)$/{ s//\1/; q; }
23414 /^X\(\/\).*/{ s//\1/; q; }
23416 { if $as_mkdir_p; then
23421 while test ! -d "$as_dir"; do
23422 as_dirs
="$as_dir $as_dirs"
23423 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23425 X"$as_dir" : 'X\(//\)[^/]' \| \
23426 X"$as_dir" : 'X\(//\)$' \| \
23427 X"$as_dir" : 'X\(/\)' \| \
23428 . : '\(.\)' 2>/dev/null ||
23430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23432 /^X\(\/\/\)$/{ s//\1/; q; }
23433 /^X\(\/\).*/{ s//\1/; q; }
23436 test ! -n "$as_dirs" || mkdir
$as_dirs
23437 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23438 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23439 { (exit 1); exit 1; }; }; }
23443 if test "$ac_dir" != .
; then
23444 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23445 # A "../" for each directory in $ac_dir_suffix.
23446 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23448 ac_dir_suffix
= ac_top_builddir
=
23452 .
) # No --srcdir option. We are building in place.
23454 if test -z "$ac_top_builddir"; then
23457 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23459 [\\/]* | ?
:[\\/]* ) # Absolute path.
23460 ac_srcdir
=$srcdir$ac_dir_suffix;
23461 ac_top_srcdir
=$srcdir ;;
23462 *) # Relative path.
23463 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23464 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23467 # Do not use `cd foo && pwd` to compute absolute paths, because
23468 # the directories may not exist.
23470 .
) ac_abs_builddir
="$ac_dir";;
23473 .
) ac_abs_builddir
=`pwd`;;
23474 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23475 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23478 case $ac_abs_builddir in
23479 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23481 case ${ac_top_builddir}.
in
23482 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23483 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23484 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23487 case $ac_abs_builddir in
23488 .
) ac_abs_srcdir
=$ac_srcdir;;
23491 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23492 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23493 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23496 case $ac_abs_builddir in
23497 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23499 case $ac_top_srcdir in
23500 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23501 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23502 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23508 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23509 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23512 if test x
"$ac_file" != x-
; then
23513 { echo "$as_me:$LINENO: creating $ac_file" >&5
23514 echo "$as_me: creating $ac_file" >&6;}
23517 # Let's still pretend it is `configure' which instantiates (i.e., don't
23518 # use $as_me), people would be surprised to read:
23519 # /* config.h. Generated by config.status. */
23520 if test x
"$ac_file" = x-
; then
23523 configure_input
="$ac_file. "
23525 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23526 sed 's,.*/,,'` by configure."
23528 # First look for the input files in the build tree, otherwise in the
23530 ac_file_inputs
=`IFS=:
23531 for f in $ac_file_in; do
23533 -) echo $tmp/stdin ;;
23535 # Absolute (can't be DOS-style, as IFS=:)
23536 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23537 echo "$as_me: error: cannot find input file: $f" >&2;}
23538 { (exit 1); exit 1; }; }
23541 if test -f "$f"; then
23544 elif test -f "$srcdir/$f"; then
23549 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23550 echo "$as_me: error: cannot find input file: $f" >&2;}
23551 { (exit 1); exit 1; }; }
23554 done` ||
{ (exit 1); exit 1; }
23556 cat >>$CONFIG_STATUS <<_ACEOF
23560 cat >>$CONFIG_STATUS <<\_ACEOF
23562 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23563 s
,@configure_input@
,$configure_input,;t t
23564 s
,@srcdir@
,$ac_srcdir,;t t
23565 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23566 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23567 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23568 s
,@builddir@
,$ac_builddir,;t t
23569 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23570 s
,@top_builddir@
,$ac_top_builddir,;t t
23571 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23572 s
,@INSTALL@
,$ac_INSTALL,;t t
23573 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23575 if test x"$ac_file" != x-; then
23576 mv $tmp/out $ac_file
23584 cat >>$CONFIG_STATUS <<\_ACEOF
23587 # CONFIG_HEADER section.
23590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23593 # ac_d sets the value in "#define NAME VALUE" lines.
23594 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23595 ac_dB
='[ ].*$,\1#\2'
23598 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23599 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23600 ac_uB
='$,\1#\2define\3'
23604 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23607 - |
*:- |
*:-:* ) # input from stdin
23609 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23610 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23611 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23612 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23613 * ) ac_file_in
=$ac_file.
in ;;
23616 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23617 echo "$as_me: creating $ac_file" >&6;}
23619 # First look for the input files in the build tree, otherwise in the
23621 ac_file_inputs
=`IFS=:
23622 for f in $ac_file_in; do
23624 -) echo $tmp/stdin ;;
23626 # Absolute (can't be DOS-style, as IFS=:)
23627 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23628 echo "$as_me: error: cannot find input file: $f" >&2;}
23629 { (exit 1); exit 1; }; }
23630 # Do quote $f, to prevent DOS paths from being IFS'd.
23633 if test -f "$f"; then
23636 elif test -f "$srcdir/$f"; then
23641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23642 echo "$as_me: error: cannot find input file: $f" >&2;}
23643 { (exit 1); exit 1; }; }
23646 done` ||
{ (exit 1); exit 1; }
23647 # Remove the trailing spaces.
23648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23653 # `conftest.undefs', that substitutes the proper values into
23654 # config.h.in to produce config.h. The first handles `#define'
23655 # templates, and the second `#undef' templates.
23656 # And first: Protect against being on the right side of a sed subst in
23657 # config.status. Protect against being in an unquoted here document
23658 # in config.status.
23659 rm -f conftest.defines conftest.undefs
23660 # Using a here document instead of a string reduces the quoting nightmare.
23661 # Putting comments in sed scripts is not portable.
23663 # `end' is used to avoid that the second main sed command (meant for
23664 # 0-ary CPP macros) applies to n-ary macro definitions.
23665 # See the Autoconf documentation for `clear'.
23666 cat >confdef2sed.
sed <<\_ACEOF
23671 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23673 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23676 # If some macros were called several times there might be several times
23677 # the same #defines, which is useless. Nevertheless, we may not want to
23678 # sort them, since we want the *last* AC-DEFINE to be honored.
23679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23681 rm -f confdef2sed.sed
23683 # This sed command replaces #undef with comments. This is necessary, for
23684 # example, in the case of _POSIX_SOURCE, which is predefined and required
23685 # on some systems where configure will not decide to define it.
23686 cat >>conftest.undefs <<\_ACEOF
23687 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23690 # Break up conftest.defines because some shells have a limit on the size
23691 # of here documents, and old seds have small limits too (100 cmds).
23692 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23693 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23694 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23695 echo ' :' >>$CONFIG_STATUS
23696 rm -f conftest.tail
23697 while grep . conftest.defines >/dev/null
23699 # Write a limited-size here document to $tmp/defines.sed.
23700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23701 # Speed up: don't consider the non `#define' lines.
23702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23703 # Work around the forget-to-reset-the-flag bug.
23704 echo 't clr' >>$CONFIG_STATUS
23705 echo ': clr' >>$CONFIG_STATUS
23706 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23710 mv $tmp/out $tmp/in
23712 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23713 rm -f conftest.defines
23714 mv conftest.
tail conftest.defines
23716 rm -f conftest.defines
23717 echo ' fi # grep' >>$CONFIG_STATUS
23718 echo >>$CONFIG_STATUS
23720 # Break up conftest.undefs because some shells have a limit on the size
23721 # of here documents, and old seds have small limits too (100 cmds).
23722 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23723 rm -f conftest.
tail
23724 while grep . conftest.undefs
>/dev
/null
23726 # Write a limited-size here document to $tmp/undefs.sed.
23727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23728 # Speed up: don't consider the non
`#undef'
23729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23730 # Work around the forget-to-reset-the-flag bug.
23731 echo 't clr' >>$CONFIG_STATUS
23732 echo ': clr' >>$CONFIG_STATUS
23733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23737 mv $tmp/out $tmp/in
23739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23740 rm -f conftest.undefs
23741 mv conftest.tail conftest.undefs
23743 rm -f conftest.undefs
23745 cat >>$CONFIG_STATUS <<\_ACEOF
23746 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23747 # use $as_me), people would be surprised to read:
23748 # /* config.h. Generated by config.status. */
23749 if test x
"$ac_file" = x-
; then
23750 echo "/* Generated by configure. */" >$tmp/config.h
23752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23754 cat $tmp/in >>$tmp/config.h
23756 if test x
"$ac_file" != x-
; then
23757 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23759 echo "$as_me: $ac_file is unchanged" >&6;}
23761 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23763 X"$ac_file" : 'X\(//\)[^/]' \| \
23764 X"$ac_file" : 'X\(//\)$' \| \
23765 X"$ac_file" : 'X\(/\)' \| \
23766 . : '\(.\)' 2>/dev/null ||
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23770 /^X\(\/\/\)$/{ s//\1/; q; }
23771 /^X\(\/\).*/{ s//\1/; q; }
23773 { if $as_mkdir_p; then
23778 while test ! -d "$as_dir"; do
23779 as_dirs
="$as_dir $as_dirs"
23780 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23782 X"$as_dir" : 'X\(//\)[^/]' \| \
23783 X"$as_dir" : 'X\(//\)$' \| \
23784 X"$as_dir" : 'X\(/\)' \| \
23785 . : '\(.\)' 2>/dev/null ||
23787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23789 /^X\(\/\/\)$/{ s//\1/; q; }
23790 /^X\(\/\).*/{ s//\1/; q; }
23793 test ! -n "$as_dirs" || mkdir
$as_dirs
23794 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23796 { (exit 1); exit 1; }; }; }
23799 mv $tmp/config.h
$ac_file
23803 rm -f $tmp/config.h
23807 cat >>$CONFIG_STATUS <<\_ACEOF
23810 # CONFIG_COMMANDS section.
23812 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23813 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23814 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23815 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23816 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23817 X"$ac_dest" : 'X\(//\)[^/]' \| \
23818 X"$ac_dest" : 'X\(//\)$' \| \
23819 X"$ac_dest" : 'X\(/\)' \| \
23820 . : '\(.\)' 2>/dev/null ||
23822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23824 /^X\(\/\/\)$/{ s//\1/; q; }
23825 /^X\(\/\).*/{ s//\1/; q; }
23827 { if $as_mkdir_p; then
23832 while test ! -d "$as_dir"; do
23833 as_dirs
="$as_dir $as_dirs"
23834 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23836 X"$as_dir" : 'X\(//\)[^/]' \| \
23837 X"$as_dir" : 'X\(//\)$' \| \
23838 X"$as_dir" : 'X\(/\)' \| \
23839 . : '\(.\)' 2>/dev/null ||
23841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23843 /^X\(\/\/\)$/{ s//\1/; q; }
23844 /^X\(\/\).*/{ s//\1/; q; }
23847 test ! -n "$as_dirs" || mkdir
$as_dirs
23848 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23850 { (exit 1); exit 1; }; }; }
23854 if test "$ac_dir" != .
; then
23855 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23856 # A "../" for each directory in $ac_dir_suffix.
23857 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23859 ac_dir_suffix
= ac_top_builddir
=
23863 .
) # No --srcdir option. We are building in place.
23865 if test -z "$ac_top_builddir"; then
23868 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23870 [\\/]* | ?
:[\\/]* ) # Absolute path.
23871 ac_srcdir
=$srcdir$ac_dir_suffix;
23872 ac_top_srcdir
=$srcdir ;;
23873 *) # Relative path.
23874 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23875 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23878 # Do not use `cd foo && pwd` to compute absolute paths, because
23879 # the directories may not exist.
23881 .
) ac_abs_builddir
="$ac_dir";;
23884 .
) ac_abs_builddir
=`pwd`;;
23885 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23886 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23889 case $ac_abs_builddir in
23890 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23892 case ${ac_top_builddir}.
in
23893 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23894 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23895 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23898 case $ac_abs_builddir in
23899 .
) ac_abs_srcdir
=$ac_srcdir;;
23902 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23903 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23904 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23907 case $ac_abs_builddir in
23908 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23910 case $ac_top_srcdir in
23911 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23912 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23913 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23918 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23919 echo "$as_me: executing $ac_dest commands" >&6;}
23923 ### Make the necessary directories, if they don't exist.
23924 for dir
in etc lisp
; do
23925 test -d ${dir} || mkdir
${dir}
23928 # Build src/Makefile from ${srcdir}/src/Makefile.c
23929 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23930 # This must be done after src/config.h is built, since we rely on that file.
23932 # Now get this: Some word that is part of the ${srcdir} directory name
23933 # or the ${configuration} value might, just might, happen to be an
23934 # identifier like `sun4' or `i386' or something, and be predefined by
23935 # the C preprocessor to some helpful value like 1, or maybe the empty
23936 # string. Needless to say consequent macro substitutions are less
23937 # than conducive to the makefile finding the correct directory.
23938 undefs
="`echo $top_srcdir $configuration $canonical |
23939 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23940 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23943 echo creating src
/epaths.h
23944 ${MAKE-make} epaths-force
23946 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23947 # `..' to `. .' unless invoked with -traditional
23949 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23950 CPPFLAGS
="$CPPFLAGS -traditional"
23953 echo creating lib-src
/Makefile
23955 rm -f junk.c junk1.c junk2.c
23956 sed -e '/start of cpp stuff/q' \
23957 < Makefile.c
> junk1.c
23958 sed -e '1,/start of cpp stuff/d'\
23959 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23960 < Makefile.c
> junk.c
23961 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23962 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23963 cat junk1.c junk2.c
> Makefile.new
23964 rm -f junk.c junk1.c junk2.c
23965 chmod 444 Makefile.new
23966 mv -f Makefile.new Makefile
23969 echo creating src
/Makefile
23971 rm -f junk.c junk1.c junk2.c
23972 sed -e '/start of cpp stuff/q' \
23973 < Makefile.c
> junk1.c
23974 sed -e '1,/start of cpp stuff/d'\
23975 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23976 < Makefile.c
> junk.c
23977 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23978 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23979 cat junk1.c junk2.c
> Makefile.new
23980 rm -f junk.c junk1.c junk2.c
23981 chmod 444 Makefile.new
23982 mv -f Makefile.new Makefile
23985 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23986 echo creating src
/.gdbinit
23987 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23990 # This is how we know whether to re-run configure in certain cases.
23991 touch src
/config.stamp
23998 cat >>$CONFIG_STATUS <<\_ACEOF
24000 { (exit 0); exit 0; }
24002 chmod +x
$CONFIG_STATUS
24003 ac_clean_files
=$ac_clean_files_save
24006 # configure is writing to config.log, and then calls config.status.
24007 # config.status does its own redirection, appending to config.log.
24008 # Unfortunately, on DOS this fails, as config.log is still kept open
24009 # by configure, so config.status won't be able to write to it; its
24010 # output is simply discarded. So we exec the FD to /dev/null,
24011 # effectively closing config.log, so it can be properly (re)opened and
24012 # appended to by config.status. When coming back to configure, we
24013 # need to make the FD available again.
24014 if test "$no_create" != yes; then
24016 ac_config_status_args
=
24017 test "$silent" = yes &&
24018 ac_config_status_args
="$ac_config_status_args --quiet"
24020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24023 # would make configure fail if this is the last instruction.
24024 $ac_cs_success ||
{ (exit 1); exit 1; }