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"
2632 # Use fink packages if available.
2633 if test -d /sw
/include
&& test -d /sw
/lib
; then
2634 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2635 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2636 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2640 ## AMD x86-64 Linux-based GNU system
2641 x86_64-
*-linux-gnu* )
2642 machine
=amdx86-64 opsys
=gnu-linux
2650 ### If the code above didn't choose an operating system, just choose
2651 ### an operating system based on the configuration name. You really
2652 ### only want to use this when you have no idea what the right
2653 ### operating system is; if you know what operating systems a machine
2654 ### runs, it's cleaner to make it explicit in the case statement
2656 if test x
"${opsys}" = x
; then
2657 case "${canonical}" in
2658 *-gnu* ) opsys
=gnu
;;
2659 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2660 *-bsd4.2
) opsys
=bsd4-2
;;
2661 *-bsd4.3
) opsys
=bsd4-3
;;
2662 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2663 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2664 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2665 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2666 *-sysv4.2uw
* ) opsys
=unixware
;;
2667 *-sysv5uw* ) opsys
=unixware
;;
2668 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2669 *-sysv4.1
* |
*-sysvr4.1
* )
2670 NON_GNU_CPP
=/usr
/lib
/cpp
2672 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2673 if [ x
$NON_GNU_CPP = x
]; then
2674 if [ -f /usr
/ccs
/lib
/cpp
]; then
2675 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2677 NON_GNU_CPP
=/lib
/cpp
2681 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2690 if test $unported = yes; then
2691 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2692 Check \`etc/MACHINES' for recognized configuration names." >&5
2693 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2694 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2695 { (exit 1); exit 1; }; }
2698 machfile
="m/${machine}.h"
2699 opsysfile
="s/${opsys}.h"
2702 #### Choose a compiler.
2703 test -n "$CC" && cc_specified
=yes
2705 # Save the value of CFLAGS that the user specified.
2706 SPECIFIED_CFLAGS
="$CFLAGS"
2709 "yes" ) CC
="gcc" GCC
=yes ;;
2710 "no" ) : ${CC=cc} ;;
2714 ac_cpp
='$CPP $CPPFLAGS'
2715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC
="$CC" # Let the user override the test.
2729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir
=.
2734 for ac_exec_ext
in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$CC"; then
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2755 if test -z "$ac_cv_prog_CC"; then
2757 # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc
; ac_word
=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir
=.
2772 for ac_exec_ext
in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_ac_ct_CC
="gcc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC
="$CC" # Let the user override the test.
2809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir
=.
2814 for ac_exec_ext
in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test -n "$CC"; then
2827 echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_CC"; then
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc
; ac_word
=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC
="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc
; ac_word
=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC
="$CC" # Let the user override the test.
2890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir
=.
2895 for ac_exec_ext
in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected
=yes
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy
$ac_cv_prog_CC
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2917 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC
="$CC" # Let the user override the test.
2946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir
=.
2951 for ac_exec_ext
in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CC"; then
2964 echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$CC" && break
2974 if test -z "$CC"; then
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy
$ac_prog; ac_word
=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_exec_ext
in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC
="$ac_prog"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 test -n "$ac_ct_CC" && break
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO:" \
3030 "checking for C compiler version" >&5
3031 ac_compiler
=`set X $ac_compile; echo $2`
3032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3033 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3038 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3043 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 ac_clean_files_save
=$ac_clean_files
3064 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3065 # Try to create an executable without -o first, disregard a.out.
3066 # It will help us diagnose broken compilers, and finding out an intuition
3068 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3070 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3072 (eval $ac_link_default) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # Find the output, starting from the most likely. This scheme is
3077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3080 # Be careful to initialize this variable, since it used to be cached.
3081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3083 # b.out is created by i960 compilers.
3084 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3086 test -f "$ac_file" ||
continue
3088 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3091 # This is the source file.
3094 # We found the default executable, but exeext='' is most
3098 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # FIXME: I believe we export ac_cv_exeext for Libtool,
3100 # but it would be cool to find out if it's true. Does anybody
3101 # maintain Libtool? --akim.
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.
$ac_ext >&5
3112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C compiler cannot create executables
3115 See \`config.log' for more details." >&2;}
3116 { (exit 77); exit 77; }; }
3119 ac_exeext
=$ac_cv_exeext
3120 echo "$as_me:$LINENO: result: $ac_file" >&5
3121 echo "${ECHO_T}$ac_file" >&6
3123 # Check the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3128 # If not cross compiling, check that we can run a simple program.
3129 if test "$cross_compiling" != yes; then
3130 if { ac_try
='./$ac_file'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3138 if test "$cross_compiling" = maybe
; then
3141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3151 echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3154 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3155 ac_clean_files
=$ac_clean_files_save
3156 # Check the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 echo "${ECHO_T}$cross_compiling" >&6
3163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166 (eval $ac_link) 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe'), while it won't with
3174 for ac_file
in conftest.exe conftest conftest.
*; do
3175 test -f "$ac_file" ||
continue
3177 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3178 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3192 rm -f conftest
$ac_cv_exeext
3193 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3194 echo "${ECHO_T}$ac_cv_exeext" >&6
3196 rm -f conftest.
$ac_ext
3197 EXEEXT
=$ac_cv_exeext
3199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3201 if test "${ac_cv_objext+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 cat >conftest.
$ac_ext <<_ACEOF
3207 cat confdefs.h
>>conftest.
$ac_ext
3208 cat >>conftest.
$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.o conftest.obj
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; then
3225 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3227 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3228 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.
$ac_ext >&5
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3243 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3246 echo "${ECHO_T}$ac_cv_objext" >&6
3247 OBJEXT
=$ac_cv_objext
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.
$ac_ext <<_ACEOF
3257 cat confdefs.h
>>conftest.
$ac_ext
3258 cat >>conftest.
$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3272 rm -f conftest.
$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1
>conftest.err
3278 cat conftest.err
>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try
='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS
=${CFLAGS+set}
3309 ac_save_CFLAGS
=$CFLAGS
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.
$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1
>conftest.err
3337 cat conftest.err
>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.
$ac_ext >&5
3360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS
=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3373 if test "$GCC" = yes; then
3379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_cv_prog_cc_stdc
=no
3386 cat >conftest.
$ac_ext <<_ACEOF
3389 cat confdefs.h
>>conftest.
$ac_ext
3390 cat >>conftest.
$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3410 s = g (p, va_arg (v,int));
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
3418 as 'x'. The following induces an error, until -std1 is added to get
3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
3421 that's true only with -std1. */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 # Don't try gcc -ansi; that turns off useful extensions and
3439 # breaks some systems' header files.
3440 # AIX -qlanglvl=ansi
3441 # Ultrix and OSF/1 -std1
3442 # HP-UX 10.20 and later -Ae
3443 # HP-UX older versions -Aa -D_HPUX_SOURCE
3444 # SVR4 -Xc -D__EXTENSIONS__
3445 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447 CC
="$ac_save_CC $ac_arg"
3448 rm -f conftest.
$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1
>conftest.err
3454 cat conftest.err
>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try
='test -z "$ac_c_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try
='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 ac_cv_prog_cc_stdc
=$ac_arg
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.
$ac_ext >&5
3477 rm -f conftest.err conftest.
$ac_objext
3479 rm -f conftest.
$ac_ext conftest.
$ac_objext
3484 case "x$ac_cv_prog_cc_stdc" in
3486 echo "$as_me:$LINENO: result: none needed" >&5
3487 echo "${ECHO_T}none needed" >&6 ;;
3489 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3490 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3491 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3494 # Some people use a C++ compiler to compile C. Since we use `exit',
3495 # in C++ we need to declare it. In case someone uses the same compiler
3496 # for both compiling C and C++ we need to have the C++ compiler decide
3497 # the declaration of exit, since it's the most demanding environment.
3498 cat >conftest.
$ac_ext <<_ACEOF
3503 rm -f conftest.
$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>conftest.er1
3507 grep -v '^ *+' conftest.er1
>conftest.err
3509 cat conftest.err
>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try
='test -z "$ac_c_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try
='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 for ac_declaration
in \
3527 'extern "C" void std::exit (int) throw (); using std::exit;' \
3528 'extern "C" void std::exit (int); using std::exit;' \
3529 'extern "C" void exit (int) throw ();' \
3530 'extern "C" void exit (int);' \
3533 cat >conftest.
$ac_ext <<_ACEOF
3536 cat confdefs.h
>>conftest.
$ac_ext
3537 cat >>conftest.
$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3549 rm -f conftest.
$ac_objext
3550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3553 grep -v '^ *+' conftest.er1
>conftest.err
3555 cat conftest.err
>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try
='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try
='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.
$ac_ext >&5
3578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.
$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3598 grep -v '^ *+' conftest.er1
>conftest.err
3600 cat conftest.err
>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try
='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try
='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.
$ac_ext >&5
3622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3625 if test -n "$ac_declaration"; then
3626 echo '#ifdef __cplusplus' >>confdefs.h
3627 echo $ac_declaration >>confdefs.h
3628 echo '#endif' >>confdefs.h
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3638 ac_cpp
='$CPP $CPPFLAGS'
3639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3649 #### Some systems specify a CPP to use unless we are using GCC.
3650 #### Now that we know whether we are using GCC, we can decide whether
3651 #### to use that one.
3652 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3657 #### Some systems specify a CC to use unless we are using GCC.
3658 #### Now that we know whether we are using GCC, we can decide whether
3659 #### to use that one.
3660 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3661 test x
$cc_specified != xyes
3666 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3668 CC
="$CC $GCC_TEST_OPTIONS"
3671 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3673 CC
="$CC $NON_GCC_TEST_OPTIONS"
3676 #### Some other nice autoconf tests.
3678 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3681 if test "$LN_S" = "ln -s"; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6
3685 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3686 echo "${ECHO_T}no, using $LN_S" >&6
3690 ac_cpp
='$CPP $CPPFLAGS'
3691 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3694 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3696 # On Suns, sometimes $CPP names a directory.
3697 if test -n "$CPP" && test -d "$CPP"; then
3700 if test -z "$CPP"; then
3701 if test "${ac_cv_prog_CPP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 # Double quotes because CPP needs to be expanded
3705 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3708 for ac_c_preproc_warn_flag
in '' yes
3710 # Use a header file that comes with gcc, so configuring glibc
3711 # with a fresh cross-compiler works.
3712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 # <limits.h> exists even on freestanding compilers.
3714 # On the NeXT, cc -E runs the code through the compiler's parser,
3715 # not just through cpp. "Syntax error" is here to catch this case.
3716 cat >conftest.
$ac_ext <<_ACEOF
3719 cat confdefs.h
>>conftest.
$ac_ext
3720 cat >>conftest.
$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3723 # include <limits.h>
3725 # include <assert.h>
3729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3732 grep -v '^ *+' conftest.er1
>conftest.err
3734 cat conftest.err
>&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev
/null
; then
3737 if test -s conftest.err
; then
3738 ac_cpp_err
=$ac_c_preproc_warn_flag
3739 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3746 if test -z "$ac_cpp_err"; then
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.
$ac_ext >&5
3752 # Broken: fails on valid input.
3755 rm -f conftest.err conftest.
$ac_ext
3757 # OK, works on sane cases. Now check whether non-existent headers
3758 # can be detected and how.
3759 cat >conftest.
$ac_ext <<_ACEOF
3762 cat confdefs.h
>>conftest.
$ac_ext
3763 cat >>conftest.
$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <ac_nonexistent.h>
3767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3768 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3770 grep -v '^ *+' conftest.er1
>conftest.err
3772 cat conftest.err
>&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev
/null
; then
3775 if test -s conftest.err
; then
3776 ac_cpp_err
=$ac_c_preproc_warn_flag
3777 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3784 if test -z "$ac_cpp_err"; then
3785 # Broken: success on invalid input.
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.
$ac_ext >&5
3791 # Passes both tests.
3795 rm -f conftest.err conftest.
$ac_ext
3798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3799 rm -f conftest.err conftest.
$ac_ext
3800 if $ac_preproc_ok; then
3812 echo "$as_me:$LINENO: result: $CPP" >&5
3813 echo "${ECHO_T}$CPP" >&6
3815 for ac_c_preproc_warn_flag
in '' yes
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat >conftest.
$ac_ext <<_ACEOF
3826 cat confdefs.h
>>conftest.
$ac_ext
3827 cat >>conftest.
$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3830 # include <limits.h>
3832 # include <assert.h>
3836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3837 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3839 grep -v '^ *+' conftest.er1
>conftest.err
3841 cat conftest.err
>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } >/dev
/null
; then
3844 if test -s conftest.err
; then
3845 ac_cpp_err
=$ac_c_preproc_warn_flag
3846 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3853 if test -z "$ac_cpp_err"; then
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.
$ac_ext >&5
3859 # Broken: fails on valid input.
3862 rm -f conftest.err conftest.
$ac_ext
3864 # OK, works on sane cases. Now check whether non-existent headers
3865 # can be detected and how.
3866 cat >conftest.
$ac_ext <<_ACEOF
3869 cat confdefs.h
>>conftest.
$ac_ext
3870 cat >>conftest.
$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <ac_nonexistent.h>
3874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3877 grep -v '^ *+' conftest.er1
>conftest.err
3879 cat conftest.err
>&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev
/null
; then
3882 if test -s conftest.err
; then
3883 ac_cpp_err
=$ac_c_preproc_warn_flag
3884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3891 if test -z "$ac_cpp_err"; then
3892 # Broken: success on invalid input.
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.
$ac_ext >&5
3898 # Passes both tests.
3902 rm -f conftest.err conftest.
$ac_ext
3905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906 rm -f conftest.err conftest.
$ac_ext
3907 if $ac_preproc_ok; then
3910 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&5
3912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3913 See \`config.log' for more details." >&2;}
3914 { (exit 1); exit 1; }; }
3918 ac_cpp
='$CPP $CPPFLAGS'
3919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3923 # Find a good install program. We prefer a C program (faster),
3924 # so one script is as good as another. But avoid the broken or
3925 # incompatible versions:
3926 # SysV /etc/install, /usr/sbin/install
3927 # SunOS /usr/etc/install
3928 # IRIX /sbin/install
3930 # AmigaOS /C/install, which installs bootblocks on floppy discs
3931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3934 # OS/2's system install, which has a completely different semantic
3935 # ./install, which can be erroneously created by make from ./install.sh.
3936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3938 if test -z "$INSTALL"; then
3939 if test "${ac_cv_path_install+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 # Account for people who put trailing slashes in PATH elements.
3949 .
/ | .
// |
/cC
/* | \
3950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3954 # OSF1 and SCO ODT 3.0 have their own names for install.
3955 # Don't use installbsd from OSF since it installs stuff as root
3957 for ac_prog
in ginstall scoinst
install; do
3958 for ac_exec_ext
in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3960 if test $ac_prog = install &&
3961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3962 # AIX install. It has an incompatible calling convention.
3964 elif test $ac_prog = install &&
3965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3966 # program-specific install script used by HP pwplus--don't use.
3969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3981 if test "${ac_cv_path_install+set}" = set; then
3982 INSTALL
=$ac_cv_path_install
3984 # As a last resort, use the slow shell script. We don't cache a
3985 # path for INSTALL within a source directory, because that will
3986 # break other packages using the cache if that directory is
3987 # removed, or if the path is relative.
3988 INSTALL
=$ac_install_sh
3991 echo "$as_me:$LINENO: result: $INSTALL" >&5
3992 echo "${ECHO_T}$INSTALL" >&6
3994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3995 # It thinks the first close brace ends the variable substitution.
3996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4000 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4002 if test "x$RANLIB" = x
; then
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4005 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_RANLIB+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if test -n "$RANLIB"; then
4012 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir
=.
4019 for ac_exec_ext
in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 RANLIB
=$ac_cv_prog_RANLIB
4031 if test -n "$RANLIB"; then
4032 echo "$as_me:$LINENO: result: $RANLIB" >&5
4033 echo "${ECHO_T}$RANLIB" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4040 if test -z "$ac_cv_prog_RANLIB"; then
4041 ac_ct_RANLIB
=$RANLIB
4042 # Extract the first word of "ranlib", so it can be a program name with args.
4043 set dummy ranlib
; ac_word
=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -n "$ac_ct_RANLIB"; then
4050 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4069 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4070 if test -n "$ac_ct_RANLIB"; then
4071 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4072 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4078 RANLIB
=$ac_ct_RANLIB
4080 RANLIB
="$ac_cv_prog_RANLIB"
4084 # Extract the first word of "install-info", so it can be a program name with args.
4085 set dummy install-info
; ac_word
=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 case $INSTALL_INFO in
4093 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir
=.
4101 for ac_exec_ext
in '' $ac_executable_extensions; do
4102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4115 if test -n "$INSTALL_INFO"; then
4116 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4117 echo "${ECHO_T}$INSTALL_INFO" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4123 # Extract the first word of "install-info", so it can be a program name with args.
4124 set dummy install-info
; ac_word
=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 case $INSTALL_INFO in
4132 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4136 for as_dir
in /usr
/sbin
4139 test -z "$as_dir" && as_dir
=.
4140 for ac_exec_ext
in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4154 if test -n "$INSTALL_INFO"; then
4155 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4156 echo "${ECHO_T}$INSTALL_INFO" >&6
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4162 # Extract the first word of "install-info", so it can be a program name with args.
4163 set dummy install-info
; ac_word
=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 case $INSTALL_INFO in
4171 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir
=.
4179 for ac_exec_ext
in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4192 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4194 if test -n "$INSTALL_INFO"; then
4195 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4196 echo "${ECHO_T}$INSTALL_INFO" >&6
4198 echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6
4204 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4206 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4209 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4211 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4215 late_LDFLAGS
=$LDFLAGS
4216 if test "$GCC" = yes; then
4217 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4219 LDFLAGS
="$LDFLAGS -znocombreloc"
4222 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4223 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4225 cat >conftest.
$ac_ext <<_ACEOF
4228 rm -f conftest.
$ac_objext conftest
$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>conftest.er1
4232 grep -v '^ *+' conftest.er1
>conftest.err
4234 cat conftest.err
>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try
='test -z "$ac_c_werror_flag"
4238 || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try
='test -s conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 echo "$as_me:$LINENO: result: yes" >&5
4251 echo "${ECHO_T}yes" >&6
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.
$ac_ext >&5
4256 LDFLAGS
=$late_LDFLAGS
4257 echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4260 rm -f conftest.err conftest.
$ac_objext \
4261 conftest
$ac_exeext conftest.
$ac_ext
4264 echo "$as_me:$LINENO: checking for egrep" >&5
4265 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4266 if test "${ac_cv_prog_egrep+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4270 then ac_cv_prog_egrep
='grep -E'
4271 else ac_cv_prog_egrep
='egrep'
4274 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4275 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4276 EGREP
=$ac_cv_prog_egrep
4280 echo "$as_me:$LINENO: checking for AIX" >&5
4281 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294 $EGREP "yes" >/dev
/null
2>&1; then
4295 echo "$as_me:$LINENO: result: yes" >&5
4296 echo "${ECHO_T}yes" >&6
4297 cat >>confdefs.h
<<\_ACEOF
4298 #define _ALL_SOURCE 1
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4310 #### Extract some information from the operating system and machine files.
4312 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4313 - which libraries the lib-src programs will want, and
4314 - whether the GNU malloc routines are usable..." >&5
4315 echo "$as_me: checking the machine- and system-dependent files to find out
4316 - which libraries the lib-src programs will want, and
4317 - whether the GNU malloc routines are usable..." >&6;}
4319 ### First figure out CFLAGS (which we use for running the compiler here)
4320 ### and REAL_CFLAGS (which we use for real compilation).
4321 ### The two are the same except on a few systems, where they are made
4322 ### different to work around various lossages. For example,
4323 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4324 ### as implying static linking.
4326 ### If the CFLAGS env var is specified, we use that value
4327 ### instead of the default.
4329 ### It's not important that this name contain the PID; you can't run
4330 ### two configures in the same directory and have anything work
4332 tempcname
="conftest.c"
4335 #include "'${srcdir}'/src/'${opsysfile}'"
4336 #include "'${srcdir}'/src/'${machfile}'"
4337 #ifndef LIBS_MACHINE
4338 #define LIBS_MACHINE
4343 #ifndef C_SWITCH_SYSTEM
4344 #define C_SWITCH_SYSTEM
4346 #ifndef C_SWITCH_MACHINE
4347 #define C_SWITCH_MACHINE
4349 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4350 configure___ c_switch_system=C_SWITCH_SYSTEM
4351 configure___ c_switch_machine=C_SWITCH_MACHINE
4354 #define LIB_X11_LIB -lX11
4357 #ifndef LIBX11_MACHINE
4358 #define LIBX11_MACHINE
4361 #ifndef LIBX11_SYSTEM
4362 #define LIBX11_SYSTEM
4364 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4367 configure___ unexec=UNEXEC
4369 configure___ unexec=unexec.o
4372 #ifdef SYSTEM_MALLOC
4373 configure___ system_malloc=yes
4375 configure___ system_malloc=no
4378 #ifdef USE_MMAP_FOR_BUFFERS
4379 configure___ use_mmap_for_buffers=yes
4381 configure___ use_mmap_for_buffers=no
4384 #ifndef C_DEBUG_SWITCH
4385 #define C_DEBUG_SWITCH -g
4388 #ifndef C_OPTIMIZE_SWITCH
4390 #define C_OPTIMIZE_SWITCH -O2
4392 #define C_OPTIMIZE_SWITCH -O
4396 #ifndef LD_SWITCH_MACHINE
4397 #define LD_SWITCH_MACHINE
4400 #ifndef LD_SWITCH_SYSTEM
4401 #define LD_SWITCH_SYSTEM
4404 #ifndef LD_SWITCH_X_SITE_AUX
4405 #define LD_SWITCH_X_SITE_AUX
4408 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4409 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4411 #ifdef THIS_IS_CONFIGURE
4413 /* Get the CFLAGS for tests in configure. */
4415 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4417 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4420 #else /* not THIS_IS_CONFIGURE */
4422 /* Get the CFLAGS for real compilation. */
4424 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4426 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4429 #endif /* not THIS_IS_CONFIGURE */
4432 # The value of CPP is a quoted variable reference, so we need to do this
4433 # to get its actual value...
4434 CPP
=`eval "echo $CPP"`
4435 eval `${CPP} -Isrc ${tempcname} \
4436 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4437 if test "x$SPECIFIED_CFLAGS" = x
; then
4438 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4439 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4441 REAL_CFLAGS
="$CFLAGS"
4445 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4447 ### Make sure subsequent tests use flags consistent with the build flags.
4449 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4450 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4452 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4458 cat >>confdefs.h
<<\_ACEOF
4459 #define _GNU_SOURCE 1
4464 # Check whether --enable-largefile or --disable-largefile was given.
4465 if test "${enable_largefile+set}" = set; then
4466 enableval
="$enable_largefile"
4469 if test "$enable_largefile" != no
; then
4471 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4472 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4473 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_cv_sys_largefile_CC
=no
4477 if test "$GCC" != yes; then
4480 # IRIX 6.2 and later do not support large files by default,
4481 # so use the C compiler's -n32 option if that helps.
4482 cat >conftest.
$ac_ext <<_ACEOF
4485 cat confdefs.h
>>conftest.
$ac_ext
4486 cat >>conftest.
$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <sys/types.h>
4489 /* Check that off_t can represent 2**63 - 1 correctly.
4490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4491 since some C++ compilers masquerading as C compilers
4492 incorrectly reject 9223372036854775807. */
4493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4495 && LARGE_OFF_T % 2147483647 == 1)
4505 rm -f conftest.
$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>conftest.er1
4509 grep -v '^ *+' conftest.er1
>conftest.err
4511 cat conftest.err
>&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try
='test -z "$ac_c_werror_flag"
4515 || test ! -s conftest.err'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try
='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.
$ac_ext >&5
4533 rm -f conftest.err conftest.
$ac_objext
4535 rm -f conftest.
$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4539 grep -v '^ *+' conftest.er1
>conftest.err
4541 cat conftest.err
>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try
='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try
='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_sys_largefile_CC
=' -n32'; break
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4563 rm -f conftest.err conftest.
$ac_objext
4567 rm -f conftest.
$ac_ext
4570 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4571 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4572 if test "$ac_cv_sys_largefile_CC" != no
; then
4573 CC
=$CC$ac_cv_sys_largefile_CC
4576 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4577 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4578 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_sys_file_offset_bits
=no
4583 cat >conftest.
$ac_ext <<_ACEOF
4586 cat confdefs.h
>>conftest.
$ac_ext
4587 cat >>conftest.
$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 #include <sys/types.h>
4590 /* Check that off_t can represent 2**63 - 1 correctly.
4591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4592 since some C++ compilers masquerading as C compilers
4593 incorrectly reject 9223372036854775807. */
4594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4596 && LARGE_OFF_T % 2147483647 == 1)
4606 rm -f conftest.
$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1
>conftest.err
4612 cat conftest.err
>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try
='test -z "$ac_c_werror_flag"
4616 || test ! -s conftest.err'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try
='test -s conftest.$ac_objext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.
$ac_ext >&5
4634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 cat >conftest.
$ac_ext <<_ACEOF
4638 cat confdefs.h
>>conftest.
$ac_ext
4639 cat >>conftest.
$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #define _FILE_OFFSET_BITS 64
4642 #include <sys/types.h>
4643 /* Check that off_t can represent 2**63 - 1 correctly.
4644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4645 since some C++ compilers masquerading as C compilers
4646 incorrectly reject 9223372036854775807. */
4647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4649 && LARGE_OFF_T % 2147483647 == 1)
4659 rm -f conftest.
$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4663 grep -v '^ *+' conftest.er1
>conftest.err
4665 cat conftest.err
>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try
='test -z "$ac_c_werror_flag"
4669 || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try
='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_sys_file_offset_bits
=64; break
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4692 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4693 if test "$ac_cv_sys_file_offset_bits" != no
; then
4695 cat >>confdefs.h
<<_ACEOF
4696 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4701 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4702 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4703 if test "${ac_cv_sys_large_files+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 ac_cv_sys_large_files
=no
4708 cat >conftest.
$ac_ext <<_ACEOF
4711 cat confdefs.h
>>conftest.
$ac_ext
4712 cat >>conftest.
$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <sys/types.h>
4715 /* Check that off_t can represent 2**63 - 1 correctly.
4716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4717 since some C++ compilers masquerading as C compilers
4718 incorrectly reject 9223372036854775807. */
4719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4721 && LARGE_OFF_T % 2147483647 == 1)
4731 rm -f conftest.
$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1
>conftest.err
4737 cat conftest.err
>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try
='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try
='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.
$ac_ext >&5
4759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 #define _LARGE_FILES 1
4767 #include <sys/types.h>
4768 /* Check that off_t can represent 2**63 - 1 correctly.
4769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4770 since some C++ compilers masquerading as C compilers
4771 incorrectly reject 9223372036854775807. */
4772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4774 && LARGE_OFF_T % 2147483647 == 1)
4784 rm -f conftest.
$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>conftest.er1
4788 grep -v '^ *+' conftest.er1
>conftest.err
4790 cat conftest.err
>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try
='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try
='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_sys_large_files
=1; break
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4817 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4818 if test "$ac_cv_sys_large_files" != no
; then
4820 cat >>confdefs.h
<<_ACEOF
4821 #define _LARGE_FILES $ac_cv_sys_large_files
4829 if test "${with_sound}" != "no"; then
4830 # Sound support for GNU/Linux and the free BSDs.
4831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4833 if test "${ac_cv_header_stdc+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 cat >conftest.
$ac_ext <<_ACEOF
4839 cat confdefs.h
>>conftest.
$ac_ext
4840 cat >>conftest.
$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4855 rm -f conftest.
$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1
>conftest.err
4861 cat conftest.err
>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try
='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try
='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_cv_header_stdc
=yes
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.
$ac_ext >&5
4882 ac_cv_header_stdc
=no
4884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 if test $ac_cv_header_stdc = yes; then
4887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4888 cat >conftest.
$ac_ext <<_ACEOF
4891 cat confdefs.h
>>conftest.
$ac_ext
4892 cat >>conftest.
$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "memchr" >/dev
/null
2>&1; then
4901 ac_cv_header_stdc
=no
4907 if test $ac_cv_header_stdc = yes; then
4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909 cat >conftest.
$ac_ext <<_ACEOF
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4919 $EGREP "free" >/dev
/null
2>&1; then
4922 ac_cv_header_stdc
=no
4928 if test $ac_cv_header_stdc = yes; then
4929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4930 if test "$cross_compiling" = yes; then
4933 cat >conftest.
$ac_ext <<_ACEOF
4936 cat confdefs.h
>>conftest.
$ac_ext
4937 cat >>conftest.
$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4940 #if ((' ' & 0x0FF) == 0x020)
4941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4944 # define ISLOWER(c) \
4945 (('a' <= (c) && (c) <= 'i') \
4946 || ('j' <= (c) && (c) <= 'r') \
4947 || ('s' <= (c) && (c) <= 'z'))
4948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4956 for (i = 0; i < 256; i++)
4957 if (XOR (islower (i), ISLOWER (i))
4958 || toupper (i) != TOUPPER (i))
4963 rm -f conftest
$ac_exeext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4965 (eval $ac_link) 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4976 echo "$as_me: program exited with status $ac_status" >&5
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.
$ac_ext >&5
4981 ac_cv_header_stdc
=no
4983 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4989 if test $ac_cv_header_stdc = yes; then
4991 cat >>confdefs.h
<<\_ACEOF
4992 #define STDC_HEADERS 1
4997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5007 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5008 inttypes.h stdint.h unistd.h
5010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011 echo "$as_me:$LINENO: checking for $ac_header" >&5
5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 cat >conftest.
$ac_ext <<_ACEOF
5019 cat confdefs.h
>>conftest.
$ac_ext
5020 cat >>conftest.
$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5024 #include <$ac_header>
5026 rm -f conftest.
$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1
>conftest.err
5032 cat conftest.err
>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try
='test -z "$ac_c_werror_flag"
5036 || test ! -s conftest.err'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try
='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5048 eval "$as_ac_Header=yes"
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.
$ac_ext >&5
5053 eval "$as_ac_Header=no"
5055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5060 cat >>confdefs.h
<<_ACEOF
5061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5074 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076 echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5084 # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 $ac_includes_default
5094 #include <$ac_header>
5096 rm -f conftest.
$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098 (eval $ac_compile) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1
>conftest.err
5102 cat conftest.err
>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try
='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try
='test -s conftest.$ac_objext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_header_compiler
=yes
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.
$ac_ext >&5
5123 ac_header_compiler
=no
5125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5127 echo "${ECHO_T}$ac_header_compiler" >&6
5129 # Is the header present?
5130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5132 cat >conftest.
$ac_ext <<_ACEOF
5135 cat confdefs.h
>>conftest.
$ac_ext
5136 cat >>conftest.
$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 #include <$ac_header>
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5143 grep -v '^ *+' conftest.er1
>conftest.err
5145 cat conftest.err
>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev
/null
; then
5148 if test -s conftest.err
; then
5149 ac_cpp_err
=$ac_c_preproc_warn_flag
5150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5157 if test -z "$ac_cpp_err"; then
5158 ac_header_preproc
=yes
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.
$ac_ext >&5
5163 ac_header_preproc
=no
5165 rm -f conftest.err conftest.
$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5167 echo "${ECHO_T}$ac_header_preproc" >&6
5169 # So? What about this header?
5170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5176 ac_header_preproc
=yes
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5193 ## ------------------------------------------ ##
5194 ## Report this to the AC_PACKAGE_NAME lists. ##
5195 ## ------------------------------------------ ##
5198 sed "s/^/$as_me: WARNING: /" >&2
5201 echo "$as_me:$LINENO: checking for $ac_header" >&5
5202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 eval "$as_ac_Header=\$ac_header_preproc"
5208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5213 cat >>confdefs.h
<<_ACEOF
5214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5221 # Emulation library used on NetBSD.
5222 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5223 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5224 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_check_lib_save_LIBS
=$LIBS
5228 LIBS
="-lossaudio $LIBS"
5229 cat >conftest.
$ac_ext <<_ACEOF
5232 cat confdefs.h
>>conftest.
$ac_ext
5233 cat >>conftest.
$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5251 rm -f conftest.
$ac_objext conftest
$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1
>conftest.err
5257 cat conftest.err
>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try
='test -z "$ac_c_werror_flag"
5261 || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try
='test -s conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_lib_ossaudio__oss_ioctl
=yes
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.
$ac_ext >&5
5278 ac_cv_lib_ossaudio__oss_ioctl
=no
5280 rm -f conftest.err conftest.
$ac_objext \
5281 conftest
$ac_exeext conftest.
$ac_ext
5282 LIBS
=$ac_check_lib_save_LIBS
5284 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5285 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5286 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5320 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5321 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5322 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5323 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo "$as_me:$LINENO: checking for $ac_header" >&5
5329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 # Is the header compilable?
5337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5339 cat >conftest.
$ac_ext <<_ACEOF
5342 cat confdefs.h
>>conftest.
$ac_ext
5343 cat >>conftest.
$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5346 #include <$ac_header>
5348 rm -f conftest.
$ac_objext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>conftest.er1
5352 grep -v '^ *+' conftest.er1
>conftest.err
5354 cat conftest.err
>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try
='test -z "$ac_c_werror_flag"
5358 || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try
='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_header_compiler
=yes
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.
$ac_ext >&5
5375 ac_header_compiler
=no
5377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379 echo "${ECHO_T}$ac_header_compiler" >&6
5381 # Is the header present?
5382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384 cat >conftest.
$ac_ext <<_ACEOF
5387 cat confdefs.h
>>conftest.
$ac_ext
5388 cat >>conftest.
$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <$ac_header>
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1
>conftest.err
5397 cat conftest.err
>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev
/null
; then
5400 if test -s conftest.err
; then
5401 ac_cpp_err
=$ac_c_preproc_warn_flag
5402 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5409 if test -z "$ac_cpp_err"; then
5410 ac_header_preproc
=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.
$ac_ext >&5
5415 ac_header_preproc
=no
5417 rm -f conftest.err conftest.
$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5419 echo "${ECHO_T}$ac_header_preproc" >&6
5421 # So? What about this header?
5422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5428 ac_header_preproc
=yes
5431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5445 ## ------------------------------------------ ##
5446 ## Report this to the AC_PACKAGE_NAME lists. ##
5447 ## ------------------------------------------ ##
5450 sed "s/^/$as_me: WARNING: /" >&2
5453 echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 eval "$as_ac_Header=\$ac_header_preproc"
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5465 cat >>confdefs.h
<<_ACEOF
5466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5475 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5476 cat >conftest.
$ac_ext <<_ACEOF
5479 cat confdefs.h
>>conftest.
$ac_ext
5480 cat >>conftest.
$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <sys/personality.h>
5486 personality (PER_LINUX32)
5491 rm -f conftest.
$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1
>conftest.err
5497 cat conftest.err
>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try
='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try
='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 emacs_cv_personality_linux32
=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.
$ac_ext >&5
5518 emacs_cv_personality_linux32
=no
5520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5521 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5522 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5524 if test $emacs_cv_personality_linux32 = yes; then
5526 cat >>confdefs.h
<<\_ACEOF
5527 #define HAVE_PERSONALITY_LINUX32 1
5533 for ac_header
in term.h
5535 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536 echo "$as_me:$LINENO: checking for $ac_header" >&5
5537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 cat >conftest.
$ac_ext <<_ACEOF
5544 cat confdefs.h
>>conftest.
$ac_ext
5545 cat >>conftest.
$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 #include <$ac_header>
5549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5552 grep -v '^ *+' conftest.er1
>conftest.err
5554 cat conftest.err
>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev
/null
; then
5557 if test -s conftest.err
; then
5558 ac_cpp_err
=$ac_c_preproc_warn_flag
5559 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5566 if test -z "$ac_cpp_err"; then
5567 eval "$as_ac_Header=yes"
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.
$ac_ext >&5
5572 eval "$as_ac_Header=no"
5574 rm -f conftest.err conftest.
$ac_ext
5576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h
<<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5589 if test "${ac_cv_header_stdc+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 cat >conftest.
$ac_ext <<_ACEOF
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5611 rm -f conftest.
$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5615 grep -v '^ *+' conftest.er1
>conftest.err
5617 cat conftest.err
>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try
='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try
='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_header_stdc
=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5638 ac_cv_header_stdc
=no
5640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 if test $ac_cv_header_stdc = yes; then
5643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5644 cat >conftest.
$ac_ext <<_ACEOF
5647 cat confdefs.h
>>conftest.
$ac_ext
5648 cat >>conftest.
$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654 $EGREP "memchr" >/dev
/null
2>&1; then
5657 ac_cv_header_stdc
=no
5663 if test $ac_cv_header_stdc = yes; then
5664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5665 cat >conftest.
$ac_ext <<_ACEOF
5668 cat confdefs.h
>>conftest.
$ac_ext
5669 cat >>conftest.
$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 $EGREP "free" >/dev
/null
2>&1; then
5678 ac_cv_header_stdc
=no
5684 if test $ac_cv_header_stdc = yes; then
5685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5686 if test "$cross_compiling" = yes; then
5689 cat >conftest.
$ac_ext <<_ACEOF
5692 cat confdefs.h
>>conftest.
$ac_ext
5693 cat >>conftest.
$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5719 rm -f conftest
$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 (eval $ac_link) 2>&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5732 echo "$as_me: program exited with status $ac_status" >&5
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.
$ac_ext >&5
5737 ac_cv_header_stdc
=no
5739 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5745 if test $ac_cv_header_stdc = yes; then
5747 cat >>confdefs.h
<<\_ACEOF
5748 #define STDC_HEADERS 1
5753 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5754 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5755 if test "${ac_cv_header_time+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 cat >conftest.
$ac_ext <<_ACEOF
5761 cat confdefs.h
>>conftest.
$ac_ext
5762 cat >>conftest.
$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5765 #include <sys/time.h>
5771 if ((struct tm *) 0)
5777 rm -f conftest.
$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try
='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try
='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_header_time
=yes
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5804 ac_cv_header_time
=no
5806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5809 echo "${ECHO_T}$ac_cv_header_time" >&6
5810 if test $ac_cv_header_time = yes; then
5812 cat >>confdefs.h
<<\_ACEOF
5813 #define TIME_WITH_SYS_TIME 1
5818 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5819 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5820 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5826 cat confdefs.h
>>conftest.
$ac_ext
5827 cat >>conftest.
$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5834 char *p = (char *) sys_siglist;
5841 rm -f conftest.
$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1
>conftest.err
5847 cat conftest.err
>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try
='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try
='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_have_decl_sys_siglist
=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.
$ac_ext >&5
5868 ac_cv_have_decl_sys_siglist
=no
5870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5873 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5874 if test $ac_cv_have_decl_sys_siglist = yes; then
5876 cat >>confdefs.h
<<_ACEOF
5877 #define HAVE_DECL_SYS_SIGLIST 1
5882 cat >>confdefs.h
<<_ACEOF
5883 #define HAVE_DECL_SYS_SIGLIST 0
5890 if test $ac_cv_have_decl_sys_siglist != yes; then
5891 # For Tru64, at least:
5892 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5893 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5894 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 cat >conftest.
$ac_ext <<_ACEOF
5900 cat confdefs.h
>>conftest.
$ac_ext
5901 cat >>conftest.
$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5907 #ifndef __sys_siglist
5908 char *p = (char *) __sys_siglist;
5915 rm -f conftest.
$ac_objext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>conftest.er1
5919 grep -v '^ *+' conftest.er1
>conftest.err
5921 cat conftest.err
>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try
='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try
='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_have_decl___sys_siglist
=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_cv_have_decl___sys_siglist
=no
5944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5946 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5947 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5948 if test $ac_cv_have_decl___sys_siglist = yes; then
5950 cat >>confdefs.h
<<_ACEOF
5951 #define HAVE_DECL___SYS_SIGLIST 1
5956 cat >>confdefs.h
<<_ACEOF
5957 #define HAVE_DECL___SYS_SIGLIST 0
5964 if test $ac_cv_have_decl___sys_siglist = yes; then
5966 cat >>confdefs.h
<<\_ACEOF
5967 #define sys_siglist __sys_siglist
5972 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5973 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5974 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/types.h>
5984 #include <sys/wait.h>
5986 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5989 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5997 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6002 rm -f conftest.
$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>conftest.er1
6006 grep -v '^ *+' conftest.er1
>conftest.err
6008 cat conftest.err
>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try
='test -z "$ac_c_werror_flag"
6012 || test ! -s conftest.err'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; } &&
6018 { ac_try
='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_header_sys_wait_h
=yes
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.
$ac_ext >&5
6029 ac_cv_header_sys_wait_h
=no
6031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6033 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6034 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6035 if test $ac_cv_header_sys_wait_h = yes; then
6037 cat >>confdefs.h
<<\_ACEOF
6038 #define HAVE_SYS_WAIT_H 1
6044 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6045 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6046 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 cat >conftest.
$ac_ext <<_ACEOF
6052 cat confdefs.h
>>conftest.
$ac_ext
6053 cat >>conftest.
$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #ifdef TIME_WITH_SYS_TIME
6056 #include <sys/time.h>
6059 #ifdef HAVE_SYS_TIME_H
6060 #include <sys/time.h>
6071 static struct utimbuf x; x.actime = x.modtime;
6076 rm -f conftest.
$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try
='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try
='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 emacs_cv_struct_utimbuf
=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 emacs_cv_struct_utimbuf
=no
6105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6107 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6108 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6109 if test $emacs_cv_struct_utimbuf = yes; then
6111 cat >>confdefs.h
<<\_ACEOF
6112 #define HAVE_STRUCT_UTIMBUF 1
6117 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6118 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6119 if test "${ac_cv_type_signal+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6134 extern "C" void (*signal (int, void (*)(int)))(int);
6136 void (*signal ()) ();
6147 rm -f conftest.
$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1
>conftest.err
6153 cat conftest.err
>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try
='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try
='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_type_signal
=void
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.
$ac_ext >&5
6174 ac_cv_type_signal
=int
6176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6179 echo "${ECHO_T}$ac_cv_type_signal" >&6
6181 cat >>confdefs.h
<<_ACEOF
6182 #define RETSIGTYPE $ac_cv_type_signal
6187 echo "$as_me:$LINENO: checking for speed_t" >&5
6188 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6189 if test "${emacs_cv_speed_t+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 cat >conftest.
$ac_ext <<_ACEOF
6195 cat confdefs.h
>>conftest.
$ac_ext
6196 cat >>conftest.
$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <termios.h>
6207 rm -f conftest.
$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6211 grep -v '^ *+' conftest.er1
>conftest.err
6213 cat conftest.err
>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try
='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try
='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 emacs_cv_speed_t
=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.
$ac_ext >&5
6236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6238 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6239 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6240 if test $emacs_cv_speed_t = yes; then
6242 cat >>confdefs.h
<<\_ACEOF
6243 #define HAVE_SPEED_T 1
6248 echo "$as_me:$LINENO: checking for struct timeval" >&5
6249 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6250 if test "${emacs_cv_struct_timeval+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.
$ac_ext <<_ACEOF
6256 cat confdefs.h
>>conftest.
$ac_ext
6257 cat >>conftest.
$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #ifdef TIME_WITH_SYS_TIME
6260 #include <sys/time.h>
6263 #ifdef HAVE_SYS_TIME_H
6264 #include <sys/time.h>
6272 static struct timeval x; x.tv_sec = x.tv_usec;
6277 rm -f conftest.
$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try
='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try
='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 emacs_cv_struct_timeval
=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 emacs_cv_struct_timeval
=no
6306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6309 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6310 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6311 if test $emacs_cv_struct_timeval = yes; then
6313 cat >>confdefs.h
<<\_ACEOF
6314 #define HAVE_TIMEVAL 1
6319 echo "$as_me:$LINENO: checking for struct exception" >&5
6320 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6321 if test "${emacs_cv_struct_exception+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.
$ac_ext <<_ACEOF
6327 cat confdefs.h
>>conftest.
$ac_ext
6328 cat >>conftest.
$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6334 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6339 rm -f conftest.
$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6343 grep -v '^ *+' conftest.er1
>conftest.err
6345 cat conftest.err
>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try
='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try
='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 emacs_cv_struct_exception
=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.
$ac_ext >&5
6366 emacs_cv_struct_exception
=no
6368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6371 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6372 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6373 if test $emacs_cv_struct_exception != yes; then
6375 cat >>confdefs.h
<<\_ACEOF
6376 #define NO_MATHERR 1
6382 for ac_header
in sys
/socket.h
6384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6394 # Is the header compilable?
6395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6397 cat >conftest.
$ac_ext <<_ACEOF
6400 cat confdefs.h
>>conftest.
$ac_ext
6401 cat >>conftest.
$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 $ac_includes_default
6404 #include <$ac_header>
6406 rm -f conftest.
$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6410 grep -v '^ *+' conftest.er1
>conftest.err
6412 cat conftest.err
>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try
='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try
='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_header_compiler
=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.
$ac_ext >&5
6433 ac_header_compiler
=no
6435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6437 echo "${ECHO_T}$ac_header_compiler" >&6
6439 # Is the header present?
6440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6442 cat >conftest.
$ac_ext <<_ACEOF
6445 cat confdefs.h
>>conftest.
$ac_ext
6446 cat >>conftest.
$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 #include <$ac_header>
6450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1
>conftest.err
6455 cat conftest.err
>&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev
/null
; then
6458 if test -s conftest.err
; then
6459 ac_cpp_err
=$ac_c_preproc_warn_flag
6460 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6467 if test -z "$ac_cpp_err"; then
6468 ac_header_preproc
=yes
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.
$ac_ext >&5
6473 ac_header_preproc
=no
6475 rm -f conftest.err conftest.
$ac_ext
6476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6477 echo "${ECHO_T}$ac_header_preproc" >&6
6479 # So? What about this header?
6480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6486 ac_header_preproc
=yes
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6503 ## ------------------------------------------ ##
6504 ## Report this to the AC_PACKAGE_NAME lists. ##
6505 ## ------------------------------------------ ##
6508 sed "s/^/$as_me: WARNING: /" >&2
6511 echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 eval "$as_ac_Header=\$ac_header_preproc"
6518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6523 cat >>confdefs.h
<<_ACEOF
6524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532 for ac_header
in net
/if.h
6534 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #if HAVE_SYS_SOCKET_H
6548 #include <sys/socket.h>
6551 #include <$ac_header>
6553 rm -f conftest.
$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try
='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try
='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 eval "$as_ac_Header=yes"
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 eval "$as_ac_Header=no"
6582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6587 cat >>confdefs.h
<<_ACEOF
6588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6597 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6598 if test "${ac_cv_struct_tm+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 cat >conftest.
$ac_ext <<_ACEOF
6604 cat confdefs.h
>>conftest.
$ac_ext
6605 cat >>conftest.
$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6613 struct tm *tp; tp->tm_sec;
6618 rm -f conftest.
$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6622 grep -v '^ *+' conftest.er1
>conftest.err
6624 cat conftest.err
>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try
='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try
='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_struct_tm
=time.h
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6645 ac_cv_struct_tm
=sys
/time.h
6647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6650 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6651 if test $ac_cv_struct_tm = sys
/time.h
; then
6653 cat >>confdefs.h
<<\_ACEOF
6654 #define TM_IN_SYS_TIME 1
6659 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6660 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6661 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 cat >conftest.
$ac_ext <<_ACEOF
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <sys/types.h>
6671 #include <$ac_cv_struct_tm>
6677 static struct tm ac_aggr;
6678 if (ac_aggr.tm_zone)
6684 rm -f conftest.
$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>conftest.er1
6688 grep -v '^ *+' conftest.er1
>conftest.err
6690 cat conftest.err
>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try
='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try
='test -s conftest.$ac_objext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_member_struct_tm_tm_zone
=yes
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6711 cat >conftest.
$ac_ext <<_ACEOF
6714 cat confdefs.h
>>conftest.
$ac_ext
6715 cat >>conftest.
$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 #include <$ac_cv_struct_tm>
6724 static struct tm ac_aggr;
6725 if (sizeof ac_aggr.tm_zone)
6731 rm -f conftest.
$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6735 grep -v '^ *+' conftest.er1
>conftest.err
6737 cat conftest.err
>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try
='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try
='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_member_struct_tm_tm_zone
=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.
$ac_ext >&5
6758 ac_cv_member_struct_tm_tm_zone
=no
6760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6765 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6766 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6768 cat >>confdefs.h
<<_ACEOF
6769 #define HAVE_STRUCT_TM_TM_ZONE 1
6775 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6777 cat >>confdefs.h
<<\_ACEOF
6778 #define HAVE_TM_ZONE 1
6782 echo "$as_me:$LINENO: checking for tzname" >&5
6783 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6784 if test "${ac_cv_var_tzname+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.
$ac_ext <<_ACEOF
6790 cat confdefs.h
>>conftest.
$ac_ext
6791 cat >>conftest.
$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6794 #ifndef tzname /* For SGI. */
6795 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6806 rm -f conftest.
$ac_objext conftest
$ac_exeext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1
>conftest.err
6812 cat conftest.err
>&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try
='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try
='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_var_tzname
=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.
$ac_ext >&5
6835 rm -f conftest.err conftest.
$ac_objext \
6836 conftest
$ac_exeext conftest.
$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6839 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6840 if test $ac_cv_var_tzname = yes; then
6842 cat >>confdefs.h
<<\_ACEOF
6843 #define HAVE_TZNAME 1
6849 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6850 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6851 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 cat >conftest.
$ac_ext <<_ACEOF
6857 cat confdefs.h
>>conftest.
$ac_ext
6858 cat >>conftest.
$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6865 static struct tm ac_aggr;
6866 if (ac_aggr.tm_gmtoff)
6872 rm -f conftest.
$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1
>conftest.err
6878 cat conftest.err
>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try
='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try
='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_member_struct_tm_tm_gmtoff
=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.
$ac_ext >&5
6899 cat >conftest.
$ac_ext <<_ACEOF
6902 cat confdefs.h
>>conftest.
$ac_ext
6903 cat >>conftest.
$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6910 static struct tm ac_aggr;
6911 if (sizeof ac_aggr.tm_gmtoff)
6917 rm -f conftest.
$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6921 grep -v '^ *+' conftest.er1
>conftest.err
6923 cat conftest.err
>&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try
='test -z "$ac_c_werror_flag"
6927 || test ! -s conftest.err'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; } &&
6933 { ac_try
='test -s conftest.$ac_objext'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6939 ac_cv_member_struct_tm_tm_gmtoff
=yes
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.
$ac_ext >&5
6944 ac_cv_member_struct_tm_tm_gmtoff
=no
6946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6951 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6952 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6954 cat >>confdefs.h
<<\_ACEOF
6955 #define HAVE_TM_GMTOFF 1
6960 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6961 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6962 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 cat >conftest.
$ac_ext <<_ACEOF
6968 cat confdefs.h
>>conftest.
$ac_ext
6969 cat >>conftest.
$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 $ac_includes_default
6972 #if HAVE_SYS_SOCKET_H
6973 #include <sys/socket.h>
6982 static struct ifreq ac_aggr;
6983 if (ac_aggr.ifr_flags)
6989 rm -f conftest.
$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1
>conftest.err
6995 cat conftest.err
>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try
='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try
='test -s conftest.$ac_objext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_member_struct_ifreq_ifr_flags
=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.
$ac_ext >&5
7016 cat >conftest.
$ac_ext <<_ACEOF
7019 cat confdefs.h
>>conftest.
$ac_ext
7020 cat >>conftest.
$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7023 #if HAVE_SYS_SOCKET_H
7024 #include <sys/socket.h>
7033 static struct ifreq ac_aggr;
7034 if (sizeof ac_aggr.ifr_flags)
7040 rm -f conftest.
$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1
>conftest.err
7046 cat conftest.err
>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try
='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try
='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_member_struct_ifreq_ifr_flags
=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7067 ac_cv_member_struct_ifreq_ifr_flags
=no
7069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7074 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7075 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7077 cat >>confdefs.h
<<_ACEOF
7078 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7083 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7084 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7085 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7105 static struct ifreq ac_aggr;
7106 if (ac_aggr.ifr_hwaddr)
7112 rm -f conftest.
$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7116 grep -v '^ *+' conftest.er1
>conftest.err
7118 cat conftest.err
>&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try
='test -z "$ac_c_werror_flag"
7122 || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try
='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.
$ac_ext >&5
7139 cat >conftest.
$ac_ext <<_ACEOF
7142 cat confdefs.h
>>conftest.
$ac_ext
7143 cat >>conftest.
$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7146 #if HAVE_SYS_SOCKET_H
7147 #include <sys/socket.h>
7156 static struct ifreq ac_aggr;
7157 if (sizeof ac_aggr.ifr_hwaddr)
7163 rm -f conftest.
$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>conftest.er1
7167 grep -v '^ *+' conftest.er1
>conftest.err
7169 cat conftest.err
>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try
='test -z "$ac_c_werror_flag"
7173 || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try
='test -s conftest.$ac_objext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.
$ac_ext >&5
7190 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7196 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7197 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7198 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7200 cat >>confdefs.h
<<_ACEOF
7201 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7206 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7207 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7208 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7218 #if HAVE_SYS_SOCKET_H
7219 #include <sys/socket.h>
7228 static struct ifreq ac_aggr;
7229 if (ac_aggr.ifr_netmask)
7235 rm -f conftest.
$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>conftest.er1
7239 grep -v '^ *+' conftest.er1
>conftest.err
7241 cat conftest.err
>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try
='test -z "$ac_c_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try
='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.
$ac_ext >&5
7262 cat >conftest.
$ac_ext <<_ACEOF
7265 cat confdefs.h
>>conftest.
$ac_ext
7266 cat >>conftest.
$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 #if HAVE_SYS_SOCKET_H
7270 #include <sys/socket.h>
7279 static struct ifreq ac_aggr;
7280 if (sizeof ac_aggr.ifr_netmask)
7286 rm -f conftest.
$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try
='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7313 ac_cv_member_struct_ifreq_ifr_netmask
=no
7315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7320 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7321 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7323 cat >>confdefs.h
<<_ACEOF
7324 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7329 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7330 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7331 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 cat >conftest.
$ac_ext <<_ACEOF
7337 cat confdefs.h
>>conftest.
$ac_ext
7338 cat >>conftest.
$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7341 #if HAVE_SYS_SOCKET_H
7342 #include <sys/socket.h>
7351 static struct ifreq ac_aggr;
7352 if (ac_aggr.ifr_broadaddr)
7358 rm -f conftest.
$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>conftest.er1
7362 grep -v '^ *+' conftest.er1
>conftest.err
7364 cat conftest.err
>&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } &&
7367 { ac_try
='test -z "$ac_c_werror_flag"
7368 || test ! -s conftest.err'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; } &&
7374 { ac_try
='test -s conftest.$ac_objext'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.
$ac_ext >&5
7385 cat >conftest.
$ac_ext <<_ACEOF
7388 cat confdefs.h
>>conftest.
$ac_ext
7389 cat >>conftest.
$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7392 #if HAVE_SYS_SOCKET_H
7393 #include <sys/socket.h>
7402 static struct ifreq ac_aggr;
7403 if (sizeof ac_aggr.ifr_broadaddr)
7409 rm -f conftest.
$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>conftest.er1
7413 grep -v '^ *+' conftest.er1
>conftest.err
7415 cat conftest.err
>&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try
='test -z "$ac_c_werror_flag"
7419 || test ! -s conftest.err'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try
='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.
$ac_ext >&5
7436 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7443 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7444 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7446 cat >>confdefs.h
<<_ACEOF
7447 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7452 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7453 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7454 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 cat >conftest.
$ac_ext <<_ACEOF
7460 cat confdefs.h
>>conftest.
$ac_ext
7461 cat >>conftest.
$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7463 $ac_includes_default
7464 #if HAVE_SYS_SOCKET_H
7465 #include <sys/socket.h>
7474 static struct ifreq ac_aggr;
7475 if (ac_aggr.ifr_addr)
7481 rm -f conftest.
$ac_objext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>conftest.er1
7485 grep -v '^ *+' conftest.er1
>conftest.err
7487 cat conftest.err
>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try
='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try
='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_member_struct_ifreq_ifr_addr
=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.
$ac_ext >&5
7508 cat >conftest.
$ac_ext <<_ACEOF
7511 cat confdefs.h
>>conftest.
$ac_ext
7512 cat >>conftest.
$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #if HAVE_SYS_SOCKET_H
7516 #include <sys/socket.h>
7525 static struct ifreq ac_aggr;
7526 if (sizeof ac_aggr.ifr_addr)
7532 rm -f conftest.
$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7536 grep -v '^ *+' conftest.er1
>conftest.err
7538 cat conftest.err
>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try
='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try
='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_member_struct_ifreq_ifr_addr
=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.
$ac_ext >&5
7559 ac_cv_member_struct_ifreq_ifr_addr
=no
7561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7566 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7567 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7569 cat >>confdefs.h
<<_ACEOF
7570 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7578 echo "$as_me:$LINENO: checking for function prototypes" >&5
7579 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7580 if test "$ac_cv_prog_cc_stdc" != no
; then
7581 echo "$as_me:$LINENO: result: yes" >&5
7582 echo "${ECHO_T}yes" >&6
7584 cat >>confdefs.h
<<\_ACEOF
7585 #define PROTOTYPES 1
7589 cat >>confdefs.h
<<\_ACEOF
7590 #define __PROTOTYPES 1
7594 echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7598 echo "$as_me:$LINENO: checking for working volatile" >&5
7599 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7600 if test "${ac_cv_c_volatile+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 cat >conftest.
$ac_ext <<_ACEOF
7606 cat confdefs.h
>>conftest.
$ac_ext
7607 cat >>conftest.
$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7620 rm -f conftest.
$ac_objext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1
>conftest.err
7626 cat conftest.err
>&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try
='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try
='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_c_volatile
=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.
$ac_ext >&5
7649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7651 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7652 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7653 if test $ac_cv_c_volatile = no
; then
7655 cat >>confdefs.h
<<\_ACEOF
7661 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7662 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7663 if test "${ac_cv_c_const+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 cat >conftest.
$ac_ext <<_ACEOF
7669 cat confdefs.h
>>conftest.
$ac_ext
7670 cat >>conftest.
$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7676 /* FIXME: Include the comments suggested by Paul. */
7678 /* Ultrix mips cc rejects this. */
7679 typedef int charset[2];
7681 /* SunOS 4.1.1 cc rejects this. */
7682 char const *const *ccp;
7684 /* NEC SVR4.0.2 mips cc rejects this. */
7685 struct point {int x, y;};
7686 static struct point const zero = {0,0};
7687 /* AIX XL C 1.02.0.0 rejects this.
7688 It does not let you subtract one const X* pointer from another in
7689 an arm of an if-expression whose if-part is not a constant
7691 const char *g = "string";
7692 ccp = &g + (g ? g-g : 0);
7693 /* HPUX 7.0 cc rejects these. */
7696 ccp = (char const *const *) p;
7697 { /* SCO 3.2v4 cc rejects this. */
7699 char const *s = 0 ? (char *) 0 : (char const *) 0;
7703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7705 const int *foo = &x[0];
7708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7709 typedef const int *iptr;
7713 { /* AIX XL C 1.02.0.0 rejects this saying
7714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7715 struct s { int j; const int *ap[3]; };
7716 struct s *b; b->j = 5;
7718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7727 rm -f conftest.
$ac_objext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>conftest.er1
7731 grep -v '^ *+' conftest.er1
>conftest.err
7733 cat conftest.err
>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try
='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try
='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.
$ac_ext >&5
7756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7759 echo "${ECHO_T}$ac_cv_c_const" >&6
7760 if test $ac_cv_c_const = no
; then
7762 cat >>confdefs.h
<<\_ACEOF
7768 echo "$as_me:$LINENO: checking for void * support" >&5
7769 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7770 if test "${emacs_cv_void_star+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.
$ac_ext <<_ACEOF
7776 cat confdefs.h
>>conftest.
$ac_ext
7777 cat >>conftest.
$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7788 rm -f conftest.
$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try
='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try
='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 emacs_cv_void_star
=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7815 emacs_cv_void_star
=no
7817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7820 echo "${ECHO_T}$emacs_cv_void_star" >&6
7821 if test $emacs_cv_void_star = yes; then
7822 cat >>confdefs.h
<<\_ACEOF
7823 #define POINTER_TYPE void
7827 cat >>confdefs.h
<<\_ACEOF
7828 #define POINTER_TYPE char
7837 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7838 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7839 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7840 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 cat >conftest.
make <<\_ACEOF
7845 @
echo 'ac_maketemp="$(MAKE)"'
7847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7848 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7849 if test -n "$ac_maketemp"; then
7850 eval ac_cv_prog_make_
${ac_make}_set
=yes
7852 eval ac_cv_prog_make_
${ac_make}_set
=no
7856 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7857 echo "$as_me:$LINENO: result: yes" >&5
7858 echo "${ECHO_T}yes" >&6
7861 echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7863 SET_MAKE
="MAKE=${MAKE-make}"
7867 echo "$as_me:$LINENO: checking for long file names" >&5
7868 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7869 if test "${ac_cv_sys_long_file_names+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_cv_sys_long_file_names
=yes
7873 # Test for long file names in all the places we know might matter:
7874 # . the current directory, where building will happen
7875 # $prefix/lib where we will be installing things
7876 # $exec_prefix/lib likewise
7877 # eval it to expand exec_prefix.
7878 # $TMPDIR if set, where it might want to write temporary files
7879 # if $TMPDIR is not set:
7880 # /tmp where it might want to write temporary files
7883 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7886 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7888 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7889 test -d $ac_dir ||
continue
7890 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7891 ac_xdir
=$ac_dir/cf$$
7892 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7893 ac_tf1
=$ac_xdir/conftest9012345
7894 ac_tf2
=$ac_xdir/conftest9012346
7895 (echo 1 >$ac_tf1) 2>/dev
/null
7896 (echo 2 >$ac_tf2) 2>/dev
/null
7897 ac_val
=`cat $ac_tf1 2>/dev/null`
7898 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7899 ac_cv_sys_long_file_names
=no
7900 rm -rf $ac_xdir 2>/dev
/null
7903 rm -rf $ac_xdir 2>/dev
/null
7906 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7907 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7908 if test $ac_cv_sys_long_file_names = yes; then
7910 cat >>confdefs.h
<<\_ACEOF
7911 #define HAVE_LONG_FILE_NAMES 1
7917 #### Choose a window system.
7919 echo "$as_me:$LINENO: checking for X" >&5
7920 echo $ECHO_N "checking for X... $ECHO_C" >&6
7923 # Check whether --with-x or --without-x was given.
7924 if test "${with_x+set}" = set; then
7928 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7929 if test "x$with_x" = xno
; then
7930 # The user explicitly disabled X.
7933 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7934 # Both variables are already set.
7937 if test "${ac_cv_have_x+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 # One or both of the vars are not set, and there is no cached value.
7941 ac_x_includes
=no ac_x_libraries
=no
7943 if mkdir conftest.dir
; then
7945 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7946 cat >Imakefile
<<'_ACEOF'
7948 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7950 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7951 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7952 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7953 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7954 for ac_extension
in a so sl
; do
7955 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7956 test -f $ac_im_libdir/libX11.
$ac_extension; then
7957 ac_im_usrlibdir
=$ac_im_libdir; break
7960 # Screen out bogus values from the imake configuration. They are
7961 # bogus both because they are the default anyway, and because
7962 # using them would break gcc on systems where it needs fixed includes.
7963 case $ac_im_incroot in
7965 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7967 case $ac_im_usrlibdir in
7969 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7976 # Standard set of common directories for X headers.
7977 # Check X11 before X11Rn because it is often a symlink to the current release.
7989 /usr/local/X11/include
7990 /usr/local/X11R6/include
7991 /usr/local/X11R5/include
7992 /usr/local/X11R4/include
7994 /usr/local/include/X11
7995 /usr/local/include/X11R6
7996 /usr/local/include/X11R5
7997 /usr/local/include/X11R4
8001 /usr/XFree86/include/X11
8005 /usr/unsupported/include
8007 /usr/local/x11r5/include
8008 /usr/lpp/Xamples/include
8010 /usr/openwin/include
8011 /usr/openwin/share/include'
8013 if test "$ac_x_includes" = no
; then
8014 # Guess where to find include files, by looking for Intrinsic.h.
8015 # First, try using that file with no special directory specified.
8016 cat >conftest.
$ac_ext <<_ACEOF
8019 cat confdefs.h
>>conftest.
$ac_ext
8020 cat >>conftest.
$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <X11/Intrinsic.h>
8024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8027 grep -v '^ *+' conftest.er1
>conftest.err
8029 cat conftest.err
>&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } >/dev
/null
; then
8032 if test -s conftest.err
; then
8033 ac_cpp_err
=$ac_c_preproc_warn_flag
8034 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8041 if test -z "$ac_cpp_err"; then
8042 # We can compile using X headers with no special include directory.
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.
$ac_ext >&5
8048 for ac_dir
in $ac_x_header_dirs; do
8049 if test -r "$ac_dir/X11/Intrinsic.h"; then
8050 ac_x_includes
=$ac_dir
8055 rm -f conftest.err conftest.
$ac_ext
8056 fi # $ac_x_includes = no
8058 if test "$ac_x_libraries" = no
; then
8059 # Check for the libraries.
8060 # See if we find them without any special options.
8061 # Don't add to $LIBS permanently.
8064 cat >conftest.
$ac_ext <<_ACEOF
8067 cat confdefs.h
>>conftest.
$ac_ext
8068 cat >>conftest.
$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <X11/Intrinsic.h>
8079 rm -f conftest.
$ac_objext conftest
$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>conftest.er1
8083 grep -v '^ *+' conftest.er1
>conftest.err
8085 cat conftest.err
>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try
='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try
='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8102 # We can link X programs with no special library path.
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.
$ac_ext >&5
8109 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8111 # Don't even attempt the hair of trying to link an X program!
8112 for ac_extension
in a so sl
; do
8113 if test -r $ac_dir/libXt.
$ac_extension; then
8114 ac_x_libraries
=$ac_dir
8120 rm -f conftest.err conftest.
$ac_objext \
8121 conftest
$ac_exeext conftest.
$ac_ext
8122 fi # $ac_x_libraries = no
8124 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8125 # Didn't find X anywhere. Cache the known absence of X.
8126 ac_cv_have_x
="have_x=no"
8128 # Record where we found X for the cache.
8129 ac_cv_have_x
="have_x=yes \
8130 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8135 eval "$ac_cv_have_x"
8138 if test "$have_x" != yes; then
8139 echo "$as_me:$LINENO: result: $have_x" >&5
8140 echo "${ECHO_T}$have_x" >&6
8143 # If each of the values was on the command line, it overrides each guess.
8144 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8145 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8146 # Update the cache value to reflect the command line values.
8147 ac_cv_have_x
="have_x=yes \
8148 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8149 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8150 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8153 if test "$no_x" = yes; then
8159 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8160 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8161 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8162 x_default_search_path
=""
8163 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8165 ${x_library}/X11/%L/%T/%N%C%S:\
8166 ${x_library}/X11/%l/%T/%N%C%S:\
8167 ${x_library}/X11/%T/%N%C%S:\
8168 ${x_library}/X11/%L/%T/%N%S:\
8169 ${x_library}/X11/%l/%T/%N%S:\
8170 ${x_library}/X11/%T/%N%S"
8171 if test x
"${x_default_search_path}" = x
; then
8172 x_default_search_path
=${x_search_path}
8174 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8178 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8179 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8182 if test x
"${x_includes}" = x
; then
8183 bitmapdir
=/usr
/include
/X11
/bitmaps
8185 # accumulate include directories that have X11 bitmap subdirectories
8187 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8188 if test -d "${bmd}/X11/bitmaps"; then
8189 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8191 if test -d "${bmd}/bitmaps"; then
8192 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8195 if test ${bmd_acc} != "dummyval"; then
8196 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8201 if test "${with_carbon}" != no
; then
8202 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8203 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8204 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8205 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8209 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8211 # Is the header compilable?
8212 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8213 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8214 cat >conftest.
$ac_ext <<_ACEOF
8217 cat confdefs.h
>>conftest.
$ac_ext
8218 cat >>conftest.
$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 $ac_includes_default
8221 #include <Carbon/Carbon.h>
8223 rm -f conftest.
$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>conftest.er1
8227 grep -v '^ *+' conftest.er1
>conftest.err
8229 cat conftest.err
>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try
='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try
='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_header_compiler
=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.
$ac_ext >&5
8250 ac_header_compiler
=no
8252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8254 echo "${ECHO_T}$ac_header_compiler" >&6
8256 # Is the header present?
8257 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8258 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8259 cat >conftest.
$ac_ext <<_ACEOF
8262 cat confdefs.h
>>conftest.
$ac_ext
8263 cat >>conftest.
$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <Carbon/Carbon.h>
8267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8270 grep -v '^ *+' conftest.er1
>conftest.err
8272 cat conftest.err
>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } >/dev
/null
; then
8275 if test -s conftest.err
; then
8276 ac_cpp_err
=$ac_c_preproc_warn_flag
8277 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8284 if test -z "$ac_cpp_err"; then
8285 ac_header_preproc
=yes
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.
$ac_ext >&5
8290 ac_header_preproc
=no
8292 rm -f conftest.err conftest.
$ac_ext
8293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8294 echo "${ECHO_T}$ac_header_preproc" >&6
8296 # So? What about this header?
8297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8300 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8302 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8303 ac_header_preproc
=yes
8306 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8307 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8309 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8311 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8312 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8313 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8314 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8315 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8317 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8320 ## ------------------------------------------ ##
8321 ## Report this to the AC_PACKAGE_NAME lists. ##
8322 ## ------------------------------------------ ##
8325 sed "s/^/$as_me: WARNING: /" >&2
8328 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8329 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8330 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8335 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8336 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8339 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8345 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8346 if test "${with_carbon+set}" != set \
8347 && test "${carbon_appdir_x+set}" != set; then
8351 if test "${HAVE_CARBON}" = yes; then
8355 case "${window_system}" in
8359 case "${with_x_toolkit}" in
8360 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8361 motif
) USE_X_TOOLKIT
=MOTIF
;;
8363 USE_X_TOOLKIT
=none
;;
8364 no
) USE_X_TOOLKIT
=none
;;
8365 * ) USE_X_TOOLKIT
=maybe
;;
8375 ### If we're using X11, we should use the X menu package.
8378 yes ) HAVE_MENUS
=yes ;;
8381 if test "${opsys}" = "hpux9"; then
8382 case "${x_libraries}" in
8384 opsysfile
="s/hpux9-x11r4.h"
8389 if test "${opsys}" = "hpux9shr"; then
8390 case "${x_libraries}" in
8392 opsysfile
="s/hpux9shxr4.h"
8397 ### Compute the unexec source name from the object name.
8398 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8400 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8401 # Assume not, until told otherwise.
8404 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8405 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8406 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 cat >conftest.
$ac_ext <<_ACEOF
8412 cat confdefs.h
>>conftest.
$ac_ext
8413 cat >>conftest.
$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8417 #define malloc_get_state innocuous_malloc_get_state
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char malloc_get_state (); below.
8421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8422 <limits.h> exists even on freestanding compilers. */
8425 # include <limits.h>
8427 # include <assert.h>
8430 #undef malloc_get_state
8432 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char malloc_get_state ();
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8446 char (*f) () = malloc_get_state;
8455 return f != malloc_get_state;
8460 rm -f conftest.
$ac_objext conftest
$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try
='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try
='test -s conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_func_malloc_get_state
=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.
$ac_ext >&5
8487 ac_cv_func_malloc_get_state
=no
8489 rm -f conftest.err conftest.
$ac_objext \
8490 conftest
$ac_exeext conftest.
$ac_ext
8492 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8493 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8494 if test $ac_cv_func_malloc_get_state = yes; then
8500 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8501 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8502 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 cat >conftest.
$ac_ext <<_ACEOF
8508 cat confdefs.h
>>conftest.
$ac_ext
8509 cat >>conftest.
$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8513 #define malloc_set_state innocuous_malloc_set_state
8515 /* System header to define __stub macros and hopefully few prototypes,
8516 which can conflict with char malloc_set_state (); below.
8517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8518 <limits.h> exists even on freestanding compilers. */
8521 # include <limits.h>
8523 # include <assert.h>
8526 #undef malloc_set_state
8528 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char malloc_set_state ();
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8542 char (*f) () = malloc_set_state;
8551 return f != malloc_set_state;
8556 rm -f conftest.
$ac_objext conftest
$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1
>conftest.err
8562 cat conftest.err
>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try
='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try
='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_func_malloc_set_state
=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.
$ac_ext >&5
8583 ac_cv_func_malloc_set_state
=no
8585 rm -f conftest.err conftest.
$ac_objext \
8586 conftest
$ac_exeext conftest.
$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8589 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8590 if test $ac_cv_func_malloc_set_state = yes; then
8596 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8597 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8598 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 cat >conftest.
$ac_ext <<_ACEOF
8604 cat confdefs.h
>>conftest.
$ac_ext
8605 cat >>conftest.
$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 extern void (* __after_morecore_hook)();
8611 __after_morecore_hook = 0
8616 rm -f conftest.
$ac_objext conftest
$ac_exeext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1
>conftest.err
8622 cat conftest.err
>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try
='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try
='test -s conftest$ac_exeext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 emacs_cv_var___after_morecore_hook
=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.
$ac_ext >&5
8643 emacs_cv_var___after_morecore_hook
=no
8645 rm -f conftest.err conftest.
$ac_objext \
8646 conftest
$ac_exeext conftest.
$ac_ext
8648 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8649 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8650 if test $emacs_cv_var___after_morecore_hook = no
; then
8653 if test "${system_malloc}" = "yes"; then
8656 (The GNU allocators don't work with this system configuration.)"
8658 if test "$doug_lea_malloc" = "yes" ; then
8659 if test "$GNU_MALLOC" = yes ; then
8661 (Using Doug Lea's new malloc from the GNU C Library.)"
8664 cat >>confdefs.h
<<\_ACEOF
8665 #define DOUG_LEA_MALLOC 1
8670 if test x
"${REL_ALLOC}" = x
; then
8671 REL_ALLOC
=${GNU_MALLOC}
8677 for ac_header
in stdlib.h unistd.h
8679 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681 echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8689 # Is the header compilable?
8690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8692 cat >conftest.
$ac_ext <<_ACEOF
8695 cat confdefs.h
>>conftest.
$ac_ext
8696 cat >>conftest.
$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #include <$ac_header>
8701 rm -f conftest.
$ac_objext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>conftest.er1
8705 grep -v '^ *+' conftest.er1
>conftest.err
8707 cat conftest.err
>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try
='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try
='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_header_compiler
=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.
$ac_ext >&5
8728 ac_header_compiler
=no
8730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8732 echo "${ECHO_T}$ac_header_compiler" >&6
8734 # Is the header present?
8735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8737 cat >conftest.
$ac_ext <<_ACEOF
8740 cat confdefs.h
>>conftest.
$ac_ext
8741 cat >>conftest.
$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #include <$ac_header>
8745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1
>conftest.err
8750 cat conftest.err
>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } >/dev
/null
; then
8753 if test -s conftest.err
; then
8754 ac_cpp_err
=$ac_c_preproc_warn_flag
8755 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc
=yes
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.
$ac_ext >&5
8768 ac_header_preproc
=no
8770 rm -f conftest.err conftest.
$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8772 echo "${ECHO_T}$ac_header_preproc" >&6
8774 # So? What about this header?
8775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8781 ac_header_preproc
=yes
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8798 ## ------------------------------------------ ##
8799 ## Report this to the AC_PACKAGE_NAME lists. ##
8800 ## ------------------------------------------ ##
8803 sed "s/^/$as_me: WARNING: /" >&2
8806 echo "$as_me:$LINENO: checking for $ac_header" >&5
8807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 eval "$as_ac_Header=\$ac_header_preproc"
8813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8818 cat >>confdefs.h
<<_ACEOF
8819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8827 for ac_func
in getpagesize
8829 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8830 echo "$as_me:$LINENO: checking for $ac_func" >&5
8831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8832 if eval "test \"\${$as_ac_var+set}\" = set"; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 cat >conftest.
$ac_ext <<_ACEOF
8838 cat confdefs.h
>>conftest.
$ac_ext
8839 cat >>conftest.
$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8843 #define $ac_func innocuous_$ac_func
8845 /* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char $ac_func (); below.
8847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8848 <limits.h> exists even on freestanding compilers. */
8851 # include <limits.h>
8853 # include <assert.h>
8858 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8866 /* The GNU C library defines this for functions which it implements
8867 to always fail with ENOSYS. Some functions are actually named
8868 something starting with __ and the normal name is an alias. */
8869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8872 char (*f) () = $ac_func;
8881 return f != $ac_func;
8886 rm -f conftest.
$ac_objext conftest
$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1
>conftest.err
8892 cat conftest.err
>&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try
='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try
='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 eval "$as_ac_var=yes"
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.
$ac_ext >&5
8913 eval "$as_ac_var=no"
8915 rm -f conftest.err conftest.
$ac_objext \
8916 conftest
$ac_exeext conftest.
$ac_ext
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8920 if test `eval echo '${'$as_ac_var'}'` = yes; then
8921 cat >>confdefs.h
<<_ACEOF
8922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8928 echo "$as_me:$LINENO: checking for working mmap" >&5
8929 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8930 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 if test "$cross_compiling" = yes; then
8934 ac_cv_func_mmap_fixed_mapped
=no
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 /* malloc might have been renamed as rpl_malloc. */
8946 /* Thanks to Mike Haertel and Jim Avera for this test.
8947 Here is a matrix of mmap possibilities:
8948 mmap private not fixed
8949 mmap private fixed at somewhere currently unmapped
8950 mmap private fixed at somewhere already mapped
8951 mmap shared not fixed
8952 mmap shared fixed at somewhere currently unmapped
8953 mmap shared fixed at somewhere already mapped
8954 For private mappings, we should verify that changes cannot be read()
8955 back from the file, nor mmap's back from the file at a different
8956 address. (There have been systems where private was not correctly
8957 implemented like the infamous i386 svr4.0, and systems where the
8958 VM page cache was not coherent with the file system buffer cache
8959 like early versions of FreeBSD and possibly contemporary NetBSD.)
8960 For shared mappings, we should conversely verify that changes get
8961 propagated back to all the places they're supposed to be.
8963 Grep wants private fixed already mapped.
8964 The main things grep needs to know about mmap are:
8965 * does it exist and is it safe to write into the mmap'd area
8966 * how to use it (BSD variants) */
8969 #include <sys/mman.h>
8971 #if !STDC_HEADERS && !HAVE_STDLIB_H
8975 /* This mess was copied from the GNU getpagesize.h. */
8976 #if !HAVE_GETPAGESIZE
8977 /* Assume that all systems that can run configure have sys/param.h. */
8978 # if !HAVE_SYS_PARAM_H
8979 # define HAVE_SYS_PARAM_H 1
8982 # ifdef _SC_PAGESIZE
8983 # define getpagesize() sysconf(_SC_PAGESIZE)
8984 # else /* no _SC_PAGESIZE */
8985 # if HAVE_SYS_PARAM_H
8986 # include <sys/param.h>
8987 # ifdef EXEC_PAGESIZE
8988 # define getpagesize() EXEC_PAGESIZE
8989 # else /* no EXEC_PAGESIZE */
8991 # define getpagesize() NBPG * CLSIZE
8994 # endif /* no CLSIZE */
8995 # else /* no NBPG */
8997 # define getpagesize() NBPC
8998 # else /* no NBPC */
9000 # define getpagesize() PAGESIZE
9001 # endif /* PAGESIZE */
9002 # endif /* no NBPC */
9003 # endif /* no NBPG */
9004 # endif /* no EXEC_PAGESIZE */
9005 # else /* no HAVE_SYS_PARAM_H */
9006 # define getpagesize() 8192 /* punt totally */
9007 # endif /* no HAVE_SYS_PARAM_H */
9008 # endif /* no _SC_PAGESIZE */
9010 #endif /* no HAVE_GETPAGESIZE */
9015 char *data, *data2, *data3;
9019 pagesize = getpagesize ();
9021 /* First, make a file with some known garbage in it. */
9022 data = (char *) malloc (pagesize);
9025 for (i = 0; i < pagesize; ++i)
9026 *(data + i) = rand ();
9028 fd = creat ("conftest.mmap", 0600);
9031 if (write (fd, data, pagesize) != pagesize)
9035 /* Next, try to mmap the file at a fixed address which already has
9036 something else allocated at it. If we can, also make sure that
9037 we see the same garbage. */
9038 fd = open ("conftest.mmap", O_RDWR);
9041 data2 = (char *) malloc (2 * pagesize);
9044 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9045 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9048 for (i = 0; i < pagesize; ++i)
9049 if (*(data + i) != *(data2 + i))
9052 /* Finally, make sure that changes to the mapped area do not
9053 percolate back to the file as seen by read(). (This is a bug on
9054 some variants of i386 svr4.0.) */
9055 for (i = 0; i < pagesize; ++i)
9056 *(data2 + i) = *(data2 + i) + 1;
9057 data3 = (char *) malloc (pagesize);
9060 if (read (fd, data3, pagesize) != pagesize)
9062 for (i = 0; i < pagesize; ++i)
9063 if (*(data + i) != *(data3 + i))
9069 rm -f conftest
$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_cv_func_mmap_fixed_mapped
=yes
9082 echo "$as_me: program exited with status $ac_status" >&5
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.
$ac_ext >&5
9087 ac_cv_func_mmap_fixed_mapped
=no
9089 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9093 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9096 cat >>confdefs.h
<<\_ACEOF
9103 if test $use_mmap_for_buffers = yes; then
9107 LIBS
="$libsrc_libs $LIBS"
9110 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9111 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9112 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_check_lib_save_LIBS
=$LIBS
9117 cat >conftest.
$ac_ext <<_ACEOF
9120 cat confdefs.h
>>conftest.
$ac_ext
9121 cat >>conftest.
$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9124 /* Override any gcc2 internal prototype to avoid an error. */
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9139 rm -f conftest.
$ac_objext conftest
$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9143 grep -v '^ *+' conftest.er1
>conftest.err
9145 cat conftest.err
>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try
='test -z "$ac_c_werror_flag"
9149 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try
='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_cv_lib_dnet_dnet_ntoa
=yes
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.
$ac_ext >&5
9166 ac_cv_lib_dnet_dnet_ntoa
=no
9168 rm -f conftest.err conftest.
$ac_objext \
9169 conftest
$ac_exeext conftest.
$ac_ext
9170 LIBS
=$ac_check_lib_save_LIBS
9172 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9173 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9174 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9175 cat >>confdefs.h
<<_ACEOF
9176 #define HAVE_LIBDNET 1
9184 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9185 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9186 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 ac_check_lib_save_LIBS
=$LIBS
9191 cat >conftest.
$ac_ext <<_ACEOF
9194 cat confdefs.h
>>conftest.
$ac_ext
9195 cat >>conftest.
$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9207 rm -f conftest.
$ac_objext conftest
$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209 (eval $ac_link) 2>conftest.er1
9211 grep -v '^ *+' conftest.er1
>conftest.err
9213 cat conftest.err
>&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try
='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try
='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_Xbsd_main
=yes
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.
$ac_ext >&5
9234 ac_cv_lib_Xbsd_main
=no
9236 rm -f conftest.err conftest.
$ac_objext \
9237 conftest
$ac_exeext conftest.
$ac_ext
9238 LIBS
=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9241 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9242 if test $ac_cv_lib_Xbsd_main = yes; then
9243 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9248 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9249 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9250 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 ac_check_lib_save_LIBS
=$LIBS
9254 LIBS
="-lpthreads $LIBS"
9255 cat >conftest.
$ac_ext <<_ACEOF
9258 cat confdefs.h
>>conftest.
$ac_ext
9259 cat >>conftest.
$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9262 /* Override any gcc2 internal prototype to avoid an error. */
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9277 rm -f conftest.
$ac_objext conftest
$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>conftest.er1
9281 grep -v '^ *+' conftest.er1
>conftest.err
9283 cat conftest.err
>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try
='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try
='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_pthreads_cma_open
=yes
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.
$ac_ext >&5
9304 ac_cv_lib_pthreads_cma_open
=no
9306 rm -f conftest.err conftest.
$ac_objext \
9307 conftest
$ac_exeext conftest.
$ac_ext
9308 LIBS
=$ac_check_lib_save_LIBS
9310 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9311 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9312 if test $ac_cv_lib_pthreads_cma_open = yes; then
9313 cat >>confdefs.h
<<_ACEOF
9314 #define HAVE_LIBPTHREADS 1
9317 LIBS
="-lpthreads $LIBS"
9322 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9323 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9324 if test -d /usr
/X386
/include
; then
9326 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9330 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9331 echo "${ECHO_T}$HAVE_XFREE386" >&6
9336 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9337 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9338 if test "${gdb_cv_bigtoc+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9344 *) gdb_cv_bigtoc
=-bbigtoc ;;
9347 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9348 cat >conftest.
$ac_ext <<_ACEOF
9351 cat confdefs.h
>>conftest.
$ac_ext
9352 cat >>conftest.
$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9363 rm -f conftest.
$ac_objext conftest
$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9367 grep -v '^ *+' conftest.er1
>conftest.err
9369 cat conftest.err
>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try
='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try
='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.
$ac_ext >&5
9392 rm -f conftest.err conftest.
$ac_objext \
9393 conftest
$ac_exeext conftest.
$ac_ext
9396 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9397 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9401 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9402 # used for the tests that follow. We set them back to REAL_CFLAGS and
9403 # REAL_CPPFLAGS later on.
9405 REAL_CPPFLAGS
="$CPPFLAGS"
9407 if test "${HAVE_X11}" = "yes"; then
9408 DEFS
="$C_SWITCH_X_SITE $DEFS"
9409 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9411 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9412 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9414 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9415 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9416 # but it's more convenient here to set LD_RUN_PATH
9417 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9418 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9419 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9423 if test "${opsys}" = "gnu-linux"; then
9424 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9425 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9436 XOpenDisplay ("foo");
9441 rm -f conftest.
$ac_objext conftest
$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>conftest.er1
9445 grep -v '^ *+' conftest.er1
>conftest.err
9447 cat conftest.err
>&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try
='test -z "$ac_c_werror_flag"
9451 || test ! -s conftest.err'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try
='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 xlinux_first_failure
=no
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.
$ac_ext >&5
9468 xlinux_first_failure
=yes
9470 rm -f conftest.err conftest.
$ac_objext \
9471 conftest
$ac_exeext conftest.
$ac_ext
9472 if test "${xlinux_first_failure}" = "yes"; then
9473 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9474 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9475 OLD_CPPFLAGS
="$CPPFLAGS"
9477 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9478 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9479 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9480 LIBS
="$LIBS -b i486-linuxaout"
9481 cat >conftest.
$ac_ext <<_ACEOF
9484 cat confdefs.h
>>conftest.
$ac_ext
9485 cat >>conftest.
$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9491 XOpenDisplay ("foo");
9496 rm -f conftest.
$ac_objext conftest
$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1
>conftest.err
9502 cat conftest.err
>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try
='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try
='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 xlinux_second_failure
=no
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.
$ac_ext >&5
9523 xlinux_second_failure
=yes
9525 rm -f conftest.err conftest.
$ac_objext \
9526 conftest
$ac_exeext conftest.
$ac_ext
9527 if test "${xlinux_second_failure}" = "yes"; then
9528 # If we get the same failure with -b, there is no use adding -b.
9529 # So take it out. This plays safe.
9530 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9531 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9532 CPPFLAGS
="$OLD_CPPFLAGS"
9534 echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9537 echo "$as_me:$LINENO: result: yes" >&5
9538 echo "${ECHO_T}yes" >&6
9541 echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6
9546 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9547 # header files included from there.
9548 echo "$as_me:$LINENO: checking for Xkb" >&5
9549 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9550 cat >conftest.
$ac_ext <<_ACEOF
9553 cat confdefs.h
>>conftest.
$ac_ext
9554 cat >>conftest.
$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <X11/Xlib.h>
9557 #include <X11/XKBlib.h>
9561 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9566 rm -f conftest.
$ac_objext conftest
$ac_exeext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>conftest.er1
9570 grep -v '^ *+' conftest.er1
>conftest.err
9572 cat conftest.err
>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try
='test -z "$ac_c_werror_flag"
9576 || test ! -s conftest.err'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try
='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.
$ac_ext >&5
9595 rm -f conftest.err conftest.
$ac_objext \
9596 conftest
$ac_exeext conftest.
$ac_ext
9597 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9598 echo "${ECHO_T}$emacs_xkb" >&6
9599 if test $emacs_xkb = yes; then
9601 cat >>confdefs.h
<<\_ACEOF
9602 #define HAVE_XKBGETKEYBOARD 1
9611 for ac_func
in XrmSetDatabase XScreenResourceString \
9612 XScreenNumberOfScreen XSetWMProtocols
9614 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615 echo "$as_me:$LINENO: checking for $ac_func" >&5
9616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9617 if eval "test \"\${$as_ac_var+set}\" = set"; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 cat >conftest.
$ac_ext <<_ACEOF
9623 cat confdefs.h
>>conftest.
$ac_ext
9624 cat >>conftest.
$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9628 #define $ac_func innocuous_$ac_func
9630 /* System header to define __stub macros and hopefully few prototypes,
9631 which can conflict with char $ac_func (); below.
9632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633 <limits.h> exists even on freestanding compilers. */
9636 # include <limits.h>
9638 # include <assert.h>
9643 /* Override any gcc2 internal prototype to avoid an error. */
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9657 char (*f) () = $ac_func;
9666 return f != $ac_func;
9671 rm -f conftest.
$ac_objext conftest
$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9675 grep -v '^ *+' conftest.er1
>conftest.err
9677 cat conftest.err
>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try
='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try
='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 eval "$as_ac_var=yes"
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.
$ac_ext >&5
9698 eval "$as_ac_var=no"
9700 rm -f conftest.err conftest.
$ac_objext \
9701 conftest
$ac_exeext conftest.
$ac_ext
9703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9705 if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h
<<_ACEOF
9707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715 if test "${window_system}" = "x11"; then
9716 echo "$as_me:$LINENO: checking X11 version 6" >&5
9717 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9718 if test "${emacs_cv_x11_version_6+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 cat >conftest.
$ac_ext <<_ACEOF
9724 cat confdefs.h
>>conftest.
$ac_ext
9725 cat >>conftest.
$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9731 #if XlibSpecificationRelease < 6
9739 rm -f conftest.
$ac_objext conftest
$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
9743 grep -v '^ *+' conftest.er1
>conftest.err
9745 cat conftest.err
>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try
='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try
='test -s conftest$ac_exeext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 emacs_cv_x11_version_6
=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.
$ac_ext >&5
9766 emacs_cv_x11_version_6
=no
9768 rm -f conftest.err conftest.
$ac_objext \
9769 conftest
$ac_exeext conftest.
$ac_ext
9772 if test $emacs_cv_x11_version_6 = yes; then
9773 echo "$as_me:$LINENO: result: 6 or newer" >&5
9774 echo "${ECHO_T}6 or newer" >&6
9776 cat >>confdefs.h
<<\_ACEOF
9777 #define HAVE_X11R6 1
9781 echo "$as_me:$LINENO: result: before 6" >&5
9782 echo "${ECHO_T}before 6" >&6
9786 if test "${window_system}" = "x11"; then
9787 echo "$as_me:$LINENO: checking X11 version 5" >&5
9788 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9789 if test "${emacs_cv_x11_version_5+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 cat >conftest.
$ac_ext <<_ACEOF
9795 cat confdefs.h
>>conftest.
$ac_ext
9796 cat >>conftest.
$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 #include <X11/Xlib.h>
9802 #if XlibSpecificationRelease < 5
9810 rm -f conftest.
$ac_objext conftest
$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1
>conftest.err
9816 cat conftest.err
>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try
='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try
='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 emacs_cv_x11_version_5
=yes
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.
$ac_ext >&5
9837 emacs_cv_x11_version_5
=no
9839 rm -f conftest.err conftest.
$ac_objext \
9840 conftest
$ac_exeext conftest.
$ac_ext
9843 if test $emacs_cv_x11_version_5 = yes; then
9844 echo "$as_me:$LINENO: result: 5 or newer" >&5
9845 echo "${ECHO_T}5 or newer" >&6
9848 cat >>confdefs.h
<<\_ACEOF
9849 #define HAVE_X11R5 1
9854 echo "$as_me:$LINENO: result: before 5" >&5
9855 echo "${ECHO_T}before 5" >&6
9862 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9863 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9864 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9865 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9866 { (exit 1); exit 1; }; };
9870 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9872 if test "X${with_pkg_config_prog}" != X
; then
9873 PKG_CONFIG
="${with_pkg_config_prog}"
9878 if test -z "$PKG_CONFIG"; then
9879 # Extract the first word of "pkg-config", so it can be a program name with args.
9880 set dummy pkg-config
; ac_word
=$2
9881 echo "$as_me:$LINENO: checking for $ac_word" >&5
9882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9895 test -z "$as_dir" && as_dir
=.
9896 for ac_exec_ext
in '' $ac_executable_extensions; do
9897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9898 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9909 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9911 if test -n "$PKG_CONFIG"; then
9912 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9913 echo "${ECHO_T}$PKG_CONFIG" >&6
9915 echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9921 if test "$PKG_CONFIG" = "no" ; then
9922 echo "*** The pkg-config script could not be found. Make sure it is"
9923 echo "*** in your path, or give the full path to pkg-config with"
9924 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9925 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9927 PKG_CONFIG_MIN_VERSION
=0.9.0
9928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9929 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9930 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9932 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9937 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9938 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9939 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9940 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9941 echo "${ECHO_T}$GTK_CFLAGS" >&6
9943 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9944 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9945 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9946 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9947 echo "${ECHO_T}$GTK_LIBS" >&6
9951 ## If we have a custom action on failure, don't print errors, but
9952 ## do set a variable so people can do so.
9953 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9954 echo $GTK_PKG_ERRORS
9960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9965 if test $succeeded = yes; then
9968 { { 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
9969 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;}
9970 { (exit 1); exit 1; }; }
9975 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9976 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9977 LIBS
="$GTK_LIBS $LIBS"
9980 cat >>confdefs.h
<<\_ACEOF
9986 if test "$with_toolkit_scroll_bars" != no
; then
9987 with_toolkit_scroll_bars
=yes
9990 HAVE_GTK_MULTIDISPLAY
=no
9992 for ac_func
in gdk_display_open
9994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9995 echo "$as_me:$LINENO: checking for $ac_func" >&5
9996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9997 if eval "test \"\${$as_ac_var+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.
$ac_ext <<_ACEOF
10003 cat confdefs.h
>>conftest.
$ac_ext
10004 cat >>conftest.
$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10008 #define $ac_func innocuous_$ac_func
10010 /* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char $ac_func (); below.
10012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013 <limits.h> exists even on freestanding compilers. */
10016 # include <limits.h>
10018 # include <assert.h>
10023 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10031 /* The GNU C library defines this for functions which it implements
10032 to always fail with ENOSYS. Some functions are actually named
10033 something starting with __ and the normal name is an alias. */
10034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10037 char (*f) () = $ac_func;
10046 return f != $ac_func;
10051 rm -f conftest.
$ac_objext conftest
$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>conftest.er1
10055 grep -v '^ *+' conftest.er1
>conftest.err
10057 cat conftest.err
>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try
='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
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); }; } &&
10067 { ac_try
='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 eval "$as_ac_var=yes"
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.
$ac_ext >&5
10078 eval "$as_ac_var=no"
10080 rm -f conftest.err conftest.
$ac_objext \
10081 conftest
$ac_exeext conftest.
$ac_ext
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10085 if test `eval echo '${'$as_ac_var'}'` = yes; then
10086 cat >>confdefs.h
<<_ACEOF
10087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10089 HAVE_GTK_MULTIDISPLAY
=yes
10093 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10095 cat >>confdefs.h
<<\_ACEOF
10096 #define HAVE_GTK_MULTIDISPLAY 1
10100 HAVE_GTK_FILE_SELECTION
=no
10102 for ac_func
in gtk_file_selection_new
10104 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 cat >conftest.
$ac_ext <<_ACEOF
10113 cat confdefs.h
>>conftest.
$ac_ext
10114 cat >>conftest.
$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define $ac_func innocuous_$ac_func
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10126 # include <limits.h>
10128 # include <assert.h>
10133 /* Override any gcc2 internal prototype to avoid an error. */
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10147 char (*f) () = $ac_func;
10156 return f != $ac_func;
10161 rm -f conftest.
$ac_objext conftest
$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10165 grep -v '^ *+' conftest.er1
>conftest.err
10167 cat conftest.err
>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try
='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
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); }; } &&
10177 { ac_try
='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 eval "$as_ac_var=yes"
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.
$ac_ext >&5
10188 eval "$as_ac_var=no"
10190 rm -f conftest.err conftest.
$ac_objext \
10191 conftest
$ac_exeext conftest.
$ac_ext
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195 if test `eval echo '${'$as_ac_var'}'` = yes; then
10196 cat >>confdefs.h
<<_ACEOF
10197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 HAVE_GTK_FILE_SELECTION
=yes
10204 HAVE_GTK_FILE_CHOOSER
=no
10206 for ac_func
in gtk_file_chooser_dialog_new
10208 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209 echo "$as_me:$LINENO: checking for $ac_func" >&5
10210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_var+set}\" = set"; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.
$ac_ext <<_ACEOF
10217 cat confdefs.h
>>conftest.
$ac_ext
10218 cat >>conftest.
$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10222 #define $ac_func innocuous_$ac_func
10224 /* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char $ac_func (); below.
10226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227 <limits.h> exists even on freestanding compilers. */
10230 # include <limits.h>
10232 # include <assert.h>
10237 /* Override any gcc2 internal prototype to avoid an error. */
10242 /* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10245 /* The GNU C library defines this for functions which it implements
10246 to always fail with ENOSYS. Some functions are actually named
10247 something starting with __ and the normal name is an alias. */
10248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10251 char (*f) () = $ac_func;
10260 return f != $ac_func;
10265 rm -f conftest.
$ac_objext conftest
$ac_exeext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>conftest.er1
10269 grep -v '^ *+' conftest.er1
>conftest.err
10271 cat conftest.err
>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try
='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
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); }; } &&
10281 { ac_try
='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.
$ac_ext >&5
10292 eval "$as_ac_var=no"
10294 rm -f conftest.err conftest.
$ac_objext \
10295 conftest
$ac_exeext conftest.
$ac_ext
10297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10299 if test `eval echo '${'$as_ac_var'}'` = yes; then
10300 cat >>confdefs.h
<<_ACEOF
10301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10303 HAVE_GTK_FILE_CHOOSER
=yes
10308 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10309 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10311 cat >>confdefs.h
<<\_ACEOF
10312 #define HAVE_GTK_FILE_BOTH 1
10317 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10318 HAVE_GTK_AND_PTHREAD
=no
10320 for ac_header
in pthread.h
10322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo "$as_me:$LINENO: checking for $ac_header" >&5
10325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 # Is the header compilable?
10333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10335 cat >conftest.
$ac_ext <<_ACEOF
10338 cat confdefs.h
>>conftest.
$ac_ext
10339 cat >>conftest.
$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 $ac_includes_default
10342 #include <$ac_header>
10344 rm -f conftest.
$ac_objext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>conftest.er1
10348 grep -v '^ *+' conftest.er1
>conftest.err
10350 cat conftest.err
>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try
='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
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); }; } &&
10360 { ac_try
='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_header_compiler
=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.
$ac_ext >&5
10371 ac_header_compiler
=no
10373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10375 echo "${ECHO_T}$ac_header_compiler" >&6
10377 # Is the header present?
10378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10380 cat >conftest.
$ac_ext <<_ACEOF
10383 cat confdefs.h
>>conftest.
$ac_ext
10384 cat >>conftest.
$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 #include <$ac_header>
10388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10389 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10391 grep -v '^ *+' conftest.er1
>conftest.err
10393 cat conftest.err
>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } >/dev
/null
; then
10396 if test -s conftest.err
; then
10397 ac_cpp_err
=$ac_c_preproc_warn_flag
10398 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10405 if test -z "$ac_cpp_err"; then
10406 ac_header_preproc
=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.
$ac_ext >&5
10411 ac_header_preproc
=no
10413 rm -f conftest.err conftest.
$ac_ext
10414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10415 echo "${ECHO_T}$ac_header_preproc" >&6
10417 # So? What about this header?
10418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10424 ac_header_preproc
=yes
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10441 ## ------------------------------------------ ##
10442 ## Report this to the AC_PACKAGE_NAME lists. ##
10443 ## ------------------------------------------ ##
10446 sed "s/^/$as_me: WARNING: /" >&2
10449 echo "$as_me:$LINENO: checking for $ac_header" >&5
10450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 eval "$as_ac_Header=\$ac_header_preproc"
10456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10461 cat >>confdefs.h
<<_ACEOF
10462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10469 if test "$ac_cv_header_pthread_h"; then
10470 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10471 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10472 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 ac_check_lib_save_LIBS
=$LIBS
10476 LIBS
="-lpthread $LIBS"
10477 cat >conftest.
$ac_ext <<_ACEOF
10480 cat confdefs.h
>>conftest.
$ac_ext
10481 cat >>conftest.
$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10484 /* Override any gcc2 internal prototype to avoid an error. */
10488 /* We use char because int might match the return type of a gcc2
10489 builtin and then its argument prototype would still apply. */
10490 char pthread_self ();
10499 rm -f conftest.
$ac_objext conftest
$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501 (eval $ac_link) 2>conftest.er1
10503 grep -v '^ *+' conftest.er1
>conftest.err
10505 cat conftest.err
>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try
='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
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); }; } &&
10515 { ac_try
='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_lib_pthread_pthread_self
=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 ac_cv_lib_pthread_pthread_self
=no
10528 rm -f conftest.err conftest.
$ac_objext \
10529 conftest
$ac_exeext conftest.
$ac_ext
10530 LIBS
=$ac_check_lib_save_LIBS
10532 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10533 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10534 if test $ac_cv_lib_pthread_pthread_self = yes; then
10535 HAVE_GTK_AND_PTHREAD
=yes
10539 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10540 GTK_LIBS
="$GTK_LIBS -lpthread"
10542 cat >>confdefs.h
<<\_ACEOF
10543 #define HAVE_GTK_AND_PTHREAD 1
10550 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10551 if test x
"${HAVE_X11R5}" = xyes
; then
10552 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10553 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10554 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 cat >conftest.
$ac_ext <<_ACEOF
10560 cat confdefs.h
>>conftest.
$ac_ext
10561 cat >>conftest.
$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10564 #include <X11/Intrinsic.h>
10565 #include <X11/Xaw/Simple.h>
10574 rm -f conftest.
$ac_objext conftest
$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>conftest.er1
10578 grep -v '^ *+' conftest.er1
>conftest.err
10580 cat conftest.err
>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try
='test -z "$ac_c_werror_flag"
10584 || test ! -s conftest.err'
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); }; } &&
10590 { ac_try
='test -s conftest$ac_exeext'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 emacs_cv_x11_version_5_with_xaw
=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.
$ac_ext >&5
10601 emacs_cv_x11_version_5_with_xaw
=no
10603 rm -f conftest.err conftest.
$ac_objext \
10604 conftest
$ac_exeext conftest.
$ac_ext
10607 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10608 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10609 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10610 USE_X_TOOLKIT
=LUCID
10612 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10613 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10621 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10623 if test "${USE_X_TOOLKIT}" != "none"; then
10624 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10625 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10626 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.
$ac_ext <<_ACEOF
10632 cat confdefs.h
>>conftest.
$ac_ext
10633 cat >>conftest.
$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 #include <X11/Intrinsic.h>
10639 #if XtSpecificationRelease < 6
10647 rm -f conftest.
$ac_objext conftest
$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10651 grep -v '^ *+' conftest.er1
>conftest.err
10653 cat conftest.err
>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try
='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
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); }; } &&
10663 { ac_try
='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 emacs_cv_x11_toolkit_version_6
=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.
$ac_ext >&5
10674 emacs_cv_x11_toolkit_version_6
=no
10676 rm -f conftest.err conftest.
$ac_objext \
10677 conftest
$ac_exeext conftest.
$ac_ext
10680 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10681 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10682 echo "$as_me:$LINENO: result: 6 or newer" >&5
10683 echo "${ECHO_T}6 or newer" >&6
10685 cat >>confdefs.h
<<\_ACEOF
10686 #define HAVE_X11XTR6 1
10690 echo "$as_me:$LINENO: result: before 6" >&5
10691 echo "${ECHO_T}before 6" >&6
10695 if test x
$HAVE_X11XTR6 = xyes
; then
10696 LIBS
="-lXt -lSM -lICE $LIBS"
10701 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10702 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10703 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 ac_check_lib_save_LIBS
=$LIBS
10708 cat >conftest.
$ac_ext <<_ACEOF
10711 cat confdefs.h
>>conftest.
$ac_ext
10712 cat >>conftest.
$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10715 /* Override any gcc2 internal prototype to avoid an error. */
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10721 char XmuConvertStandardSelection ();
10725 XmuConvertStandardSelection ();
10730 rm -f conftest.
$ac_objext conftest
$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>conftest.er1
10734 grep -v '^ *+' conftest.er1
>conftest.err
10736 cat conftest.err
>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try
='test -z "$ac_c_werror_flag"
10740 || test ! -s conftest.err'
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); }; } &&
10746 { ac_try
='test -s conftest$ac_exeext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.
$ac_ext >&5
10757 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10759 rm -f conftest.err conftest.
$ac_objext \
10760 conftest
$ac_exeext conftest.
$ac_ext
10761 LIBS
=$ac_check_lib_save_LIBS
10763 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10764 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10765 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10766 cat >>confdefs.h
<<_ACEOF
10767 #define HAVE_LIBXMU 1
10774 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10777 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10778 if test "${HAVE_X11}" = "yes"; then
10779 if test "${USE_X_TOOLKIT}" != "none"; then
10781 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10782 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10783 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 ac_check_lib_save_LIBS
=$LIBS
10787 LIBS
="-lXext $LIBS"
10788 cat >conftest.
$ac_ext <<_ACEOF
10791 cat confdefs.h
>>conftest.
$ac_ext
10792 cat >>conftest.
$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10795 /* Override any gcc2 internal prototype to avoid an error. */
10799 /* We use char because int might match the return type of a gcc2
10800 builtin and then its argument prototype would still apply. */
10801 char XShapeQueryExtension ();
10805 XShapeQueryExtension ();
10810 rm -f conftest.
$ac_objext conftest
$ac_exeext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10812 (eval $ac_link) 2>conftest.er1
10814 grep -v '^ *+' conftest.er1
>conftest.err
10816 cat conftest.err
>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try
='test -z "$ac_c_werror_flag"
10820 || test ! -s conftest.err'
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); }; } &&
10826 { ac_try
='test -s conftest$ac_exeext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.
$ac_ext >&5
10837 ac_cv_lib_Xext_XShapeQueryExtension
=no
10839 rm -f conftest.err conftest.
$ac_objext \
10840 conftest
$ac_exeext conftest.
$ac_ext
10841 LIBS
=$ac_check_lib_save_LIBS
10843 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10844 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10845 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10846 cat >>confdefs.h
<<_ACEOF
10847 #define HAVE_LIBXEXT 1
10850 LIBS
="-lXext $LIBS"
10857 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10858 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10859 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10860 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 cat >conftest.
$ac_ext <<_ACEOF
10866 cat confdefs.h
>>conftest.
$ac_ext
10867 cat >>conftest.
$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10873 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10876 Motif version prior to 2.1.
10882 rm -f conftest.
$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10886 grep -v '^ *+' conftest.er1
>conftest.err
10888 cat conftest.err
>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try
='test -z "$ac_c_werror_flag"
10892 || test ! -s conftest.err'
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); }; } &&
10898 { ac_try
='test -s conftest.$ac_objext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 emacs_cv_motif_version_2_1
=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.
$ac_ext >&5
10909 emacs_cv_motif_version_2_1
=no
10911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10913 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10914 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10915 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10916 if test $emacs_cv_motif_version_2_1 = yes; then
10919 cat >>confdefs.h
<<\_ACEOF
10920 #define HAVE_MOTIF_2_1 1
10923 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10924 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10925 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 ac_check_lib_save_LIBS
=$LIBS
10930 cat >conftest.
$ac_ext <<_ACEOF
10933 cat confdefs.h
>>conftest.
$ac_ext
10934 cat >>conftest.
$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 /* Override any gcc2 internal prototype to avoid an error. */
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10943 char XpCreateContext ();
10947 XpCreateContext ();
10952 rm -f conftest.
$ac_objext conftest
$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>conftest.er1
10956 grep -v '^ *+' conftest.er1
>conftest.err
10958 cat conftest.err
>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try
='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
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); }; } &&
10968 { ac_try
='test -s conftest$ac_exeext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_lib_Xp_XpCreateContext
=yes
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.
$ac_ext >&5
10979 ac_cv_lib_Xp_XpCreateContext
=no
10981 rm -f conftest.err conftest.
$ac_objext \
10982 conftest
$ac_exeext conftest.
$ac_ext
10983 LIBS
=$ac_check_lib_save_LIBS
10985 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10986 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10987 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10991 if test ${HAVE_LIBXP} = yes; then
10993 cat >>confdefs.h
<<\_ACEOF
10994 #define HAVE_LIBXP 1
10999 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11000 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11001 if test "${emacs_cv_lesstif+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 # We put this in CFLAGS temporarily to precede other -I options
11005 # that might be in CFLAGS temporarily.
11006 # We put this in CPPFLAGS where it precedes the other -I options.
11007 OLD_CPPFLAGS
=$CPPFLAGS
11009 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11010 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11011 cat >conftest.
$ac_ext <<_ACEOF
11014 cat confdefs.h
>>conftest.
$ac_ext
11015 cat >>conftest.
$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11026 rm -f conftest.
$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>conftest.er1
11030 grep -v '^ *+' conftest.er1
>conftest.err
11032 cat conftest.err
>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try
='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
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); }; } &&
11042 { ac_try
='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 emacs_cv_lesstif
=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.
$ac_ext >&5
11053 emacs_cv_lesstif
=no
11055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11057 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11058 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11059 if test $emacs_cv_lesstif = yes; then
11060 # Make sure this -I option remains in CPPFLAGS after it is set
11061 # back to REAL_CPPFLAGS.
11062 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11063 # have those other -I options anyway. Ultimately, having this
11064 # directory ultimately in CPPFLAGS will be enough.
11065 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11066 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11069 CPPFLAGS
=$OLD_CPPFLAGS
11074 ### Is -lXaw3d available?
11076 if test "${HAVE_X11}" = "yes"; then
11077 if test "${USE_X_TOOLKIT}" != "none"; then
11078 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11079 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11080 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.
$ac_ext <<_ACEOF
11086 cat confdefs.h
>>conftest.
$ac_ext
11087 cat >>conftest.
$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <X11/Xaw3d/Scrollbar.h>
11091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11094 grep -v '^ *+' conftest.er1
>conftest.err
11096 cat conftest.err
>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev
/null
; then
11099 if test -s conftest.err
; then
11100 ac_cpp_err
=$ac_c_preproc_warn_flag
11101 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11108 if test -z "$ac_cpp_err"; then
11109 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.
$ac_ext >&5
11114 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11116 rm -f conftest.err conftest.
$ac_ext
11118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11119 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11120 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11121 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11122 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11123 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 ac_check_lib_save_LIBS
=$LIBS
11127 LIBS
="-lXaw3d $LIBS"
11128 cat >conftest.
$ac_ext <<_ACEOF
11131 cat confdefs.h
>>conftest.
$ac_ext
11132 cat >>conftest.
$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11135 /* Override any gcc2 internal prototype to avoid an error. */
11139 /* We use char because int might match the return type of a gcc2
11140 builtin and then its argument prototype would still apply. */
11141 char XawScrollbarSetThumb ();
11145 XawScrollbarSetThumb ();
11150 rm -f conftest.
$ac_objext conftest
$ac_exeext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11152 (eval $ac_link) 2>conftest.er1
11154 grep -v '^ *+' conftest.er1
>conftest.err
11156 cat conftest.err
>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try
='test -z "$ac_c_werror_flag"
11160 || test ! -s conftest.err'
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); }; } &&
11166 { ac_try
='test -s conftest$ac_exeext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.
$ac_ext >&5
11177 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11179 rm -f conftest.err conftest.
$ac_objext \
11180 conftest
$ac_exeext conftest.
$ac_ext
11181 LIBS
=$ac_check_lib_save_LIBS
11183 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11184 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11185 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11192 if test "${HAVE_XAW3D}" = "yes"; then
11194 cat >>confdefs.h
<<\_ACEOF
11195 #define HAVE_XAW3D 1
11204 USE_TOOLKIT_SCROLL_BARS
=no
11205 if test "${with_toolkit_scroll_bars}" != "no"; then
11206 if test "${USE_X_TOOLKIT}" != "none"; then
11207 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11208 cat >>confdefs.h
<<\_ACEOF
11209 #define USE_TOOLKIT_SCROLL_BARS 1
11213 USE_TOOLKIT_SCROLL_BARS
=yes
11214 elif test "${HAVE_XAW3D}" = "yes"; then
11215 cat >>confdefs.h
<<\_ACEOF
11216 #define USE_TOOLKIT_SCROLL_BARS 1
11219 USE_TOOLKIT_SCROLL_BARS
=yes
11221 elif test "${HAVE_GTK}" = "yes"; then
11222 cat >>confdefs.h
<<\_ACEOF
11223 #define USE_TOOLKIT_SCROLL_BARS 1
11226 USE_TOOLKIT_SCROLL_BARS
=yes
11227 elif test "${HAVE_CARBON}" = "yes"; then
11228 cat >>confdefs.h
<<\_ACEOF
11229 #define USE_TOOLKIT_SCROLL_BARS 1
11232 USE_TOOLKIT_SCROLL_BARS
=yes
11236 cat >conftest.
$ac_ext <<_ACEOF
11239 cat confdefs.h
>>conftest.
$ac_ext
11240 cat >>conftest.
$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11243 #include <X11/Xlib.h>
11244 #include <X11/Xresource.h>
11253 rm -f conftest.
$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11257 grep -v '^ *+' conftest.er1
>conftest.err
11259 cat conftest.err
>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try
='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
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); }; } &&
11269 { ac_try
='test -s conftest.$ac_objext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11277 cat >>confdefs.h
<<\_ACEOF
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.
$ac_ext >&5
11287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11290 if test "${with_xim}" != "no"; then
11292 cat >>confdefs.h
<<\_ACEOF
11299 if test "${HAVE_XIM}" != "no"; then
11300 late_CFLAGS
=$CFLAGS
11301 if test "$GCC" = yes; then
11302 CFLAGS
="$CFLAGS --pedantic-errors"
11304 cat >conftest.
$ac_ext <<_ACEOF
11307 cat confdefs.h
>>conftest.
$ac_ext
11308 cat >>conftest.
$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11311 #include <X11/Xlib.h>
11312 #include <X11/Xresource.h>
11321 XPointer *client_data;
11323 /* If we're not using GCC, it's probably not XFree86, and this is
11324 probably right, but we can't use something like --pedantic-errors. */
11325 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11326 char*, XIMProc, XPointer*);
11328 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11334 rm -f conftest.
$ac_objext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336 (eval $ac_compile) 2>conftest.er1
11338 grep -v '^ *+' conftest.er1
>conftest.err
11340 cat conftest.err
>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try
='test -z "$ac_c_werror_flag"
11344 || test ! -s conftest.err'
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); }; } &&
11350 { ac_try
='test -s conftest.$ac_objext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 emacs_cv_arg6_star
=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.
$ac_ext >&5
11362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11364 if test "$emacs_cv_arg6_star" = yes; then
11365 cat >>confdefs.h
<<\_ACEOF
11366 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11370 cat >>confdefs.h
<<\_ACEOF
11371 #define XRegisterIMInstantiateCallback_arg6 XPointer
11375 CFLAGS
=$late_CFLAGS
11378 ### Use -lXpm if available, unless `--with-xpm=no'.
11380 if test "${HAVE_X11}" = "yes"; then
11381 if test "${with_xpm}" != "no"; then
11382 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11383 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11384 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11385 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11389 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11391 # Is the header compilable?
11392 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11393 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11394 cat >conftest.
$ac_ext <<_ACEOF
11397 cat confdefs.h
>>conftest.
$ac_ext
11398 cat >>conftest.
$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 $ac_includes_default
11401 #include <X11/xpm.h>
11403 rm -f conftest.
$ac_objext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11405 (eval $ac_compile) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1
>conftest.err
11409 cat conftest.err
>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try
='test -z "$ac_c_werror_flag"
11413 || test ! -s conftest.err'
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); }; } &&
11419 { ac_try
='test -s conftest.$ac_objext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_header_compiler
=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.
$ac_ext >&5
11430 ac_header_compiler
=no
11432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11434 echo "${ECHO_T}$ac_header_compiler" >&6
11436 # Is the header present?
11437 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11438 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11439 cat >conftest.
$ac_ext <<_ACEOF
11442 cat confdefs.h
>>conftest.
$ac_ext
11443 cat >>conftest.
$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 #include <X11/xpm.h>
11447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11450 grep -v '^ *+' conftest.er1
>conftest.err
11452 cat conftest.err
>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } >/dev
/null
; then
11455 if test -s conftest.err
; then
11456 ac_cpp_err
=$ac_c_preproc_warn_flag
11457 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11464 if test -z "$ac_cpp_err"; then
11465 ac_header_preproc
=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.
$ac_ext >&5
11470 ac_header_preproc
=no
11472 rm -f conftest.err conftest.
$ac_ext
11473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11474 echo "${ECHO_T}$ac_header_preproc" >&6
11476 # So? What about this header?
11477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11479 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11480 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11482 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11483 ac_header_preproc
=yes
11486 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11487 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11489 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11491 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11493 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11495 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11497 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11500 ## ------------------------------------------ ##
11501 ## Report this to the AC_PACKAGE_NAME lists. ##
11502 ## ------------------------------------------ ##
11505 sed "s/^/$as_me: WARNING: /" >&2
11508 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11509 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11510 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11515 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11516 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11519 if test $ac_cv_header_X11_xpm_h = yes; then
11520 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11521 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11522 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 ac_check_lib_save_LIBS
=$LIBS
11526 LIBS
="-lXpm -lX11 $LIBS"
11527 cat >conftest.
$ac_ext <<_ACEOF
11530 cat confdefs.h
>>conftest.
$ac_ext
11531 cat >>conftest.
$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11534 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char XpmReadFileToPixmap ();
11544 XpmReadFileToPixmap ();
11549 rm -f conftest.
$ac_objext conftest
$ac_exeext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11551 (eval $ac_link) 2>conftest.er1
11553 grep -v '^ *+' conftest.er1
>conftest.err
11555 cat conftest.err
>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try
='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
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); }; } &&
11565 { ac_try
='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.
$ac_ext >&5
11576 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11578 rm -f conftest.err conftest.
$ac_objext \
11579 conftest
$ac_exeext conftest.
$ac_ext
11580 LIBS
=$ac_check_lib_save_LIBS
11582 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11583 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11584 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11591 if test "${HAVE_XPM}" = "yes"; then
11592 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11593 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11594 cat >conftest.
$ac_ext <<_ACEOF
11597 cat confdefs.h
>>conftest.
$ac_ext
11598 cat >>conftest.
$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include "X11/xpm.h"
11601 #ifndef XpmReturnAllocPixels
11602 no_return_alloc_pixels
11606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11607 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11615 if test "${HAVE_XPM}" = "yes"; then
11616 echo "$as_me:$LINENO: result: yes" >&5
11617 echo "${ECHO_T}yes" >&6
11619 echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6
11625 if test "${HAVE_XPM}" = "yes"; then
11627 cat >>confdefs.h
<<\_ACEOF
11634 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11636 if test "${HAVE_X11}" = "yes"; then
11637 if test "${with_jpeg}" != "no"; then
11638 if test "${ac_cv_header_jerror_h+set}" = set; then
11639 echo "$as_me:$LINENO: checking for jerror.h" >&5
11640 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11641 if test "${ac_cv_header_jerror_h+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11645 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11647 # Is the header compilable?
11648 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11649 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11650 cat >conftest.
$ac_ext <<_ACEOF
11653 cat confdefs.h
>>conftest.
$ac_ext
11654 cat >>conftest.
$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 $ac_includes_default
11657 #include <jerror.h>
11659 rm -f conftest.
$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11663 grep -v '^ *+' conftest.er1
>conftest.err
11665 cat conftest.err
>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try
='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
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); }; } &&
11675 { ac_try
='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_header_compiler
=yes
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.
$ac_ext >&5
11686 ac_header_compiler
=no
11688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11690 echo "${ECHO_T}$ac_header_compiler" >&6
11692 # Is the header present?
11693 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11694 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11695 cat >conftest.
$ac_ext <<_ACEOF
11698 cat confdefs.h
>>conftest.
$ac_ext
11699 cat >>conftest.
$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <jerror.h>
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1
>conftest.err
11708 cat conftest.err
>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev
/null
; then
11711 if test -s conftest.err
; then
11712 ac_cpp_err
=$ac_c_preproc_warn_flag
11713 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11720 if test -z "$ac_cpp_err"; then
11721 ac_header_preproc
=yes
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.
$ac_ext >&5
11726 ac_header_preproc
=no
11728 rm -f conftest.err conftest.
$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11730 echo "${ECHO_T}$ac_header_preproc" >&6
11732 # So? What about this header?
11733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11735 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11736 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11738 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11739 ac_header_preproc
=yes
11742 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11743 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11745 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11747 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11749 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11751 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11753 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11756 ## ------------------------------------------ ##
11757 ## Report this to the AC_PACKAGE_NAME lists. ##
11758 ## ------------------------------------------ ##
11761 sed "s/^/$as_me: WARNING: /" >&2
11764 echo "$as_me:$LINENO: checking for jerror.h" >&5
11765 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11766 if test "${ac_cv_header_jerror_h+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 ac_cv_header_jerror_h
=$ac_header_preproc
11771 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11772 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11775 if test $ac_cv_header_jerror_h = yes; then
11776 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11777 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11778 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 ac_check_lib_save_LIBS
=$LIBS
11782 LIBS
="-ljpeg $LIBS"
11783 cat >conftest.
$ac_ext <<_ACEOF
11786 cat confdefs.h
>>conftest.
$ac_ext
11787 cat >>conftest.
$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11790 /* Override any gcc2 internal prototype to avoid an error. */
11794 /* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */
11796 char jpeg_destroy_compress ();
11800 jpeg_destroy_compress ();
11805 rm -f conftest.
$ac_objext conftest
$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>conftest.er1
11809 grep -v '^ *+' conftest.er1
>conftest.err
11811 cat conftest.err
>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try
='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
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); }; } &&
11821 { ac_try
='test -s conftest$ac_exeext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11834 rm -f conftest.err conftest.
$ac_objext \
11835 conftest
$ac_exeext conftest.
$ac_ext
11836 LIBS
=$ac_check_lib_save_LIBS
11838 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11839 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11840 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11850 if test "${HAVE_JPEG}" = "yes"; then
11851 cat >>confdefs.h
<<\_ACEOF
11852 #define HAVE_JPEG 1
11855 cat >conftest.
$ac_ext <<_ACEOF
11858 cat confdefs.h
>>conftest.
$ac_ext
11859 cat >>conftest.
$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <jpeglib.h>
11862 version=JPEG_LIB_VERSION
11865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11866 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11867 cat >>confdefs.h
<<\_ACEOF
11868 #define HAVE_JPEG 1
11872 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11873 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11881 ### Use -lpng if available, unless `--with-png=no'.
11883 if test "${HAVE_X11}" = "yes"; then
11884 if test "${with_png}" != "no"; then
11885 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11886 # in /usr/include/libpng.
11889 for ac_header
in png.h libpng
/png.h
11891 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11893 echo "$as_me:$LINENO: checking for $ac_header" >&5
11894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11901 # Is the header compilable?
11902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11904 cat >conftest.
$ac_ext <<_ACEOF
11907 cat confdefs.h
>>conftest.
$ac_ext
11908 cat >>conftest.
$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 $ac_includes_default
11911 #include <$ac_header>
11913 rm -f conftest.
$ac_objext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>conftest.er1
11917 grep -v '^ *+' conftest.er1
>conftest.err
11919 cat conftest.err
>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try
='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
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); }; } &&
11929 { ac_try
='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_header_compiler
=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.
$ac_ext >&5
11940 ac_header_compiler
=no
11942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11944 echo "${ECHO_T}$ac_header_compiler" >&6
11946 # Is the header present?
11947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11949 cat >conftest.
$ac_ext <<_ACEOF
11952 cat confdefs.h
>>conftest.
$ac_ext
11953 cat >>conftest.
$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 #include <$ac_header>
11957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11960 grep -v '^ *+' conftest.er1
>conftest.err
11962 cat conftest.err
>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } >/dev
/null
; then
11965 if test -s conftest.err
; then
11966 ac_cpp_err
=$ac_c_preproc_warn_flag
11967 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11974 if test -z "$ac_cpp_err"; then
11975 ac_header_preproc
=yes
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.
$ac_ext >&5
11980 ac_header_preproc
=no
11982 rm -f conftest.err conftest.
$ac_ext
11983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11984 echo "${ECHO_T}$ac_header_preproc" >&6
11986 # So? What about this header?
11987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11993 ac_header_preproc
=yes
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12010 ## ------------------------------------------ ##
12011 ## Report this to the AC_PACKAGE_NAME lists. ##
12012 ## ------------------------------------------ ##
12015 sed "s/^/$as_me: WARNING: /" >&2
12018 echo "$as_me:$LINENO: checking for $ac_header" >&5
12019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 eval "$as_ac_Header=\$ac_header_preproc"
12025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12030 cat >>confdefs.h
<<_ACEOF
12031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12038 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12039 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12040 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12041 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 ac_check_lib_save_LIBS
=$LIBS
12045 LIBS
="-lpng -lz -lm $LIBS"
12046 cat >conftest.
$ac_ext <<_ACEOF
12049 cat confdefs.h
>>conftest.
$ac_ext
12050 cat >>conftest.
$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12053 /* Override any gcc2 internal prototype to avoid an error. */
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char png_get_channels ();
12063 png_get_channels ();
12068 rm -f conftest.
$ac_objext conftest
$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12072 grep -v '^ *+' conftest.er1
>conftest.err
12074 cat conftest.err
>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try
='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
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); }; } &&
12084 { ac_try
='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_cv_lib_png_png_get_channels
=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.
$ac_ext >&5
12095 ac_cv_lib_png_png_get_channels
=no
12097 rm -f conftest.err conftest.
$ac_objext \
12098 conftest
$ac_exeext conftest.
$ac_ext
12099 LIBS
=$ac_check_lib_save_LIBS
12101 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12102 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12103 if test $ac_cv_lib_png_png_get_channels = yes; then
12110 if test "${HAVE_PNG}" = "yes"; then
12112 cat >>confdefs.h
<<\_ACEOF
12119 ### Use -ltiff if available, unless `--with-tiff=no'.
12121 if test "${HAVE_X11}" = "yes"; then
12122 if test "${with_tiff}" != "no"; then
12123 if test "${ac_cv_header_tiffio_h+set}" = set; then
12124 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12125 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12126 if test "${ac_cv_header_tiffio_h+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12130 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12132 # Is the header compilable?
12133 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12134 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12135 cat >conftest.
$ac_ext <<_ACEOF
12138 cat confdefs.h
>>conftest.
$ac_ext
12139 cat >>conftest.
$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12142 #include <tiffio.h>
12144 rm -f conftest.
$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>conftest.er1
12148 grep -v '^ *+' conftest.er1
>conftest.err
12150 cat conftest.err
>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try
='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
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); }; } &&
12160 { ac_try
='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_header_compiler
=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.
$ac_ext >&5
12171 ac_header_compiler
=no
12173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12175 echo "${ECHO_T}$ac_header_compiler" >&6
12177 # Is the header present?
12178 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12179 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12180 cat >conftest.
$ac_ext <<_ACEOF
12183 cat confdefs.h
>>conftest.
$ac_ext
12184 cat >>conftest.
$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <tiffio.h>
12188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12191 grep -v '^ *+' conftest.er1
>conftest.err
12193 cat conftest.err
>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev
/null
; then
12196 if test -s conftest.err
; then
12197 ac_cpp_err
=$ac_c_preproc_warn_flag
12198 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12205 if test -z "$ac_cpp_err"; then
12206 ac_header_preproc
=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.
$ac_ext >&5
12211 ac_header_preproc
=no
12213 rm -f conftest.err conftest.
$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12215 echo "${ECHO_T}$ac_header_preproc" >&6
12217 # So? What about this header?
12218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12220 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12221 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12223 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12224 ac_header_preproc
=yes
12227 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12228 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12230 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12232 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12234 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12235 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12236 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12238 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12241 ## ------------------------------------------ ##
12242 ## Report this to the AC_PACKAGE_NAME lists. ##
12243 ## ------------------------------------------ ##
12246 sed "s/^/$as_me: WARNING: /" >&2
12249 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12250 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12251 if test "${ac_cv_header_tiffio_h+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 ac_cv_header_tiffio_h
=$ac_header_preproc
12256 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12257 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12260 if test $ac_cv_header_tiffio_h = yes; then
12262 # At least one tiff package requires the jpeg library.
12263 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12264 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12265 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12266 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 ac_check_lib_save_LIBS
=$LIBS
12270 LIBS
="-ltiff $tifflibs $LIBS"
12271 cat >conftest.
$ac_ext <<_ACEOF
12274 cat confdefs.h
>>conftest.
$ac_ext
12275 cat >>conftest.
$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12278 /* Override any gcc2 internal prototype to avoid an error. */
12282 /* We use char because int might match the return type of a gcc2
12283 builtin and then its argument prototype would still apply. */
12284 char TIFFGetVersion ();
12293 rm -f conftest.
$ac_objext conftest
$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>conftest.er1
12297 grep -v '^ *+' conftest.er1
>conftest.err
12299 cat conftest.err
>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try
='test -z "$ac_c_werror_flag"
12303 || test ! -s conftest.err'
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); }; } &&
12309 { ac_try
='test -s conftest$ac_exeext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_lib_tiff_TIFFGetVersion
=yes
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.
$ac_ext >&5
12320 ac_cv_lib_tiff_TIFFGetVersion
=no
12322 rm -f conftest.err conftest.
$ac_objext \
12323 conftest
$ac_exeext conftest.
$ac_ext
12324 LIBS
=$ac_check_lib_save_LIBS
12326 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12327 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12328 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12337 if test "${HAVE_TIFF}" = "yes"; then
12339 cat >>confdefs.h
<<\_ACEOF
12340 #define HAVE_TIFF 1
12346 ### Use -lgif if available, unless `--with-gif=no'.
12348 if test "${HAVE_X11}" = "yes"; then
12349 if test "${with_gif}" != "no"; then
12350 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12351 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12352 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12353 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12357 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12359 # Is the header compilable?
12360 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12361 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12362 cat >conftest.
$ac_ext <<_ACEOF
12365 cat confdefs.h
>>conftest.
$ac_ext
12366 cat >>conftest.
$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12369 #include <gif_lib.h>
12371 rm -f conftest.
$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12375 grep -v '^ *+' conftest.er1
>conftest.err
12377 cat conftest.err
>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try
='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
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); }; } &&
12387 { ac_try
='test -s conftest.$ac_objext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 ac_header_compiler
=yes
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.
$ac_ext >&5
12398 ac_header_compiler
=no
12400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6
12404 # Is the header present?
12405 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12406 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <gif_lib.h>
12415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12418 grep -v '^ *+' conftest.er1
>conftest.err
12420 cat conftest.err
>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } >/dev
/null
; then
12423 if test -s conftest.err
; then
12424 ac_cpp_err
=$ac_c_preproc_warn_flag
12425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12432 if test -z "$ac_cpp_err"; then
12433 ac_header_preproc
=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.
$ac_ext >&5
12438 ac_header_preproc
=no
12440 rm -f conftest.err conftest.
$ac_ext
12441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc
=yes
12454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12468 ## ------------------------------------------ ##
12469 ## Report this to the AC_PACKAGE_NAME lists. ##
12470 ## ------------------------------------------ ##
12473 sed "s/^/$as_me: WARNING: /" >&2
12476 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12477 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12478 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 ac_cv_header_gif_lib_h
=$ac_header_preproc
12483 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12484 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12487 if test $ac_cv_header_gif_lib_h = yes; then
12488 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12489 # Earlier versions can crash Emacs.
12490 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12491 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12492 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 ac_check_lib_save_LIBS
=$LIBS
12496 LIBS
="-lungif $LIBS"
12497 cat >conftest.
$ac_ext <<_ACEOF
12500 cat confdefs.h
>>conftest.
$ac_ext
12501 cat >>conftest.
$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12504 /* Override any gcc2 internal prototype to avoid an error. */
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12510 char EGifPutExtensionLast ();
12514 EGifPutExtensionLast ();
12519 rm -f conftest.
$ac_objext conftest
$ac_exeext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521 (eval $ac_link) 2>conftest.er1
12523 grep -v '^ *+' conftest.er1
>conftest.err
12525 cat conftest.err
>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try
='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
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); }; } &&
12535 { ac_try
='test -s conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.
$ac_ext >&5
12546 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12548 rm -f conftest.err conftest.
$ac_objext \
12549 conftest
$ac_exeext conftest.
$ac_ext
12550 LIBS
=$ac_check_lib_save_LIBS
12552 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12553 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12554 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12563 if test "${HAVE_GIF}" = "yes"; then
12565 cat >>confdefs.h
<<\_ACEOF
12572 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12573 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12574 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12575 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12579 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12581 # Is the header compilable?
12582 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12583 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12584 cat >conftest.
$ac_ext <<_ACEOF
12587 cat confdefs.h
>>conftest.
$ac_ext
12588 cat >>conftest.
$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12591 #include <malloc/malloc.h>
12593 rm -f conftest.
$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595 (eval $ac_compile) 2>conftest.er1
12597 grep -v '^ *+' conftest.er1
>conftest.err
12599 cat conftest.err
>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try
='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
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); }; } &&
12609 { ac_try
='test -s conftest.$ac_objext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_header_compiler
=yes
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.
$ac_ext >&5
12620 ac_header_compiler
=no
12622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12624 echo "${ECHO_T}$ac_header_compiler" >&6
12626 # Is the header present?
12627 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12628 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12629 cat >conftest.
$ac_ext <<_ACEOF
12632 cat confdefs.h
>>conftest.
$ac_ext
12633 cat >>conftest.
$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <malloc/malloc.h>
12637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12640 grep -v '^ *+' conftest.er1
>conftest.err
12642 cat conftest.err
>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev
/null
; then
12645 if test -s conftest.err
; then
12646 ac_cpp_err
=$ac_c_preproc_warn_flag
12647 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12654 if test -z "$ac_cpp_err"; then
12655 ac_header_preproc
=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.
$ac_ext >&5
12660 ac_header_preproc
=no
12662 rm -f conftest.err conftest.
$ac_ext
12663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12664 echo "${ECHO_T}$ac_header_preproc" >&6
12666 # So? What about this header?
12667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12669 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12670 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12672 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12673 ac_header_preproc
=yes
12676 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12677 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12679 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12681 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12683 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12685 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12687 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12690 ## ------------------------------------------ ##
12691 ## Report this to the AC_PACKAGE_NAME lists. ##
12692 ## ------------------------------------------ ##
12695 sed "s/^/$as_me: WARNING: /" >&2
12698 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12699 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12700 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12705 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12706 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12709 if test $ac_cv_header_malloc_malloc_h = yes; then
12711 cat >>confdefs.h
<<\_ACEOF
12712 #define HAVE_MALLOC_MALLOC_H 1
12719 ### Use Mac OS X Carbon API to implement GUI.
12720 if test "${HAVE_CARBON}" = "yes"; then
12722 cat >>confdefs.h
<<\_ACEOF
12723 #define HAVE_CARBON 1
12726 ## Specify the install directory
12728 if test "${carbon_appdir_x}" != ""; then
12729 case ${carbon_appdir_x} in
12730 y | ye |
yes) carbon_appdir
=/Applications
;;
12731 * ) carbon_appdir
=${carbon_appdir_x} ;;
12734 # We also have mouse menus.
12737 tmp_CFLAGS
="$CFLAGS"
12738 CFLAGS
="$CFLAGS -framework Carbon"
12739 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12740 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12741 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 cat >conftest.
$ac_ext <<_ACEOF
12747 cat confdefs.h
>>conftest.
$ac_ext
12748 cat >>conftest.
$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12752 #define CancelMenuTracking innocuous_CancelMenuTracking
12754 /* System header to define __stub macros and hopefully few prototypes,
12755 which can conflict with char CancelMenuTracking (); below.
12756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12757 <limits.h> exists even on freestanding compilers. */
12760 # include <limits.h>
12762 # include <assert.h>
12765 #undef CancelMenuTracking
12767 /* Override any gcc2 internal prototype to avoid an error. */
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12774 char CancelMenuTracking ();
12775 /* The GNU C library defines this for functions which it implements
12776 to always fail with ENOSYS. Some functions are actually named
12777 something starting with __ and the normal name is an alias. */
12778 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12781 char (*f) () = CancelMenuTracking;
12790 return f != CancelMenuTracking;
12795 rm -f conftest.
$ac_objext conftest
$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>conftest.er1
12799 grep -v '^ *+' conftest.er1
>conftest.err
12801 cat conftest.err
>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try
='test -z "$ac_c_werror_flag"
12805 || test ! -s conftest.err'
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); }; } &&
12811 { ac_try
='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_func_CancelMenuTracking
=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.
$ac_ext >&5
12822 ac_cv_func_CancelMenuTracking
=no
12824 rm -f conftest.err conftest.
$ac_objext \
12825 conftest
$ac_exeext conftest.
$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12828 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12829 if test $ac_cv_func_CancelMenuTracking = yes; then
12835 if test "$have_cmt" = yes; then
12837 cat >>confdefs.h
<<\_ACEOF
12838 #define HAVE_CANCELMENUTRACKING 1
12842 CFLAGS
="$tmp_CFLAGS"
12845 ### Use session management (-lSM -lICE) if available
12847 if test "${HAVE_X11}" = "yes"; then
12848 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12849 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12850 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12851 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12855 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12857 # Is the header compilable?
12858 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12859 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12860 cat >conftest.
$ac_ext <<_ACEOF
12863 cat confdefs.h
>>conftest.
$ac_ext
12864 cat >>conftest.
$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 $ac_includes_default
12867 #include <X11/SM/SMlib.h>
12869 rm -f conftest.
$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>conftest.er1
12873 grep -v '^ *+' conftest.er1
>conftest.err
12875 cat conftest.err
>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try
='test -z "$ac_c_werror_flag"
12879 || test ! -s conftest.err'
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); }; } &&
12885 { ac_try
='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_header_compiler
=yes
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.
$ac_ext >&5
12896 ac_header_compiler
=no
12898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6
12902 # Is the header present?
12903 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12904 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12905 cat >conftest.
$ac_ext <<_ACEOF
12908 cat confdefs.h
>>conftest.
$ac_ext
12909 cat >>conftest.
$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <X11/SM/SMlib.h>
12913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12916 grep -v '^ *+' conftest.er1
>conftest.err
12918 cat conftest.err
>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } >/dev
/null
; then
12921 if test -s conftest.err
; then
12922 ac_cpp_err
=$ac_c_preproc_warn_flag
12923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12930 if test -z "$ac_cpp_err"; then
12931 ac_header_preproc
=yes
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.
$ac_ext >&5
12936 ac_header_preproc
=no
12938 rm -f conftest.err conftest.
$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12940 echo "${ECHO_T}$ac_header_preproc" >&6
12942 # So? What about this header?
12943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12945 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12946 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12948 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12949 ac_header_preproc
=yes
12952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12953 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12955 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12957 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12959 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12963 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12966 ## ------------------------------------------ ##
12967 ## Report this to the AC_PACKAGE_NAME lists. ##
12968 ## ------------------------------------------ ##
12971 sed "s/^/$as_me: WARNING: /" >&2
12974 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12975 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12976 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12981 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12982 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12985 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12986 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12987 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12988 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 ac_check_lib_save_LIBS
=$LIBS
12992 LIBS
="-lSM -lICE $LIBS"
12993 cat >conftest.
$ac_ext <<_ACEOF
12996 cat confdefs.h
>>conftest.
$ac_ext
12997 cat >>conftest.
$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char SmcOpenConnection ();
13010 SmcOpenConnection ();
13015 rm -f conftest.
$ac_objext conftest
$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13019 grep -v '^ *+' conftest.er1
>conftest.err
13021 cat conftest.err
>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try
='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
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); }; } &&
13031 { ac_try
='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_SM_SmcOpenConnection
=yes
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.
$ac_ext >&5
13042 ac_cv_lib_SM_SmcOpenConnection
=no
13044 rm -f conftest.err conftest.
$ac_objext \
13045 conftest
$ac_exeext conftest.
$ac_ext
13046 LIBS
=$ac_check_lib_save_LIBS
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13049 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13050 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13058 if test "${HAVE_X_SM}" = "yes"; then
13060 cat >>confdefs.h
<<\_ACEOF
13061 #define HAVE_X_SM 1
13066 *) LIBS
="-lSM -lICE $LIBS" ;;
13071 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13072 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13073 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13074 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 cat >conftest.
$ac_ext <<_ACEOF
13080 cat confdefs.h
>>conftest.
$ac_ext
13081 cat >>conftest.
$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13092 rm -f conftest.
$ac_objext conftest
$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1
>conftest.err
13098 cat conftest.err
>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try
='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
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); }; } &&
13108 { ac_try
='test -s conftest$ac_exeext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 emacs_cv_netdb_declares_h_errno
=yes
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.
$ac_ext >&5
13119 emacs_cv_netdb_declares_h_errno
=no
13121 rm -f conftest.err conftest.
$ac_objext \
13122 conftest
$ac_exeext conftest.
$ac_ext
13124 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13125 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13126 if test $emacs_cv_netdb_declares_h_errno = yes; then
13128 cat >>confdefs.h
<<\_ACEOF
13129 #define HAVE_H_ERRNO 1
13134 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13135 # for constant arguments. Useless!
13136 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13137 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13138 if test "${ac_cv_working_alloca_h+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 cat >conftest.
$ac_ext <<_ACEOF
13144 cat confdefs.h
>>conftest.
$ac_ext
13145 cat >>conftest.
$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <alloca.h>
13151 char *p = (char *) alloca (2 * sizeof (int));
13156 rm -f conftest.
$ac_objext conftest
$ac_exeext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>conftest.er1
13160 grep -v '^ *+' conftest.er1
>conftest.err
13162 cat conftest.err
>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try
='test -z "$ac_c_werror_flag"
13166 || test ! -s conftest.err'
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); }; } &&
13172 { ac_try
='test -s conftest$ac_exeext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 ac_cv_working_alloca_h
=yes
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.
$ac_ext >&5
13183 ac_cv_working_alloca_h
=no
13185 rm -f conftest.err conftest.
$ac_objext \
13186 conftest
$ac_exeext conftest.
$ac_ext
13188 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13189 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13190 if test $ac_cv_working_alloca_h = yes; then
13192 cat >>confdefs.h
<<\_ACEOF
13193 #define HAVE_ALLOCA_H 1
13198 echo "$as_me:$LINENO: checking for alloca" >&5
13199 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13200 if test "${ac_cv_func_alloca_works+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.
$ac_ext <<_ACEOF
13206 cat confdefs.h
>>conftest.
$ac_ext
13207 cat >>conftest.
$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13210 # define alloca __builtin_alloca
13213 # include <malloc.h>
13214 # define alloca _alloca
13217 # include <alloca.h>
13222 # ifndef alloca /* predefined by HP cc +Olibcalls */
13233 char *p = (char *) alloca (1);
13238 rm -f conftest.
$ac_objext conftest
$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1
>conftest.err
13244 cat conftest.err
>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try
='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
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); }; } &&
13254 { ac_try
='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_func_alloca_works
=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.
$ac_ext >&5
13265 ac_cv_func_alloca_works
=no
13267 rm -f conftest.err conftest.
$ac_objext \
13268 conftest
$ac_exeext conftest.
$ac_ext
13270 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13271 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13273 if test $ac_cv_func_alloca_works = yes; then
13275 cat >>confdefs.h
<<\_ACEOF
13276 #define HAVE_ALLOCA 1
13280 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13281 # that cause trouble. Some versions do not even contain alloca or
13282 # contain a buggy version. If you still want to use their alloca,
13283 # use ar to extract alloca.o from them instead of compiling alloca.c.
13285 ALLOCA
=alloca.
$ac_objext
13287 cat >>confdefs.h
<<\_ACEOF
13292 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13293 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13294 if test "${ac_cv_os_cray+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 cat >conftest.
$ac_ext <<_ACEOF
13300 cat confdefs.h
>>conftest.
$ac_ext
13301 cat >>conftest.
$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #if defined(CRAY) && ! defined(CRAY2)
13310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13311 $EGREP "webecray" >/dev
/null
2>&1; then
13319 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13320 echo "${ECHO_T}$ac_cv_os_cray" >&6
13321 if test $ac_cv_os_cray = yes; then
13322 for ac_func
in _getb67 GETB67 getb67
; do
13323 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13324 echo "$as_me:$LINENO: checking for $ac_func" >&5
13325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13326 if eval "test \"\${$as_ac_var+set}\" = set"; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 cat >conftest.
$ac_ext <<_ACEOF
13332 cat confdefs.h
>>conftest.
$ac_ext
13333 cat >>conftest.
$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13337 #define $ac_func innocuous_$ac_func
13339 /* System header to define __stub macros and hopefully few prototypes,
13340 which can conflict with char $ac_func (); below.
13341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13342 <limits.h> exists even on freestanding compilers. */
13345 # include <limits.h>
13347 # include <assert.h>
13352 /* Override any gcc2 internal prototype to avoid an error. */
13357 /* We use char because int might match the return type of a gcc2
13358 builtin and then its argument prototype would still apply. */
13360 /* The GNU C library defines this for functions which it implements
13361 to always fail with ENOSYS. Some functions are actually named
13362 something starting with __ and the normal name is an alias. */
13363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13366 char (*f) () = $ac_func;
13375 return f != $ac_func;
13380 rm -f conftest.
$ac_objext conftest
$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>conftest.er1
13384 grep -v '^ *+' conftest.er1
>conftest.err
13386 cat conftest.err
>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try
='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
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); }; } &&
13396 { ac_try
='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 eval "$as_ac_var=yes"
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.
$ac_ext >&5
13407 eval "$as_ac_var=no"
13409 rm -f conftest.err conftest.
$ac_objext \
13410 conftest
$ac_exeext conftest.
$ac_ext
13412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13414 if test `eval echo '${'$as_ac_var'}'` = yes; then
13416 cat >>confdefs.h
<<_ACEOF
13417 #define CRAY_STACKSEG_END $ac_func
13426 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13427 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13428 if test "${ac_cv_c_stack_direction+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 if test "$cross_compiling" = yes; then
13432 ac_cv_c_stack_direction
=0
13434 cat >conftest.
$ac_ext <<_ACEOF
13437 cat confdefs.h
>>conftest.
$ac_ext
13438 cat >>conftest.
$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 find_stack_direction ()
13443 static char *addr = 0;
13448 return find_stack_direction ();
13451 return (&dummy > addr) ? 1 : -1;
13457 exit (find_stack_direction () < 0);
13460 rm -f conftest
$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_c_stack_direction
=1
13473 echo "$as_me: program exited with status $ac_status" >&5
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.
$ac_ext >&5
13477 ( exit $ac_status )
13478 ac_cv_c_stack_direction
=-1
13480 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13483 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13484 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13486 cat >>confdefs.h
<<_ACEOF
13487 #define STACK_DIRECTION $ac_cv_c_stack_direction
13494 # fmod, logb, and frexp are found in -lm on most systems.
13495 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13497 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13498 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13499 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 ac_check_lib_save_LIBS
=$LIBS
13504 cat >conftest.
$ac_ext <<_ACEOF
13507 cat confdefs.h
>>conftest.
$ac_ext
13508 cat >>conftest.
$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13511 /* Override any gcc2 internal prototype to avoid an error. */
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13526 rm -f conftest.
$ac_objext conftest
$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>conftest.er1
13530 grep -v '^ *+' conftest.er1
>conftest.err
13532 cat conftest.err
>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try
='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
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); }; } &&
13542 { ac_try
='test -s conftest$ac_exeext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_lib_m_sqrt
=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.
$ac_ext >&5
13553 ac_cv_lib_m_sqrt
=no
13555 rm -f conftest.err conftest.
$ac_objext \
13556 conftest
$ac_exeext conftest.
$ac_ext
13557 LIBS
=$ac_check_lib_save_LIBS
13559 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13560 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13561 if test $ac_cv_lib_m_sqrt = yes; then
13562 cat >>confdefs.h
<<_ACEOF
13563 #define HAVE_LIBM 1
13571 # Check for mail-locking functions in a "mail" library. Probably this should
13572 # have the same check as for liblockfile below.
13574 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13575 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13576 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 ac_check_lib_save_LIBS
=$LIBS
13580 LIBS
="-lmail $LIBS"
13581 cat >conftest.
$ac_ext <<_ACEOF
13584 cat confdefs.h
>>conftest.
$ac_ext
13585 cat >>conftest.
$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any gcc2 internal prototype to avoid an error. */
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13603 rm -f conftest.
$ac_objext conftest
$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>conftest.er1
13607 grep -v '^ *+' conftest.er1
>conftest.err
13609 cat conftest.err
>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try
='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
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); }; } &&
13619 { ac_try
='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_lib_mail_maillock
=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.
$ac_ext >&5
13630 ac_cv_lib_mail_maillock
=no
13632 rm -f conftest.err conftest.
$ac_objext \
13633 conftest
$ac_exeext conftest.
$ac_ext
13634 LIBS
=$ac_check_lib_save_LIBS
13636 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13637 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13638 if test $ac_cv_lib_mail_maillock = yes; then
13639 cat >>confdefs.h
<<_ACEOF
13640 #define HAVE_LIBMAIL 1
13643 LIBS
="-lmail $LIBS"
13648 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13649 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13650 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 ac_check_lib_save_LIBS
=$LIBS
13654 LIBS
="-llockfile $LIBS"
13655 cat >conftest.
$ac_ext <<_ACEOF
13658 cat confdefs.h
>>conftest.
$ac_ext
13659 cat >>conftest.
$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13662 /* Override any gcc2 internal prototype to avoid an error. */
13666 /* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13677 rm -f conftest.
$ac_objext conftest
$ac_exeext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679 (eval $ac_link) 2>conftest.er1
13681 grep -v '^ *+' conftest.er1
>conftest.err
13683 cat conftest.err
>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try
='test -z "$ac_c_werror_flag"
13687 || test ! -s conftest.err'
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); }; } &&
13693 { ac_try
='test -s conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_cv_lib_lockfile_maillock
=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.
$ac_ext >&5
13704 ac_cv_lib_lockfile_maillock
=no
13706 rm -f conftest.err conftest.
$ac_objext \
13707 conftest
$ac_exeext conftest.
$ac_ext
13708 LIBS
=$ac_check_lib_save_LIBS
13710 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13711 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13712 if test $ac_cv_lib_lockfile_maillock = yes; then
13713 cat >>confdefs.h
<<_ACEOF
13714 #define HAVE_LIBLOCKFILE 1
13717 LIBS
="-llockfile $LIBS"
13721 # If we have the shared liblockfile, assume we must use it for mail
13722 # locking (e.g. Debian). If we couldn't link against liblockfile
13723 # (no liblockfile.a installed), ensure that we don't need to.
13724 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13725 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13726 set dummy liblockfile.so
; ac_word
=$2
13727 echo "$as_me:$LINENO: checking for $ac_word" >&5
13728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13729 if test "${ac_cv_prog_liblockfile+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 if test -n "$liblockfile"; then
13733 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13736 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13737 for as_dir
in $as_dummy
13740 test -z "$as_dir" && as_dir
=.
13741 for ac_exec_ext
in '' $ac_executable_extensions; do
13742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13743 ac_cv_prog_liblockfile
="yes"
13744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13753 liblockfile
=$ac_cv_prog_liblockfile
13754 if test -n "$liblockfile"; then
13755 echo "$as_me:$LINENO: result: $liblockfile" >&5
13756 echo "${ECHO_T}$liblockfile" >&6
13758 echo "$as_me:$LINENO: result: no" >&5
13759 echo "${ECHO_T}no" >&6
13762 if test $ac_cv_prog_liblockfile = yes; then
13763 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13764 This probably means that movemail could lose mail.
13765 There may be a \`development' package to install containing liblockfile." >&5
13766 echo "$as_me: error: Shared liblockfile found but can't link against it.
13767 This probably means that movemail could lose mail.
13768 There may be a \`development' package to install containing liblockfile." >&2;}
13769 { (exit 1); exit 1; }; }
13774 for ac_func
in touchlock
13776 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13777 echo "$as_me:$LINENO: checking for $ac_func" >&5
13778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13779 if eval "test \"\${$as_ac_var+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 cat >conftest.
$ac_ext <<_ACEOF
13785 cat confdefs.h
>>conftest.
$ac_ext
13786 cat >>conftest.
$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13790 #define $ac_func innocuous_$ac_func
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char $ac_func (); below.
13794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13795 <limits.h> exists even on freestanding compilers. */
13798 # include <limits.h>
13800 # include <assert.h>
13805 /* Override any gcc2 internal prototype to avoid an error. */
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13813 /* The GNU C library defines this for functions which it implements
13814 to always fail with ENOSYS. Some functions are actually named
13815 something starting with __ and the normal name is an alias. */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13819 char (*f) () = $ac_func;
13828 return f != $ac_func;
13833 rm -f conftest.
$ac_objext conftest
$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835 (eval $ac_link) 2>conftest.er1
13837 grep -v '^ *+' conftest.er1
>conftest.err
13839 cat conftest.err
>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try
='test -z "$ac_c_werror_flag"
13843 || test ! -s conftest.err'
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); }; } &&
13849 { ac_try
='test -s conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 eval "$as_ac_var=yes"
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.
$ac_ext >&5
13860 eval "$as_ac_var=no"
13862 rm -f conftest.err conftest.
$ac_objext \
13863 conftest
$ac_exeext conftest.
$ac_ext
13865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13867 if test `eval echo '${'$as_ac_var'}'` = yes; then
13868 cat >>confdefs.h
<<_ACEOF
13869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13876 for ac_header
in maillock.h
13878 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880 echo "$as_me:$LINENO: checking for $ac_header" >&5
13881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13888 # Is the header compilable?
13889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13891 cat >conftest.
$ac_ext <<_ACEOF
13894 cat confdefs.h
>>conftest.
$ac_ext
13895 cat >>conftest.
$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 $ac_includes_default
13898 #include <$ac_header>
13900 rm -f conftest.
$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>conftest.er1
13904 grep -v '^ *+' conftest.er1
>conftest.err
13906 cat conftest.err
>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try
='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
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); }; } &&
13916 { ac_try
='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_header_compiler
=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.
$ac_ext >&5
13927 ac_header_compiler
=no
13929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13931 echo "${ECHO_T}$ac_header_compiler" >&6
13933 # Is the header present?
13934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13936 cat >conftest.
$ac_ext <<_ACEOF
13939 cat confdefs.h
>>conftest.
$ac_ext
13940 cat >>conftest.
$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <$ac_header>
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13947 grep -v '^ *+' conftest.er1
>conftest.err
13949 cat conftest.err
>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } >/dev
/null
; then
13952 if test -s conftest.err
; then
13953 ac_cpp_err
=$ac_c_preproc_warn_flag
13954 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13961 if test -z "$ac_cpp_err"; then
13962 ac_header_preproc
=yes
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.
$ac_ext >&5
13967 ac_header_preproc
=no
13969 rm -f conftest.err conftest.
$ac_ext
13970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6
13973 # So? What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc
=yes
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13997 ## ------------------------------------------ ##
13998 ## Report this to the AC_PACKAGE_NAME lists. ##
13999 ## ------------------------------------------ ##
14002 sed "s/^/$as_me: WARNING: /" >&2
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 eval "$as_ac_Header=\$ac_header_preproc"
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017 cat >>confdefs.h
<<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14094 for ac_func
in gethostname getdomainname dup2 \
14095 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14096 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14097 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14098 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14099 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14100 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14101 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14102 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14104 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14105 echo "$as_me:$LINENO: checking for $ac_func" >&5
14106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_var+set}\" = set"; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 cat >conftest.
$ac_ext <<_ACEOF
14113 cat confdefs.h
>>conftest.
$ac_ext
14114 cat >>conftest.
$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14118 #define $ac_func innocuous_$ac_func
14120 /* System header to define __stub macros and hopefully few prototypes,
14121 which can conflict with char $ac_func (); below.
14122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14123 <limits.h> exists even on freestanding compilers. */
14126 # include <limits.h>
14128 # include <assert.h>
14133 /* Override any gcc2 internal prototype to avoid an error. */
14138 /* We use char because int might match the return type of a gcc2
14139 builtin and then its argument prototype would still apply. */
14141 /* The GNU C library defines this for functions which it implements
14142 to always fail with ENOSYS. Some functions are actually named
14143 something starting with __ and the normal name is an alias. */
14144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14147 char (*f) () = $ac_func;
14156 return f != $ac_func;
14161 rm -f conftest.
$ac_objext conftest
$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1
>conftest.err
14167 cat conftest.err
>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try
='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
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); }; } &&
14177 { ac_try
='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 eval "$as_ac_var=yes"
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.
$ac_ext >&5
14188 eval "$as_ac_var=no"
14190 rm -f conftest.err conftest.
$ac_objext \
14191 conftest
$ac_exeext conftest.
$ac_ext
14193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14195 if test `eval echo '${'$as_ac_var'}'` = yes; then
14196 cat >>confdefs.h
<<_ACEOF
14197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14205 for ac_header
in sys
/un.h
14207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209 echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14217 # Is the header compilable?
14218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14220 cat >conftest.
$ac_ext <<_ACEOF
14223 cat confdefs.h
>>conftest.
$ac_ext
14224 cat >>conftest.
$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <$ac_header>
14229 rm -f conftest.
$ac_objext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231 (eval $ac_compile) 2>conftest.er1
14233 grep -v '^ *+' conftest.er1
>conftest.err
14235 cat conftest.err
>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try
='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
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); }; } &&
14245 { ac_try
='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_header_compiler
=yes
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.
$ac_ext >&5
14256 ac_header_compiler
=no
14258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6
14262 # Is the header present?
14263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14265 cat >conftest.
$ac_ext <<_ACEOF
14268 cat confdefs.h
>>conftest.
$ac_ext
14269 cat >>conftest.
$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <$ac_header>
14273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14276 grep -v '^ *+' conftest.er1
>conftest.err
14278 cat conftest.err
>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev
/null
; then
14281 if test -s conftest.err
; then
14282 ac_cpp_err
=$ac_c_preproc_warn_flag
14283 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14290 if test -z "$ac_cpp_err"; then
14291 ac_header_preproc
=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.
$ac_ext >&5
14296 ac_header_preproc
=no
14298 rm -f conftest.err conftest.
$ac_ext
14299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14300 echo "${ECHO_T}$ac_header_preproc" >&6
14302 # So? What about this header?
14303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14309 ac_header_preproc
=yes
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14326 ## ------------------------------------------ ##
14327 ## Report this to the AC_PACKAGE_NAME lists. ##
14328 ## ------------------------------------------ ##
14331 sed "s/^/$as_me: WARNING: /" >&2
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 eval "$as_ac_Header=\$ac_header_preproc"
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14346 cat >>confdefs.h
<<_ACEOF
14347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 for ac_header
in stdlib.h sys
/time.h unistd.h
14360 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362 echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14370 # Is the header compilable?
14371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373 cat >conftest.
$ac_ext <<_ACEOF
14376 cat confdefs.h
>>conftest.
$ac_ext
14377 cat >>conftest.
$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 #include <$ac_header>
14382 rm -f conftest.
$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14386 grep -v '^ *+' conftest.er1
>conftest.err
14388 cat conftest.err
>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try
='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
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); }; } &&
14398 { ac_try
='test -s conftest.$ac_objext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_header_compiler
=yes
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 ac_header_compiler
=no
14411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14413 echo "${ECHO_T}$ac_header_compiler" >&6
14415 # Is the header present?
14416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14418 cat >conftest.
$ac_ext <<_ACEOF
14421 cat confdefs.h
>>conftest.
$ac_ext
14422 cat >>conftest.
$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 #include <$ac_header>
14426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14427 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14429 grep -v '^ *+' conftest.er1
>conftest.err
14431 cat conftest.err
>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } >/dev
/null
; then
14434 if test -s conftest.err
; then
14435 ac_cpp_err
=$ac_c_preproc_warn_flag
14436 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14443 if test -z "$ac_cpp_err"; then
14444 ac_header_preproc
=yes
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.
$ac_ext >&5
14449 ac_header_preproc
=no
14451 rm -f conftest.err conftest.
$ac_ext
14452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14453 echo "${ECHO_T}$ac_header_preproc" >&6
14455 # So? What about this header?
14456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14462 ac_header_preproc
=yes
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14479 ## ------------------------------------------ ##
14480 ## Report this to the AC_PACKAGE_NAME lists. ##
14481 ## ------------------------------------------ ##
14484 sed "s/^/$as_me: WARNING: /" >&2
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 eval "$as_ac_Header=\$ac_header_preproc"
14494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14499 cat >>confdefs.h
<<_ACEOF
14500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508 for ac_func
in alarm
14510 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511 echo "$as_me:$LINENO: checking for $ac_func" >&5
14512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14513 if eval "test \"\${$as_ac_var+set}\" = set"; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.
$ac_ext <<_ACEOF
14519 cat confdefs.h
>>conftest.
$ac_ext
14520 cat >>conftest.
$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524 #define $ac_func innocuous_$ac_func
14526 /* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char $ac_func (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14532 # include <limits.h>
14534 # include <assert.h>
14539 /* Override any gcc2 internal prototype to avoid an error. */
14544 /* We use char because int might match the return type of a gcc2
14545 builtin and then its argument prototype would still apply. */
14547 /* The GNU C library defines this for functions which it implements
14548 to always fail with ENOSYS. Some functions are actually named
14549 something starting with __ and the normal name is an alias. */
14550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14553 char (*f) () = $ac_func;
14562 return f != $ac_func;
14567 rm -f conftest.
$ac_objext conftest
$ac_exeext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>conftest.er1
14571 grep -v '^ *+' conftest.er1
>conftest.err
14573 cat conftest.err
>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try
='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
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); }; } &&
14583 { ac_try
='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 eval "$as_ac_var=yes"
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.
$ac_ext >&5
14594 eval "$as_ac_var=no"
14596 rm -f conftest.err conftest.
$ac_objext \
14597 conftest
$ac_exeext conftest.
$ac_ext
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14601 if test `eval echo '${'$as_ac_var'}'` = yes; then
14602 cat >>confdefs.h
<<_ACEOF
14603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 echo "$as_me:$LINENO: checking for working mktime" >&5
14610 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14611 if test "${ac_cv_func_working_mktime+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 if test "$cross_compiling" = yes; then
14615 ac_cv_func_working_mktime
=no
14617 cat >conftest.
$ac_ext <<_ACEOF
14620 cat confdefs.h
>>conftest.
$ac_ext
14621 cat >>conftest.
$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 /* Test program from Paul Eggert and Tony Leneis. */
14624 #if TIME_WITH_SYS_TIME
14625 # include <sys/time.h>
14628 # if HAVE_SYS_TIME_H
14629 # include <sys/time.h>
14636 # include <stdlib.h>
14640 # include <unistd.h>
14644 # define alarm(X) /* empty */
14647 /* Work around redefinition to rpl_putenv by other config tests. */
14650 static time_t time_t_max;
14651 static time_t time_t_min;
14653 /* Values we'll use to set the TZ environment variable. */
14654 static char *tz_strings[] = {
14655 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14656 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14658 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14660 /* Fail if mktime fails to convert a date in the spring-forward gap.
14661 Based on a problem report from Andreas Jaeger. */
14663 spring_forward_gap ()
14665 /* glibc (up to about 1998-10-07) failed this test. */
14668 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14669 instead of "TZ=America/Vancouver" in order to detect the bug even
14670 on systems that don't support the Olson extension, or don't have the
14671 full zoneinfo tables installed. */
14672 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14681 if (mktime (&tm) == (time_t)-1)
14690 if ((lt = localtime (&now)) && mktime (lt) != now)
14698 mktime_test1 (now);
14699 mktime_test1 ((time_t) (time_t_max - now));
14700 mktime_test1 ((time_t) (time_t_min + now));
14706 /* Based on code from Ariel Faigon. */
14716 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14726 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14727 now = mktime (&tm);
14728 if (now != (time_t) -1)
14730 struct tm *lt = localtime (&now);
14732 && lt->tm_year == tm.tm_year
14733 && lt->tm_mon == tm.tm_mon
14734 && lt->tm_mday == tm.tm_mday
14735 && lt->tm_hour == tm.tm_hour
14736 && lt->tm_min == tm.tm_min
14737 && lt->tm_sec == tm.tm_sec
14738 && lt->tm_yday == tm.tm_yday
14739 && lt->tm_wday == tm.tm_wday
14740 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14741 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14752 /* This test makes some buggy mktime implementations loop.
14753 Give up after 60 seconds; a mktime slower than that
14754 isn't worth using anyway. */
14757 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14760 if ((time_t) -1 < 0)
14761 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14763 delta = time_t_max / 997; /* a suitable prime number */
14764 for (i = 0; i < N_STRINGS; i++)
14767 putenv (tz_strings[i]);
14769 for (t = 0; t <= time_t_max - delta; t += delta)
14771 mktime_test ((time_t) 1);
14772 mktime_test ((time_t) (60 * 60));
14773 mktime_test ((time_t) (60 * 60 * 24));
14775 for (j = 1; 0 < j; j *= 2)
14777 bigtime_test (j - 1);
14780 spring_forward_gap ();
14784 rm -f conftest
$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_func_working_mktime
=yes
14797 echo "$as_me: program exited with status $ac_status" >&5
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.
$ac_ext >&5
14801 ( exit $ac_status )
14802 ac_cv_func_working_mktime
=no
14804 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14807 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14808 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14809 if test $ac_cv_func_working_mktime = no
; then
14811 "mktime.$ac_objext" | \
14812 *" mktime.$ac_objext" | \
14813 "mktime.$ac_objext "* | \
14814 *" mktime.$ac_objext "* ) ;;
14815 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14820 if test "$ac_cv_func_working_mktime" = no
; then
14822 cat >>confdefs.h
<<\_ACEOF
14823 #define BROKEN_MKTIME 1
14828 ac_have_func
=no
# yes means we've found a way to get the load average.
14830 # Make sure getloadavg.c is where it belongs, at configure-time.
14831 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14832 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14833 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14834 { (exit 1); exit 1; }; }
14838 # Check for getloadavg, but be sure not to touch the cache variable.
14839 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14840 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14841 if test "${ac_cv_func_getloadavg+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 cat >conftest.
$ac_ext <<_ACEOF
14847 cat confdefs.h
>>conftest.
$ac_ext
14848 cat >>conftest.
$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14852 #define getloadavg innocuous_getloadavg
14854 /* System header to define __stub macros and hopefully few prototypes,
14855 which can conflict with char getloadavg (); below.
14856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14857 <limits.h> exists even on freestanding compilers. */
14860 # include <limits.h>
14862 # include <assert.h>
14867 /* Override any gcc2 internal prototype to avoid an error. */
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14874 char getloadavg ();
14875 /* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14881 char (*f) () = getloadavg;
14890 return f != getloadavg;
14895 rm -f conftest.
$ac_objext conftest
$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>conftest.er1
14899 grep -v '^ *+' conftest.er1
>conftest.err
14901 cat conftest.err
>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try
='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
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); }; } &&
14911 { ac_try
='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_func_getloadavg
=yes
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.
$ac_ext >&5
14922 ac_cv_func_getloadavg
=no
14924 rm -f conftest.err conftest.
$ac_objext \
14925 conftest
$ac_exeext conftest.
$ac_ext
14927 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14928 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14929 if test $ac_cv_func_getloadavg = yes; then
14934 ) && ac_have_func
=yes
14936 # On HPUX9, an unprivileged user can get load averages through this function.
14938 for ac_func
in pstat_getdynamic
14940 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14941 echo "$as_me:$LINENO: checking for $ac_func" >&5
14942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14943 if eval "test \"\${$as_ac_var+set}\" = set"; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 cat >conftest.
$ac_ext <<_ACEOF
14949 cat confdefs.h
>>conftest.
$ac_ext
14950 cat >>conftest.
$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14954 #define $ac_func innocuous_$ac_func
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char $ac_func (); below.
14958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959 <limits.h> exists even on freestanding compilers. */
14962 # include <limits.h>
14964 # include <assert.h>
14969 /* Override any gcc2 internal prototype to avoid an error. */
14974 /* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14977 /* The GNU C library defines this for functions which it implements
14978 to always fail with ENOSYS. Some functions are actually named
14979 something starting with __ and the normal name is an alias. */
14980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14983 char (*f) () = $ac_func;
14992 return f != $ac_func;
14997 rm -f conftest.
$ac_objext conftest
$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>conftest.er1
15001 grep -v '^ *+' conftest.er1
>conftest.err
15003 cat conftest.err
>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try
='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
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); }; } &&
15013 { ac_try
='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 eval "$as_ac_var=yes"
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.
$ac_ext >&5
15024 eval "$as_ac_var=no"
15026 rm -f conftest.err conftest.
$ac_objext \
15027 conftest
$ac_exeext conftest.
$ac_ext
15029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15031 if test `eval echo '${'$as_ac_var'}'` = yes; then
15032 cat >>confdefs.h
<<_ACEOF
15033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 # Solaris has libkstat which does not require root.
15042 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15043 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15044 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 ac_check_lib_save_LIBS
=$LIBS
15048 LIBS
="-lkstat $LIBS"
15049 cat >conftest.
$ac_ext <<_ACEOF
15052 cat confdefs.h
>>conftest.
$ac_ext
15053 cat >>conftest.
$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 /* Override any gcc2 internal prototype to avoid an error. */
15060 /* We use char because int might match the return type of a gcc2
15061 builtin and then its argument prototype would still apply. */
15062 char kstat_open ();
15071 rm -f conftest.
$ac_objext conftest
$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073 (eval $ac_link) 2>conftest.er1
15075 grep -v '^ *+' conftest.er1
>conftest.err
15077 cat conftest.err
>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try
='test -z "$ac_c_werror_flag"
15081 || test ! -s conftest.err'
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); }; } &&
15087 { ac_try
='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_cv_lib_kstat_kstat_open
=yes
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.
$ac_ext >&5
15098 ac_cv_lib_kstat_kstat_open
=no
15100 rm -f conftest.err conftest.
$ac_objext \
15101 conftest
$ac_exeext conftest.
$ac_ext
15102 LIBS
=$ac_check_lib_save_LIBS
15104 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15105 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15106 if test $ac_cv_lib_kstat_kstat_open = yes; then
15107 cat >>confdefs.h
<<_ACEOF
15108 #define HAVE_LIBKSTAT 1
15111 LIBS
="-lkstat $LIBS"
15115 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15117 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15118 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15119 # to get the right answer into the cache.
15120 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15121 if test $ac_have_func = no
; then
15122 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15123 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15124 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 ac_check_lib_save_LIBS
=$LIBS
15129 cat >conftest.
$ac_ext <<_ACEOF
15132 cat confdefs.h
>>conftest.
$ac_ext
15133 cat >>conftest.
$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 /* Override any gcc2 internal prototype to avoid an error. */
15140 /* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15151 rm -f conftest.
$ac_objext conftest
$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15155 grep -v '^ *+' conftest.er1
>conftest.err
15157 cat conftest.err
>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try
='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
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); }; } &&
15167 { ac_try
='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_cv_lib_elf_elf_begin
=yes
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.
$ac_ext >&5
15178 ac_cv_lib_elf_elf_begin
=no
15180 rm -f conftest.err conftest.
$ac_objext \
15181 conftest
$ac_exeext conftest.
$ac_ext
15182 LIBS
=$ac_check_lib_save_LIBS
15184 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15185 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15186 if test $ac_cv_lib_elf_elf_begin = yes; then
15191 if test $ac_have_func = no
; then
15192 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15193 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15194 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 ac_check_lib_save_LIBS
=$LIBS
15199 cat >conftest.
$ac_ext <<_ACEOF
15202 cat confdefs.h
>>conftest.
$ac_ext
15203 cat >>conftest.
$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15221 rm -f conftest.
$ac_objext conftest
$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15225 grep -v '^ *+' conftest.er1
>conftest.err
15227 cat conftest.err
>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try
='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
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); }; } &&
15237 { ac_try
='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_cv_lib_kvm_kvm_open
=yes
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.
$ac_ext >&5
15248 ac_cv_lib_kvm_kvm_open
=no
15250 rm -f conftest.err conftest.
$ac_objext \
15251 conftest
$ac_exeext conftest.
$ac_ext
15252 LIBS
=$ac_check_lib_save_LIBS
15254 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15255 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15256 if test $ac_cv_lib_kvm_kvm_open = yes; then
15260 # Check for the 4.4BSD definition of getloadavg.
15261 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15262 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15263 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 ac_check_lib_save_LIBS
=$LIBS
15267 LIBS
="-lutil $LIBS"
15268 cat >conftest.
$ac_ext <<_ACEOF
15271 cat confdefs.h
>>conftest.
$ac_ext
15272 cat >>conftest.
$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15275 /* Override any gcc2 internal prototype to avoid an error. */
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15281 char getloadavg ();
15290 rm -f conftest.
$ac_objext conftest
$ac_exeext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15292 (eval $ac_link) 2>conftest.er1
15294 grep -v '^ *+' conftest.er1
>conftest.err
15296 cat conftest.err
>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
15299 { ac_try
='test -z "$ac_c_werror_flag"
15300 || test ! -s conftest.err'
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); }; } &&
15306 { ac_try
='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_lib_util_getloadavg
=yes
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.
$ac_ext >&5
15317 ac_cv_lib_util_getloadavg
=no
15319 rm -f conftest.err conftest.
$ac_objext \
15320 conftest
$ac_exeext conftest.
$ac_ext
15321 LIBS
=$ac_check_lib_save_LIBS
15323 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15324 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15325 if test $ac_cv_lib_util_getloadavg = yes; then
15326 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15331 if test $ac_have_func = no
; then
15332 # There is a commonly available library for RS/6000 AIX.
15333 # Since it is not a standard part of AIX, it might be installed locally.
15334 ac_getloadavg_LIBS
=$LIBS
15335 LIBS
="-L/usr/local/lib $LIBS"
15336 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15337 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15338 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 ac_check_lib_save_LIBS
=$LIBS
15342 LIBS
="-lgetloadavg $LIBS"
15343 cat >conftest.
$ac_ext <<_ACEOF
15346 cat confdefs.h
>>conftest.
$ac_ext
15347 cat >>conftest.
$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15350 /* Override any gcc2 internal prototype to avoid an error. */
15354 /* We use char because int might match the return type of a gcc2
15355 builtin and then its argument prototype would still apply. */
15356 char getloadavg ();
15365 rm -f conftest.
$ac_objext conftest
$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367 (eval $ac_link) 2>conftest.er1
15369 grep -v '^ *+' conftest.er1
>conftest.err
15371 cat conftest.err
>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try
='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
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); }; } &&
15381 { ac_try
='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_lib_getloadavg_getloadavg
=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.
$ac_ext >&5
15392 ac_cv_lib_getloadavg_getloadavg
=no
15394 rm -f conftest.err conftest.
$ac_objext \
15395 conftest
$ac_exeext conftest.
$ac_ext
15396 LIBS
=$ac_check_lib_save_LIBS
15398 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15399 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15400 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15401 LIBS
="-lgetloadavg $LIBS"
15403 LIBS
=$ac_getloadavg_LIBS
15408 # Make sure it is really in the library, if we think we found it,
15409 # otherwise set up the replacement function.
15411 for ac_func
in getloadavg
15413 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 cat >conftest.
$ac_ext <<_ACEOF
15422 cat confdefs.h
>>conftest.
$ac_ext
15423 cat >>conftest.
$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15427 #define $ac_func innocuous_$ac_func
15429 /* System header to define __stub macros and hopefully few prototypes,
15430 which can conflict with char $ac_func (); below.
15431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15432 <limits.h> exists even on freestanding compilers. */
15435 # include <limits.h>
15437 # include <assert.h>
15442 /* Override any gcc2 internal prototype to avoid an error. */
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15456 char (*f) () = $ac_func;
15465 return f != $ac_func;
15470 rm -f conftest.
$ac_objext conftest
$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>conftest.er1
15474 grep -v '^ *+' conftest.er1
>conftest.err
15476 cat conftest.err
>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try
='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
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); }; } &&
15486 { ac_try
='test -s conftest$ac_exeext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 eval "$as_ac_var=yes"
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.
$ac_ext >&5
15497 eval "$as_ac_var=no"
15499 rm -f conftest.err conftest.
$ac_objext \
15500 conftest
$ac_exeext conftest.
$ac_ext
15502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h
<<_ACEOF
15506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511 "getloadavg.$ac_objext" | \
15512 *" getloadavg.$ac_objext" | \
15513 "getloadavg.$ac_objext "* | \
15514 *" getloadavg.$ac_objext "* ) ;;
15515 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15519 cat >>confdefs.h
<<\_ACEOF
15520 #define C_GETLOADAVG 1
15523 # Figure out what our getloadavg.c needs.
15525 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15526 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15527 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15528 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15532 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15534 # Is the header compilable?
15535 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15536 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15537 cat >conftest.
$ac_ext <<_ACEOF
15540 cat confdefs.h
>>conftest.
$ac_ext
15541 cat >>conftest.
$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 $ac_includes_default
15544 #include <sys/dg_sys_info.h>
15546 rm -f conftest.
$ac_objext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548 (eval $ac_compile) 2>conftest.er1
15550 grep -v '^ *+' conftest.er1
>conftest.err
15552 cat conftest.err
>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } &&
15555 { ac_try
='test -z "$ac_c_werror_flag"
15556 || test ! -s conftest.err'
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); }; } &&
15562 { ac_try
='test -s conftest.$ac_objext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_header_compiler
=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.
$ac_ext >&5
15573 ac_header_compiler
=no
15575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15577 echo "${ECHO_T}$ac_header_compiler" >&6
15579 # Is the header present?
15580 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15581 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15582 cat >conftest.
$ac_ext <<_ACEOF
15585 cat confdefs.h
>>conftest.
$ac_ext
15586 cat >>conftest.
$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 #include <sys/dg_sys_info.h>
15590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15593 grep -v '^ *+' conftest.er1
>conftest.err
15595 cat conftest.err
>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } >/dev
/null
; then
15598 if test -s conftest.err
; then
15599 ac_cpp_err
=$ac_c_preproc_warn_flag
15600 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15607 if test -z "$ac_cpp_err"; then
15608 ac_header_preproc
=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.
$ac_ext >&5
15613 ac_header_preproc
=no
15615 rm -f conftest.err conftest.
$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 echo "${ECHO_T}$ac_header_preproc" >&6
15619 # So? What about this header?
15620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15622 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15623 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15625 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15626 ac_header_preproc
=yes
15629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15630 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15632 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15634 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15636 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15638 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15640 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15643 ## ------------------------------------------ ##
15644 ## Report this to the AC_PACKAGE_NAME lists. ##
15645 ## ------------------------------------------ ##
15648 sed "s/^/$as_me: WARNING: /" >&2
15651 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15652 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15653 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15659 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15662 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15665 cat >>confdefs.h
<<\_ACEOF
15670 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15671 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15672 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 ac_check_lib_save_LIBS
=$LIBS
15677 cat >conftest.
$ac_ext <<_ACEOF
15680 cat confdefs.h
>>conftest.
$ac_ext
15681 cat >>conftest.
$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15684 /* Override any gcc2 internal prototype to avoid an error. */
15688 /* We use char because int might match the return type of a gcc2
15689 builtin and then its argument prototype would still apply. */
15690 char dg_sys_info ();
15699 rm -f conftest.
$ac_objext conftest
$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>conftest.er1
15703 grep -v '^ *+' conftest.er1
>conftest.err
15705 cat conftest.err
>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try
='test -z "$ac_c_werror_flag"
15709 || test ! -s conftest.err'
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); }; } &&
15715 { ac_try
='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_lib_dgc_dg_sys_info
=yes
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.
$ac_ext >&5
15726 ac_cv_lib_dgc_dg_sys_info
=no
15728 rm -f conftest.err conftest.
$ac_objext \
15729 conftest
$ac_exeext conftest.
$ac_ext
15730 LIBS
=$ac_check_lib_save_LIBS
15732 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15733 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15734 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15735 cat >>confdefs.h
<<_ACEOF
15736 #define HAVE_LIBDGC 1
15747 if test "${ac_cv_header_locale_h+set}" = set; then
15748 echo "$as_me:$LINENO: checking for locale.h" >&5
15749 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15750 if test "${ac_cv_header_locale_h+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15754 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15756 # Is the header compilable?
15757 echo "$as_me:$LINENO: checking locale.h usability" >&5
15758 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15759 cat >conftest.
$ac_ext <<_ACEOF
15762 cat confdefs.h
>>conftest.
$ac_ext
15763 cat >>conftest.
$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 $ac_includes_default
15766 #include <locale.h>
15768 rm -f conftest.
$ac_objext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770 (eval $ac_compile) 2>conftest.er1
15772 grep -v '^ *+' conftest.er1
>conftest.err
15774 cat conftest.err
>&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try
='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
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); }; } &&
15784 { ac_try
='test -s conftest.$ac_objext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler
=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.
$ac_ext >&5
15795 ac_header_compiler
=no
15797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6
15801 # Is the header present?
15802 echo "$as_me:$LINENO: checking locale.h presence" >&5
15803 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15804 cat >conftest.
$ac_ext <<_ACEOF
15807 cat confdefs.h
>>conftest.
$ac_ext
15808 cat >>conftest.
$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <locale.h>
15812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15815 grep -v '^ *+' conftest.er1
>conftest.err
15817 cat conftest.err
>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev
/null
; then
15820 if test -s conftest.err
; then
15821 ac_cpp_err
=$ac_c_preproc_warn_flag
15822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15829 if test -z "$ac_cpp_err"; then
15830 ac_header_preproc
=yes
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.
$ac_ext >&5
15835 ac_header_preproc
=no
15837 rm -f conftest.err conftest.
$ac_ext
15838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15839 echo "${ECHO_T}$ac_header_preproc" >&6
15841 # So? What about this header?
15842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15845 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15847 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15848 ac_header_preproc
=yes
15851 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15852 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15854 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15856 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15858 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15860 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15862 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15865 ## ------------------------------------------ ##
15866 ## Report this to the AC_PACKAGE_NAME lists. ##
15867 ## ------------------------------------------ ##
15870 sed "s/^/$as_me: WARNING: /" >&2
15873 echo "$as_me:$LINENO: checking for locale.h" >&5
15874 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15875 if test "${ac_cv_header_locale_h+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 ac_cv_header_locale_h
=$ac_header_preproc
15880 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15881 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15887 for ac_func
in setlocale
15889 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15890 echo "$as_me:$LINENO: checking for $ac_func" >&5
15891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15892 if eval "test \"\${$as_ac_var+set}\" = set"; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 cat >conftest.
$ac_ext <<_ACEOF
15898 cat confdefs.h
>>conftest.
$ac_ext
15899 cat >>conftest.
$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define $ac_func innocuous_$ac_func
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15911 # include <limits.h>
15913 # include <assert.h>
15918 /* Override any gcc2 internal prototype to avoid an error. */
15923 /* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15926 /* The GNU C library defines this for functions which it implements
15927 to always fail with ENOSYS. Some functions are actually named
15928 something starting with __ and the normal name is an alias. */
15929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932 char (*f) () = $ac_func;
15941 return f != $ac_func;
15946 rm -f conftest.
$ac_objext conftest
$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948 (eval $ac_link) 2>conftest.er1
15950 grep -v '^ *+' conftest.er1
>conftest.err
15952 cat conftest.err
>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try
='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
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); }; } &&
15962 { ac_try
='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 eval "$as_ac_var=yes"
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.
$ac_ext >&5
15973 eval "$as_ac_var=no"
15975 rm -f conftest.err conftest.
$ac_objext \
15976 conftest
$ac_exeext conftest.
$ac_ext
15978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15980 if test `eval echo '${'$as_ac_var'}'` = yes; then
15981 cat >>confdefs.h
<<_ACEOF
15982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15989 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15990 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15991 # Irix 4.0.5F has the header but not the library.
15992 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15995 cat >>confdefs.h
<<\_ACEOF
16001 if test $ac_have_func = no
; then
16002 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16003 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16004 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16005 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16009 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16011 # Is the header compilable?
16012 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16013 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16014 cat >conftest.
$ac_ext <<_ACEOF
16017 cat confdefs.h
>>conftest.
$ac_ext
16018 cat >>conftest.
$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16020 $ac_includes_default
16021 #include <inq_stats/cpustats.h>
16023 rm -f conftest.
$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>conftest.er1
16027 grep -v '^ *+' conftest.er1
>conftest.err
16029 cat conftest.err
>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try
='test -z "$ac_c_werror_flag"
16033 || test ! -s conftest.err'
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); }; } &&
16039 { ac_try
='test -s conftest.$ac_objext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_header_compiler
=yes
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.
$ac_ext >&5
16050 ac_header_compiler
=no
16052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16054 echo "${ECHO_T}$ac_header_compiler" >&6
16056 # Is the header present?
16057 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16058 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16059 cat >conftest.
$ac_ext <<_ACEOF
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <inq_stats/cpustats.h>
16067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16070 grep -v '^ *+' conftest.er1
>conftest.err
16072 cat conftest.err
>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev
/null
; then
16075 if test -s conftest.err
; then
16076 ac_cpp_err
=$ac_c_preproc_warn_flag
16077 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16084 if test -z "$ac_cpp_err"; then
16085 ac_header_preproc
=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.
$ac_ext >&5
16090 ac_header_preproc
=no
16092 rm -f conftest.err conftest.
$ac_ext
16093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094 echo "${ECHO_T}$ac_header_preproc" >&6
16096 # So? What about this header?
16097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16100 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16102 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16103 ac_header_preproc
=yes
16106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16107 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16109 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16111 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16113 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16117 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16120 ## ------------------------------------------ ##
16121 ## Report this to the AC_PACKAGE_NAME lists. ##
16122 ## ------------------------------------------ ##
16125 sed "s/^/$as_me: WARNING: /" >&2
16128 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16129 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16130 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16135 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16136 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16139 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16142 cat >>confdefs.h
<<\_ACEOF
16147 cat >>confdefs.h
<<\_ACEOF
16156 if test $ac_have_func = no
; then
16157 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16158 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16159 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16160 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16164 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16166 # Is the header compilable?
16167 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16168 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16169 cat >conftest.
$ac_ext <<_ACEOF
16172 cat confdefs.h
>>conftest.
$ac_ext
16173 cat >>conftest.
$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 $ac_includes_default
16176 #include <sys/cpustats.h>
16178 rm -f conftest.
$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16182 grep -v '^ *+' conftest.er1
>conftest.err
16184 cat conftest.err
>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try
='test -z "$ac_c_werror_flag"
16188 || test ! -s conftest.err'
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); }; } &&
16194 { ac_try
='test -s conftest.$ac_objext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_header_compiler
=yes
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.
$ac_ext >&5
16205 ac_header_compiler
=no
16207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16209 echo "${ECHO_T}$ac_header_compiler" >&6
16211 # Is the header present?
16212 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16213 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16214 cat >conftest.
$ac_ext <<_ACEOF
16217 cat confdefs.h
>>conftest.
$ac_ext
16218 cat >>conftest.
$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 #include <sys/cpustats.h>
16222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1
>conftest.err
16227 cat conftest.err
>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } >/dev
/null
; then
16230 if test -s conftest.err
; then
16231 ac_cpp_err
=$ac_c_preproc_warn_flag
16232 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16239 if test -z "$ac_cpp_err"; then
16240 ac_header_preproc
=yes
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.
$ac_ext >&5
16245 ac_header_preproc
=no
16247 rm -f conftest.err conftest.
$ac_ext
16248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 echo "${ECHO_T}$ac_header_preproc" >&6
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16254 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16255 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16257 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc
=yes
16261 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16262 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16264 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16266 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16268 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16272 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16275 ## ------------------------------------------ ##
16276 ## Report this to the AC_PACKAGE_NAME lists. ##
16277 ## ------------------------------------------ ##
16280 sed "s/^/$as_me: WARNING: /" >&2
16283 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16284 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16285 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16290 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16291 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16294 if test $ac_cv_header_sys_cpustats_h = yes; then
16295 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16304 if test $ac_have_func = no
; then
16306 for ac_header
in mach
/mach.h
16308 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16310 echo "$as_me:$LINENO: checking for $ac_header" >&5
16311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16318 # Is the header compilable?
16319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16321 cat >conftest.
$ac_ext <<_ACEOF
16324 cat confdefs.h
>>conftest.
$ac_ext
16325 cat >>conftest.
$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16328 #include <$ac_header>
16330 rm -f conftest.
$ac_objext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16332 (eval $ac_compile) 2>conftest.er1
16334 grep -v '^ *+' conftest.er1
>conftest.err
16336 cat conftest.err
>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try
='test -z "$ac_c_werror_flag"
16340 || test ! -s conftest.err'
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); }; } &&
16346 { ac_try
='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler
=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.
$ac_ext >&5
16357 ac_header_compiler
=no
16359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16361 echo "${ECHO_T}$ac_header_compiler" >&6
16363 # Is the header present?
16364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16366 cat >conftest.
$ac_ext <<_ACEOF
16369 cat confdefs.h
>>conftest.
$ac_ext
16370 cat >>conftest.
$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 #include <$ac_header>
16374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16377 grep -v '^ *+' conftest.er1
>conftest.err
16379 cat conftest.err
>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } >/dev
/null
; then
16382 if test -s conftest.err
; then
16383 ac_cpp_err
=$ac_c_preproc_warn_flag
16384 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16391 if test -z "$ac_cpp_err"; then
16392 ac_header_preproc
=yes
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.
$ac_ext >&5
16397 ac_header_preproc
=no
16399 rm -f conftest.err conftest.
$ac_ext
16400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16401 echo "${ECHO_T}$ac_header_preproc" >&6
16403 # So? What about this header?
16404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16410 ac_header_preproc
=yes
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16427 ## ------------------------------------------ ##
16428 ## Report this to the AC_PACKAGE_NAME lists. ##
16429 ## ------------------------------------------ ##
16432 sed "s/^/$as_me: WARNING: /" >&2
16435 echo "$as_me:$LINENO: checking for $ac_header" >&5
16436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 eval "$as_ac_Header=\$ac_header_preproc"
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16447 cat >>confdefs.h
<<_ACEOF
16448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16458 for ac_header
in nlist.h
16460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16462 echo "$as_me:$LINENO: checking for $ac_header" >&5
16463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16470 # Is the header compilable?
16471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16473 cat >conftest.
$ac_ext <<_ACEOF
16476 cat confdefs.h
>>conftest.
$ac_ext
16477 cat >>conftest.
$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 $ac_includes_default
16480 #include <$ac_header>
16482 rm -f conftest.
$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16486 grep -v '^ *+' conftest.er1
>conftest.err
16488 cat conftest.err
>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try
='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
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); }; } &&
16498 { ac_try
='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_header_compiler
=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.
$ac_ext >&5
16509 ac_header_compiler
=no
16511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16513 echo "${ECHO_T}$ac_header_compiler" >&6
16515 # Is the header present?
16516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16518 cat >conftest.
$ac_ext <<_ACEOF
16521 cat confdefs.h
>>conftest.
$ac_ext
16522 cat >>conftest.
$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <$ac_header>
16526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16529 grep -v '^ *+' conftest.er1
>conftest.err
16531 cat conftest.err
>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev
/null
; then
16534 if test -s conftest.err
; then
16535 ac_cpp_err
=$ac_c_preproc_warn_flag
16536 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16543 if test -z "$ac_cpp_err"; then
16544 ac_header_preproc
=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.
$ac_ext >&5
16549 ac_header_preproc
=no
16551 rm -f conftest.err conftest.
$ac_ext
16552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16553 echo "${ECHO_T}$ac_header_preproc" >&6
16555 # So? What about this header?
16556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16562 ac_header_preproc
=yes
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16579 ## ------------------------------------------ ##
16580 ## Report this to the AC_PACKAGE_NAME lists. ##
16581 ## ------------------------------------------ ##
16584 sed "s/^/$as_me: WARNING: /" >&2
16587 echo "$as_me:$LINENO: checking for $ac_header" >&5
16588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 eval "$as_ac_Header=\$ac_header_preproc"
16594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599 cat >>confdefs.h
<<_ACEOF
16600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16602 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16603 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16604 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 cat >conftest.
$ac_ext <<_ACEOF
16610 cat confdefs.h
>>conftest.
$ac_ext
16611 cat >>conftest.
$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16618 static struct nlist ac_aggr;
16619 if (ac_aggr.n_un.n_name)
16625 rm -f conftest.
$ac_objext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627 (eval $ac_compile) 2>conftest.er1
16629 grep -v '^ *+' conftest.er1
>conftest.err
16631 cat conftest.err
>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try
='test -z "$ac_c_werror_flag"
16635 || test ! -s conftest.err'
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); }; } &&
16641 { ac_try
='test -s conftest.$ac_objext'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; }; then
16647 ac_cv_member_struct_nlist_n_un_n_name
=yes
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.
$ac_ext >&5
16652 cat >conftest.
$ac_ext <<_ACEOF
16655 cat confdefs.h
>>conftest.
$ac_ext
16656 cat >>conftest.
$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16663 static struct nlist ac_aggr;
16664 if (sizeof ac_aggr.n_un.n_name)
16670 rm -f conftest.
$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1
>conftest.err
16676 cat conftest.err
>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try
='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
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); }; } &&
16686 { ac_try
='test -s conftest.$ac_objext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_member_struct_nlist_n_un_n_name
=yes
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.
$ac_ext >&5
16697 ac_cv_member_struct_nlist_n_un_n_name
=no
16699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16703 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16704 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16705 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16707 cat >>confdefs.h
<<_ACEOF
16708 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16712 cat >>confdefs.h
<<\_ACEOF
16713 #define NLIST_NAME_UNION 1
16727 # Some definitions of getloadavg require that the program be installed setgid.
16728 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16729 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16730 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 cat >conftest.
$ac_ext <<_ACEOF
16736 cat confdefs.h
>>conftest.
$ac_ext
16737 cat >>conftest.
$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16740 #ifdef LDAV_PRIVILEGED
16741 Yowza Am I SETGID yet
16744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16745 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16746 ac_cv_func_getloadavg_setgid
=yes
16748 ac_cv_func_getloadavg_setgid
=no
16753 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16754 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16755 if test $ac_cv_func_getloadavg_setgid = yes; then
16758 cat >>confdefs.h
<<\_ACEOF
16759 #define GETLOADAVG_PRIVILEGED 1
16766 if test $ac_cv_func_getloadavg_setgid = yes; then
16767 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16768 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16769 if test "${ac_cv_group_kmem+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16773 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16774 # If we got an error (system does not support symlinks), try without -L.
16775 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16776 ac_cv_group_kmem
=`echo $ac_ls_output \
16777 | sed -ne 's/[ ][ ]*/ /g;
16778 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16782 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16783 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16784 KMEM_GROUP
=$ac_cv_group_kmem
16786 if test "x$ac_save_LIBS" = x
; then
16787 GETLOADAVG_LIBS
=$LIBS
16789 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16795 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16796 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16797 if test "${ac_cv_sys_largefile_source+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 ac_cv_sys_largefile_source
=no
16802 cat >conftest.
$ac_ext <<_ACEOF
16805 cat confdefs.h
>>conftest.
$ac_ext
16806 cat >>conftest.
$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16817 rm -f conftest.
$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>conftest.er1
16821 grep -v '^ *+' conftest.er1
>conftest.err
16823 cat conftest.err
>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try
='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
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); }; } &&
16833 { ac_try
='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.
$ac_ext >&5
16845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16846 cat >conftest.
$ac_ext <<_ACEOF
16849 cat confdefs.h
>>conftest.
$ac_ext
16850 cat >>conftest.
$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 #define _LARGEFILE_SOURCE 1
16862 rm -f conftest.
$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>conftest.er1
16866 grep -v '^ *+' conftest.er1
>conftest.err
16868 cat conftest.err
>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try
='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
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); }; } &&
16878 { ac_try
='test -s conftest.$ac_objext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_cv_sys_largefile_source
=1; break
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.
$ac_ext >&5
16890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16894 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16895 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16896 if test "$ac_cv_sys_largefile_source" != no
; then
16898 cat >>confdefs.h
<<_ACEOF
16899 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16905 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16906 # in glibc 2.1.3, but that breaks too many other things.
16907 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16908 echo "$as_me:$LINENO: checking for fseeko" >&5
16909 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16910 if test "${ac_cv_func_fseeko+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 cat >conftest.
$ac_ext <<_ACEOF
16916 cat confdefs.h
>>conftest.
$ac_ext
16917 cat >>conftest.
$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16923 return fseeko && fseeko (stdin, 0, 0);
16928 rm -f conftest.
$ac_objext conftest
$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930 (eval $ac_link) 2>conftest.er1
16932 grep -v '^ *+' conftest.er1
>conftest.err
16934 cat conftest.err
>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try
='test -z "$ac_c_werror_flag"
16938 || test ! -s conftest.err'
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); }; } &&
16944 { ac_try
='test -s conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_func_fseeko
=yes
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.
$ac_ext >&5
16955 ac_cv_func_fseeko
=no
16957 rm -f conftest.err conftest.
$ac_objext \
16958 conftest
$ac_exeext conftest.
$ac_ext
16960 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16961 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16962 if test $ac_cv_func_fseeko = yes; then
16964 cat >>confdefs.h
<<\_ACEOF
16965 #define HAVE_FSEEKO 1
16971 # Configure getopt.
16972 # getopt.m4 serial 10
16974 # The getopt module assume you want GNU getopt, with getopt_long etc,
16975 # rather than vanilla POSIX getopt. This means your your code should
16976 # always include <getopt.h> for the getopt prototypes.
16988 # Prerequisites of lib/getopt*.
16995 for ac_header
in getopt.h
16997 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16999 echo "$as_me:$LINENO: checking for $ac_header" >&5
17000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17007 # Is the header compilable?
17008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17010 cat >conftest.
$ac_ext <<_ACEOF
17013 cat confdefs.h
>>conftest.
$ac_ext
17014 cat >>conftest.
$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17017 #include <$ac_header>
17019 rm -f conftest.
$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>conftest.er1
17023 grep -v '^ *+' conftest.er1
>conftest.err
17025 cat conftest.err
>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try
='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
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); }; } &&
17035 { ac_try
='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_header_compiler
=yes
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.
$ac_ext >&5
17046 ac_header_compiler
=no
17048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 echo "${ECHO_T}$ac_header_compiler" >&6
17052 # Is the header present?
17053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17055 cat >conftest.
$ac_ext <<_ACEOF
17058 cat confdefs.h
>>conftest.
$ac_ext
17059 cat >>conftest.
$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17066 grep -v '^ *+' conftest.er1
>conftest.err
17068 cat conftest.err
>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } >/dev
/null
; then
17071 if test -s conftest.err
; then
17072 ac_cpp_err
=$ac_c_preproc_warn_flag
17073 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17080 if test -z "$ac_cpp_err"; then
17081 ac_header_preproc
=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.
$ac_ext >&5
17086 ac_header_preproc
=no
17088 rm -f conftest.err conftest.
$ac_ext
17089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc
=yes
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17116 ## ------------------------------------------ ##
17117 ## Report this to the AC_PACKAGE_NAME lists. ##
17118 ## ------------------------------------------ ##
17121 sed "s/^/$as_me: WARNING: /" >&2
17124 echo "$as_me:$LINENO: checking for $ac_header" >&5
17125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 eval "$as_ac_Header=\$ac_header_preproc"
17131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17136 cat >>confdefs.h
<<_ACEOF
17137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17146 if test -z "$GETOPT_H"; then
17148 for ac_func
in getopt_long_only
17150 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17151 echo "$as_me:$LINENO: checking for $ac_func" >&5
17152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17153 if eval "test \"\${$as_ac_var+set}\" = set"; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 cat >conftest.
$ac_ext <<_ACEOF
17159 cat confdefs.h
>>conftest.
$ac_ext
17160 cat >>conftest.
$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17164 #define $ac_func innocuous_$ac_func
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17172 # include <limits.h>
17174 # include <assert.h>
17179 /* Override any gcc2 internal prototype to avoid an error. */
17184 /* We use char because int might match the return type of a gcc2
17185 builtin and then its argument prototype would still apply. */
17187 /* The GNU C library defines this for functions which it implements
17188 to always fail with ENOSYS. Some functions are actually named
17189 something starting with __ and the normal name is an alias. */
17190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17193 char (*f) () = $ac_func;
17202 return f != $ac_func;
17207 rm -f conftest.
$ac_objext conftest
$ac_exeext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>conftest.er1
17211 grep -v '^ *+' conftest.er1
>conftest.err
17213 cat conftest.err
>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try
='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
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); }; } &&
17223 { ac_try
='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.
$ac_ext >&5
17234 eval "$as_ac_var=no"
17236 rm -f conftest.err conftest.
$ac_objext \
17237 conftest
$ac_exeext conftest.
$ac_ext
17239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17241 if test `eval echo '${'$as_ac_var'}'` = yes; then
17242 cat >>confdefs.h
<<_ACEOF
17243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17253 if test -z "$GETOPT_H"; then
17254 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17255 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17256 if test "${ac_cv_have_decl_optreset+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 cat >conftest.
$ac_ext <<_ACEOF
17262 cat confdefs.h
>>conftest.
$ac_ext
17263 cat >>conftest.
$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 #include <getopt.h>
17271 char *p = (char *) optreset;
17278 rm -f conftest.
$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280 (eval $ac_compile) 2>conftest.er1
17282 grep -v '^ *+' conftest.er1
>conftest.err
17284 cat conftest.err
>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try
='test -z "$ac_c_werror_flag"
17288 || test ! -s conftest.err'
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); }; } &&
17294 { ac_try
='test -s conftest.$ac_objext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_have_decl_optreset
=yes
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.
$ac_ext >&5
17305 ac_cv_have_decl_optreset
=no
17307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17310 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17311 if test $ac_cv_have_decl_optreset = yes; then
17317 if test -z "$GETOPT_H"; then
17318 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17319 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17320 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 if test "$cross_compiling" = yes; then
17324 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17325 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17326 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 cat >conftest.
$ac_ext <<_ACEOF
17332 cat confdefs.h
>>conftest.
$ac_ext
17333 cat >>conftest.
$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 #include <getopt.h>
17340 #ifndef getopt_clip
17341 char *p = (char *) getopt_clip;
17348 rm -f conftest.
$ac_objext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1
>conftest.err
17354 cat conftest.err
>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try
='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try
='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_have_decl_getopt_clip
=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.
$ac_ext >&5
17375 ac_cv_have_decl_getopt_clip
=no
17377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17380 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17381 if test $ac_cv_have_decl_getopt_clip = yes; then
17382 gl_cv_func_gnu_getopt
=no
17384 gl_cv_func_gnu_getopt
=yes
17388 cat >conftest.
$ac_ext <<_ACEOF
17391 cat confdefs.h
>>conftest.
$ac_ext
17392 cat >>conftest.
$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17394 #include <getopt.h>
17400 myargv[0] = "conftest";
17403 return getopt (2, myargv, "+a") != '?';
17409 rm -f conftest
$ac_exeext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411 (eval $ac_link) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 gl_cv_func_gnu_getopt
=yes
17422 echo "$as_me: program exited with status $ac_status" >&5
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.
$ac_ext >&5
17426 ( exit $ac_status )
17427 gl_cv_func_gnu_getopt
=no
17429 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17432 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17433 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17434 if test "$gl_cv_func_gnu_getopt" = "no"; then
17441 if test -n "$GETOPT_H"; then
17446 cat >>confdefs.h
<<\_ACEOF
17447 #define __GETOPT_PREFIX rpl_
17453 GETOPTOBJS
='getopt.o getopt1.o'
17460 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17461 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17462 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 # Use it with a single arg.
17466 cat >conftest.
$ac_ext <<_ACEOF
17469 cat confdefs.h
>>conftest.
$ac_ext
17470 cat >>conftest.
$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 $ac_includes_default
17481 rm -f conftest.
$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17485 grep -v '^ *+' conftest.er1
>conftest.err
17487 cat conftest.err
>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try
='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
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); }; } &&
17497 { ac_try
='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_func_getpgrp_void
=no
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.
$ac_ext >&5
17508 ac_cv_func_getpgrp_void
=yes
17510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17513 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17514 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17515 if test $ac_cv_func_getpgrp_void = yes; then
17517 cat >>confdefs.h
<<\_ACEOF
17518 #define GETPGRP_VOID 1
17525 for ac_func
in strftime
17527 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17530 if eval "test \"\${$as_ac_var+set}\" = set"; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 cat >conftest.
$ac_ext <<_ACEOF
17536 cat confdefs.h
>>conftest.
$ac_ext
17537 cat >>conftest.
$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17541 #define $ac_func innocuous_$ac_func
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char $ac_func (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17549 # include <limits.h>
17551 # include <assert.h>
17556 /* Override any gcc2 internal prototype to avoid an error. */
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17570 char (*f) () = $ac_func;
17579 return f != $ac_func;
17584 rm -f conftest.
$ac_objext conftest
$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586 (eval $ac_link) 2>conftest.er1
17588 grep -v '^ *+' conftest.er1
>conftest.err
17590 cat conftest.err
>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try
='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
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); }; } &&
17600 { ac_try
='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 eval "$as_ac_var=yes"
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.
$ac_ext >&5
17611 eval "$as_ac_var=no"
17613 rm -f conftest.err conftest.
$ac_objext \
17614 conftest
$ac_exeext conftest.
$ac_ext
17616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17618 if test `eval echo '${'$as_ac_var'}'` = yes; then
17619 cat >>confdefs.h
<<_ACEOF
17620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17624 # strftime is in -lintl on SCO UNIX.
17625 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17626 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17627 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 ac_check_lib_save_LIBS
=$LIBS
17631 LIBS
="-lintl $LIBS"
17632 cat >conftest.
$ac_ext <<_ACEOF
17635 cat confdefs.h
>>conftest.
$ac_ext
17636 cat >>conftest.
$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 /* Override any gcc2 internal prototype to avoid an error. */
17643 /* We use char because int might match the return type of a gcc2
17644 builtin and then its argument prototype would still apply. */
17654 rm -f conftest.
$ac_objext conftest
$ac_exeext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17656 (eval $ac_link) 2>conftest.er1
17658 grep -v '^ *+' conftest.er1
>conftest.err
17660 cat conftest.err
>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try
='test -z "$ac_c_werror_flag"
17664 || test ! -s conftest.err'
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); }; } &&
17670 { ac_try
='test -s conftest$ac_exeext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_lib_intl_strftime
=yes
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.
$ac_ext >&5
17681 ac_cv_lib_intl_strftime
=no
17683 rm -f conftest.err conftest.
$ac_objext \
17684 conftest
$ac_exeext conftest.
$ac_ext
17685 LIBS
=$ac_check_lib_save_LIBS
17687 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17688 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17689 if test $ac_cv_lib_intl_strftime = yes; then
17690 cat >>confdefs.h
<<\_ACEOF
17691 #define HAVE_STRFTIME 1
17694 LIBS
="-lintl $LIBS"
17703 for ac_func
in grantpt
17705 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17708 if eval "test \"\${$as_ac_var+set}\" = set"; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 cat >conftest.
$ac_ext <<_ACEOF
17714 cat confdefs.h
>>conftest.
$ac_ext
17715 cat >>conftest.
$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17719 #define $ac_func innocuous_$ac_func
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func (); below.
17723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 <limits.h> exists even on freestanding compilers. */
17727 # include <limits.h>
17729 # include <assert.h>
17734 /* Override any gcc2 internal prototype to avoid an error. */
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17742 /* The GNU C library defines this for functions which it implements
17743 to always fail with ENOSYS. Some functions are actually named
17744 something starting with __ and the normal name is an alias. */
17745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17748 char (*f) () = $ac_func;
17757 return f != $ac_func;
17762 rm -f conftest.
$ac_objext conftest
$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764 (eval $ac_link) 2>conftest.er1
17766 grep -v '^ *+' conftest.er1
>conftest.err
17768 cat conftest.err
>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try
='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
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); }; } &&
17778 { ac_try
='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 eval "$as_ac_var=yes"
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.
$ac_ext >&5
17789 eval "$as_ac_var=no"
17791 rm -f conftest.err conftest.
$ac_objext \
17792 conftest
$ac_exeext conftest.
$ac_ext
17794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17796 if test `eval echo '${'$as_ac_var'}'` = yes; then
17797 cat >>confdefs.h
<<_ACEOF
17798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17805 # PTY-related GNU extensions.
17807 for ac_func
in getpt
17809 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17810 echo "$as_me:$LINENO: checking for $ac_func" >&5
17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17812 if eval "test \"\${$as_ac_var+set}\" = set"; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 cat >conftest.
$ac_ext <<_ACEOF
17818 cat confdefs.h
>>conftest.
$ac_ext
17819 cat >>conftest.
$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17823 #define $ac_func innocuous_$ac_func
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func (); below.
17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828 <limits.h> exists even on freestanding compilers. */
17831 # include <limits.h>
17833 # include <assert.h>
17838 /* Override any gcc2 internal prototype to avoid an error. */
17843 /* We use char because int might match the return type of a gcc2
17844 builtin and then its argument prototype would still apply. */
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17852 char (*f) () = $ac_func;
17861 return f != $ac_func;
17866 rm -f conftest.
$ac_objext conftest
$ac_exeext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868 (eval $ac_link) 2>conftest.er1
17870 grep -v '^ *+' conftest.er1
>conftest.err
17872 cat conftest.err
>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try
='test -z "$ac_c_werror_flag"
17876 || test ! -s conftest.err'
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); }; } &&
17882 { ac_try
='test -s conftest$ac_exeext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 eval "$as_ac_var=yes"
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.
$ac_ext >&5
17893 eval "$as_ac_var=no"
17895 rm -f conftest.err conftest.
$ac_objext \
17896 conftest
$ac_exeext conftest.
$ac_ext
17898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17900 if test `eval echo '${'$as_ac_var'}'` = yes; then
17901 cat >>confdefs.h
<<_ACEOF
17902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17909 # Check this now, so that we will NOT find the above functions in ncurses.
17910 # That is because we have not set up to link ncurses in lib-src.
17911 # It's better to believe a function is not available
17912 # than to expect to find it in ncurses.
17914 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17915 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17916 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 ac_check_lib_save_LIBS
=$LIBS
17920 LIBS
="-lncurses $LIBS"
17921 cat >conftest.
$ac_ext <<_ACEOF
17924 cat confdefs.h
>>conftest.
$ac_ext
17925 cat >>conftest.
$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17928 /* Override any gcc2 internal prototype to avoid an error. */
17932 /* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17943 rm -f conftest.
$ac_objext conftest
$ac_exeext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945 (eval $ac_link) 2>conftest.er1
17947 grep -v '^ *+' conftest.er1
>conftest.err
17949 cat conftest.err
>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try
='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
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); }; } &&
17959 { ac_try
='test -s conftest$ac_exeext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_lib_ncurses_tparm
=yes
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.
$ac_ext >&5
17970 ac_cv_lib_ncurses_tparm
=no
17972 rm -f conftest.err conftest.
$ac_objext \
17973 conftest
$ac_exeext conftest.
$ac_ext
17974 LIBS
=$ac_check_lib_save_LIBS
17976 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17977 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17978 if test $ac_cv_lib_ncurses_tparm = yes; then
17979 cat >>confdefs.h
<<_ACEOF
17980 #define HAVE_LIBNCURSES 1
17983 LIBS
="-lncurses $LIBS"
17988 # Do we need the Hesiod library to provide the support routines?
17989 if test "$with_hesiod" = yes ; then
17990 # Don't set $LIBS here -- see comments above.
17992 echo "$as_me:$LINENO: checking for res_send" >&5
17993 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17994 if test "${ac_cv_func_res_send+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 cat >conftest.
$ac_ext <<_ACEOF
18000 cat confdefs.h
>>conftest.
$ac_ext
18001 cat >>conftest.
$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18005 #define res_send innocuous_res_send
18007 /* System header to define __stub macros and hopefully few prototypes,
18008 which can conflict with char res_send (); below.
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010 <limits.h> exists even on freestanding compilers. */
18013 # include <limits.h>
18015 # include <assert.h>
18020 /* Override any gcc2 internal prototype to avoid an error. */
18025 /* We use char because int might match the return type of a gcc2
18026 builtin and then its argument prototype would still apply. */
18028 /* The GNU C library defines this for functions which it implements
18029 to always fail with ENOSYS. Some functions are actually named
18030 something starting with __ and the normal name is an alias. */
18031 #if defined (__stub_res_send) || defined (__stub___res_send)
18034 char (*f) () = res_send;
18043 return f != res_send;
18048 rm -f conftest.
$ac_objext conftest
$ac_exeext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18050 (eval $ac_link) 2>conftest.er1
18052 grep -v '^ *+' conftest.er1
>conftest.err
18054 cat conftest.err
>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try
='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
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); }; } &&
18064 { ac_try
='test -s conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_func_res_send
=yes
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.
$ac_ext >&5
18075 ac_cv_func_res_send
=no
18077 rm -f conftest.err conftest.
$ac_objext \
18078 conftest
$ac_exeext conftest.
$ac_ext
18080 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18081 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18082 if test $ac_cv_func_res_send = yes; then
18085 echo "$as_me:$LINENO: checking for __res_send" >&5
18086 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18087 if test "${ac_cv_func___res_send+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 cat >conftest.
$ac_ext <<_ACEOF
18093 cat confdefs.h
>>conftest.
$ac_ext
18094 cat >>conftest.
$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18098 #define __res_send innocuous___res_send
18100 /* System header to define __stub macros and hopefully few prototypes,
18101 which can conflict with char __res_send (); below.
18102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18103 <limits.h> exists even on freestanding compilers. */
18106 # include <limits.h>
18108 # include <assert.h>
18113 /* Override any gcc2 internal prototype to avoid an error. */
18118 /* We use char because int might match the return type of a gcc2
18119 builtin and then its argument prototype would still apply. */
18120 char __res_send ();
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined (__stub___res_send) || defined (__stub_____res_send)
18127 char (*f) () = __res_send;
18136 return f != __res_send;
18141 rm -f conftest.
$ac_objext conftest
$ac_exeext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>conftest.er1
18145 grep -v '^ *+' conftest.er1
>conftest.err
18147 cat conftest.err
>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try
='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
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); }; } &&
18157 { ac_try
='test -s conftest$ac_exeext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_cv_func___res_send
=yes
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.
$ac_ext >&5
18168 ac_cv_func___res_send
=no
18170 rm -f conftest.err conftest.
$ac_objext \
18171 conftest
$ac_exeext conftest.
$ac_ext
18173 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18174 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18175 if test $ac_cv_func___res_send = yes; then
18178 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18179 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18180 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 ac_check_lib_save_LIBS
=$LIBS
18184 LIBS
="-lresolv $LIBS"
18185 cat >conftest.
$ac_ext <<_ACEOF
18188 cat confdefs.h
>>conftest.
$ac_ext
18189 cat >>conftest.
$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18192 /* Override any gcc2 internal prototype to avoid an error. */
18196 /* We use char because int might match the return type of a gcc2
18197 builtin and then its argument prototype would still apply. */
18207 rm -f conftest.
$ac_objext conftest
$ac_exeext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209 (eval $ac_link) 2>conftest.er1
18211 grep -v '^ *+' conftest.er1
>conftest.err
18213 cat conftest.err
>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try
='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
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); }; } &&
18223 { ac_try
='test -s conftest$ac_exeext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_lib_resolv_res_send
=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.
$ac_ext >&5
18234 ac_cv_lib_resolv_res_send
=no
18236 rm -f conftest.err conftest.
$ac_objext \
18237 conftest
$ac_exeext conftest.
$ac_ext
18238 LIBS
=$ac_check_lib_save_LIBS
18240 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18241 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18242 if test $ac_cv_lib_resolv_res_send = yes; then
18245 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18246 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18247 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 ac_check_lib_save_LIBS
=$LIBS
18251 LIBS
="-lresolv $LIBS"
18252 cat >conftest.
$ac_ext <<_ACEOF
18255 cat confdefs.h
>>conftest.
$ac_ext
18256 cat >>conftest.
$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18259 /* Override any gcc2 internal prototype to avoid an error. */
18263 /* We use char because int might match the return type of a gcc2
18264 builtin and then its argument prototype would still apply. */
18265 char __res_send ();
18274 rm -f conftest.
$ac_objext conftest
$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>conftest.er1
18278 grep -v '^ *+' conftest.er1
>conftest.err
18280 cat conftest.err
>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try
='test -z "$ac_c_werror_flag"
18284 || test ! -s conftest.err'
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); }; } &&
18290 { ac_try
='test -s conftest$ac_exeext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_lib_resolv___res_send
=yes
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.
$ac_ext >&5
18301 ac_cv_lib_resolv___res_send
=no
18303 rm -f conftest.err conftest.
$ac_objext \
18304 conftest
$ac_exeext conftest.
$ac_ext
18305 LIBS
=$ac_check_lib_save_LIBS
18307 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18308 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18309 if test $ac_cv_lib_resolv___res_send = yes; then
18319 if test "$resolv" = yes ; then
18322 cat >>confdefs.h
<<\_ACEOF
18323 #define HAVE_LIBRESOLV 1
18329 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18330 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18331 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 cat >conftest.
$ac_ext <<_ACEOF
18337 cat confdefs.h
>>conftest.
$ac_ext
18338 cat >>conftest.
$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18342 #define hes_getmailhost innocuous_hes_getmailhost
18344 /* System header to define __stub macros and hopefully few prototypes,
18345 which can conflict with char hes_getmailhost (); below.
18346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18347 <limits.h> exists even on freestanding compilers. */
18350 # include <limits.h>
18352 # include <assert.h>
18355 #undef hes_getmailhost
18357 /* Override any gcc2 internal prototype to avoid an error. */
18362 /* We use char because int might match the return type of a gcc2
18363 builtin and then its argument prototype would still apply. */
18364 char hes_getmailhost ();
18365 /* The GNU C library defines this for functions which it implements
18366 to always fail with ENOSYS. Some functions are actually named
18367 something starting with __ and the normal name is an alias. */
18368 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18371 char (*f) () = hes_getmailhost;
18380 return f != hes_getmailhost;
18385 rm -f conftest.
$ac_objext conftest
$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>conftest.er1
18389 grep -v '^ *+' conftest.er1
>conftest.err
18391 cat conftest.err
>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try
='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
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); }; } &&
18401 { ac_try
='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_func_hes_getmailhost
=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.
$ac_ext >&5
18412 ac_cv_func_hes_getmailhost
=no
18414 rm -f conftest.err conftest.
$ac_objext \
18415 conftest
$ac_exeext conftest.
$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18418 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18419 if test $ac_cv_func_hes_getmailhost = yes; then
18422 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18423 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18424 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 ac_check_lib_save_LIBS
=$LIBS
18428 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18429 cat >conftest.
$ac_ext <<_ACEOF
18432 cat confdefs.h
>>conftest.
$ac_ext
18433 cat >>conftest.
$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18436 /* Override any gcc2 internal prototype to avoid an error. */
18440 /* We use char because int might match the return type of a gcc2
18441 builtin and then its argument prototype would still apply. */
18442 char hes_getmailhost ();
18446 hes_getmailhost ();
18451 rm -f conftest.
$ac_objext conftest
$ac_exeext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18453 (eval $ac_link) 2>conftest.er1
18455 grep -v '^ *+' conftest.er1
>conftest.err
18457 cat conftest.err
>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try
='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
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); }; } &&
18467 { ac_try
='test -s conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_lib_hesiod_hes_getmailhost
=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.
$ac_ext >&5
18478 ac_cv_lib_hesiod_hes_getmailhost
=no
18480 rm -f conftest.err conftest.
$ac_objext \
18481 conftest
$ac_exeext conftest.
$ac_ext
18482 LIBS
=$ac_check_lib_save_LIBS
18484 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18485 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18486 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18488 cat >>confdefs.h
<<\_ACEOF
18489 #define HAVE_LIBHESIOD 1
18500 # These tell us which Kerberos-related libraries to use.
18501 if test "${with_kerberos+set}" = set; then
18503 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18504 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18505 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 ac_check_lib_save_LIBS
=$LIBS
18509 LIBS
="-lcom_err $LIBS"
18510 cat >conftest.
$ac_ext <<_ACEOF
18513 cat confdefs.h
>>conftest.
$ac_ext
18514 cat >>conftest.
$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any gcc2 internal prototype to avoid an error. */
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18532 rm -f conftest.
$ac_objext conftest
$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18536 grep -v '^ *+' conftest.er1
>conftest.err
18538 cat conftest.err
>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try
='test -z "$ac_c_werror_flag"
18542 || test ! -s conftest.err'
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); }; } &&
18548 { ac_try
='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_com_err_com_err
=yes
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.
$ac_ext >&5
18559 ac_cv_lib_com_err_com_err
=no
18561 rm -f conftest.err conftest.
$ac_objext \
18562 conftest
$ac_exeext conftest.
$ac_ext
18563 LIBS
=$ac_check_lib_save_LIBS
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18566 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18567 if test $ac_cv_lib_com_err_com_err = yes; then
18568 cat >>confdefs.h
<<_ACEOF
18569 #define HAVE_LIBCOM_ERR 1
18572 LIBS
="-lcom_err $LIBS"
18577 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18578 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18579 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 ac_check_lib_save_LIBS
=$LIBS
18583 LIBS
="-lk5crypto $LIBS"
18584 cat >conftest.
$ac_ext <<_ACEOF
18587 cat confdefs.h
>>conftest.
$ac_ext
18588 cat >>conftest.
$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18591 /* Override any gcc2 internal prototype to avoid an error. */
18595 /* We use char because int might match the return type of a gcc2
18596 builtin and then its argument prototype would still apply. */
18597 char mit_des_cbc_encrypt ();
18601 mit_des_cbc_encrypt ();
18606 rm -f conftest.
$ac_objext conftest
$ac_exeext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18608 (eval $ac_link) 2>conftest.er1
18610 grep -v '^ *+' conftest.er1
>conftest.err
18612 cat conftest.err
>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try
='test -z "$ac_c_werror_flag"
18616 || test ! -s conftest.err'
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); }; } &&
18622 { ac_try
='test -s conftest$ac_exeext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.
$ac_ext >&5
18633 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18635 rm -f conftest.err conftest.
$ac_objext \
18636 conftest
$ac_exeext conftest.
$ac_ext
18637 LIBS
=$ac_check_lib_save_LIBS
18639 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18640 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18641 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18642 cat >>confdefs.h
<<_ACEOF
18643 #define HAVE_LIBK5CRYPTO 1
18646 LIBS
="-lk5crypto $LIBS"
18651 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18652 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18653 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 ac_check_lib_save_LIBS
=$LIBS
18657 LIBS
="-lcrypto $LIBS"
18658 cat >conftest.
$ac_ext <<_ACEOF
18661 cat confdefs.h
>>conftest.
$ac_ext
18662 cat >>conftest.
$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18665 /* Override any gcc2 internal prototype to avoid an error. */
18669 /* We use char because int might match the return type of a gcc2
18670 builtin and then its argument prototype would still apply. */
18671 char mit_des_cbc_encrypt ();
18675 mit_des_cbc_encrypt ();
18680 rm -f conftest.
$ac_objext conftest
$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>conftest.er1
18684 grep -v '^ *+' conftest.er1
>conftest.err
18686 cat conftest.err
>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try
='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
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); }; } &&
18696 { ac_try
='test -s conftest$ac_exeext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.
$ac_ext >&5
18707 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18709 rm -f conftest.err conftest.
$ac_objext \
18710 conftest
$ac_exeext conftest.
$ac_ext
18711 LIBS
=$ac_check_lib_save_LIBS
18713 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18714 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18715 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18716 cat >>confdefs.h
<<_ACEOF
18717 #define HAVE_LIBCRYPTO 1
18720 LIBS
="-lcrypto $LIBS"
18725 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18726 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18727 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_check_lib_save_LIBS
=$LIBS
18731 LIBS
="-lkrb5 $LIBS"
18732 cat >conftest.
$ac_ext <<_ACEOF
18735 cat confdefs.h
>>conftest.
$ac_ext
18736 cat >>conftest.
$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18739 /* Override any gcc2 internal prototype to avoid an error. */
18743 /* We use char because int might match the return type of a gcc2
18744 builtin and then its argument prototype would still apply. */
18745 char krb5_init_context ();
18749 krb5_init_context ();
18754 rm -f conftest.
$ac_objext conftest
$ac_exeext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756 (eval $ac_link) 2>conftest.er1
18758 grep -v '^ *+' conftest.er1
>conftest.err
18760 cat conftest.err
>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try
='test -z "$ac_c_werror_flag"
18764 || test ! -s conftest.err'
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); }; } &&
18770 { ac_try
='test -s conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_lib_krb5_krb5_init_context
=yes
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.
$ac_ext >&5
18781 ac_cv_lib_krb5_krb5_init_context
=no
18783 rm -f conftest.err conftest.
$ac_objext \
18784 conftest
$ac_exeext conftest.
$ac_ext
18785 LIBS
=$ac_check_lib_save_LIBS
18787 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18788 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18789 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18790 cat >>confdefs.h
<<_ACEOF
18791 #define HAVE_LIBKRB5 1
18794 LIBS
="-lkrb5 $LIBS"
18798 if test "${with_kerberos5+set}" != set; then
18800 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18801 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18802 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 ac_check_lib_save_LIBS
=$LIBS
18806 LIBS
="-ldes425 $LIBS"
18807 cat >conftest.
$ac_ext <<_ACEOF
18810 cat confdefs.h
>>conftest.
$ac_ext
18811 cat >>conftest.
$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18814 /* Override any gcc2 internal prototype to avoid an error. */
18818 /* We use char because int might match the return type of a gcc2
18819 builtin and then its argument prototype would still apply. */
18820 char des_cbc_encrypt ();
18824 des_cbc_encrypt ();
18829 rm -f conftest.
$ac_objext conftest
$ac_exeext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18833 grep -v '^ *+' conftest.er1
>conftest.err
18835 cat conftest.err
>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try
='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
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); }; } &&
18845 { ac_try
='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_des425_des_cbc_encrypt
=yes
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.
$ac_ext >&5
18856 ac_cv_lib_des425_des_cbc_encrypt
=no
18858 rm -f conftest.err conftest.
$ac_objext \
18859 conftest
$ac_exeext conftest.
$ac_ext
18860 LIBS
=$ac_check_lib_save_LIBS
18862 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18863 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18864 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18865 cat >>confdefs.h
<<_ACEOF
18866 #define HAVE_LIBDES425 1
18869 LIBS
="-ldes425 $LIBS"
18873 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18874 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18875 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 ac_check_lib_save_LIBS
=$LIBS
18880 cat >conftest.
$ac_ext <<_ACEOF
18883 cat confdefs.h
>>conftest.
$ac_ext
18884 cat >>conftest.
$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18887 /* Override any gcc2 internal prototype to avoid an error. */
18891 /* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
18893 char des_cbc_encrypt ();
18897 des_cbc_encrypt ();
18902 rm -f conftest.
$ac_objext conftest
$ac_exeext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904 (eval $ac_link) 2>conftest.er1
18906 grep -v '^ *+' conftest.er1
>conftest.err
18908 cat conftest.err
>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try
='test -z "$ac_c_werror_flag"
18912 || test ! -s conftest.err'
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); }; } &&
18918 { ac_try
='test -s conftest$ac_exeext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_lib_des_des_cbc_encrypt
=yes
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.
$ac_ext >&5
18929 ac_cv_lib_des_des_cbc_encrypt
=no
18931 rm -f conftest.err conftest.
$ac_objext \
18932 conftest
$ac_exeext conftest.
$ac_ext
18933 LIBS
=$ac_check_lib_save_LIBS
18935 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18936 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18937 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18938 cat >>confdefs.h
<<_ACEOF
18939 #define HAVE_LIBDES 1
18949 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18950 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18951 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 ac_check_lib_save_LIBS
=$LIBS
18955 LIBS
="-lkrb4 $LIBS"
18956 cat >conftest.
$ac_ext <<_ACEOF
18959 cat confdefs.h
>>conftest.
$ac_ext
18960 cat >>conftest.
$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 /* Override any gcc2 internal prototype to avoid an error. */
18967 /* We use char because int might match the return type of a gcc2
18968 builtin and then its argument prototype would still apply. */
18969 char krb_get_cred ();
18978 rm -f conftest.
$ac_objext conftest
$ac_exeext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18980 (eval $ac_link) 2>conftest.er1
18982 grep -v '^ *+' conftest.er1
>conftest.err
18984 cat conftest.err
>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try
='test -z "$ac_c_werror_flag"
18988 || test ! -s conftest.err'
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); }; } &&
18994 { ac_try
='test -s conftest$ac_exeext'
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_cv_lib_krb4_krb_get_cred
=yes
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.
$ac_ext >&5
19005 ac_cv_lib_krb4_krb_get_cred
=no
19007 rm -f conftest.err conftest.
$ac_objext \
19008 conftest
$ac_exeext conftest.
$ac_ext
19009 LIBS
=$ac_check_lib_save_LIBS
19011 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19012 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19013 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19014 cat >>confdefs.h
<<_ACEOF
19015 #define HAVE_LIBKRB4 1
19018 LIBS
="-lkrb4 $LIBS"
19022 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19023 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19024 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 ac_check_lib_save_LIBS
=$LIBS
19029 cat >conftest.
$ac_ext <<_ACEOF
19032 cat confdefs.h
>>conftest.
$ac_ext
19033 cat >>conftest.
$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19036 /* Override any gcc2 internal prototype to avoid an error. */
19040 /* We use char because int might match the return type of a gcc2
19041 builtin and then its argument prototype would still apply. */
19042 char krb_get_cred ();
19051 rm -f conftest.
$ac_objext conftest
$ac_exeext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19053 (eval $ac_link) 2>conftest.er1
19055 grep -v '^ *+' conftest.er1
>conftest.err
19057 cat conftest.err
>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try
='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
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); }; } &&
19067 { ac_try
='test -s conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_lib_krb_krb_get_cred
=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.
$ac_ext >&5
19078 ac_cv_lib_krb_krb_get_cred
=no
19080 rm -f conftest.err conftest.
$ac_objext \
19081 conftest
$ac_exeext conftest.
$ac_ext
19082 LIBS
=$ac_check_lib_save_LIBS
19084 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19085 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19086 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19087 cat >>confdefs.h
<<_ACEOF
19088 #define HAVE_LIBKRB 1
19099 if test "${with_kerberos5+set}" = set; then
19101 for ac_header
in krb5.h
19103 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19105 echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19113 # Is the header compilable?
19114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19116 cat >conftest.
$ac_ext <<_ACEOF
19119 cat confdefs.h
>>conftest.
$ac_ext
19120 cat >>conftest.
$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 $ac_includes_default
19123 #include <$ac_header>
19125 rm -f conftest.
$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127 (eval $ac_compile) 2>conftest.er1
19129 grep -v '^ *+' conftest.er1
>conftest.err
19131 cat conftest.err
>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try
='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
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); }; } &&
19141 { ac_try
='test -s conftest.$ac_objext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_header_compiler
=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.
$ac_ext >&5
19152 ac_header_compiler
=no
19154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19156 echo "${ECHO_T}$ac_header_compiler" >&6
19158 # Is the header present?
19159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19161 cat >conftest.
$ac_ext <<_ACEOF
19164 cat confdefs.h
>>conftest.
$ac_ext
19165 cat >>conftest.
$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <$ac_header>
19169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1
>conftest.err
19174 cat conftest.err
>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } >/dev
/null
; then
19177 if test -s conftest.err
; then
19178 ac_cpp_err
=$ac_c_preproc_warn_flag
19179 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19186 if test -z "$ac_cpp_err"; then
19187 ac_header_preproc
=yes
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.
$ac_ext >&5
19192 ac_header_preproc
=no
19194 rm -f conftest.err conftest.
$ac_ext
19195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19196 echo "${ECHO_T}$ac_header_preproc" >&6
19198 # So? What about this header?
19199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19205 ac_header_preproc
=yes
19208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19222 ## ------------------------------------------ ##
19223 ## Report this to the AC_PACKAGE_NAME lists. ##
19224 ## ------------------------------------------ ##
19227 sed "s/^/$as_me: WARNING: /" >&2
19230 echo "$as_me:$LINENO: checking for $ac_header" >&5
19231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 eval "$as_ac_Header=\$ac_header_preproc"
19237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19242 cat >>confdefs.h
<<_ACEOF
19243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 for ac_header
in des.h
19254 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19256 echo "$as_me:$LINENO: checking for $ac_header" >&5
19257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19264 # Is the header compilable?
19265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19267 cat >conftest.
$ac_ext <<_ACEOF
19270 cat confdefs.h
>>conftest.
$ac_ext
19271 cat >>conftest.
$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 $ac_includes_default
19274 #include <$ac_header>
19276 rm -f conftest.
$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>conftest.er1
19280 grep -v '^ *+' conftest.er1
>conftest.err
19282 cat conftest.err
>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try
='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
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); }; } &&
19292 { ac_try
='test -s conftest.$ac_objext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_header_compiler
=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.
$ac_ext >&5
19303 ac_header_compiler
=no
19305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19307 echo "${ECHO_T}$ac_header_compiler" >&6
19309 # Is the header present?
19310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19312 cat >conftest.
$ac_ext <<_ACEOF
19315 cat confdefs.h
>>conftest.
$ac_ext
19316 cat >>conftest.
$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <$ac_header>
19320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19323 grep -v '^ *+' conftest.er1
>conftest.err
19325 cat conftest.err
>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } >/dev
/null
; then
19328 if test -s conftest.err
; then
19329 ac_cpp_err
=$ac_c_preproc_warn_flag
19330 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19337 if test -z "$ac_cpp_err"; then
19338 ac_header_preproc
=yes
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.
$ac_ext >&5
19343 ac_header_preproc
=no
19345 rm -f conftest.err conftest.
$ac_ext
19346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19347 echo "${ECHO_T}$ac_header_preproc" >&6
19349 # So? What about this header?
19350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19356 ac_header_preproc
=yes
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19373 ## ------------------------------------------ ##
19374 ## Report this to the AC_PACKAGE_NAME lists. ##
19375 ## ------------------------------------------ ##
19378 sed "s/^/$as_me: WARNING: /" >&2
19381 echo "$as_me:$LINENO: checking for $ac_header" >&5
19382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 eval "$as_ac_Header=\$ac_header_preproc"
19388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19393 cat >>confdefs.h
<<_ACEOF
19394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19399 for ac_header
in kerberosIV
/des.h
19401 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19403 echo "$as_me:$LINENO: checking for $ac_header" >&5
19404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19411 # Is the header compilable?
19412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19414 cat >conftest.
$ac_ext <<_ACEOF
19417 cat confdefs.h
>>conftest.
$ac_ext
19418 cat >>conftest.
$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 $ac_includes_default
19421 #include <$ac_header>
19423 rm -f conftest.
$ac_objext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425 (eval $ac_compile) 2>conftest.er1
19427 grep -v '^ *+' conftest.er1
>conftest.err
19429 cat conftest.err
>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try
='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
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); }; } &&
19439 { ac_try
='test -s conftest.$ac_objext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_header_compiler
=yes
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.
$ac_ext >&5
19450 ac_header_compiler
=no
19452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19454 echo "${ECHO_T}$ac_header_compiler" >&6
19456 # Is the header present?
19457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19459 cat >conftest.
$ac_ext <<_ACEOF
19462 cat confdefs.h
>>conftest.
$ac_ext
19463 cat >>conftest.
$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <$ac_header>
19467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19470 grep -v '^ *+' conftest.er1
>conftest.err
19472 cat conftest.err
>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } >/dev
/null
; then
19475 if test -s conftest.err
; then
19476 ac_cpp_err
=$ac_c_preproc_warn_flag
19477 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19484 if test -z "$ac_cpp_err"; then
19485 ac_header_preproc
=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.
$ac_ext >&5
19490 ac_header_preproc
=no
19492 rm -f conftest.err conftest.
$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19494 echo "${ECHO_T}$ac_header_preproc" >&6
19496 # So? What about this header?
19497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19503 ac_header_preproc
=yes
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19520 ## ------------------------------------------ ##
19521 ## Report this to the AC_PACKAGE_NAME lists. ##
19522 ## ------------------------------------------ ##
19525 sed "s/^/$as_me: WARNING: /" >&2
19528 echo "$as_me:$LINENO: checking for $ac_header" >&5
19529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 eval "$as_ac_Header=\$ac_header_preproc"
19535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19540 cat >>confdefs.h
<<_ACEOF
19541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19546 for ac_header
in kerberos
/des.h
19548 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19550 echo "$as_me:$LINENO: checking for $ac_header" >&5
19551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19558 # Is the header compilable?
19559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19561 cat >conftest.
$ac_ext <<_ACEOF
19564 cat confdefs.h
>>conftest.
$ac_ext
19565 cat >>conftest.
$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 $ac_includes_default
19568 #include <$ac_header>
19570 rm -f conftest.
$ac_objext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572 (eval $ac_compile) 2>conftest.er1
19574 grep -v '^ *+' conftest.er1
>conftest.err
19576 cat conftest.err
>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try
='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
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); }; } &&
19586 { ac_try
='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_header_compiler
=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.
$ac_ext >&5
19597 ac_header_compiler
=no
19599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19601 echo "${ECHO_T}$ac_header_compiler" >&6
19603 # Is the header present?
19604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19606 cat >conftest.
$ac_ext <<_ACEOF
19609 cat confdefs.h
>>conftest.
$ac_ext
19610 cat >>conftest.
$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <$ac_header>
19614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19615 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19617 grep -v '^ *+' conftest.er1
>conftest.err
19619 cat conftest.err
>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } >/dev
/null
; then
19622 if test -s conftest.err
; then
19623 ac_cpp_err
=$ac_c_preproc_warn_flag
19624 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19631 if test -z "$ac_cpp_err"; then
19632 ac_header_preproc
=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.
$ac_ext >&5
19637 ac_header_preproc
=no
19639 rm -f conftest.err conftest.
$ac_ext
19640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19641 echo "${ECHO_T}$ac_header_preproc" >&6
19643 # So? What about this header?
19644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19650 ac_header_preproc
=yes
19653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19667 ## ------------------------------------------ ##
19668 ## Report this to the AC_PACKAGE_NAME lists. ##
19669 ## ------------------------------------------ ##
19672 sed "s/^/$as_me: WARNING: /" >&2
19675 echo "$as_me:$LINENO: checking for $ac_header" >&5
19676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 eval "$as_ac_Header=\$ac_header_preproc"
19682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19687 cat >>confdefs.h
<<_ACEOF
19688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19704 for ac_header
in krb.h
19706 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19708 echo "$as_me:$LINENO: checking for $ac_header" >&5
19709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19716 # Is the header compilable?
19717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19719 cat >conftest.
$ac_ext <<_ACEOF
19722 cat confdefs.h
>>conftest.
$ac_ext
19723 cat >>conftest.
$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 $ac_includes_default
19726 #include <$ac_header>
19728 rm -f conftest.
$ac_objext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>conftest.er1
19732 grep -v '^ *+' conftest.er1
>conftest.err
19734 cat conftest.err
>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
19737 { ac_try
='test -z "$ac_c_werror_flag"
19738 || test ! -s conftest.err'
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); }; } &&
19744 { ac_try
='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_header_compiler
=yes
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.
$ac_ext >&5
19755 ac_header_compiler
=no
19757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19759 echo "${ECHO_T}$ac_header_compiler" >&6
19761 # Is the header present?
19762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19764 cat >conftest.
$ac_ext <<_ACEOF
19767 cat confdefs.h
>>conftest.
$ac_ext
19768 cat >>conftest.
$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 #include <$ac_header>
19772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19773 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19775 grep -v '^ *+' conftest.er1
>conftest.err
19777 cat conftest.err
>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } >/dev
/null
; then
19780 if test -s conftest.err
; then
19781 ac_cpp_err
=$ac_c_preproc_warn_flag
19782 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19789 if test -z "$ac_cpp_err"; then
19790 ac_header_preproc
=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.
$ac_ext >&5
19795 ac_header_preproc
=no
19797 rm -f conftest.err conftest.
$ac_ext
19798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19799 echo "${ECHO_T}$ac_header_preproc" >&6
19801 # So? What about this header?
19802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19808 ac_header_preproc
=yes
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19825 ## ------------------------------------------ ##
19826 ## Report this to the AC_PACKAGE_NAME lists. ##
19827 ## ------------------------------------------ ##
19830 sed "s/^/$as_me: WARNING: /" >&2
19833 echo "$as_me:$LINENO: checking for $ac_header" >&5
19834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 eval "$as_ac_Header=\$ac_header_preproc"
19840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19845 cat >>confdefs.h
<<_ACEOF
19846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19851 for ac_header
in kerberosIV
/krb.h
19853 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19855 echo "$as_me:$LINENO: checking for $ac_header" >&5
19856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19863 # Is the header compilable?
19864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19866 cat >conftest.
$ac_ext <<_ACEOF
19869 cat confdefs.h
>>conftest.
$ac_ext
19870 cat >>conftest.
$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 $ac_includes_default
19873 #include <$ac_header>
19875 rm -f conftest.
$ac_objext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>conftest.er1
19879 grep -v '^ *+' conftest.er1
>conftest.err
19881 cat conftest.err
>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try
='test -z "$ac_c_werror_flag"
19885 || test ! -s conftest.err'
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); }; } &&
19891 { ac_try
='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_header_compiler
=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.
$ac_ext >&5
19902 ac_header_compiler
=no
19904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19906 echo "${ECHO_T}$ac_header_compiler" >&6
19908 # Is the header present?
19909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19911 cat >conftest.
$ac_ext <<_ACEOF
19914 cat confdefs.h
>>conftest.
$ac_ext
19915 cat >>conftest.
$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <$ac_header>
19919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19920 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19922 grep -v '^ *+' conftest.er1
>conftest.err
19924 cat conftest.err
>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } >/dev
/null
; then
19927 if test -s conftest.err
; then
19928 ac_cpp_err
=$ac_c_preproc_warn_flag
19929 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19936 if test -z "$ac_cpp_err"; then
19937 ac_header_preproc
=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.
$ac_ext >&5
19942 ac_header_preproc
=no
19944 rm -f conftest.err conftest.
$ac_ext
19945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19946 echo "${ECHO_T}$ac_header_preproc" >&6
19948 # So? What about this header?
19949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19955 ac_header_preproc
=yes
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19972 ## ------------------------------------------ ##
19973 ## Report this to the AC_PACKAGE_NAME lists. ##
19974 ## ------------------------------------------ ##
19977 sed "s/^/$as_me: WARNING: /" >&2
19980 echo "$as_me:$LINENO: checking for $ac_header" >&5
19981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 eval "$as_ac_Header=\$ac_header_preproc"
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992 cat >>confdefs.h
<<_ACEOF
19993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19998 for ac_header
in kerberos
/krb.h
20000 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002 echo "$as_me:$LINENO: checking for $ac_header" >&5
20003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20010 # Is the header compilable?
20011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20013 cat >conftest.
$ac_ext <<_ACEOF
20016 cat confdefs.h
>>conftest.
$ac_ext
20017 cat >>conftest.
$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 $ac_includes_default
20020 #include <$ac_header>
20022 rm -f conftest.
$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024 (eval $ac_compile) 2>conftest.er1
20026 grep -v '^ *+' conftest.er1
>conftest.err
20028 cat conftest.err
>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try
='test -z "$ac_c_werror_flag"
20032 || test ! -s conftest.err'
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); }; } &&
20038 { ac_try
='test -s conftest.$ac_objext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_header_compiler
=yes
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.
$ac_ext >&5
20049 ac_header_compiler
=no
20051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20053 echo "${ECHO_T}$ac_header_compiler" >&6
20055 # Is the header present?
20056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20058 cat >conftest.
$ac_ext <<_ACEOF
20061 cat confdefs.h
>>conftest.
$ac_ext
20062 cat >>conftest.
$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 #include <$ac_header>
20066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20069 grep -v '^ *+' conftest.er1
>conftest.err
20071 cat conftest.err
>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } >/dev
/null
; then
20074 if test -s conftest.err
; then
20075 ac_cpp_err
=$ac_c_preproc_warn_flag
20076 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20083 if test -z "$ac_cpp_err"; then
20084 ac_header_preproc
=yes
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.
$ac_ext >&5
20089 ac_header_preproc
=no
20091 rm -f conftest.err conftest.
$ac_ext
20092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20093 echo "${ECHO_T}$ac_header_preproc" >&6
20095 # So? What about this header?
20096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20102 ac_header_preproc
=yes
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20119 ## ------------------------------------------ ##
20120 ## Report this to the AC_PACKAGE_NAME lists. ##
20121 ## ------------------------------------------ ##
20124 sed "s/^/$as_me: WARNING: /" >&2
20127 echo "$as_me:$LINENO: checking for $ac_header" >&5
20128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 eval "$as_ac_Header=\$ac_header_preproc"
20134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20139 cat >>confdefs.h
<<_ACEOF
20140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20157 for ac_header
in com_err.h
20159 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20161 echo "$as_me:$LINENO: checking for $ac_header" >&5
20162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20169 # Is the header compilable?
20170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20172 cat >conftest.
$ac_ext <<_ACEOF
20175 cat confdefs.h
>>conftest.
$ac_ext
20176 cat >>conftest.
$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 $ac_includes_default
20179 #include <$ac_header>
20181 rm -f conftest.
$ac_objext
20182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20183 (eval $ac_compile) 2>conftest.er1
20185 grep -v '^ *+' conftest.er1
>conftest.err
20187 cat conftest.err
>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try
='test -z "$ac_c_werror_flag"
20191 || test ! -s conftest.err'
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); }; } &&
20197 { ac_try
='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 ac_header_compiler
=yes
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.
$ac_ext >&5
20208 ac_header_compiler
=no
20210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20212 echo "${ECHO_T}$ac_header_compiler" >&6
20214 # Is the header present?
20215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20217 cat >conftest.
$ac_ext <<_ACEOF
20220 cat confdefs.h
>>conftest.
$ac_ext
20221 cat >>conftest.
$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include <$ac_header>
20225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20228 grep -v '^ *+' conftest.er1
>conftest.err
20230 cat conftest.err
>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } >/dev
/null
; then
20233 if test -s conftest.err
; then
20234 ac_cpp_err
=$ac_c_preproc_warn_flag
20235 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20242 if test -z "$ac_cpp_err"; then
20243 ac_header_preproc
=yes
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.
$ac_ext >&5
20248 ac_header_preproc
=no
20250 rm -f conftest.err conftest.
$ac_ext
20251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20252 echo "${ECHO_T}$ac_header_preproc" >&6
20254 # So? What about this header?
20255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20261 ac_header_preproc
=yes
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20278 ## ------------------------------------------ ##
20279 ## Report this to the AC_PACKAGE_NAME lists. ##
20280 ## ------------------------------------------ ##
20283 sed "s/^/$as_me: WARNING: /" >&2
20286 echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 eval "$as_ac_Header=\$ac_header_preproc"
20293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20298 cat >>confdefs.h
<<_ACEOF
20299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20308 # Solaris requires -lintl if you want strerror (which calls dgettext)
20309 # to return localized messages.
20311 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20312 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20313 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 ac_check_lib_save_LIBS
=$LIBS
20317 LIBS
="-lintl $LIBS"
20318 cat >conftest.
$ac_ext <<_ACEOF
20321 cat confdefs.h
>>conftest.
$ac_ext
20322 cat >>conftest.
$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20325 /* Override any gcc2 internal prototype to avoid an error. */
20329 /* We use char because int might match the return type of a gcc2
20330 builtin and then its argument prototype would still apply. */
20340 rm -f conftest.
$ac_objext conftest
$ac_exeext
20341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20342 (eval $ac_link) 2>conftest.er1
20344 grep -v '^ *+' conftest.er1
>conftest.err
20346 cat conftest.err
>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try
='test -z "$ac_c_werror_flag"
20350 || test ! -s conftest.err'
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); }; } &&
20356 { ac_try
='test -s conftest$ac_exeext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_lib_intl_dgettext
=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.
$ac_ext >&5
20367 ac_cv_lib_intl_dgettext
=no
20369 rm -f conftest.err conftest.
$ac_objext \
20370 conftest
$ac_exeext conftest.
$ac_ext
20371 LIBS
=$ac_check_lib_save_LIBS
20373 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20374 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20375 if test $ac_cv_lib_intl_dgettext = yes; then
20376 cat >>confdefs.h
<<_ACEOF
20377 #define HAVE_LIBINTL 1
20380 LIBS
="-lintl $LIBS"
20385 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20386 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20387 if test "${emacs_cv_localtime_cache+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 if test x
$ac_cv_func_tzset = xyes
; then
20391 if test "$cross_compiling" = yes; then
20392 # If we have tzset, assume the worst when cross-compiling.
20393 emacs_cv_localtime_cache
=yes
20395 cat >conftest.
$ac_ext <<_ACEOF
20398 cat confdefs.h
>>conftest.
$ac_ext
20399 cat >>conftest.
$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 extern char **environ;
20406 for (to = from = environ; (*to = *from); from++)
20407 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20410 char TZ_GMT0[] = "TZ=GMT0";
20411 char TZ_PST8[] = "TZ=PST8";
20414 time_t now = time ((time_t *) 0);
20415 int hour_GMT0, hour_unset;
20416 if (putenv (TZ_GMT0) != 0)
20418 hour_GMT0 = localtime (&now)->tm_hour;
20420 hour_unset = localtime (&now)->tm_hour;
20421 if (putenv (TZ_PST8) != 0)
20423 if (localtime (&now)->tm_hour == hour_GMT0)
20426 if (localtime (&now)->tm_hour != hour_unset)
20431 rm -f conftest
$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 emacs_cv_localtime_cache
=no
20444 echo "$as_me: program exited with status $ac_status" >&5
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.
$ac_ext >&5
20448 ( exit $ac_status )
20449 emacs_cv_localtime_cache
=yes
20451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20454 # If we lack tzset, report that localtime does not cache TZ,
20455 # since we can't invalidate the cache if we don't have tzset.
20456 emacs_cv_localtime_cache
=no
20459 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20460 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20461 if test $emacs_cv_localtime_cache = yes; then
20463 cat >>confdefs.h
<<\_ACEOF
20464 #define LOCALTIME_CACHE 1
20469 if test "x$HAVE_TIMEVAL" = xyes
; then
20471 for ac_func
in gettimeofday
20473 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20476 if eval "test \"\${$as_ac_var+set}\" = set"; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 cat >conftest.
$ac_ext <<_ACEOF
20482 cat confdefs.h
>>conftest.
$ac_ext
20483 cat >>conftest.
$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20487 #define $ac_func innocuous_$ac_func
20489 /* System header to define __stub macros and hopefully few prototypes,
20490 which can conflict with char $ac_func (); below.
20491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492 <limits.h> exists even on freestanding compilers. */
20495 # include <limits.h>
20497 # include <assert.h>
20502 /* Override any gcc2 internal prototype to avoid an error. */
20507 /* We use char because int might match the return type of a gcc2
20508 builtin and then its argument prototype would still apply. */
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20516 char (*f) () = $ac_func;
20525 return f != $ac_func;
20530 rm -f conftest.
$ac_objext conftest
$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1
>conftest.err
20536 cat conftest.err
>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try
='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
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); }; } &&
20546 { ac_try
='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 eval "$as_ac_var=yes"
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.
$ac_ext >&5
20557 eval "$as_ac_var=no"
20559 rm -f conftest.err conftest.
$ac_objext \
20560 conftest
$ac_exeext conftest.
$ac_ext
20562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20564 if test `eval echo '${'$as_ac_var'}'` = yes; then
20565 cat >>confdefs.h
<<_ACEOF
20566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20572 if test $ac_cv_func_gettimeofday = yes; then
20573 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20574 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20575 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 cat >conftest.
$ac_ext <<_ACEOF
20581 cat confdefs.h
>>conftest.
$ac_ext
20582 cat >>conftest.
$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 #ifdef TIME_WITH_SYS_TIME
20586 #include <sys/time.h>
20589 #ifdef HAVE_SYS_TIME_H
20590 #include <sys/time.h>
20598 struct timeval time;
20599 gettimeofday (&time, 0);
20604 rm -f conftest.
$ac_objext
20605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20606 (eval $ac_compile) 2>conftest.er1
20608 grep -v '^ *+' conftest.er1
>conftest.err
20610 cat conftest.err
>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try
='test -z "$ac_c_werror_flag"
20614 || test ! -s conftest.err'
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); }; } &&
20620 { ac_try
='test -s conftest.$ac_objext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 emacs_cv_gettimeofday_two_arguments
=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.
$ac_ext >&5
20631 emacs_cv_gettimeofday_two_arguments
=no
20633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20635 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20636 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20637 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20639 cat >>confdefs.h
<<\_ACEOF
20640 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20647 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20648 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20649 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20650 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 cat >conftest.
$ac_ext <<_ACEOF
20656 cat confdefs.h
>>conftest.
$ac_ext
20657 cat >>conftest.
$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 #include <sys/types.h>
20660 #include <$ac_cv_struct_tm>
20666 static struct tm ac_aggr;
20667 if (ac_aggr.tm_zone)
20673 rm -f conftest.
$ac_objext
20674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20675 (eval $ac_compile) 2>conftest.er1
20677 grep -v '^ *+' conftest.er1
>conftest.err
20679 cat conftest.err
>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
20682 { ac_try
='test -z "$ac_c_werror_flag"
20683 || test ! -s conftest.err'
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); }; } &&
20689 { ac_try
='test -s conftest.$ac_objext'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_member_struct_tm_tm_zone
=yes
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.
$ac_ext >&5
20700 cat >conftest.
$ac_ext <<_ACEOF
20703 cat confdefs.h
>>conftest.
$ac_ext
20704 cat >>conftest.
$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 #include <sys/types.h>
20707 #include <$ac_cv_struct_tm>
20713 static struct tm ac_aggr;
20714 if (sizeof ac_aggr.tm_zone)
20720 rm -f conftest.
$ac_objext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20722 (eval $ac_compile) 2>conftest.er1
20724 grep -v '^ *+' conftest.er1
>conftest.err
20726 cat conftest.err
>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try
='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
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); }; } &&
20736 { ac_try
='test -s conftest.$ac_objext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_member_struct_tm_tm_zone
=yes
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.
$ac_ext >&5
20747 ac_cv_member_struct_tm_tm_zone
=no
20749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20754 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20755 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20757 cat >>confdefs.h
<<_ACEOF
20758 #define HAVE_STRUCT_TM_TM_ZONE 1
20764 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20766 cat >>confdefs.h
<<\_ACEOF
20767 #define HAVE_TM_ZONE 1
20771 echo "$as_me:$LINENO: checking for tzname" >&5
20772 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20773 if test "${ac_cv_var_tzname+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 cat >conftest.
$ac_ext <<_ACEOF
20779 cat confdefs.h
>>conftest.
$ac_ext
20780 cat >>conftest.
$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20783 #ifndef tzname /* For SGI. */
20784 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20795 rm -f conftest.
$ac_objext conftest
$ac_exeext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>conftest.er1
20799 grep -v '^ *+' conftest.er1
>conftest.err
20801 cat conftest.err
>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
20804 { ac_try
='test -z "$ac_c_werror_flag"
20805 || test ! -s conftest.err'
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); }; } &&
20811 { ac_try
='test -s conftest$ac_exeext'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20817 ac_cv_var_tzname
=yes
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.
$ac_ext >&5
20822 ac_cv_var_tzname
=no
20824 rm -f conftest.err conftest.
$ac_objext \
20825 conftest
$ac_exeext conftest.
$ac_ext
20827 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20828 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20829 if test $ac_cv_var_tzname = yes; then
20831 cat >>confdefs.h
<<\_ACEOF
20832 #define HAVE_TZNAME 1
20839 if test "$ac_cv_func_gettimeofday" = yes; then
20840 echo "$as_me:$LINENO: checking for struct timezone" >&5
20841 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20842 if test "${emacs_cv_struct_timezone+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 cat >conftest.
$ac_ext <<_ACEOF
20848 cat confdefs.h
>>conftest.
$ac_ext
20849 cat >>conftest.
$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <sys/time.h>
20855 struct timezone tz;
20860 rm -f conftest.
$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20864 grep -v '^ *+' conftest.er1
>conftest.err
20866 cat conftest.err
>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try
='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
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); }; } &&
20876 { ac_try
='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 if test "$cross_compiling" = yes; then
20883 emacs_cv_struct_timezone
=yes
20885 cat >conftest.
$ac_ext <<_ACEOF
20888 cat confdefs.h
>>conftest.
$ac_ext
20889 cat >>conftest.
$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20892 #ifdef TIME_WITH_SYS_TIME
20893 #include <sys/time.h>
20896 #ifdef HAVE_SYS_TIME_H
20897 #include <sys/time.h>
20903 struct timeval time;
20904 struct timezone dummy;
20905 exit (gettimeofday (&time, &dummy));
20908 rm -f conftest
$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 emacs_cv_struct_timezone
=yes
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.
$ac_ext >&5
20925 ( exit $ac_status )
20926 emacs_cv_struct_timezone
=no
20928 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.
$ac_ext >&5
20934 emacs_cv_struct_timezone
=no
20936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20938 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20939 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20943 echo "$as_me:$LINENO: checking for socket" >&5
20944 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20945 if test "${ac_cv_func_socket+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 cat >conftest.
$ac_ext <<_ACEOF
20951 cat confdefs.h
>>conftest.
$ac_ext
20952 cat >>conftest.
$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20956 #define socket innocuous_socket
20958 /* System header to define __stub macros and hopefully few prototypes,
20959 which can conflict with char socket (); below.
20960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20961 <limits.h> exists even on freestanding compilers. */
20964 # include <limits.h>
20966 # include <assert.h>
20971 /* Override any gcc2 internal prototype to avoid an error. */
20976 /* We use char because int might match the return type of a gcc2
20977 builtin and then its argument prototype would still apply. */
20979 /* The GNU C library defines this for functions which it implements
20980 to always fail with ENOSYS. Some functions are actually named
20981 something starting with __ and the normal name is an alias. */
20982 #if defined (__stub_socket) || defined (__stub___socket)
20985 char (*f) () = socket;
20994 return f != socket;
20999 rm -f conftest.
$ac_objext conftest
$ac_exeext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21001 (eval $ac_link) 2>conftest.er1
21003 grep -v '^ *+' conftest.er1
>conftest.err
21005 cat conftest.err
>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try
='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
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); }; } &&
21015 { ac_try
='test -s conftest$ac_exeext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ac_cv_func_socket
=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.
$ac_ext >&5
21026 ac_cv_func_socket
=no
21028 rm -f conftest.err conftest.
$ac_objext \
21029 conftest
$ac_exeext conftest.
$ac_ext
21031 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21032 echo "${ECHO_T}$ac_cv_func_socket" >&6
21033 if test $ac_cv_func_socket = yes; then
21039 if test $ok_so_far = yes; then
21040 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21041 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21042 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21043 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21047 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21049 # Is the header compilable?
21050 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21051 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21052 cat >conftest.
$ac_ext <<_ACEOF
21055 cat confdefs.h
>>conftest.
$ac_ext
21056 cat >>conftest.
$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 #include <netinet/in.h>
21061 rm -f conftest.
$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21065 grep -v '^ *+' conftest.er1
>conftest.err
21067 cat conftest.err
>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try
='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
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); }; } &&
21077 { ac_try
='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_header_compiler
=yes
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.
$ac_ext >&5
21088 ac_header_compiler
=no
21090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6
21094 # Is the header present?
21095 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21096 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21097 cat >conftest.
$ac_ext <<_ACEOF
21100 cat confdefs.h
>>conftest.
$ac_ext
21101 cat >>conftest.
$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <netinet/in.h>
21105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21108 grep -v '^ *+' conftest.er1
>conftest.err
21110 cat conftest.err
>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } >/dev
/null
; then
21113 if test -s conftest.err
; then
21114 ac_cpp_err
=$ac_c_preproc_warn_flag
21115 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21122 if test -z "$ac_cpp_err"; then
21123 ac_header_preproc
=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.
$ac_ext >&5
21128 ac_header_preproc
=no
21130 rm -f conftest.err conftest.
$ac_ext
21131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21132 echo "${ECHO_T}$ac_header_preproc" >&6
21134 # So? What about this header?
21135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21137 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21138 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21140 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21141 ac_header_preproc
=yes
21144 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21145 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21147 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21149 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21151 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21153 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21155 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21158 ## ------------------------------------------ ##
21159 ## Report this to the AC_PACKAGE_NAME lists. ##
21160 ## ------------------------------------------ ##
21163 sed "s/^/$as_me: WARNING: /" >&2
21166 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21167 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21168 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 ac_cv_header_netinet_in_h
=$ac_header_preproc
21173 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21174 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21177 if test $ac_cv_header_netinet_in_h = yes; then
21185 if test $ok_so_far = yes; then
21186 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21187 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21188 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21189 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21193 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21195 # Is the header compilable?
21196 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21197 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21198 cat >conftest.
$ac_ext <<_ACEOF
21201 cat confdefs.h
>>conftest.
$ac_ext
21202 cat >>conftest.
$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 $ac_includes_default
21205 #include <arpa/inet.h>
21207 rm -f conftest.
$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21211 grep -v '^ *+' conftest.er1
>conftest.err
21213 cat conftest.err
>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try
='test -z "$ac_c_werror_flag"
21217 || test ! -s conftest.err'
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); }; } &&
21223 { ac_try
='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_header_compiler
=yes
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.
$ac_ext >&5
21234 ac_header_compiler
=no
21236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6
21240 # Is the header present?
21241 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21242 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21243 cat >conftest.
$ac_ext <<_ACEOF
21246 cat confdefs.h
>>conftest.
$ac_ext
21247 cat >>conftest.
$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 #include <arpa/inet.h>
21251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21254 grep -v '^ *+' conftest.er1
>conftest.err
21256 cat conftest.err
>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } >/dev
/null
; then
21259 if test -s conftest.err
; then
21260 ac_cpp_err
=$ac_c_preproc_warn_flag
21261 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21268 if test -z "$ac_cpp_err"; then
21269 ac_header_preproc
=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.
$ac_ext >&5
21274 ac_header_preproc
=no
21276 rm -f conftest.err conftest.
$ac_ext
21277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21278 echo "${ECHO_T}$ac_header_preproc" >&6
21280 # So? What about this header?
21281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21283 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21284 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21286 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21287 ac_header_preproc
=yes
21290 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21291 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21293 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21295 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21296 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21297 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21299 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21301 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21304 ## ------------------------------------------ ##
21305 ## Report this to the AC_PACKAGE_NAME lists. ##
21306 ## ------------------------------------------ ##
21309 sed "s/^/$as_me: WARNING: /" >&2
21312 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21313 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21314 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21319 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21320 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21323 if test $ac_cv_header_arpa_inet_h = yes; then
21331 if test $ok_so_far = yes; then
21333 cat >>confdefs.h
<<\_ACEOF
21334 #define HAVE_INET_SOCKETS 1
21340 for ac_header
in sys
/ioctl.h
21342 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21344 echo "$as_me:$LINENO: checking for $ac_header" >&5
21345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21352 # Is the header compilable?
21353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21355 cat >conftest.
$ac_ext <<_ACEOF
21358 cat confdefs.h
>>conftest.
$ac_ext
21359 cat >>conftest.
$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 $ac_includes_default
21362 #include <$ac_header>
21364 rm -f conftest.
$ac_objext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366 (eval $ac_compile) 2>conftest.er1
21368 grep -v '^ *+' conftest.er1
>conftest.err
21370 cat conftest.err
>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
21373 { ac_try
='test -z "$ac_c_werror_flag"
21374 || test ! -s conftest.err'
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); }; } &&
21380 { ac_try
='test -s conftest.$ac_objext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_header_compiler
=yes
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.
$ac_ext >&5
21391 ac_header_compiler
=no
21393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21395 echo "${ECHO_T}$ac_header_compiler" >&6
21397 # Is the header present?
21398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21400 cat >conftest.
$ac_ext <<_ACEOF
21403 cat confdefs.h
>>conftest.
$ac_ext
21404 cat >>conftest.
$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 #include <$ac_header>
21408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21409 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21411 grep -v '^ *+' conftest.er1
>conftest.err
21413 cat conftest.err
>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } >/dev
/null
; then
21416 if test -s conftest.err
; then
21417 ac_cpp_err
=$ac_c_preproc_warn_flag
21418 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21425 if test -z "$ac_cpp_err"; then
21426 ac_header_preproc
=yes
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.
$ac_ext >&5
21431 ac_header_preproc
=no
21433 rm -f conftest.err conftest.
$ac_ext
21434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21435 echo "${ECHO_T}$ac_header_preproc" >&6
21437 # So? What about this header?
21438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21444 ac_header_preproc
=yes
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21461 ## ------------------------------------------ ##
21462 ## Report this to the AC_PACKAGE_NAME lists. ##
21463 ## ------------------------------------------ ##
21466 sed "s/^/$as_me: WARNING: /" >&2
21469 echo "$as_me:$LINENO: checking for $ac_header" >&5
21470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 eval "$as_ac_Header=\$ac_header_preproc"
21476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21481 cat >>confdefs.h
<<_ACEOF
21482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21490 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21492 cat >>confdefs.h
<<\_ACEOF
21493 #define HAVE_AIX_SMT_EXP 1
21498 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21499 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21500 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21501 echo "$as_me:$LINENO: result: yes" >&5
21502 echo "${ECHO_T}yes" >&6
21504 cat >>confdefs.h
<<\_ACEOF
21505 #define HAVE_DEV_PTMX 1
21509 echo "$as_me:$LINENO: result: no" >&5
21510 echo "${ECHO_T}no" >&6
21513 echo "$as_me:$LINENO: checking for pid_t" >&5
21514 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21515 if test "${ac_cv_type_pid_t+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 cat >conftest.
$ac_ext <<_ACEOF
21521 cat confdefs.h
>>conftest.
$ac_ext
21522 cat >>conftest.
$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 $ac_includes_default
21530 if (sizeof (pid_t))
21536 rm -f conftest.
$ac_objext
21537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21538 (eval $ac_compile) 2>conftest.er1
21540 grep -v '^ *+' conftest.er1
>conftest.err
21542 cat conftest.err
>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
21545 { ac_try
='test -z "$ac_c_werror_flag"
21546 || test ! -s conftest.err'
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); }; } &&
21552 { ac_try
='test -s conftest.$ac_objext'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 ac_cv_type_pid_t
=yes
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.
$ac_ext >&5
21563 ac_cv_type_pid_t
=no
21565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21567 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21568 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21569 if test $ac_cv_type_pid_t = yes; then
21573 cat >>confdefs.h
<<_ACEOF
21581 for ac_header
in unistd.h vfork.h
21583 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21585 echo "$as_me:$LINENO: checking for $ac_header" >&5
21586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21593 # Is the header compilable?
21594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21596 cat >conftest.
$ac_ext <<_ACEOF
21599 cat confdefs.h
>>conftest.
$ac_ext
21600 cat >>conftest.
$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 $ac_includes_default
21603 #include <$ac_header>
21605 rm -f conftest.
$ac_objext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21607 (eval $ac_compile) 2>conftest.er1
21609 grep -v '^ *+' conftest.er1
>conftest.err
21611 cat conftest.err
>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try
='test -z "$ac_c_werror_flag"
21615 || test ! -s conftest.err'
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); }; } &&
21621 { ac_try
='test -s conftest.$ac_objext'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; }; then
21627 ac_header_compiler
=yes
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.
$ac_ext >&5
21632 ac_header_compiler
=no
21634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21636 echo "${ECHO_T}$ac_header_compiler" >&6
21638 # Is the header present?
21639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21641 cat >conftest.
$ac_ext <<_ACEOF
21644 cat confdefs.h
>>conftest.
$ac_ext
21645 cat >>conftest.
$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <$ac_header>
21649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21650 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21652 grep -v '^ *+' conftest.er1
>conftest.err
21654 cat conftest.err
>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } >/dev
/null
; then
21657 if test -s conftest.err
; then
21658 ac_cpp_err
=$ac_c_preproc_warn_flag
21659 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21666 if test -z "$ac_cpp_err"; then
21667 ac_header_preproc
=yes
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.
$ac_ext >&5
21672 ac_header_preproc
=no
21674 rm -f conftest.err conftest.
$ac_ext
21675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21676 echo "${ECHO_T}$ac_header_preproc" >&6
21678 # So? What about this header?
21679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21685 ac_header_preproc
=yes
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21702 ## ------------------------------------------ ##
21703 ## Report this to the AC_PACKAGE_NAME lists. ##
21704 ## ------------------------------------------ ##
21707 sed "s/^/$as_me: WARNING: /" >&2
21710 echo "$as_me:$LINENO: checking for $ac_header" >&5
21711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 eval "$as_ac_Header=\$ac_header_preproc"
21717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21722 cat >>confdefs.h
<<_ACEOF
21723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21732 for ac_func
in fork vfork
21734 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21735 echo "$as_me:$LINENO: checking for $ac_func" >&5
21736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21737 if eval "test \"\${$as_ac_var+set}\" = set"; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 cat >conftest.
$ac_ext <<_ACEOF
21743 cat confdefs.h
>>conftest.
$ac_ext
21744 cat >>conftest.
$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21748 #define $ac_func innocuous_$ac_func
21750 /* System header to define __stub macros and hopefully few prototypes,
21751 which can conflict with char $ac_func (); below.
21752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21753 <limits.h> exists even on freestanding compilers. */
21756 # include <limits.h>
21758 # include <assert.h>
21763 /* Override any gcc2 internal prototype to avoid an error. */
21768 /* We use char because int might match the return type of a gcc2
21769 builtin and then its argument prototype would still apply. */
21771 /* The GNU C library defines this for functions which it implements
21772 to always fail with ENOSYS. Some functions are actually named
21773 something starting with __ and the normal name is an alias. */
21774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21777 char (*f) () = $ac_func;
21786 return f != $ac_func;
21791 rm -f conftest.
$ac_objext conftest
$ac_exeext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>conftest.er1
21795 grep -v '^ *+' conftest.er1
>conftest.err
21797 cat conftest.err
>&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try
='test -z "$ac_c_werror_flag"
21801 || test ! -s conftest.err'
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); }; } &&
21807 { ac_try
='test -s conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 eval "$as_ac_var=yes"
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.
$ac_ext >&5
21818 eval "$as_ac_var=no"
21820 rm -f conftest.err conftest.
$ac_objext \
21821 conftest
$ac_exeext conftest.
$ac_ext
21823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21825 if test `eval echo '${'$as_ac_var'}'` = yes; then
21826 cat >>confdefs.h
<<_ACEOF
21827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21833 if test "x$ac_cv_func_fork" = xyes
; then
21834 echo "$as_me:$LINENO: checking for working fork" >&5
21835 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21836 if test "${ac_cv_func_fork_works+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 if test "$cross_compiling" = yes; then
21840 ac_cv_func_fork_works
=cross
21842 cat >conftest.
$ac_ext <<_ACEOF
21843 /* By Ruediger Kuhlmann. */
21844 #include <sys/types.h>
21846 # include <unistd.h>
21848 /* Some systems only have a dummy stub for fork() */
21856 rm -f conftest
$ac_exeext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21858 (eval $ac_link) 2>&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 ac_cv_func_fork_works
=yes
21869 echo "$as_me: program exited with status $ac_status" >&5
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.
$ac_ext >&5
21873 ( exit $ac_status )
21874 ac_cv_func_fork_works
=no
21876 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21879 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21880 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21883 ac_cv_func_fork_works
=$ac_cv_func_fork
21885 if test "x$ac_cv_func_fork_works" = xcross
; then
21887 *-*-amigaos* |
*-*-msdosdjgpp*)
21888 # Override, as these systems have only a dummy fork() stub
21889 ac_cv_func_fork_works
=no
21892 ac_cv_func_fork_works
=yes
21895 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21896 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21898 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21899 if test "x$ac_cv_func_vfork" = xyes
; then
21900 echo "$as_me:$LINENO: checking for working vfork" >&5
21901 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21902 if test "${ac_cv_func_vfork_works+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21905 if test "$cross_compiling" = yes; then
21906 ac_cv_func_vfork_works
=cross
21908 cat >conftest.
$ac_ext <<_ACEOF
21911 cat confdefs.h
>>conftest.
$ac_ext
21912 cat >>conftest.
$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 /* Thanks to Paul Eggert for this test. */
21916 #include <stdlib.h>
21917 #include <sys/types.h>
21918 #include <sys/stat.h>
21919 #include <sys/wait.h>
21921 # include <unistd.h>
21924 # include <vfork.h>
21926 /* On some sparc systems, changes by the child to local and incoming
21927 argument registers are propagated back to the parent. The compiler
21928 is told about this with #include <vfork.h>, but some compilers
21929 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21930 static variable whose address is put into a register that is
21931 clobbered by the vfork. */
21934 sparc_address_test (int arg)
21936 sparc_address_test (arg) int arg;
21939 static pid_t child;
21957 pid_t parent = getpid ();
21960 sparc_address_test (0);
21965 /* Here is another test for sparc vfork register problems. This
21966 test uses lots of local variables, at least as many local
21967 variables as main has allocated so far including compiler
21968 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21969 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21970 reuse the register of parent for one of the local variables,
21971 since it will think that parent can't possibly be used any more
21972 in this routine. Assigning to the local variable will thus
21973 munge parent in the parent process. */
21975 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21976 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21977 /* Convince the compiler that p..p7 are live; otherwise, it might
21978 use the same hardware register for all 8 local variables. */
21979 if (p != p1 || p != p2 || p != p3 || p != p4
21980 || p != p5 || p != p6 || p != p7)
21983 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21984 from child file descriptors. If the child closes a descriptor
21985 before it execs or exits, this munges the parent's descriptor
21986 as well. Test for this by closing stdout in the child. */
21987 _exit(close(fileno(stdout)) != 0);
21992 while (wait(&status) != child)
21995 /* Was there some problem with vforking? */
21998 /* Did the child fail? (This shouldn't happen.) */
22001 /* Did the vfork/compiler bug occur? */
22002 || parent != getpid()
22004 /* Did the file descriptor bug occur? */
22005 || fstat(fileno(stdout), &st) != 0
22010 rm -f conftest
$ac_exeext
22011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22012 (eval $ac_link) 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_func_vfork_works
=yes
22023 echo "$as_me: program exited with status $ac_status" >&5
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.
$ac_ext >&5
22027 ( exit $ac_status )
22028 ac_cv_func_vfork_works
=no
22030 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22034 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22037 if test "x$ac_cv_func_fork_works" = xcross
; then
22038 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22039 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22040 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22043 if test "x$ac_cv_func_vfork_works" = xyes
; then
22045 cat >>confdefs.h
<<\_ACEOF
22046 #define HAVE_WORKING_VFORK 1
22051 cat >>confdefs.h
<<\_ACEOF
22056 if test "x$ac_cv_func_fork_works" = xyes
; then
22058 cat >>confdefs.h
<<\_ACEOF
22059 #define HAVE_WORKING_FORK 1
22065 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22066 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22067 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 cat >conftest.
$ac_ext <<_ACEOF
22073 cat confdefs.h
>>conftest.
$ac_ext
22074 cat >>conftest.
$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <langinfo.h>
22080 char* cs = nl_langinfo(CODESET);
22085 rm -f conftest.
$ac_objext conftest
$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>conftest.er1
22089 grep -v '^ *+' conftest.er1
>conftest.err
22091 cat conftest.err
>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try
='test -z "$ac_c_werror_flag"
22095 || test ! -s conftest.err'
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); }; } &&
22101 { ac_try
='test -s conftest$ac_exeext'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 emacs_cv_langinfo_codeset
=yes
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.
$ac_ext >&5
22112 emacs_cv_langinfo_codeset
=no
22114 rm -f conftest.err conftest.
$ac_objext \
22115 conftest
$ac_exeext conftest.
$ac_ext
22118 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22119 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22120 if test $emacs_cv_langinfo_codeset = yes; then
22122 cat >>confdefs.h
<<\_ACEOF
22123 #define HAVE_LANGINFO_CODESET 1
22128 echo "$as_me:$LINENO: checking for size_t" >&5
22129 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22130 if test "${ac_cv_type_size_t+set}" = set; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 cat >conftest.
$ac_ext <<_ACEOF
22136 cat confdefs.h
>>conftest.
$ac_ext
22137 cat >>conftest.
$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 $ac_includes_default
22145 if (sizeof (size_t))
22151 rm -f conftest.
$ac_objext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153 (eval $ac_compile) 2>conftest.er1
22155 grep -v '^ *+' conftest.er1
>conftest.err
22157 cat conftest.err
>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try
='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
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); }; } &&
22167 { ac_try
='test -s conftest.$ac_objext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 ac_cv_type_size_t
=yes
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.
$ac_ext >&5
22178 ac_cv_type_size_t
=no
22180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22182 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22183 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22184 if test $ac_cv_type_size_t = yes; then
22186 cat >>confdefs.h
<<_ACEOF
22187 #define HAVE_SIZE_T 1
22194 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22195 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22196 if test "${ac_cv_type_mbstate_t+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 cat >conftest.
$ac_ext <<_ACEOF
22202 cat confdefs.h
>>conftest.
$ac_ext
22203 cat >>conftest.
$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 $ac_includes_default
22206 # include <wchar.h>
22210 mbstate_t x; return sizeof x;
22215 rm -f conftest.
$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217 (eval $ac_compile) 2>conftest.er1
22219 grep -v '^ *+' conftest.er1
>conftest.err
22221 cat conftest.err
>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
22224 { ac_try
='test -z "$ac_c_werror_flag"
22225 || test ! -s conftest.err'
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); }; } &&
22231 { ac_try
='test -s conftest.$ac_objext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 ac_cv_type_mbstate_t
=yes
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.
$ac_ext >&5
22242 ac_cv_type_mbstate_t
=no
22244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22246 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22247 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22248 if test $ac_cv_type_mbstate_t = yes; then
22250 cat >>confdefs.h
<<\_ACEOF
22251 #define HAVE_MBSTATE_T 1
22256 cat >>confdefs.h
<<\_ACEOF
22257 #define mbstate_t int
22262 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22263 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22264 if test "${emacs_cv_c_restrict+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 cat >conftest.
$ac_ext <<_ACEOF
22270 cat confdefs.h
>>conftest.
$ac_ext
22271 cat >>conftest.
$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 void fred (int *restrict x);
22282 rm -f conftest.
$ac_objext
22283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22284 (eval $ac_compile) 2>conftest.er1
22286 grep -v '^ *+' conftest.er1
>conftest.err
22288 cat conftest.err
>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } &&
22291 { ac_try
='test -z "$ac_c_werror_flag"
22292 || test ! -s conftest.err'
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); }; } &&
22298 { ac_try
='test -s conftest.$ac_objext'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; }; then
22304 emacs_cv_c_restrict
=yes
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.
$ac_ext >&5
22309 cat >conftest.
$ac_ext <<_ACEOF
22312 cat confdefs.h
>>conftest.
$ac_ext
22313 cat >>conftest.
$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 void fred (int *__restrict x);
22324 rm -f conftest.
$ac_objext
22325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22326 (eval $ac_compile) 2>conftest.er1
22328 grep -v '^ *+' conftest.er1
>conftest.err
22330 cat conftest.err
>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try
='test -z "$ac_c_werror_flag"
22334 || test ! -s conftest.err'
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); }; } &&
22340 { ac_try
='test -s conftest.$ac_objext'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
22346 emacs_cv_c_restrict
=__restrict
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.
$ac_ext >&5
22351 emacs_cv_c_restrict
=no
22353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22357 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22358 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22359 case "$emacs_cv_c_restrict" in
22360 yes) emacs_restrict
=restrict
;;
22361 no
) emacs_restrict
="";;
22362 *) emacs_restrict
="$emacs_cv_c_restrict";;
22364 if test "$emacs_restrict" != __restrict
; then
22366 cat >>confdefs.h
<<_ACEOF
22367 #define __restrict $emacs_restrict
22372 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22373 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22374 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.
$ac_ext <<_ACEOF
22380 cat confdefs.h
>>conftest.
$ac_ext
22381 cat >>conftest.
$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 void fred (int x[__restrict]);
22392 rm -f conftest.
$ac_objext
22393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22394 (eval $ac_compile) 2>conftest.er1
22396 grep -v '^ *+' conftest.er1
>conftest.err
22398 cat conftest.err
>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } &&
22401 { ac_try
='test -z "$ac_c_werror_flag"
22402 || test ! -s conftest.err'
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); }; } &&
22408 { ac_try
='test -s conftest.$ac_objext'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22414 emacs_cv_c_restrict_arr
=yes
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.
$ac_ext >&5
22419 emacs_cv_c_restrict_arr
=no
22421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22423 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22424 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22425 if test "$emacs_cv_c_restrict_arr" = yes; then
22427 cat >>confdefs.h
<<\_ACEOF
22428 #define __restrict_arr __restrict
22435 # Set up the CFLAGS for real compilation, so we can substitute it.
22436 CFLAGS
="$REAL_CFLAGS"
22437 CPPFLAGS
="$REAL_CPPFLAGS"
22439 #### Find out which version of Emacs this is.
22440 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22441 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22442 if test x
"${version}" = x
; then
22443 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22444 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22445 { (exit 1); exit 1; }; }
22448 ### Specify what sort of things we'll be editing into Makefile and config.h.
22449 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22485 cat >>confdefs.h
<<_ACEOF
22486 #define EMACS_CONFIGURATION "${canonical}"
22490 cat >>confdefs.h
<<_ACEOF
22491 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22495 cat >>confdefs.h
<<_ACEOF
22496 #define config_machfile "${machfile}"
22500 cat >>confdefs.h
<<_ACEOF
22501 #define config_opsysfile "${opsysfile}"
22505 cat >>confdefs.h
<<_ACEOF
22506 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22510 cat >>confdefs.h
<<_ACEOF
22511 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22515 cat >>confdefs.h
<<_ACEOF
22516 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22520 cat >>confdefs.h
<<_ACEOF
22521 #define UNEXEC_SRC ${UNEXEC_SRC}
22525 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22527 cat >>confdefs.h
<<\_ACEOF
22528 #define HAVE_X_WINDOWS 1
22532 if test "${USE_X_TOOLKIT}" != "none" ; then
22534 cat >>confdefs.h
<<\_ACEOF
22535 #define USE_X_TOOLKIT 1
22539 if test "${HAVE_X11}" = "yes" ; then
22541 cat >>confdefs.h
<<\_ACEOF
22546 if test "${HAVE_XFREE386}" = "yes" ; then
22548 cat >>confdefs.h
<<\_ACEOF
22549 #define HAVE_XFREE386 1
22553 if test "${HAVE_MENUS}" = "yes" ; then
22555 cat >>confdefs.h
<<\_ACEOF
22556 #define HAVE_MENUS 1
22560 if test "${GNU_MALLOC}" = "yes" ; then
22562 cat >>confdefs.h
<<\_ACEOF
22563 #define GNU_MALLOC 1
22567 if test "${REL_ALLOC}" = "yes" ; then
22569 cat >>confdefs.h
<<\_ACEOF
22570 #define REL_ALLOC 1
22579 #### Report on what we decided to do.
22580 #### Report GTK as a toolkit, even if it doesn't use Xt.
22581 #### It makes printing result more understandable as using GTK sets
22582 #### toolkit_scroll_bars to yes by default.
22583 if test "${HAVE_GTK}" = "yes"; then
22588 Configured for \`${canonical}'.
22590 Where should the build process find the source code? ${srcdir}
22591 What operating system and machine description files should Emacs use?
22592 \`${opsysfile}' and \`${machfile}'
22593 What compiler should emacs be built with? ${CC} ${CFLAGS}
22594 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22595 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22596 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22597 What window system should Emacs use? ${window_system}
22598 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22600 if test -n "${x_includes}"; then
22601 echo " Where do we find X Windows header files? ${x_includes}"
22603 echo " Where do we find X Windows header files? Standard dirs"
22605 if test -n "${x_libraries}"; then
22606 echo " Where do we find X Windows libraries? ${x_libraries}"
22608 echo " Where do we find X Windows libraries? Standard dirs"
22611 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22612 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22613 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22614 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22615 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22616 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22617 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22620 if test $USE_XASSERTS = yes; then
22621 echo " Compiling with asserts turned on."
22622 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22628 # Remove any trailing slashes in these variables.
22629 test "${prefix}" != NONE
&&
22630 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22631 test "${exec_prefix}" != NONE
&&
22632 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22634 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22635 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22636 ## from Makefile.c can correctly provide the arg `-traditional' to the
22639 cat >conftest.
$ac_ext <<_ACEOF
22642 cat confdefs.h
>>conftest.
$ac_ext
22643 cat >>conftest.
$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22648 $EGREP "yes..yes" >/dev
/null
2>&1; then
22649 CPP_NEED_TRADITIONAL
=no
22651 CPP_NEED_TRADITIONAL
=yes
22656 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"
22657 ac_config_commands
="$ac_config_commands default"
22658 cat >confcache
<<\_ACEOF
22659 # This file is a shell script that caches the results of configure
22660 # tests run on this system so they can be shared between configure
22661 # scripts and configure runs, see configure's option --config-cache.
22662 # It is not useful on other systems. If it contains results you don't
22663 # want to keep, you may remove or edit it.
22665 # config.status only pays attention to the cache file if you give it
22666 # the --recheck option to rerun configure.
22668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22670 # following values.
22674 # The following way of writing the cache mishandles newlines in values,
22675 # but we know of no workaround that is simple, portable, and efficient.
22676 # So, don't put newlines in cache variables' values.
22677 # Ultrix sh set writes to stderr and can't be redirected directly,
22678 # and sets the high bit in the cache file unless we assign to the vars.
22681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22683 # `set' does not quote correctly, so add quotes (double-quote
22684 # substitution turns \\\\ into \\, and sed turns \\ into \).
22687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22690 # `set' quotes correctly as required by POSIX, so do not add quotes.
22692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22703 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22704 if test -w $cache_file; then
22705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22706 cat confcache
>$cache_file
22708 echo "not updating unwritable cache $cache_file"
22713 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22714 # Let make expand exec_prefix.
22715 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22719 # trailing colons and then remove the whole line if VPATH becomes empty
22720 # (actually we leave an empty line to preserve line numbers).
22721 if test "x$srcdir" = x.
; then
22722 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22723 s/:*\$(srcdir):*/:/;
22724 s/:*\${srcdir}:*/:/;
22726 s/^\([^=]*=[ ]*\):*/\1/;
22732 DEFS
=-DHAVE_CONFIG_H
22736 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22737 # 1. Remove the extension, and $U if already installed.
22738 ac_i
=`echo "$ac_i" |
22739 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22741 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22742 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22744 LIBOBJS
=$ac_libobjs
22746 LTLIBOBJS
=$ac_ltlibobjs
22750 : ${CONFIG_STATUS=./config.status}
22751 ac_clean_files_save
=$ac_clean_files
22752 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22755 cat >$CONFIG_STATUS <<_ACEOF
22757 # Generated by $as_me.
22758 # Run this file to recreate the current configuration.
22759 # Compiler output produced by configure, useful for debugging
22760 # configure, is in config.log if it exists.
22763 ac_cs_recheck=false
22765 SHELL=\${CONFIG_SHELL-$SHELL}
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 ## --------------------- ##
22770 ## M4sh Initialization. ##
22771 ## --------------------- ##
22773 # Be Bourne compatible
22774 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22778 # is contrary to our usage. Disable this feature.
22779 alias -g '${1+"$@"}'='"$@"'
22780 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22783 DUALCASE
=1; export DUALCASE
# for MKS sh
22785 # Support unset when possible.
22786 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22793 # Work around bugs in pre-3.0 UWIN ksh.
22794 $as_unset ENV MAIL MAILPATH
22801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22803 LC_TELEPHONE LC_TIME
22805 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22806 eval $as_var=C
; export $as_var
22812 # Required to use basename.
22813 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22819 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22820 as_basename
=basename
22826 # Name of the executable.
22827 as_me
=`$as_basename "$0" ||
22828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22829 X"$0" : 'X\(//\)$' \| \
22830 X"$0" : 'X\(/\)$' \| \
22831 . : '\(.\)' 2>/dev/null ||
22833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22834 /^X\/\(\/\/\)$/{ s//\1/; q; }
22835 /^X\/\(\/\).*/{ s//\1/; q; }
22839 # PATH needs CR, and LINENO needs CR and PATH.
22840 # Avoid depending upon Character Ranges.
22841 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22842 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22843 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22844 as_cr_digits
='0123456789'
22845 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22847 # The user is always right.
22848 if test "${PATH_SEPARATOR+set}" != set; then
22849 echo "#! /bin/sh" >conf$$.sh
22850 echo "exit 0" >>conf$$.sh
22852 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22861 as_lineno_1
=$LINENO
22862 as_lineno_2
=$LINENO
22863 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22864 test "x$as_lineno_1" != "x$as_lineno_2" &&
22865 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22866 # Find who we are. Look in the path if we contain no path at all
22869 *[\\/]* ) as_myself
=$0 ;;
22870 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22871 for as_dir
in $PATH
22874 test -z "$as_dir" && as_dir
=.
22875 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22880 # We did not find ourselves, most probably we were run as `sh COMMAND'
22881 # in which case we are not to be found in the path.
22882 if test "x$as_myself" = x
; then
22885 if test ! -f "$as_myself"; then
22886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22888 { (exit 1); exit 1; }; }
22890 case $CONFIG_SHELL in
22892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22893 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22896 test -z "$as_dir" && as_dir
=.
22897 for as_base
in sh bash ksh sh5
; do
22900 if ("$as_dir/$as_base" -c '
22901 as_lineno_1=$LINENO
22902 as_lineno_2=$LINENO
22903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22904 test "x$as_lineno_1" != "x$as_lineno_2" &&
22905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22906 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22907 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22908 CONFIG_SHELL
=$as_dir/$as_base
22909 export CONFIG_SHELL
22910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22919 # uniformly replaced by the line number. The first 'sed' inserts a
22920 # line-number line before each line; the second 'sed' does the real
22921 # work. The second script uses 'N' to pair each line-number line
22922 # with the numbered line, and appends trailing '-' during
22923 # substitution so that $LINENO is not a special case at line end.
22924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22926 sed '=' <$as_myself |
22931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22934 s,^['$as_cr_digits']*\n,,
22935 ' >$as_me.lineno
&&
22936 chmod +x
$as_me.lineno ||
22937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22939 { (exit 1); exit 1; }; }
22941 # Don't try to exec as it changes $[0], causing all sort of problems
22942 # (the dirname of $[0] is not the place where we might find the
22943 # original and so on. Autoconf is especially sensible to this).
22945 # Exit status is that of the last command.
22950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22951 *c
*,-n*) ECHO_N
= ECHO_C
='
22953 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22954 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22957 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22963 rm -f conf$$ conf$$.exe conf$$.
file
22965 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22966 # We could just check for DJGPP; but this test a) works b) is more generic
22967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22968 if test -f conf$$.exe
; then
22969 # Don't use ln at all; we don't have any links
22974 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22979 rm -f conf$$ conf$$.exe conf$$.
file
22981 if mkdir
-p .
2>/dev
/null
; then
22984 test -d .
/-p && rmdir .
/-p
22988 as_executable_p
="test -f"
22990 # Sed expression to map a string onto a valid CPP name.
22991 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22993 # Sed expression to map a string onto a valid variable name.
22994 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22998 # We need space, tab and new line, in precisely that order.
23008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23009 # report actual input values of CONFIG_FILES etc. instead of their
23010 # values after options handling. Logging --version etc. is OK.
23014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23015 ## Running $as_me. ##
23020 This file was extended by $as_me, which was
23021 generated by GNU Autoconf 2.59. Invocation command line was
23023 CONFIG_FILES = $CONFIG_FILES
23024 CONFIG_HEADERS = $CONFIG_HEADERS
23025 CONFIG_LINKS = $CONFIG_LINKS
23026 CONFIG_COMMANDS = $CONFIG_COMMANDS
23030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23034 # Files that config.status was made for.
23035 if test -n "$ac_config_files"; then
23036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23039 if test -n "$ac_config_headers"; then
23040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23043 if test -n "$ac_config_links"; then
23044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23047 if test -n "$ac_config_commands"; then
23048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23054 \`$as_me' instantiates files from templates according to the
23055 current configuration.
23057 Usage: $0 [OPTIONS] [FILE]...
23059 -h, --help print this help, then exit
23060 -V, --version print version number, then exit
23061 -q, --quiet do not print progress messages
23062 -d, --debug don't remove temporary files
23063 --recheck update $as_me by reconfiguring in the same conditions
23064 --file=FILE[:TEMPLATE]
23065 instantiate the configuration file FILE
23066 --header=FILE[:TEMPLATE]
23067 instantiate the configuration header FILE
23069 Configuration files:
23072 Configuration headers:
23075 Configuration commands:
23078 Report bugs to <bug-autoconf@gnu.org>."
23081 cat >>$CONFIG_STATUS <<_ACEOF
23084 configured by $0, generated by GNU Autoconf 2.59,
23085 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23087 Copyright (C) 2003 Free Software Foundation, Inc.
23088 This config.status script is free software; the Free Software Foundation
23089 gives unlimited permission to copy, distribute and modify it."
23094 cat >>$CONFIG_STATUS <<\_ACEOF
23095 # If no file are specified by the user, then we need to provide default
23096 # value. By we need to know if files were specified by the user.
23102 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23103 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23111 *) # This is not an option, so the user has probably given explicit
23114 ac_need_defaults
=false
;;
23118 # Handling of the options.
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23121 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23123 --version |
--vers* |
-V )
23124 echo "$ac_cs_version"; exit 0 ;;
23126 # Conflict between --help and --header
23127 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23128 Try \`$0 --help' for more information." >&5
23129 echo "$as_me: error: ambiguous option: $1
23130 Try \`$0 --help' for more information." >&2;}
23131 { (exit 1); exit 1; }; };;
23132 --help |
--hel |
-h )
23133 echo "$ac_cs_usage"; exit 0 ;;
23134 --debug |
--d* |
-d )
23136 --file |
--fil |
--fi |
--f )
23138 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23139 ac_need_defaults
=false
;;
23140 --header |
--heade |
--head |
--hea )
23142 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23143 ac_need_defaults
=false
;;
23144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23145 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23148 # This is an error.
23149 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23150 Try \`$0 --help' for more information." >&5
23151 echo "$as_me: error: unrecognized option: $1
23152 Try \`$0 --help' for more information." >&2;}
23153 { (exit 1); exit 1; }; } ;;
23155 *) ac_config_targets
="$ac_config_targets $1" ;;
23161 ac_configure_extra_args
=
23163 if $ac_cs_silent; then
23165 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23169 cat >>$CONFIG_STATUS <<_ACEOF
23170 if \$ac_cs_recheck; then
23171 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23172 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23177 cat >>$CONFIG_STATUS <<_ACEOF
23179 # INIT-COMMANDS section.
23182 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23188 cat >>$CONFIG_STATUS <<\_ACEOF
23189 for ac_config_target
in $ac_config_targets
23191 case "$ac_config_target" in
23192 # Handling of arguments.
23193 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23194 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23195 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23196 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23197 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23198 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23199 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23200 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23201 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23202 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23203 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23204 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23205 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23206 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23207 { (exit 1); exit 1; }; };;
23211 # If the user did not use the arguments to specify the items to instantiate,
23212 # then the envvar interface is used. Set only those that are not.
23213 # We use the long form for the default assignment because of an extremely
23214 # bizarre bug on SunOS 4.1.3.
23215 if $ac_need_defaults; then
23216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23218 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23221 # Have a temporary directory for convenience. Make it in the build tree
23222 # simply because there is no reason to put it here, and in addition,
23223 # creating and moving files from /tmp can sometimes cause problems.
23224 # Create a temporary directory, and hook for its removal unless debugging.
23227 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23228 trap '{ (exit 1); exit 1; }' 1 2 13 15
23231 # Create a (secure) tmp directory for tmp files.
23234 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23235 test -n "$tmp" && test -d "$tmp"
23238 tmp
=.
/confstat$$
-$RANDOM
23239 (umask 077 && mkdir
$tmp)
23242 echo "$me: cannot create a temporary directory in ." >&2
23243 { (exit 1); exit 1; }
23248 cat >>$CONFIG_STATUS <<_ACEOF
23251 # CONFIG_FILES section.
23254 # No need to generate the scripts if there are no CONFIG_FILES.
23255 # This happens for instance when ./config.status config.h
23256 if test -n "\$CONFIG_FILES"; then
23257 # Protect against being on the right side of a sed subst in config.status.
23258 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23259 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23260 s,@SHELL@,$SHELL,;t t
23261 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23262 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23263 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23264 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23265 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23266 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23267 s,@exec_prefix@,$exec_prefix,;t t
23268 s,@prefix@,$prefix,;t t
23269 s,@program_transform_name@,$program_transform_name,;t t
23270 s,@bindir@,$bindir,;t t
23271 s,@sbindir@,$sbindir,;t t
23272 s,@libexecdir@,$libexecdir,;t t
23273 s,@datadir@,$datadir,;t t
23274 s,@sysconfdir@,$sysconfdir,;t t
23275 s,@sharedstatedir@,$sharedstatedir,;t t
23276 s,@localstatedir@,$localstatedir,;t t
23277 s,@libdir@,$libdir,;t t
23278 s,@includedir@,$includedir,;t t
23279 s,@oldincludedir@,$oldincludedir,;t t
23280 s,@infodir@,$infodir,;t t
23281 s,@mandir@,$mandir,;t t
23282 s,@build_alias@,$build_alias,;t t
23283 s,@host_alias@,$host_alias,;t t
23284 s,@target_alias@,$target_alias,;t t
23285 s,@DEFS@,$DEFS,;t t
23286 s,@ECHO_C@,$ECHO_C,;t t
23287 s,@ECHO_N@,$ECHO_N,;t t
23288 s,@ECHO_T@,$ECHO_T,;t t
23289 s,@LIBS@,$LIBS,;t t
23290 s,@MAINT@,$MAINT,;t t
23291 s,@build@,$build,;t t
23292 s,@build_cpu@,$build_cpu,;t t
23293 s,@build_vendor@,$build_vendor,;t t
23294 s,@build_os@,$build_os,;t t
23295 s,@host@,$host,;t t
23296 s,@host_cpu@,$host_cpu,;t t
23297 s,@host_vendor@,$host_vendor,;t t
23298 s,@host_os@,$host_os,;t t
23300 s,@CFLAGS@,$CFLAGS,;t t
23301 s,@LDFLAGS@,$LDFLAGS,;t t
23302 s,@CPPFLAGS@,$CPPFLAGS,;t t
23303 s,@ac_ct_CC@,$ac_ct_CC,;t t
23304 s,@EXEEXT@,$EXEEXT,;t t
23305 s,@OBJEXT@,$OBJEXT,;t t
23306 s,@LN_S@,$LN_S,;t t
23308 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23309 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23310 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23311 s,@RANLIB@,$RANLIB,;t t
23312 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23313 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23314 s,@EGREP@,$EGREP,;t t
23315 s,@LIBSOUND@,$LIBSOUND,;t t
23316 s,@SET_MAKE@,$SET_MAKE,;t t
23317 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23318 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23319 s,@GTK_LIBS@,$GTK_LIBS,;t t
23320 s,@ALLOCA@,$ALLOCA,;t t
23321 s,@liblockfile@,$liblockfile,;t t
23322 s,@LIBOBJS@,$LIBOBJS,;t t
23323 s,@NEED_SETGID@,$NEED_SETGID,;t t
23324 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23325 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23326 s,@GETOPT_H@,$GETOPT_H,;t t
23327 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23328 s,@version@,$version,;t t
23329 s,@configuration@,$configuration,;t t
23330 s,@canonical@,$canonical,;t t
23331 s,@srcdir@,$srcdir,;t t
23332 s,@lispdir@,$lispdir,;t t
23333 s,@locallisppath@,$locallisppath,;t t
23334 s,@lisppath@,$lisppath,;t t
23335 s,@x_default_search_path@,$x_default_search_path,;t t
23336 s,@etcdir@,$etcdir,;t t
23337 s,@archlibdir@,$archlibdir,;t t
23338 s,@docdir@,$docdir,;t t
23339 s,@bitmapdir@,$bitmapdir,;t t
23340 s,@gamedir@,$gamedir,;t t
23341 s,@gameuser@,$gameuser,;t t
23342 s,@c_switch_system@,$c_switch_system,;t t
23343 s,@c_switch_machine@,$c_switch_machine,;t t
23344 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23345 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23346 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23347 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23348 s,@machfile@,$machfile,;t t
23349 s,@opsysfile@,$opsysfile,;t t
23350 s,@carbon_appdir@,$carbon_appdir,;t t
23351 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23356 cat >>$CONFIG_STATUS <<\_ACEOF
23357 # Split the substitutions into bite-sized pieces for seds with
23358 # small command number limits, like on Digital OSF/1 and HP-UX.
23359 ac_max_sed_lines
=48
23360 ac_sed_frag
=1 # Number of current file.
23361 ac_beg
=1 # First line for current file.
23362 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23365 while $ac_more_lines; do
23366 if test $ac_beg -gt 1; then
23367 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23369 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23371 if test ! -s $tmp/subs.frag
; then
23372 ac_more_lines
=false
23374 # The purpose of the label and of the branching condition is to
23375 # speed up the sed processing (if there are no `@' at all, there
23376 # is no need to browse any of the substitutions).
23377 # These are the two extra sed commands mentioned above.
23379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23380 if test -z "$ac_sed_cmds"; then
23381 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23383 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23385 ac_sed_frag
=`expr $ac_sed_frag + 1`
23387 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23390 if test -z "$ac_sed_cmds"; then
23393 fi # test -n "$CONFIG_FILES"
23396 cat >>$CONFIG_STATUS <<\_ACEOF
23397 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23400 - |
*:- |
*:-:* ) # input from stdin
23402 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23403 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23404 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23405 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23406 * ) ac_file_in
=$ac_file.
in ;;
23409 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23410 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23412 X"$ac_file" : 'X\(//\)[^/]' \| \
23413 X"$ac_file" : 'X\(//\)$' \| \
23414 X"$ac_file" : 'X\(/\)' \| \
23415 . : '\(.\)' 2>/dev/null ||
23417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23419 /^X\(\/\/\)$/{ s//\1/; q; }
23420 /^X\(\/\).*/{ s//\1/; q; }
23422 { if $as_mkdir_p; then
23427 while test ! -d "$as_dir"; do
23428 as_dirs
="$as_dir $as_dirs"
23429 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23431 X"$as_dir" : 'X\(//\)[^/]' \| \
23432 X"$as_dir" : 'X\(//\)$' \| \
23433 X"$as_dir" : 'X\(/\)' \| \
23434 . : '\(.\)' 2>/dev/null ||
23436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23438 /^X\(\/\/\)$/{ s//\1/; q; }
23439 /^X\(\/\).*/{ s//\1/; q; }
23442 test ! -n "$as_dirs" || mkdir
$as_dirs
23443 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23445 { (exit 1); exit 1; }; }; }
23449 if test "$ac_dir" != .
; then
23450 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23451 # A "../" for each directory in $ac_dir_suffix.
23452 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23454 ac_dir_suffix
= ac_top_builddir
=
23458 .
) # No --srcdir option. We are building in place.
23460 if test -z "$ac_top_builddir"; then
23463 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23465 [\\/]* | ?
:[\\/]* ) # Absolute path.
23466 ac_srcdir
=$srcdir$ac_dir_suffix;
23467 ac_top_srcdir
=$srcdir ;;
23468 *) # Relative path.
23469 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23470 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23473 # Do not use `cd foo && pwd` to compute absolute paths, because
23474 # the directories may not exist.
23476 .
) ac_abs_builddir
="$ac_dir";;
23479 .
) ac_abs_builddir
=`pwd`;;
23480 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23481 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23484 case $ac_abs_builddir in
23485 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23487 case ${ac_top_builddir}.
in
23488 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23489 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23490 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23493 case $ac_abs_builddir in
23494 .
) ac_abs_srcdir
=$ac_srcdir;;
23497 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23498 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23499 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23502 case $ac_abs_builddir in
23503 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23505 case $ac_top_srcdir in
23506 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23507 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23508 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23514 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23515 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23518 if test x
"$ac_file" != x-
; then
23519 { echo "$as_me:$LINENO: creating $ac_file" >&5
23520 echo "$as_me: creating $ac_file" >&6;}
23523 # Let's still pretend it is `configure' which instantiates (i.e., don't
23524 # use $as_me), people would be surprised to read:
23525 # /* config.h. Generated by config.status. */
23526 if test x
"$ac_file" = x-
; then
23529 configure_input
="$ac_file. "
23531 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23532 sed 's,.*/,,'` by configure."
23534 # First look for the input files in the build tree, otherwise in the
23536 ac_file_inputs
=`IFS=:
23537 for f in $ac_file_in; do
23539 -) echo $tmp/stdin ;;
23541 # Absolute (can't be DOS-style, as IFS=:)
23542 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23543 echo "$as_me: error: cannot find input file: $f" >&2;}
23544 { (exit 1); exit 1; }; }
23547 if test -f "$f"; then
23550 elif test -f "$srcdir/$f"; then
23555 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23556 echo "$as_me: error: cannot find input file: $f" >&2;}
23557 { (exit 1); exit 1; }; }
23560 done` ||
{ (exit 1); exit 1; }
23562 cat >>$CONFIG_STATUS <<_ACEOF
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23568 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23569 s
,@configure_input@
,$configure_input,;t t
23570 s
,@srcdir@
,$ac_srcdir,;t t
23571 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23572 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23573 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23574 s
,@builddir@
,$ac_builddir,;t t
23575 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23576 s
,@top_builddir@
,$ac_top_builddir,;t t
23577 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23578 s
,@INSTALL@
,$ac_INSTALL,;t t
23579 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23581 if test x"$ac_file" != x-; then
23582 mv $tmp/out $ac_file
23590 cat >>$CONFIG_STATUS <<\_ACEOF
23593 # CONFIG_HEADER section.
23596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23599 # ac_d sets the value in "#define NAME VALUE" lines.
23600 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23601 ac_dB
='[ ].*$,\1#\2'
23604 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23605 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23606 ac_uB
='$,\1#\2define\3'
23610 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23613 - |
*:- |
*:-:* ) # input from stdin
23615 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23616 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23617 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23618 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23619 * ) ac_file_in
=$ac_file.
in ;;
23622 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23623 echo "$as_me: creating $ac_file" >&6;}
23625 # First look for the input files in the build tree, otherwise in the
23627 ac_file_inputs
=`IFS=:
23628 for f in $ac_file_in; do
23630 -) echo $tmp/stdin ;;
23632 # Absolute (can't be DOS-style, as IFS=:)
23633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23634 echo "$as_me: error: cannot find input file: $f" >&2;}
23635 { (exit 1); exit 1; }; }
23636 # Do quote $f, to prevent DOS paths from being IFS'd.
23639 if test -f "$f"; then
23642 elif test -f "$srcdir/$f"; then
23647 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23648 echo "$as_me: error: cannot find input file: $f" >&2;}
23649 { (exit 1); exit 1; }; }
23652 done` ||
{ (exit 1); exit 1; }
23653 # Remove the trailing spaces.
23654 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23658 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23659 # `conftest.undefs', that substitutes the proper values into
23660 # config.h.in to produce config.h. The first handles `#define'
23661 # templates, and the second `#undef' templates.
23662 # And first: Protect against being on the right side of a sed subst in
23663 # config.status. Protect against being in an unquoted here document
23664 # in config.status.
23665 rm -f conftest.defines conftest.undefs
23666 # Using a here document instead of a string reduces the quoting nightmare.
23667 # Putting comments in sed scripts is not portable.
23669 # `end' is used to avoid that the second main sed command (meant for
23670 # 0-ary CPP macros) applies to n-ary macro definitions.
23671 # See the Autoconf documentation for `clear'.
23672 cat >confdef2sed.
sed <<\_ACEOF
23677 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23679 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23682 # If some macros were called several times there might be several times
23683 # the same #defines, which is useless. Nevertheless, we may not want to
23684 # sort them, since we want the *last* AC-DEFINE to be honored.
23685 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23686 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23687 rm -f confdef2sed.sed
23689 # This sed command replaces #undef with comments. This is necessary, for
23690 # example, in the case of _POSIX_SOURCE, which is predefined and required
23691 # on some systems where configure will not decide to define it.
23692 cat >>conftest.undefs <<\_ACEOF
23693 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23696 # Break up conftest.defines because some shells have a limit on the size
23697 # of here documents, and old seds have small limits too (100 cmds).
23698 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23699 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23700 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23701 echo ' :' >>$CONFIG_STATUS
23702 rm -f conftest.tail
23703 while grep . conftest.defines >/dev/null
23705 # Write a limited-size here document to $tmp/defines.sed.
23706 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23707 # Speed up: don't consider the non `#define' lines.
23708 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23709 # Work around the forget-to-reset-the-flag bug.
23710 echo 't clr' >>$CONFIG_STATUS
23711 echo ': clr' >>$CONFIG_STATUS
23712 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23714 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23716 mv $tmp/out $tmp/in
23718 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23719 rm -f conftest.defines
23720 mv conftest.
tail conftest.defines
23722 rm -f conftest.defines
23723 echo ' fi # grep' >>$CONFIG_STATUS
23724 echo >>$CONFIG_STATUS
23726 # Break up conftest.undefs because some shells have a limit on the size
23727 # of here documents, and old seds have small limits too (100 cmds).
23728 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23729 rm -f conftest.
tail
23730 while grep . conftest.undefs
>/dev
/null
23732 # Write a limited-size here document to $tmp/undefs.sed.
23733 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23734 # Speed up: don't consider the non
`#undef'
23735 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23736 # Work around the forget-to-reset-the-flag bug.
23737 echo 't clr' >>$CONFIG_STATUS
23738 echo ': clr' >>$CONFIG_STATUS
23739 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23741 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23743 mv $tmp/out $tmp/in
23745 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23746 rm -f conftest.undefs
23747 mv conftest.tail conftest.undefs
23749 rm -f conftest.undefs
23751 cat >>$CONFIG_STATUS <<\_ACEOF
23752 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23753 # use $as_me), people would be surprised to read:
23754 # /* config.h. Generated by config.status. */
23755 if test x
"$ac_file" = x-
; then
23756 echo "/* Generated by configure. */" >$tmp/config.h
23758 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23760 cat $tmp/in >>$tmp/config.h
23762 if test x
"$ac_file" != x-
; then
23763 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23764 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23765 echo "$as_me: $ac_file is unchanged" >&6;}
23767 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23769 X"$ac_file" : 'X\(//\)[^/]' \| \
23770 X"$ac_file" : 'X\(//\)$' \| \
23771 X"$ac_file" : 'X\(/\)' \| \
23772 . : '\(.\)' 2>/dev/null ||
23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23776 /^X\(\/\/\)$/{ s//\1/; q; }
23777 /^X\(\/\).*/{ s//\1/; q; }
23779 { if $as_mkdir_p; then
23784 while test ! -d "$as_dir"; do
23785 as_dirs
="$as_dir $as_dirs"
23786 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23788 X"$as_dir" : 'X\(//\)[^/]' \| \
23789 X"$as_dir" : 'X\(//\)$' \| \
23790 X"$as_dir" : 'X\(/\)' \| \
23791 . : '\(.\)' 2>/dev/null ||
23793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23795 /^X\(\/\/\)$/{ s//\1/; q; }
23796 /^X\(\/\).*/{ s//\1/; q; }
23799 test ! -n "$as_dirs" || mkdir
$as_dirs
23800 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23801 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23802 { (exit 1); exit 1; }; }; }
23805 mv $tmp/config.h
$ac_file
23809 rm -f $tmp/config.h
23813 cat >>$CONFIG_STATUS <<\_ACEOF
23816 # CONFIG_COMMANDS section.
23818 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23819 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23820 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23821 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23822 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23823 X"$ac_dest" : 'X\(//\)[^/]' \| \
23824 X"$ac_dest" : 'X\(//\)$' \| \
23825 X"$ac_dest" : 'X\(/\)' \| \
23826 . : '\(.\)' 2>/dev/null ||
23828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23830 /^X\(\/\/\)$/{ s//\1/; q; }
23831 /^X\(\/\).*/{ s//\1/; q; }
23833 { if $as_mkdir_p; then
23838 while test ! -d "$as_dir"; do
23839 as_dirs
="$as_dir $as_dirs"
23840 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23842 X"$as_dir" : 'X\(//\)[^/]' \| \
23843 X"$as_dir" : 'X\(//\)$' \| \
23844 X"$as_dir" : 'X\(/\)' \| \
23845 . : '\(.\)' 2>/dev/null ||
23847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23849 /^X\(\/\/\)$/{ s//\1/; q; }
23850 /^X\(\/\).*/{ s//\1/; q; }
23853 test ! -n "$as_dirs" || mkdir
$as_dirs
23854 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23855 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23856 { (exit 1); exit 1; }; }; }
23860 if test "$ac_dir" != .
; then
23861 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23862 # A "../" for each directory in $ac_dir_suffix.
23863 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23865 ac_dir_suffix
= ac_top_builddir
=
23869 .
) # No --srcdir option. We are building in place.
23871 if test -z "$ac_top_builddir"; then
23874 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23876 [\\/]* | ?
:[\\/]* ) # Absolute path.
23877 ac_srcdir
=$srcdir$ac_dir_suffix;
23878 ac_top_srcdir
=$srcdir ;;
23879 *) # Relative path.
23880 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23881 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23884 # Do not use `cd foo && pwd` to compute absolute paths, because
23885 # the directories may not exist.
23887 .
) ac_abs_builddir
="$ac_dir";;
23890 .
) ac_abs_builddir
=`pwd`;;
23891 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23892 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23895 case $ac_abs_builddir in
23896 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23898 case ${ac_top_builddir}.
in
23899 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23900 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23901 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23904 case $ac_abs_builddir in
23905 .
) ac_abs_srcdir
=$ac_srcdir;;
23908 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23909 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23910 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23913 case $ac_abs_builddir in
23914 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23916 case $ac_top_srcdir in
23917 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23918 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23919 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23924 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23925 echo "$as_me: executing $ac_dest commands" >&6;}
23929 ### Make the necessary directories, if they don't exist.
23930 for dir
in etc lisp
; do
23931 test -d ${dir} || mkdir
${dir}
23934 # Build src/Makefile from ${srcdir}/src/Makefile.c
23935 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23936 # This must be done after src/config.h is built, since we rely on that file.
23938 # Now get this: Some word that is part of the ${srcdir} directory name
23939 # or the ${configuration} value might, just might, happen to be an
23940 # identifier like `sun4' or `i386' or something, and be predefined by
23941 # the C preprocessor to some helpful value like 1, or maybe the empty
23942 # string. Needless to say consequent macro substitutions are less
23943 # than conducive to the makefile finding the correct directory.
23944 undefs
="`echo $top_srcdir $configuration $canonical |
23945 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23946 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23949 echo creating src
/epaths.h
23950 ${MAKE-make} epaths-force
23952 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23953 # `..' to `. .' unless invoked with -traditional
23955 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23956 CPPFLAGS
="$CPPFLAGS -traditional"
23959 echo creating lib-src
/Makefile
23961 rm -f junk.c junk1.c junk2.c
23962 sed -e '/start of cpp stuff/q' \
23963 < Makefile.c
> junk1.c
23964 sed -e '1,/start of cpp stuff/d'\
23965 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23966 < Makefile.c
> junk.c
23967 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23968 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23969 cat junk1.c junk2.c
> Makefile.new
23970 rm -f junk.c junk1.c junk2.c
23971 chmod 444 Makefile.new
23972 mv -f Makefile.new Makefile
23975 echo creating src
/Makefile
23977 rm -f junk.c junk1.c junk2.c
23978 sed -e '/start of cpp stuff/q' \
23979 < Makefile.c
> junk1.c
23980 sed -e '1,/start of cpp stuff/d'\
23981 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23982 < Makefile.c
> junk.c
23983 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23984 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23985 cat junk1.c junk2.c
> Makefile.new
23986 rm -f junk.c junk1.c junk2.c
23987 chmod 444 Makefile.new
23988 mv -f Makefile.new Makefile
23991 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23992 echo creating src
/.gdbinit
23993 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23996 # This is how we know whether to re-run configure in certain cases.
23997 touch src
/config.stamp
24004 cat >>$CONFIG_STATUS <<\_ACEOF
24006 { (exit 0); exit 0; }
24008 chmod +x
$CONFIG_STATUS
24009 ac_clean_files
=$ac_clean_files_save
24012 # configure is writing to config.log, and then calls config.status.
24013 # config.status does its own redirection, appending to config.log.
24014 # Unfortunately, on DOS this fails, as config.log is still kept open
24015 # by configure, so config.status won't be able to write to it; its
24016 # output is simply discarded. So we exec the FD to /dev/null,
24017 # effectively closing config.log, so it can be properly (re)opened and
24018 # appended to by config.status. When coming back to configure, we
24019 # need to make the FD available again.
24020 if test "$no_create" != yes; then
24022 ac_config_status_args
=
24023 test "$silent" = yes &&
24024 ac_config_status_args
="$ac_config_status_args --quiet"
24026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24029 # would make configure fail if this is the last instruction.
24030 $ac_cs_success ||
{ (exit 1); exit 1; }