2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --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
;;
1768 arm-acorn-riscix1.1
* )
1769 machine
=acorn opsys
=riscix1-1
1771 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1772 ## This name is riscix12 instead of riscix1.2
1773 ## to avoid a file name conflict on MSDOS.
1774 machine
=acorn opsys
=riscix12
1780 case "${canonical}" in
1781 i
[345]86-*-bsdi*) machine
=intel386
;;
1782 sparc-
*-bsdi*) machine
=sparc
;;
1783 powerpc-
*-bsdi*) machine
=macppc
;;
1785 case "${canonical}" in
1786 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1787 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1788 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1789 *-*-bsdi3* ) opsys
=bsdos3
;;
1790 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1795 ## Strictly speaking, we need the version of the alliant operating
1796 ## system to choose the right machine file, but currently the
1797 ## configuration name doesn't tell us enough to choose the right
1798 ## one; we need to give alliants their own operating system name to
1799 ## do this right. When someone cares, they can help us.
1801 machine
=alliant4 opsys
=bsd4-2
1804 machine
=alliant-2800 opsys
=bsd4-3
1807 ## Alpha (DEC) machines.
1809 machine
=alpha opsys
=osf1
1810 # This is needed to find X11R6.1 libraries for certain tests.
1811 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1812 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1813 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1814 # due to non-traditional preprocessing with the current compiler
1815 # defaults. OSF 4 can also have that compiler version, and there
1816 # seems always to have been a usable /usr/bin/cpp.
1817 NON_GNU_CPP
=/usr
/bin
/cpp
1818 case "${canonical}" in
1819 alpha
*-dec-osf[5-9]*)
1824 alpha
*-*-linux-gnu* )
1825 machine
=alpha opsys
=gnu-linux
1829 machine
=arm opsys
=gnu-linux
1834 machine
=altos opsys
=usg5-2
1839 machine
=amdahl opsys
=usg5-2-2
1842 ## Apollo, Domain/OS
1844 machine
=apollo opsys
=bsd4-3
1847 ## AT&T 3b2, 3b5, 3b15, 3b20
1849 machine
=att3b opsys
=usg5-2-2
1852 ## AT&T 3b1 - The Mighty Unix PC!
1854 machine
=7300 opsys
=usg5-2-2
1859 machine
=ibmrs6000 opsys
=aix3-2
1864 machine
=dpx2 opsys
=usg5-3
1869 machine
=sps7 opsys
=usg5-2
1872 ## CCI 5/32, 6/32 -- see "Tahoe".
1875 ## I don't know what configuration name to use for this; config.sub
1876 ## doesn't seem to know anything about it. Hey, Celerity users, get
1877 ## in touch with us!
1878 celerity-celerity-bsd
* )
1879 machine
=celerity opsys
=bsd4-2
1883 ## What operating systems does this chip run that Emacs has been
1887 ## We'll use the catch-all code at the bottom to guess the
1888 ## operating system.
1892 mips-compaq-nonstopux
* )
1893 machine
=nonstopux opsys
=nonstopux
1897 *-convex-bsd* |
*-convex-convexos* )
1898 machine
=convex opsys
=bsd4-3
1899 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1900 NON_GNU_CPP
="cc -E -P"
1904 i
[3456]86-cubix-sysv* )
1905 machine
=intel386 opsys
=usg5-3
1909 cydra
*-cydrome-sysv* )
1910 machine
=cydra5 opsys
=usg5-3
1913 ## Data General AViiON Machines
1914 ## DG changed naming conventions with the release of 5.4.4.10, they
1915 ## dropped the initial 5.4 but left the intervening R. Because of the
1916 ## R this shouldn't conflict with older versions of the OS (which I
1917 ## think were named like dgux4.*). In addition, DG new AViiONs series
1918 ## uses either Motorola M88k or Intel Pentium CPUs.
1919 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1920 machine
=aviion opsys
=dgux4
1922 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1923 ## This name is dgux5-4-3 instead of dgux5-4r3
1924 ## to avoid a file name conflict on MSDOS.
1925 machine
=aviion opsys
=dgux5-4-3
1927 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1928 machine
=aviion opsys
=dgux5-4r2
1931 machine
=aviion opsys
=dgux
1934 ## Data General AViiON Intel (x86) Machines
1935 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1936 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1937 i
[345]86-dg-dguxR4* )
1938 machine
=aviion-intel opsys
=dgux4
1942 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1943 machine
=pmax opsys
=bsd4-2
1945 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1946 machine
=pmax opsys
=bsd4-3
1949 machine
=pmax opsys
=ultrix4-3
1952 machine
=pmax opsys
=osf1
1954 mips-dec-mach_bsd4.3
* )
1955 machine
=pmax opsys
=mach-bsd4-3
1958 ## Motorola Delta machines
1959 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1960 machine
=delta opsys
=usg5-3
1961 if test -z "`type gnucc | grep 'not found'`"
1963 if test -s /etc
/167config
1964 then CC
="gnucc -m68040"
1965 else CC
="gnucc -m68881"
1968 if test -z "`type gcc | grep 'not found'`"
1974 m88k-motorola-sysv4
* )
1975 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1976 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1977 # I hope there are not other 4.0 versions for this machine
1978 # which really need usg5-4 instead.
1979 machine
=delta88k opsys
=usg5-4-2
1981 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1982 machine
=delta88k opsys
=usg5-3
1987 machine
=dual opsys
=usg5-2
1989 m68
*-dual-uniplus* )
1990 machine
=dual opsys
=unipl5-2
1995 machine
=elxsi opsys
=usg5-2
2000 machine
=ns16000 opsys
=umax
2003 ## The GEC 63 - apparently, this port isn't really finished yet.
2004 # I'm sure we finished off the last of the machines, though. -- fx
2006 ## Gould Power Node and NP1
2008 machine
=gould opsys
=bsd4-2
2011 machine
=gould opsys
=bsd4-3
2014 machine
=gould-np1 opsys
=bsd4-3
2017 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2018 ## as far as Emacs is concerned).
2020 # Build needs to be different on 7.0 and later releases
2021 case "`uname -r`" in
2022 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2023 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2025 NON_GNU_CPP
="/lib/cpp"
2027 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2029 machine
=nh3000 opsys
=cxux
2031 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2032 powerpc-harris-powerunix
)
2033 machine
=nh6000 opsys
=powerunix
2034 NON_GNU_CPP
="cc -Xo -E -P"
2036 ## SR2001/SR2201 running HI-UX/MPP
2037 hppa1.1
-hitachi-hiuxmpp* )
2038 machine
=sr2k opsys
=hiuxmpp
2040 hppa1.1
-hitachi-hiuxwe2* )
2041 machine
=sr2k opsys
=hiuxwe2
2044 xps
*-honeywell-sysv* )
2045 machine
=xps100 opsys
=usg5-2
2048 ## HP 9000 series 200 or 300
2050 machine
=hp9000s300 opsys
=bsd4-3
2052 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2058 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2059 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2060 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2061 *) machine
=hp9000s300 opsys
=hpux
;;
2065 ## HP 9000 series 700 and 800, running HP/UX
2067 machine
=hp800 opsys
=hpux
2070 machine
=hp800 opsys
=hpux8
2072 hppa
*-hp-hpux9shr* )
2073 machine
=hp800 opsys
=hpux9shr
2076 machine
=hp800 opsys
=hpux9
2078 hppa
*-hp-hpux10.2
* )
2079 machine
=hp800 opsys
=hpux10-20
2082 machine
=hp800 opsys
=hpux10
2084 hppa
*-hp-hpux1[1-9]* )
2085 machine
=hp800 opsys
=hpux11
2088 hppa
*-*-linux-gnu* )
2089 machine
=hp800 opsys
=gnu-linux
2092 ## HP 9000 series 700 and 800, running HP/UX
2094 ## Cross-compilation? Nah!
2095 case "`uname -r`" in
2096 ## Someone's system reports A.B8.05 for this.
2097 ## I wonder what other possibilities there are.
2098 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2099 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2100 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2101 *) machine
=hp800 opsys
=hpux10
;;
2105 machine
=hp800 opsys
=nextstep
2110 machine
=orion opsys
=bsd4-2
2112 clipper-orion-bsd
* )
2113 machine
=orion105 opsys
=bsd4-2
2117 i
[3456]86-ibm-aix1.1
* )
2118 machine
=ibmps2-aix opsys
=usg5-2-2
2120 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2121 machine
=ibmps2-aix opsys
=usg5-3
2124 machine
=ibm370aix opsys
=usg5-3
2127 machine
=ibms390 opsys
=gnu-linux
2129 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2130 machine
=ibmrs6000 opsys
=aix3-1
2132 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2133 machine
=ibmrs6000 opsys
=aix3-2-5
2135 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2136 machine
=ibmrs6000 opsys
=aix4-1
2138 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2139 machine
=ibmrs6000 opsys
=aix4-2
2141 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2142 machine
=ibmrs6000 opsys
=aix4-2
2144 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2145 machine
=ibmrs6000 opsys
=aix4
2147 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2148 machine
=ibmrs6000 opsys
=aix4-1
2150 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2151 machine
=ibmrs6000 opsys
=aix3-2
2154 machine
=ibmrt opsys
=bsd4-3
2157 machine
=ibmrt opsys
=bsd4-2
2160 machine
=ibmrt opsys
=bsd4-3
2163 machine
=ibmrt opsys
=bsd4-2
2166 machine
=ibmrt opsys
=bsd4-3
2169 machine
=ibmrt opsys
=bsd4-3
2172 machine
=ibmrt-aix opsys
=usg5-2-2
2175 ## Integrated Solutions `Optimum V'
2177 machine
=isi-ov opsys
=bsd4-2
2180 machine
=isi-ov opsys
=bsd4-3
2183 ## Intel 386 machines where we do care about the manufacturer
2184 i
[3456]86-intsys-sysv* )
2185 machine
=is386 opsys
=usg5-2-2
2189 i
[3456]86-prime-sysv* )
2190 machine
=i386 opsys
=usg5-3
2193 ## Sequent Symmetry running Dynix
2194 i
[3456]86-sequent-bsd* )
2195 machine
=symmetry opsys
=bsd4-3
2198 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2199 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2200 machine
=sequent-ptx opsys
=ptx4
2201 NON_GNU_CPP
=/lib
/cpp
2204 ## Sequent Symmetry running DYNIX/ptx
2205 ## Use the old cpp rather than the newer ANSI one.
2206 i
[3456]86-sequent-ptx* )
2207 machine
=sequent-ptx opsys
=ptx
2208 NON_GNU_CPP
="/lib/cpp"
2211 ## ncr machine running svr4.3.
2212 i
[3456]86-ncr-sysv4.3
)
2213 machine
=ncr386 opsys
=usg5-4-3
2216 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2217 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2218 i
[3456]86-ncr-sysv* )
2219 machine
=ncr386 opsys
=usg5-4-2
2222 ## Intel Paragon OSF/1
2224 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2229 machine
=i860 opsys
=usg5-4
2230 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2231 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2234 ## Macintosh PowerPC
2235 powerpc
*-*-linux-gnu* )
2236 machine
=macppc opsys
=gnu-linux
2239 ## Masscomp machines
2240 m68
*-masscomp-rtu* )
2241 machine
=masscomp opsys
=rtu
2244 ## Megatest machines
2245 m68
*-megatest-bsd* )
2246 machine
=mega68 opsys
=bsd4-2
2249 ## Workstations sold by MIPS
2250 ## This is not necessarily all workstations using the MIPS processor -
2251 ## Irises are produced by SGI, and DECstations by DEC.
2253 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2254 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2255 ## it gives for choosing between the alternatives seems to be "Use
2256 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2257 ## the BSD world." I'll assume that these are instructions for
2258 ## handling two odd situations, and that every other situation
2259 ## should use mips.h and usg5-2-2, they being listed first.
2262 ## Fall through to the general code at the bottom to decide on the OS.
2264 mips-mips-riscos4
* )
2265 machine
=mips4 opsys
=bsd4-3
2266 NON_GNU_CC
="cc -systype bsd43"
2267 NON_GNU_CPP
="cc -systype bsd43 -E"
2269 mips-mips-riscos5
* )
2270 machine
=mips4 opsys
=riscos5
2271 NON_GNU_CC
="cc -systype bsd43"
2272 NON_GNU_CPP
="cc -systype bsd43 -E"
2275 machine
=mips opsys
=bsd4-3
2278 machine
=mips opsys
=usg5-2-2
2282 m68
*-next-* | m68k-
*-nextstep* )
2283 machine
=m68k opsys
=nextstep
2286 ## The complete machine from National Semiconductor
2288 machine
=ns32000 opsys
=usg5-2
2292 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2293 machine
=tower32 opsys
=usg5-2-2
2295 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2296 machine
=tower32v3 opsys
=usg5-3
2301 machine
=ews4800 opsys
=ux4800
2304 ## Nixdorf Targon 31
2305 m68
*-nixdorf-sysv* )
2306 machine
=targon31 opsys
=usg5-2-2
2311 machine
=nu opsys
=usg5-2
2316 machine
=plexus opsys
=usg5-2
2320 ## I don't really have any idea what sort of processor the Pyramid has,
2321 ## so I'm assuming it is its own architecture.
2322 pyramid-pyramid-bsd
* )
2323 machine
=pyramid opsys
=bsd4-2
2327 ns32k-sequent-bsd4.2
* )
2328 machine
=sequent opsys
=bsd4-2
2330 ns32k-sequent-bsd4.3
* )
2331 machine
=sequent opsys
=bsd4-3
2335 mips-siemens-sysv
* | mips-sni-sysv
*)
2336 machine
=mips-siemens opsys
=usg5-4
2337 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2338 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2341 ## Silicon Graphics machines
2342 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2344 machine
=irist opsys
=iris3-5
2346 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2347 machine
=irist opsys
=iris3-6
2351 machine
=iris4d opsys
=irix3-3
2354 machine
=iris4d opsys
=irix4-0
2357 machine
=iris4d opsys
=irix6-5
2358 # Without defining _LANGUAGE_C, things get masked out in the headers
2359 # so that, for instance, grepping for `free' in stdlib.h fails and
2360 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2361 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2362 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2365 machine
=iris4d opsys
=irix6-0
2366 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2367 # but presumably it does no harm.
2368 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2369 # -32 probably isn't necessary in later v.6s -- anyone know which?
2370 NON_GCC_TEST_OPTIONS
=-32
2372 mips-sgi-irix5.
[01]* )
2373 machine
=iris4d opsys
=irix5-0
2375 mips-sgi-irix5
* | mips-sgi-irix
* )
2376 machine
=iris4d opsys
=irix5-2
2381 machine
=news opsys
=bsd4-2
2384 machine
=news opsys
=bsd4-3
2386 m68
*-sony-newsos3* | m68
*-sony-news3*)
2387 machine
=news opsys
=bsd4-3
2389 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2390 machine
=news-risc opsys
=bsd4-3
2392 mips-sony-newsos6
* )
2393 machine
=news-r6 opsys
=newsos6
2396 machine
=news-risc opsys
=newsos5
2401 machine
=stride opsys
=usg5-2
2405 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2406 machine
=sparc opsys
=gnu-linux
2409 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2410 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2411 | rs6000-
*-solaris2*)
2412 case "${canonical}" in
2413 m68
*-sunos1* ) machine
=sun1
;;
2414 m68
*-sunos2* ) machine
=sun2
;;
2415 m68
* ) machine
=sun3
;;
2416 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2417 i
[3456]86-*-* ) machine
=intel386
;;
2418 powerpcle
* ) machine
=powerpcle
;;
2419 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2420 sparc
* ) machine
=sparc
;;
2423 case "${canonical}" in
2424 ## The Sun386 didn't get past 4.0.
2425 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2426 *-sunos4.0
* ) opsys
=sunos4-0
;;
2427 *-sunos4.1.
[3-9]*noshare
)
2428 ## This name is sunos413 instead of sunos4-1-3
2429 ## to avoid a file name conflict on MSDOS.
2431 NON_GNU_CPP
=/usr
/lib
/cpp
2432 NON_GCC_TEST_OPTIONS
=-Bstatic
2433 GCC_TEST_OPTIONS
=-static
2435 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2437 NON_GNU_CPP
=/usr
/lib
/cpp
2439 *-sunos4* |
*-sunos )
2441 NON_GCC_TEST_OPTIONS
=-Bstatic
2442 GCC_TEST_OPTIONS
=-static
2444 *-sunos5.3
* |
*-solaris2.3
* )
2446 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2448 *-sunos5.4
* |
*-solaris2.4
* )
2450 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2453 *-sunos5.5
* |
*-solaris2.5
* )
2455 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 *-sunos5.6
* |
*-solaris2.6
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5* |
*-solaris* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2469 ## Watch out for a compiler that we know will not work.
2470 case "${canonical}" in
2471 *-solaris* |
*-sunos5* )
2472 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2473 ## /usr/ucb/cc doesn't work;
2474 ## we should find some other compiler that does work.
2482 machine
=sparc opsys
=nextstep
2486 m68
*-tadpole-sysv* )
2487 machine
=tad68k opsys
=usg5-3
2491 tahoe-tahoe-bsd4.2
* )
2492 machine
=tahoe opsys
=bsd4-2
2494 tahoe-tahoe-bsd4.3
* )
2495 machine
=tahoe opsys
=bsd4-3
2498 ## Tandem Integrity S2
2500 machine
=tandem-s2 opsys
=usg5-3
2504 m88k-tektronix-sysv3
* )
2505 machine
=tekxd88 opsys
=usg5-3
2508 ## Tektronix 16000 box (6130?)
2509 ns16k-tektronix-bsd
* )
2510 machine
=ns16000 opsys
=bsd4-2
2513 ## src/m/tek4300.h hints that this is a m68k machine.
2514 m68
*-tektronix-bsd* )
2515 machine
=tek4300 opsys
=bsd4-3
2519 ## We seem to have lost the machine-description file titan.h!
2521 machine
=titan opsys
=usg5-3
2524 ## Ustation E30 (SS5E)
2525 m68
*-unisys-uniplus* )
2526 machine
=ustation opsystem
=unipl5-2
2532 case "${canonical}" in
2533 *-bsd4.1
* ) opsys
=bsd4-1
;;
2534 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2535 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2536 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2537 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2538 *-vms* ) opsys
=vms
;;
2544 ns16k-whitechapel-
* )
2546 ## We don't know what sort of OS runs on these; we'll let the
2547 ## operating system guessing code below try.
2552 machine
=wicat opsys
=usg5-2
2557 machine
=ia64 opsys
=gnu-linux
2560 ## Intel 386 machines where we don't care about the manufacturer
2563 case "${canonical}" in
2564 *-cygwin ) opsys
=cygwin
;;
2565 *-lynxos* ) opsys
=lynxos
;;
2566 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2567 *-isc2.2
* ) opsys
=isc2-2
;;
2568 *-isc4.0
* ) opsys
=isc4-0
;;
2569 *-isc4.
* ) opsys
=isc4-1
2570 GCC_TEST_OPTIONS
=-posix
2571 NON_GCC_TEST_OPTIONS
=-Xp
2573 *-isc* ) opsys
=isc3-0
;;
2574 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2575 *-esix* ) opsys
=esix
;;
2576 *-xenix* ) opsys
=xenix
;;
2577 *-linux-gnu* ) opsys
=gnu-linux
;;
2578 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2579 *-sco3.2v5
* ) opsys
=sco5
2580 NON_GNU_CPP
=/lib
/cpp
2581 # Prevent -belf from being passed to $CPP.
2582 # /lib/cpp does not accept it.
2583 OVERRIDE_CPPFLAGS
=" "
2585 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2586 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2587 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2588 *-386bsd* ) opsys
=386bsd
;;
2589 *-nextstep* ) opsys
=nextstep
;;
2590 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2594 ## m68k Linux-based GNU system
2596 machine
=m68k opsys
=gnu-linux
2599 ## Mips Linux-based GNU system
2600 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2601 machine
=mips opsys
=gnu-linux
2605 sparc-fujitsu-sysv4
* )
2606 machine
=sparc opsys
=uxpds
2607 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2612 f301-fujitsu-uxpv4.1
)
2613 machine
=f301 opsys
=uxpv
2616 ## Darwin / Mac OS X
2617 powerpc-apple-darwin
* )
2618 machine
=powermac opsys
=darwin
2619 # Define CPP as follows to make autoconf work correctly.
2620 CPP
="${CC-cc} -E -no-cpp-precomp"
2621 # Use fink packages if available.
2622 if test -d /sw
/include
&& test -d /sw
/lib
; then
2623 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2624 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2625 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2629 ## AMD x86-64 Linux-based GNU system
2630 x86_64-
*-linux-gnu* )
2631 machine
=amdx86-64 opsys
=gnu-linux
2639 ### If the code above didn't choose an operating system, just choose
2640 ### an operating system based on the configuration name. You really
2641 ### only want to use this when you have no idea what the right
2642 ### operating system is; if you know what operating systems a machine
2643 ### runs, it's cleaner to make it explicit in the case statement
2645 if test x
"${opsys}" = x
; then
2646 case "${canonical}" in
2647 *-gnu* ) opsys
=gnu
;;
2648 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2649 *-bsd4.2
) opsys
=bsd4-2
;;
2650 *-bsd4.3
) opsys
=bsd4-3
;;
2651 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2652 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2653 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2654 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2655 *-sysv4.2uw
* ) opsys
=unixware
;;
2656 *-sysv5uw* ) opsys
=unixware
;;
2657 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2658 *-sysv4.1
* |
*-sysvr4.1
* )
2659 NON_GNU_CPP
=/usr
/lib
/cpp
2661 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2662 if [ x
$NON_GNU_CPP = x
]; then
2663 if [ -f /usr
/ccs
/lib
/cpp
]; then
2664 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2666 NON_GNU_CPP
=/lib
/cpp
2670 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2679 if test $unported = yes; then
2680 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2681 Check \`etc/MACHINES' for recognized configuration names." >&5
2682 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2683 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2684 { (exit 1); exit 1; }; }
2687 machfile
="m/${machine}.h"
2688 opsysfile
="s/${opsys}.h"
2691 #### Choose a compiler.
2692 test -n "$CC" && cc_specified
=yes
2694 # Save the value of CFLAGS that the user specified.
2695 SPECIFIED_CFLAGS
="$CFLAGS"
2698 "yes" ) CC
="gcc" GCC
=yes ;;
2699 "no" ) : ${CC=cc} ;;
2703 ac_cpp
='$CPP $CPPFLAGS'
2704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2709 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC
="$CC" # Let the user override the test.
2718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir
=.
2723 for ac_exec_ext
in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2744 if test -z "$ac_cv_prog_CC"; then
2746 # Extract the first word of "gcc", so it can be a program name with args.
2747 set dummy gcc
; ac_word
=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir
=.
2761 for ac_exec_ext
in '' $ac_executable_extensions; do
2762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_CC
="gcc"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775 echo "${ECHO_T}$ac_ct_CC" >&6
2777 echo "$as_me:$LINENO: result: no" >&5
2778 echo "${ECHO_T}no" >&6
2786 if test -z "$CC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2789 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2790 echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC
="$CC" # Let the user override the test.
2798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir
=.
2803 for ac_exec_ext
in '' $ac_executable_extensions; do
2804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$CC"; then
2816 echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2824 if test -z "$ac_cv_prog_CC"; then
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc
; ac_word
=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir
=.
2841 for ac_exec_ext
in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_ac_ct_CC
="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2855 echo "${ECHO_T}$ac_ct_CC" >&6
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc
; ac_word
=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC
="$CC" # Let the user override the test.
2879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir
=.
2884 for ac_exec_ext
in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected
=yes
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test $ac_prog_rejected = yes; then
2898 # We found a bogon in the path, so make sure we never use it.
2899 set dummy
$ac_cv_prog_CC
2901 if test $# != 0; then
2902 # We chose a different compiler from the bogus one.
2903 # However, it has the same basename, so the bogon will be chosen
2904 # first if we set CC to just the basename; use the full file name.
2906 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2912 if test -n "$CC"; then
2913 echo "$as_me:$LINENO: result: $CC" >&5
2914 echo "${ECHO_T}$CC" >&6
2916 echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC
="$CC" # Let the user override the test.
2935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2939 test -z "$as_dir" && as_dir
=.
2940 for ac_exec_ext
in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 if test -n "$CC"; then
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2960 test -n "$CC" && break
2963 if test -z "$CC"; then
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy
$ac_prog; ac_word
=$2
2969 echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir
=.
2982 for ac_exec_ext
in '' $ac_executable_extensions; do
2983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC
="$ac_prog"
2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2996 echo "${ECHO_T}$ac_ct_CC" >&6
2998 echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3002 test -n "$ac_ct_CC" && break
3011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3017 # Provide some information about the compiler.
3018 echo "$as_me:$LINENO:" \
3019 "checking for C compiler version" >&5
3020 ac_compiler
=`set X $ac_compile; echo $2`
3021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3022 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3027 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3032 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }
3037 cat >conftest.
$ac_ext <<_ACEOF
3040 cat confdefs.h
>>conftest.
$ac_ext
3041 cat >>conftest.
$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3052 ac_clean_files_save
=$ac_clean_files
3053 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3054 # Try to create an executable without -o first, disregard a.out.
3055 # It will help us diagnose broken compilers, and finding out an intuition
3057 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3058 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3059 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3061 (eval $ac_link_default) 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # Find the output, starting from the most likely. This scheme is
3066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3069 # Be careful to initialize this variable, since it used to be cached.
3070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3072 # b.out is created by i960 compilers.
3073 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3075 test -f "$ac_file" ||
continue
3077 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3080 # This is the source file.
3083 # We found the default executable, but exeext='' is most
3087 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 # FIXME: I believe we export ac_cv_exeext for Libtool,
3089 # but it would be cool to find out if it's true. Does anybody
3090 # maintain Libtool? --akim.
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.
$ac_ext >&5
3101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C compiler cannot create executables
3104 See \`config.log' for more details." >&2;}
3105 { (exit 77); exit 77; }; }
3108 ac_exeext
=$ac_cv_exeext
3109 echo "$as_me:$LINENO: result: $ac_file" >&5
3110 echo "${ECHO_T}$ac_file" >&6
3112 # Check the compiler produces executables we can run. If not, either
3113 # the compiler is broken, or we cross compile.
3114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3117 # If not cross compiling, check that we can run a simple program.
3118 if test "$cross_compiling" != yes; then
3119 if { ac_try
='./$ac_file'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3127 if test "$cross_compiling" = maybe
; then
3130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details." >&5
3133 echo "$as_me: error: cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3143 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3144 ac_clean_files
=$ac_clean_files_save
3145 # Check the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3150 echo "${ECHO_T}$cross_compiling" >&6
3152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3155 (eval $ac_link) 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3163 for ac_file
in conftest.exe conftest conftest.
*; do
3164 test -f "$ac_file" ||
continue
3166 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3167 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3181 rm -f conftest
$ac_cv_exeext
3182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3183 echo "${ECHO_T}$ac_cv_exeext" >&6
3185 rm -f conftest.
$ac_ext
3186 EXEEXT
=$ac_cv_exeext
3188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3190 if test "${ac_cv_objext+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 cat >conftest.
$ac_ext <<_ACEOF
3196 cat confdefs.h
>>conftest.
$ac_ext
3197 cat >>conftest.
$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3208 rm -f conftest.o conftest.obj
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3216 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3217 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.
$ac_ext >&5
3225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3232 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3235 echo "${ECHO_T}$ac_cv_objext" >&6
3236 OBJEXT
=$ac_cv_objext
3238 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.
$ac_ext <<_ACEOF
3246 cat confdefs.h
>>conftest.
$ac_ext
3247 cat >>conftest.
$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3261 rm -f conftest.
$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3265 grep -v '^ *+' conftest.er1
>conftest.err
3267 cat conftest.err
>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try
='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.
$ac_ext >&5
3289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3290 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3295 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3296 ac_test_CFLAGS
=${CFLAGS+set}
3297 ac_save_CFLAGS
=$CFLAGS
3299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3301 if test "${ac_cv_prog_cc_g+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 cat >conftest.
$ac_ext <<_ACEOF
3307 cat confdefs.h
>>conftest.
$ac_ext
3308 cat >>conftest.
$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3319 rm -f conftest.
$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3323 grep -v '^ *+' conftest.er1
>conftest.err
3325 cat conftest.err
>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try
='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.
$ac_ext >&5
3347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS
=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3360 if test "$GCC" = yes; then
3366 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3367 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3368 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 ac_cv_prog_cc_stdc
=no
3373 cat >conftest.
$ac_ext <<_ACEOF
3376 cat confdefs.h
>>conftest.
$ac_ext
3377 cat >>conftest.
$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3397 s = g (p, va_arg (v,int));
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std1 is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std1. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411 int test (int i, double x);
3412 struct s1 {int (*f) (int a);};
3413 struct s2 {int (*f) (double a);};
3414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 # Don't try gcc -ansi; that turns off useful extensions and
3426 # breaks some systems' header files.
3427 # AIX -qlanglvl=ansi
3428 # Ultrix and OSF/1 -std1
3429 # HP-UX 10.20 and later -Ae
3430 # HP-UX older versions -Aa -D_HPUX_SOURCE
3431 # SVR4 -Xc -D__EXTENSIONS__
3432 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3434 CC
="$ac_save_CC $ac_arg"
3435 rm -f conftest.
$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1
>conftest.err
3441 cat conftest.err
>&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try
='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_prog_cc_stdc
=$ac_arg
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.
$ac_ext >&5
3463 rm -f conftest.err conftest.
$ac_objext
3465 rm -f conftest.
$ac_ext conftest.
$ac_objext
3470 case "x$ac_cv_prog_cc_stdc" in
3472 echo "$as_me:$LINENO: result: none needed" >&5
3473 echo "${ECHO_T}none needed" >&6 ;;
3475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3477 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3480 # Some people use a C++ compiler to compile C. Since we use `exit',
3481 # in C++ we need to declare it. In case someone uses the same compiler
3482 # for both compiling C and C++ we need to have the C++ compiler decide
3483 # the declaration of exit, since it's the most demanding environment.
3484 cat >conftest.
$ac_ext <<_ACEOF
3489 rm -f conftest.
$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3493 grep -v '^ *+' conftest.er1
>conftest.err
3495 cat conftest.err
>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try
='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 for ac_declaration
in \
3512 'extern "C" void std::exit (int) throw (); using std::exit;' \
3513 'extern "C" void std::exit (int); using std::exit;' \
3514 'extern "C" void exit (int) throw ();' \
3515 'extern "C" void exit (int);' \
3518 cat >conftest.
$ac_ext <<_ACEOF
3521 cat confdefs.h
>>conftest.
$ac_ext
3522 cat >>conftest.
$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3534 rm -f conftest.
$ac_objext
3535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3536 (eval $ac_compile) 2>conftest.er1
3538 grep -v '^ *+' conftest.er1
>conftest.err
3540 cat conftest.err
>&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try
='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.
$ac_ext >&5
3562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3563 cat >conftest.
$ac_ext <<_ACEOF
3566 cat confdefs.h
>>conftest.
$ac_ext
3567 cat >>conftest.
$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3578 rm -f conftest.
$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3582 grep -v '^ *+' conftest.er1
>conftest.err
3584 cat conftest.err
>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3608 if test -n "$ac_declaration"; then
3609 echo '#ifdef __cplusplus' >>confdefs.h
3610 echo $ac_declaration >>confdefs.h
3611 echo '#endif' >>confdefs.h
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.
$ac_ext >&5
3619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3621 ac_cpp
='$CPP $CPPFLAGS'
3622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3632 #### Some systems specify a CPP to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3640 #### Some systems specify a CC to use unless we are using GCC.
3641 #### Now that we know whether we are using GCC, we can decide whether
3642 #### to use that one.
3643 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3644 test x
$cc_specified != xyes
3649 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3651 CC
="$CC $GCC_TEST_OPTIONS"
3654 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3656 CC
="$CC $NON_GCC_TEST_OPTIONS"
3659 #### Some other nice autoconf tests.
3661 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3664 if test "$LN_S" = "ln -s"; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6
3668 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3669 echo "${ECHO_T}no, using $LN_S" >&6
3673 ac_cpp
='$CPP $CPPFLAGS'
3674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3677 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679 # On Suns, sometimes $CPP names a directory.
3680 if test -n "$CPP" && test -d "$CPP"; then
3683 if test -z "$CPP"; then
3684 if test "${ac_cv_prog_CPP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 # Double quotes because CPP needs to be expanded
3688 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3691 for ac_c_preproc_warn_flag
in '' yes
3693 # Use a header file that comes with gcc, so configuring glibc
3694 # with a fresh cross-compiler works.
3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 # <limits.h> exists even on freestanding compilers.
3697 # On the NeXT, cc -E runs the code through the compiler's parser,
3698 # not just through cpp. "Syntax error" is here to catch this case.
3699 cat >conftest.
$ac_ext <<_ACEOF
3702 cat confdefs.h
>>conftest.
$ac_ext
3703 cat >>conftest.
$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3706 # include <limits.h>
3708 # include <assert.h>
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3715 grep -v '^ *+' conftest.er1
>conftest.err
3717 cat conftest.err
>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev
/null
; then
3720 if test -s conftest.err
; then
3721 ac_cpp_err
=$ac_c_preproc_warn_flag
3722 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3729 if test -z "$ac_cpp_err"; then
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 # Broken: fails on valid input.
3738 rm -f conftest.err conftest.
$ac_ext
3740 # OK, works on sane cases. Now check whether non-existent headers
3741 # can be detected and how.
3742 cat >conftest.
$ac_ext <<_ACEOF
3745 cat confdefs.h
>>conftest.
$ac_ext
3746 cat >>conftest.
$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3753 grep -v '^ *+' conftest.er1
>conftest.err
3755 cat conftest.err
>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev
/null
; then
3758 if test -s conftest.err
; then
3759 ac_cpp_err
=$ac_c_preproc_warn_flag
3760 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3767 if test -z "$ac_cpp_err"; then
3768 # Broken: success on invalid input.
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.
$ac_ext >&5
3774 # Passes both tests.
3778 rm -f conftest.err conftest.
$ac_ext
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.err conftest.
$ac_ext
3783 if $ac_preproc_ok; then
3795 echo "$as_me:$LINENO: result: $CPP" >&5
3796 echo "${ECHO_T}$CPP" >&6
3798 for ac_c_preproc_warn_flag
in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat >conftest.
$ac_ext <<_ACEOF
3809 cat confdefs.h
>>conftest.
$ac_ext
3810 cat >>conftest.
$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3813 # include <limits.h>
3815 # include <assert.h>
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1
>conftest.err
3824 cat conftest.err
>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev
/null
; then
3827 if test -s conftest.err
; then
3828 ac_cpp_err
=$ac_c_preproc_warn_flag
3829 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3836 if test -z "$ac_cpp_err"; then
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.
$ac_ext >&5
3842 # Broken: fails on valid input.
3845 rm -f conftest.err conftest.
$ac_ext
3847 # OK, works on sane cases. Now check whether non-existent headers
3848 # can be detected and how.
3849 cat >conftest.
$ac_ext <<_ACEOF
3852 cat confdefs.h
>>conftest.
$ac_ext
3853 cat >>conftest.
$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1
>conftest.err
3862 cat conftest.err
>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev
/null
; then
3865 if test -s conftest.err
; then
3866 ac_cpp_err
=$ac_c_preproc_warn_flag
3867 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3874 if test -z "$ac_cpp_err"; then
3875 # Broken: success on invalid input.
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.
$ac_ext >&5
3881 # Passes both tests.
3885 rm -f conftest.err conftest.
$ac_ext
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.err conftest.
$ac_ext
3890 if $ac_preproc_ok; then
3893 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&5
3895 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details." >&2;}
3897 { (exit 1); exit 1; }; }
3901 ac_cpp
='$CPP $CPPFLAGS'
3902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3906 # Find a good install program. We prefer a C program (faster),
3907 # so one script is as good as another. But avoid the broken or
3908 # incompatible versions:
3909 # SysV /etc/install, /usr/sbin/install
3910 # SunOS /usr/etc/install
3911 # IRIX /sbin/install
3913 # AmigaOS /C/install, which installs bootblocks on floppy discs
3914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3917 # OS/2's system install, which has a completely different semantic
3918 # ./install, which can be erroneously created by make from ./install.sh.
3919 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3920 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3921 if test -z "$INSTALL"; then
3922 if test "${ac_cv_path_install+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir
=.
3930 # Account for people who put trailing slashes in PATH elements.
3932 .
/ | .
// |
/cC
/* | \
3933 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3934 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3937 # OSF1 and SCO ODT 3.0 have their own names for install.
3938 # Don't use installbsd from OSF since it installs stuff as root
3940 for ac_prog
in ginstall scoinst
install; do
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3943 if test $ac_prog = install &&
3944 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3945 # AIX install. It has an incompatible calling convention.
3947 elif test $ac_prog = install &&
3948 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3949 # program-specific install script used by HP pwplus--don't use.
3952 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3964 if test "${ac_cv_path_install+set}" = set; then
3965 INSTALL
=$ac_cv_path_install
3967 # As a last resort, use the slow shell script. We don't cache a
3968 # path for INSTALL within a source directory, because that will
3969 # break other packages using the cache if that directory is
3970 # removed, or if the path is relative.
3971 INSTALL
=$ac_install_sh
3974 echo "$as_me:$LINENO: result: $INSTALL" >&5
3975 echo "${ECHO_T}$INSTALL" >&6
3977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3978 # It thinks the first close brace ends the variable substitution.
3979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3983 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3985 if test "x$RANLIB" = x
; then
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3988 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_RANLIB+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 if test -n "$RANLIB"; then
3995 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir
=.
4002 for ac_exec_ext
in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 RANLIB
=$ac_cv_prog_RANLIB
4014 if test -n "$RANLIB"; then
4015 echo "$as_me:$LINENO: result: $RANLIB" >&5
4016 echo "${ECHO_T}$RANLIB" >&6
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4023 if test -z "$ac_cv_prog_RANLIB"; then
4024 ac_ct_RANLIB
=$RANLIB
4025 # Extract the first word of "ranlib", so it can be a program name with args.
4026 set dummy ranlib
; ac_word
=$2
4027 echo "$as_me:$LINENO: checking for $ac_word" >&5
4028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 if test -n "$ac_ct_RANLIB"; then
4033 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir
=.
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4052 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4053 if test -n "$ac_ct_RANLIB"; then
4054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4057 echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4061 RANLIB
=$ac_ct_RANLIB
4063 RANLIB
="$ac_cv_prog_RANLIB"
4067 # Extract the first word of "install-info", so it can be a program name with args.
4068 set dummy install-info
; ac_word
=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 case $INSTALL_INFO in
4076 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir
=.
4084 for ac_exec_ext
in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4098 if test -n "$INSTALL_INFO"; then
4099 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4100 echo "${ECHO_T}$INSTALL_INFO" >&6
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4106 # Extract the first word of "install-info", so it can be a program name with args.
4107 set dummy install-info
; ac_word
=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 case $INSTALL_INFO in
4115 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4119 for as_dir
in /usr
/sbin
4122 test -z "$as_dir" && as_dir
=.
4123 for ac_exec_ext
in '' $ac_executable_extensions; do
4124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4137 if test -n "$INSTALL_INFO"; then
4138 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4139 echo "${ECHO_T}$INSTALL_INFO" >&6
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4145 # Extract the first word of "install-info", so it can be a program name with args.
4146 set dummy install-info
; ac_word
=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 case $INSTALL_INFO in
4154 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir
=.
4162 for ac_exec_ext
in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4175 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4177 if test -n "$INSTALL_INFO"; then
4178 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4179 echo "${ECHO_T}$INSTALL_INFO" >&6
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4187 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4189 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4192 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4194 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4198 late_LDFLAGS
=$LDFLAGS
4199 if test "$GCC" = yes; then
4200 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4202 LDFLAGS
="$LDFLAGS -znocombreloc"
4205 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4206 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4208 cat >conftest.
$ac_ext <<_ACEOF
4211 rm -f conftest.
$ac_objext conftest
$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>conftest.er1
4215 grep -v '^ *+' conftest.er1
>conftest.err
4217 cat conftest.err
>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try
='test -s conftest$ac_exeext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4238 LDFLAGS
=$late_LDFLAGS
4239 echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4242 rm -f conftest.err conftest.
$ac_objext \
4243 conftest
$ac_exeext conftest.
$ac_ext
4246 echo "$as_me:$LINENO: checking for egrep" >&5
4247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4248 if test "${ac_cv_prog_egrep+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4252 then ac_cv_prog_egrep
='grep -E'
4253 else ac_cv_prog_egrep
='egrep'
4256 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4258 EGREP
=$ac_cv_prog_egrep
4262 echo "$as_me:$LINENO: checking for AIX" >&5
4263 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4264 cat >conftest.
$ac_ext <<_ACEOF
4267 cat confdefs.h
>>conftest.
$ac_ext
4268 cat >>conftest.
$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "yes" >/dev
/null
2>&1; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6
4279 cat >>confdefs.h
<<\_ACEOF
4280 #define _ALL_SOURCE 1
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4292 #### Extract some information from the operating system and machine files.
4294 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4295 - which libraries the lib-src programs will want, and
4296 - whether the GNU malloc routines are usable..." >&5
4297 echo "$as_me: checking the machine- and system-dependent files to find out
4298 - which libraries the lib-src programs will want, and
4299 - whether the GNU malloc routines are usable..." >&6;}
4301 ### First figure out CFLAGS (which we use for running the compiler here)
4302 ### and REAL_CFLAGS (which we use for real compilation).
4303 ### The two are the same except on a few systems, where they are made
4304 ### different to work around various lossages. For example,
4305 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4306 ### as implying static linking.
4308 ### If the CFLAGS env var is specified, we use that value
4309 ### instead of the default.
4311 ### It's not important that this name contain the PID; you can't run
4312 ### two configures in the same directory and have anything work
4314 tempcname
="conftest.c"
4317 #include "'${srcdir}'/src/'${opsysfile}'"
4318 #include "'${srcdir}'/src/'${machfile}'"
4319 #ifndef LIBS_MACHINE
4320 #define LIBS_MACHINE
4325 #ifndef C_SWITCH_SYSTEM
4326 #define C_SWITCH_SYSTEM
4328 #ifndef C_SWITCH_MACHINE
4329 #define C_SWITCH_MACHINE
4331 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4332 configure___ c_switch_system=C_SWITCH_SYSTEM
4333 configure___ c_switch_machine=C_SWITCH_MACHINE
4336 #define LIB_X11_LIB -lX11
4339 #ifndef LIBX11_MACHINE
4340 #define LIBX11_MACHINE
4343 #ifndef LIBX11_SYSTEM
4344 #define LIBX11_SYSTEM
4346 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4349 configure___ unexec=UNEXEC
4351 configure___ unexec=unexec.o
4354 #ifdef SYSTEM_MALLOC
4355 configure___ system_malloc=yes
4357 configure___ system_malloc=no
4360 #ifdef USE_MMAP_FOR_BUFFERS
4361 configure___ use_mmap_for_buffers=yes
4363 configure___ use_mmap_for_buffers=no
4366 #ifndef C_DEBUG_SWITCH
4367 #define C_DEBUG_SWITCH -g
4370 #ifndef C_OPTIMIZE_SWITCH
4372 #define C_OPTIMIZE_SWITCH -O2
4374 #define C_OPTIMIZE_SWITCH -O
4378 #ifndef LD_SWITCH_MACHINE
4379 #define LD_SWITCH_MACHINE
4382 #ifndef LD_SWITCH_SYSTEM
4383 #define LD_SWITCH_SYSTEM
4386 #ifndef LD_SWITCH_X_SITE_AUX
4387 #define LD_SWITCH_X_SITE_AUX
4390 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4391 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4393 #ifdef THIS_IS_CONFIGURE
4395 /* Get the CFLAGS for tests in configure. */
4397 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4399 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4402 #else /* not THIS_IS_CONFIGURE */
4404 /* Get the CFLAGS for real compilation. */
4406 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4408 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4411 #endif /* not THIS_IS_CONFIGURE */
4414 # The value of CPP is a quoted variable reference, so we need to do this
4415 # to get its actual value...
4416 CPP
=`eval "echo $CPP"`
4417 eval `${CPP} -Isrc ${tempcname} \
4418 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4419 if test "x$SPECIFIED_CFLAGS" = x
; then
4420 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4423 REAL_CFLAGS
="$CFLAGS"
4427 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4429 ### Make sure subsequent tests use flags consistent with the build flags.
4431 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4432 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4434 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4440 cat >>confdefs.h
<<\_ACEOF
4441 #define _GNU_SOURCE 1
4446 # Check whether --enable-largefile or --disable-largefile was given.
4447 if test "${enable_largefile+set}" = set; then
4448 enableval
="$enable_largefile"
4451 if test "$enable_largefile" != no
; then
4453 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4454 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4455 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 ac_cv_sys_largefile_CC
=no
4459 if test "$GCC" != yes; then
4462 # IRIX 6.2 and later do not support large files by default,
4463 # so use the C compiler's -n32 option if that helps.
4464 cat >conftest.
$ac_ext <<_ACEOF
4467 cat confdefs.h
>>conftest.
$ac_ext
4468 cat >>conftest.
$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4471 /* Check that off_t can represent 2**63 - 1 correctly.
4472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4473 since some C++ compilers masquerading as C compilers
4474 incorrectly reject 9223372036854775807. */
4475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4477 && LARGE_OFF_T % 2147483647 == 1)
4487 rm -f conftest.
$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1
>conftest.err
4493 cat conftest.err
>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try
='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.
$ac_ext >&5
4514 rm -f conftest.err conftest.
$ac_objext
4516 rm -f conftest.
$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4520 grep -v '^ *+' conftest.er1
>conftest.err
4522 cat conftest.err
>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try
='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_sys_largefile_CC
=' -n32'; break
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4543 rm -f conftest.err conftest.
$ac_objext
4547 rm -f conftest.
$ac_ext
4550 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4551 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4552 if test "$ac_cv_sys_largefile_CC" != no
; then
4553 CC
=$CC$ac_cv_sys_largefile_CC
4556 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4557 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4558 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_sys_file_offset_bits
=no
4563 cat >conftest.
$ac_ext <<_ACEOF
4566 cat confdefs.h
>>conftest.
$ac_ext
4567 cat >>conftest.
$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 /* Check that off_t can represent 2**63 - 1 correctly.
4571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4572 since some C++ compilers masquerading as C compilers
4573 incorrectly reject 9223372036854775807. */
4574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4576 && LARGE_OFF_T % 2147483647 == 1)
4586 rm -f conftest.
$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4590 grep -v '^ *+' conftest.er1
>conftest.err
4592 cat conftest.err
>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try
='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.
$ac_ext >&5
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #define _FILE_OFFSET_BITS 64
4621 #include <sys/types.h>
4622 /* Check that off_t can represent 2**63 - 1 correctly.
4623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4624 since some C++ compilers masquerading as C compilers
4625 incorrectly reject 9223372036854775807. */
4626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4628 && LARGE_OFF_T % 2147483647 == 1)
4638 rm -f conftest.
$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4642 grep -v '^ *+' conftest.er1
>conftest.err
4644 cat conftest.err
>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try
='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_sys_file_offset_bits
=64; break
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.
$ac_ext >&5
4665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4669 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4670 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4671 if test "$ac_cv_sys_file_offset_bits" != no
; then
4673 cat >>confdefs.h
<<_ACEOF
4674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4679 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4680 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4681 if test "${ac_cv_sys_large_files+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 ac_cv_sys_large_files
=no
4686 cat >conftest.
$ac_ext <<_ACEOF
4689 cat confdefs.h
>>conftest.
$ac_ext
4690 cat >>conftest.
$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #include <sys/types.h>
4693 /* Check that off_t can represent 2**63 - 1 correctly.
4694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4695 since some C++ compilers masquerading as C compilers
4696 incorrectly reject 9223372036854775807. */
4697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4699 && LARGE_OFF_T % 2147483647 == 1)
4709 rm -f conftest.
$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4713 grep -v '^ *+' conftest.er1
>conftest.err
4715 cat conftest.err
>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try
='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.
$ac_ext >&5
4736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4737 cat >conftest.
$ac_ext <<_ACEOF
4740 cat confdefs.h
>>conftest.
$ac_ext
4741 cat >>conftest.
$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #define _LARGE_FILES 1
4744 #include <sys/types.h>
4745 /* Check that off_t can represent 2**63 - 1 correctly.
4746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4747 since some C++ compilers masquerading as C compilers
4748 incorrectly reject 9223372036854775807. */
4749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4751 && LARGE_OFF_T % 2147483647 == 1)
4761 rm -f conftest.
$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4765 grep -v '^ *+' conftest.er1
>conftest.err
4767 cat conftest.err
>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try
='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_sys_large_files
=1; break
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4792 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4793 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4794 if test "$ac_cv_sys_large_files" != no
; then
4796 cat >>confdefs.h
<<_ACEOF
4797 #define _LARGE_FILES $ac_cv_sys_large_files
4805 if test "${with_sound}" != "no"; then
4806 # Sound support for GNU/Linux and the free BSDs.
4807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4809 if test "${ac_cv_header_stdc+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4831 rm -f conftest.
$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1
>conftest.err
4837 cat conftest.err
>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try
='test -s conftest.$ac_objext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_header_stdc
=yes
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.
$ac_ext >&5
4857 ac_cv_header_stdc
=no
4859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4861 if test $ac_cv_header_stdc = yes; then
4862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4863 cat >conftest.
$ac_ext <<_ACEOF
4866 cat confdefs.h
>>conftest.
$ac_ext
4867 cat >>conftest.
$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4873 $EGREP "memchr" >/dev
/null
2>&1; then
4876 ac_cv_header_stdc
=no
4882 if test $ac_cv_header_stdc = yes; then
4883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4884 cat >conftest.
$ac_ext <<_ACEOF
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "free" >/dev
/null
2>&1; then
4897 ac_cv_header_stdc
=no
4903 if test $ac_cv_header_stdc = yes; then
4904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4905 if test "$cross_compiling" = yes; then
4908 cat >conftest.
$ac_ext <<_ACEOF
4911 cat confdefs.h
>>conftest.
$ac_ext
4912 cat >>conftest.
$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4938 rm -f conftest
$ac_exeext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4951 echo "$as_me: program exited with status $ac_status" >&5
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.
$ac_ext >&5
4956 ac_cv_header_stdc
=no
4958 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4964 if test $ac_cv_header_stdc = yes; then
4966 cat >>confdefs.h
<<\_ACEOF
4967 #define STDC_HEADERS 1
4972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4982 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4983 inttypes.h stdint.h unistd.h
4985 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 cat >conftest.
$ac_ext <<_ACEOF
4994 cat confdefs.h
>>conftest.
$ac_ext
4995 cat >>conftest.
$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 $ac_includes_default
4999 #include <$ac_header>
5001 rm -f conftest.
$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1
>conftest.err
5007 cat conftest.err
>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try
='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 eval "$as_ac_Header=yes"
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.
$ac_ext >&5
5027 eval "$as_ac_Header=no"
5029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034 cat >>confdefs.h
<<_ACEOF
5035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5046 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5048 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo "$as_me:$LINENO: checking for $ac_header" >&5
5051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5058 # Is the header compilable?
5059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5061 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5068 #include <$ac_header>
5070 rm -f conftest.
$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1
>conftest.err
5076 cat conftest.err
>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try
='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_header_compiler
=yes
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.
$ac_ext >&5
5096 ac_header_compiler
=no
5098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100 echo "${ECHO_T}$ac_header_compiler" >&6
5102 # Is the header present?
5103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5105 cat >conftest.
$ac_ext <<_ACEOF
5108 cat confdefs.h
>>conftest.
$ac_ext
5109 cat >>conftest.
$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <$ac_header>
5113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5116 grep -v '^ *+' conftest.er1
>conftest.err
5118 cat conftest.err
>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev
/null
; then
5121 if test -s conftest.err
; then
5122 ac_cpp_err
=$ac_c_preproc_warn_flag
5123 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5130 if test -z "$ac_cpp_err"; then
5131 ac_header_preproc
=yes
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.
$ac_ext >&5
5136 ac_header_preproc
=no
5138 rm -f conftest.err conftest.
$ac_ext
5139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5140 echo "${ECHO_T}$ac_header_preproc" >&6
5142 # So? What about this header?
5143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5149 ac_header_preproc
=yes
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5166 ## ------------------------------------------ ##
5167 ## Report this to the AC_PACKAGE_NAME lists. ##
5168 ## ------------------------------------------ ##
5171 sed "s/^/$as_me: WARNING: /" >&2
5174 echo "$as_me:$LINENO: checking for $ac_header" >&5
5175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 eval "$as_ac_Header=\$ac_header_preproc"
5181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h
<<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5194 # Emulation library used on NetBSD.
5195 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5196 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5197 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 ac_check_lib_save_LIBS
=$LIBS
5201 LIBS
="-lossaudio $LIBS"
5202 cat >conftest.
$ac_ext <<_ACEOF
5205 cat confdefs.h
>>conftest.
$ac_ext
5206 cat >>conftest.
$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5209 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5224 rm -f conftest.
$ac_objext conftest
$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>conftest.er1
5228 grep -v '^ *+' conftest.er1
>conftest.err
5230 cat conftest.err
>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 ac_cv_lib_ossaudio__oss_ioctl
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5254 LIBS
=$ac_check_lib_save_LIBS
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5292 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5293 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5294 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5295 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5298 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo "$as_me:$LINENO: checking for $ac_header" >&5
5301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5308 # Is the header compilable?
5309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5311 cat >conftest.
$ac_ext <<_ACEOF
5314 cat confdefs.h
>>conftest.
$ac_ext
5315 cat >>conftest.
$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 $ac_includes_default
5318 #include <$ac_header>
5320 rm -f conftest.
$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1
>conftest.err
5326 cat conftest.err
>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try
='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_header_compiler
=yes
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.
$ac_ext >&5
5346 ac_header_compiler
=no
5348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 echo "${ECHO_T}$ac_header_compiler" >&6
5352 # Is the header present?
5353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5355 cat >conftest.
$ac_ext <<_ACEOF
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <$ac_header>
5363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5366 grep -v '^ *+' conftest.er1
>conftest.err
5368 cat conftest.err
>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev
/null
; then
5371 if test -s conftest.err
; then
5372 ac_cpp_err
=$ac_c_preproc_warn_flag
5373 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5380 if test -z "$ac_cpp_err"; then
5381 ac_header_preproc
=yes
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.
$ac_ext >&5
5386 ac_header_preproc
=no
5388 rm -f conftest.err conftest.
$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5399 ac_header_preproc
=yes
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5416 ## ------------------------------------------ ##
5417 ## Report this to the AC_PACKAGE_NAME lists. ##
5418 ## ------------------------------------------ ##
5421 sed "s/^/$as_me: WARNING: /" >&2
5424 echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 eval "$as_ac_Header=\$ac_header_preproc"
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5436 cat >>confdefs.h
<<_ACEOF
5437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5446 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5447 cat >conftest.
$ac_ext <<_ACEOF
5450 cat confdefs.h
>>conftest.
$ac_ext
5451 cat >>conftest.
$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <sys/personality.h>
5457 personality (PER_LINUX32)
5462 rm -f conftest.
$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5466 grep -v '^ *+' conftest.er1
>conftest.err
5468 cat conftest.err
>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try
='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 emacs_cv_personality_linux32
=yes
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.
$ac_ext >&5
5488 emacs_cv_personality_linux32
=no
5490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5491 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5492 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5494 if test $emacs_cv_personality_linux32 = yes; then
5496 cat >>confdefs.h
<<\_ACEOF
5497 #define HAVE_PERSONALITY_LINUX32 1
5503 for ac_header
in term.h
5505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506 echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <$ac_header>
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5522 grep -v '^ *+' conftest.er1
>conftest.err
5524 cat conftest.err
>&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev
/null
; then
5527 if test -s conftest.err
; then
5528 ac_cpp_err
=$ac_c_preproc_warn_flag
5529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5536 if test -z "$ac_cpp_err"; then
5537 eval "$as_ac_Header=yes"
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.
$ac_ext >&5
5542 eval "$as_ac_Header=no"
5544 rm -f conftest.err conftest.
$ac_ext
5546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549 cat >>confdefs.h
<<_ACEOF
5550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5559 if test "${ac_cv_header_stdc+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.
$ac_ext <<_ACEOF
5565 cat confdefs.h
>>conftest.
$ac_ext
5566 cat >>conftest.
$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5581 rm -f conftest.
$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5585 grep -v '^ *+' conftest.er1
>conftest.err
5587 cat conftest.err
>&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try
='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_header_stdc
=yes
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.
$ac_ext >&5
5607 ac_cv_header_stdc
=no
5609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5611 if test $ac_cv_header_stdc = yes; then
5612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5613 cat >conftest.
$ac_ext <<_ACEOF
5616 cat confdefs.h
>>conftest.
$ac_ext
5617 cat >>conftest.
$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev
/null
2>&1; then
5626 ac_cv_header_stdc
=no
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644 $EGREP "free" >/dev
/null
2>&1; then
5647 ac_cv_header_stdc
=no
5653 if test $ac_cv_header_stdc = yes; then
5654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5655 if test "$cross_compiling" = yes; then
5658 cat >conftest.
$ac_ext <<_ACEOF
5661 cat confdefs.h
>>conftest.
$ac_ext
5662 cat >>conftest.
$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 #if ((' ' & 0x0FF) == 0x020)
5666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5669 # define ISLOWER(c) \
5670 (('a' <= (c) && (c) <= 'i') \
5671 || ('j' <= (c) && (c) <= 'r') \
5672 || ('s' <= (c) && (c) <= 'z'))
5673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681 for (i = 0; i < 256; i++)
5682 if (XOR (islower (i), ISLOWER (i))
5683 || toupper (i) != TOUPPER (i))
5688 rm -f conftest
$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5701 echo "$as_me: program exited with status $ac_status" >&5
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.
$ac_ext >&5
5706 ac_cv_header_stdc
=no
5708 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5712 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5713 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5714 if test $ac_cv_header_stdc = yes; then
5716 cat >>confdefs.h
<<\_ACEOF
5717 #define STDC_HEADERS 1
5722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5724 if test "${ac_cv_header_time+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.
$ac_ext <<_ACEOF
5730 cat confdefs.h
>>conftest.
$ac_ext
5731 cat >>conftest.
$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 #include <sys/time.h>
5740 if ((struct tm *) 0)
5746 rm -f conftest.
$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5750 grep -v '^ *+' conftest.er1
>conftest.err
5752 cat conftest.err
>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try
='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_header_time
=yes
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.
$ac_ext >&5
5772 ac_cv_header_time
=no
5774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5777 echo "${ECHO_T}$ac_cv_header_time" >&6
5778 if test $ac_cv_header_time = yes; then
5780 cat >>confdefs.h
<<\_ACEOF
5781 #define TIME_WITH_SYS_TIME 1
5786 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5787 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5788 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 cat >conftest.
$ac_ext <<_ACEOF
5794 cat confdefs.h
>>conftest.
$ac_ext
5795 cat >>conftest.
$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5802 char *p = (char *) sys_siglist;
5809 rm -f conftest.
$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5813 grep -v '^ *+' conftest.er1
>conftest.err
5815 cat conftest.err
>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try
='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_have_decl_sys_siglist
=yes
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.
$ac_ext >&5
5835 ac_cv_have_decl_sys_siglist
=no
5837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5840 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5841 if test $ac_cv_have_decl_sys_siglist = yes; then
5843 cat >>confdefs.h
<<_ACEOF
5844 #define HAVE_DECL_SYS_SIGLIST 1
5849 cat >>confdefs.h
<<_ACEOF
5850 #define HAVE_DECL_SYS_SIGLIST 0
5857 if test $ac_cv_have_decl_sys_siglist != yes; then
5858 # For Tru64, at least:
5859 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5860 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5861 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 cat >conftest.
$ac_ext <<_ACEOF
5867 cat confdefs.h
>>conftest.
$ac_ext
5868 cat >>conftest.
$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5874 #ifndef __sys_siglist
5875 char *p = (char *) __sys_siglist;
5882 rm -f conftest.
$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1
>conftest.err
5888 cat conftest.err
>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try
='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_have_decl___sys_siglist
=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.
$ac_ext >&5
5908 ac_cv_have_decl___sys_siglist
=no
5910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5913 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5914 if test $ac_cv_have_decl___sys_siglist = yes; then
5916 cat >>confdefs.h
<<_ACEOF
5917 #define HAVE_DECL___SYS_SIGLIST 1
5922 cat >>confdefs.h
<<_ACEOF
5923 #define HAVE_DECL___SYS_SIGLIST 0
5930 if test $ac_cv_have_decl___sys_siglist = yes; then
5932 cat >>confdefs.h
<<\_ACEOF
5933 #define sys_siglist __sys_siglist
5938 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5939 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5940 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 cat >conftest.
$ac_ext <<_ACEOF
5946 cat confdefs.h
>>conftest.
$ac_ext
5947 cat >>conftest.
$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <sys/types.h>
5950 #include <sys/wait.h>
5952 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5955 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5963 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5968 rm -f conftest.
$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try
='test -s conftest.$ac_objext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_header_sys_wait_h
=yes
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.
$ac_ext >&5
5994 ac_cv_header_sys_wait_h
=no
5996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5999 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6000 if test $ac_cv_header_sys_wait_h = yes; then
6002 cat >>confdefs.h
<<\_ACEOF
6003 #define HAVE_SYS_WAIT_H 1
6009 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6010 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6011 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.
$ac_ext <<_ACEOF
6017 cat confdefs.h
>>conftest.
$ac_ext
6018 cat >>conftest.
$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #ifdef TIME_WITH_SYS_TIME
6021 #include <sys/time.h>
6024 #ifdef HAVE_SYS_TIME_H
6025 #include <sys/time.h>
6036 static struct utimbuf x; x.actime = x.modtime;
6041 rm -f conftest.
$ac_objext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043 (eval $ac_compile) 2>conftest.er1
6045 grep -v '^ *+' conftest.er1
>conftest.err
6047 cat conftest.err
>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try
='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 emacs_cv_struct_utimbuf
=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.
$ac_ext >&5
6067 emacs_cv_struct_utimbuf
=no
6069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6071 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6072 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6073 if test $emacs_cv_struct_utimbuf = yes; then
6075 cat >>confdefs.h
<<\_ACEOF
6076 #define HAVE_STRUCT_UTIMBUF 1
6081 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6082 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6083 if test "${ac_cv_type_signal+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 cat >conftest.
$ac_ext <<_ACEOF
6089 cat confdefs.h
>>conftest.
$ac_ext
6090 cat >>conftest.
$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/types.h>
6098 extern "C" void (*signal (int, void (*)(int)))(int);
6100 void (*signal ()) ();
6111 rm -f conftest.
$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>conftest.er1
6115 grep -v '^ *+' conftest.er1
>conftest.err
6117 cat conftest.err
>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try
='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_type_signal
=void
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.
$ac_ext >&5
6137 ac_cv_type_signal
=int
6139 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6142 echo "${ECHO_T}$ac_cv_type_signal" >&6
6144 cat >>confdefs.h
<<_ACEOF
6145 #define RETSIGTYPE $ac_cv_type_signal
6150 echo "$as_me:$LINENO: checking for speed_t" >&5
6151 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6152 if test "${emacs_cv_speed_t+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 cat >conftest.
$ac_ext <<_ACEOF
6158 cat confdefs.h
>>conftest.
$ac_ext
6159 cat >>conftest.
$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <termios.h>
6170 rm -f conftest.
$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1
>conftest.err
6176 cat conftest.err
>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try
='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 emacs_cv_speed_t
=yes
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.
$ac_ext >&5
6198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6200 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6201 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6202 if test $emacs_cv_speed_t = yes; then
6204 cat >>confdefs.h
<<\_ACEOF
6205 #define HAVE_SPEED_T 1
6210 echo "$as_me:$LINENO: checking for struct timeval" >&5
6211 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6212 if test "${emacs_cv_struct_timeval+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 cat >conftest.
$ac_ext <<_ACEOF
6218 cat confdefs.h
>>conftest.
$ac_ext
6219 cat >>conftest.
$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #ifdef TIME_WITH_SYS_TIME
6222 #include <sys/time.h>
6225 #ifdef HAVE_SYS_TIME_H
6226 #include <sys/time.h>
6234 static struct timeval x; x.tv_sec = x.tv_usec;
6239 rm -f conftest.
$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1
>conftest.err
6245 cat conftest.err
>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try
='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 emacs_cv_struct_timeval
=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.
$ac_ext >&5
6265 emacs_cv_struct_timeval
=no
6267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6270 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6271 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6272 if test $emacs_cv_struct_timeval = yes; then
6274 cat >>confdefs.h
<<\_ACEOF
6275 #define HAVE_TIMEVAL 1
6280 echo "$as_me:$LINENO: checking for struct exception" >&5
6281 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6282 if test "${emacs_cv_struct_exception+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.
$ac_ext <<_ACEOF
6288 cat confdefs.h
>>conftest.
$ac_ext
6289 cat >>conftest.
$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6295 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6300 rm -f conftest.
$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1
>conftest.err
6306 cat conftest.err
>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try
='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 emacs_cv_struct_exception
=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6326 emacs_cv_struct_exception
=no
6328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6330 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6331 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6332 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6333 if test $emacs_cv_struct_exception != yes; then
6335 cat >>confdefs.h
<<\_ACEOF
6336 #define NO_MATHERR 1
6342 for ac_header
in sys
/socket.h
6344 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6346 echo "$as_me:$LINENO: checking for $ac_header" >&5
6347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6354 # Is the header compilable?
6355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6357 cat >conftest.
$ac_ext <<_ACEOF
6360 cat confdefs.h
>>conftest.
$ac_ext
6361 cat >>conftest.
$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 $ac_includes_default
6364 #include <$ac_header>
6366 rm -f conftest.
$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1
>conftest.err
6372 cat conftest.err
>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try
='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_header_compiler
=yes
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.
$ac_ext >&5
6392 ac_header_compiler
=no
6394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6396 echo "${ECHO_T}$ac_header_compiler" >&6
6398 # Is the header present?
6399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6401 cat >conftest.
$ac_ext <<_ACEOF
6404 cat confdefs.h
>>conftest.
$ac_ext
6405 cat >>conftest.
$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <$ac_header>
6409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1
>conftest.err
6414 cat conftest.err
>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } >/dev
/null
; then
6417 if test -s conftest.err
; then
6418 ac_cpp_err
=$ac_c_preproc_warn_flag
6419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6426 if test -z "$ac_cpp_err"; then
6427 ac_header_preproc
=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.
$ac_ext >&5
6432 ac_header_preproc
=no
6434 rm -f conftest.err conftest.
$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6436 echo "${ECHO_T}$ac_header_preproc" >&6
6438 # So? What about this header?
6439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6445 ac_header_preproc
=yes
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6462 ## ------------------------------------------ ##
6463 ## Report this to the AC_PACKAGE_NAME lists. ##
6464 ## ------------------------------------------ ##
6467 sed "s/^/$as_me: WARNING: /" >&2
6470 echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 eval "$as_ac_Header=\$ac_header_preproc"
6477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h
<<_ACEOF
6483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6491 for ac_header
in net
/if.h
6493 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 cat >conftest.
$ac_ext <<_ACEOF
6502 cat confdefs.h
>>conftest.
$ac_ext
6503 cat >>conftest.
$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #if HAVE_SYS_SOCKET_H
6507 #include <sys/socket.h>
6510 #include <$ac_header>
6512 rm -f conftest.
$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>conftest.er1
6516 grep -v '^ *+' conftest.er1
>conftest.err
6518 cat conftest.err
>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try
='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 eval "$as_ac_Header=yes"
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6538 eval "$as_ac_Header=no"
6540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h
<<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6556 if test "${ac_cv_struct_tm+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 cat >conftest.
$ac_ext <<_ACEOF
6562 cat confdefs.h
>>conftest.
$ac_ext
6563 cat >>conftest.
$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <sys/types.h>
6571 struct tm *tp; tp->tm_sec;
6576 rm -f conftest.
$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1
>conftest.err
6582 cat conftest.err
>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try
='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_struct_tm
=time.h
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.
$ac_ext >&5
6602 ac_cv_struct_tm
=sys
/time.h
6604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6606 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6607 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6608 if test $ac_cv_struct_tm = sys
/time.h
; then
6610 cat >>confdefs.h
<<\_ACEOF
6611 #define TM_IN_SYS_TIME 1
6616 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6617 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6618 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6634 static struct tm ac_aggr;
6635 if (ac_aggr.tm_zone)
6641 rm -f conftest.
$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6645 grep -v '^ *+' conftest.er1
>conftest.err
6647 cat conftest.err
>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try
='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_member_struct_tm_tm_zone
=yes
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.
$ac_ext >&5
6667 cat >conftest.
$ac_ext <<_ACEOF
6670 cat confdefs.h
>>conftest.
$ac_ext
6671 cat >>conftest.
$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <sys/types.h>
6674 #include <$ac_cv_struct_tm>
6680 static struct tm ac_aggr;
6681 if (sizeof ac_aggr.tm_zone)
6687 rm -f conftest.
$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>conftest.er1
6691 grep -v '^ *+' conftest.er1
>conftest.err
6693 cat conftest.err
>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try
='test -s conftest.$ac_objext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_member_struct_tm_tm_zone
=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.
$ac_ext >&5
6713 ac_cv_member_struct_tm_tm_zone
=no
6715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6720 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6721 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6723 cat >>confdefs.h
<<_ACEOF
6724 #define HAVE_STRUCT_TM_TM_ZONE 1
6730 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6732 cat >>confdefs.h
<<\_ACEOF
6733 #define HAVE_TM_ZONE 1
6737 echo "$as_me:$LINENO: checking for tzname" >&5
6738 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6739 if test "${ac_cv_var_tzname+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 cat >conftest.
$ac_ext <<_ACEOF
6745 cat confdefs.h
>>conftest.
$ac_ext
6746 cat >>conftest.
$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6749 #ifndef tzname /* For SGI. */
6750 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6761 rm -f conftest.
$ac_objext conftest
$ac_exeext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>conftest.er1
6765 grep -v '^ *+' conftest.er1
>conftest.err
6767 cat conftest.err
>&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try
='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_var_tzname
=yes
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.
$ac_ext >&5
6789 rm -f conftest.err conftest.
$ac_objext \
6790 conftest
$ac_exeext conftest.
$ac_ext
6792 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6793 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6794 if test $ac_cv_var_tzname = yes; then
6796 cat >>confdefs.h
<<\_ACEOF
6797 #define HAVE_TZNAME 1
6803 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6804 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6805 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 cat >conftest.
$ac_ext <<_ACEOF
6811 cat confdefs.h
>>conftest.
$ac_ext
6812 cat >>conftest.
$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6819 static struct tm ac_aggr;
6820 if (ac_aggr.tm_gmtoff)
6826 rm -f conftest.
$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6830 grep -v '^ *+' conftest.er1
>conftest.err
6832 cat conftest.err
>&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; } &&
6841 { ac_try
='test -s conftest.$ac_objext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 ac_cv_member_struct_tm_tm_gmtoff
=yes
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.
$ac_ext >&5
6852 cat >conftest.
$ac_ext <<_ACEOF
6855 cat confdefs.h
>>conftest.
$ac_ext
6856 cat >>conftest.
$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6863 static struct tm ac_aggr;
6864 if (sizeof ac_aggr.tm_gmtoff)
6870 rm -f conftest.
$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6874 grep -v '^ *+' conftest.er1
>conftest.err
6876 cat conftest.err
>&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try
='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_member_struct_tm_tm_gmtoff
=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.
$ac_ext >&5
6896 ac_cv_member_struct_tm_tm_gmtoff
=no
6898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6902 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6903 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6904 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6906 cat >>confdefs.h
<<\_ACEOF
6907 #define HAVE_TM_GMTOFF 1
6912 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6913 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6914 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 cat >conftest.
$ac_ext <<_ACEOF
6920 cat confdefs.h
>>conftest.
$ac_ext
6921 cat >>conftest.
$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 $ac_includes_default
6924 #if HAVE_SYS_SOCKET_H
6925 #include <sys/socket.h>
6934 static struct ifreq ac_aggr;
6935 if (ac_aggr.ifr_flags)
6941 rm -f conftest.
$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6945 grep -v '^ *+' conftest.er1
>conftest.err
6947 cat conftest.err
>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try
='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_cv_member_struct_ifreq_ifr_flags
=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.
$ac_ext >&5
6967 cat >conftest.
$ac_ext <<_ACEOF
6970 cat confdefs.h
>>conftest.
$ac_ext
6971 cat >>conftest.
$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 #if HAVE_SYS_SOCKET_H
6975 #include <sys/socket.h>
6984 static struct ifreq ac_aggr;
6985 if (sizeof ac_aggr.ifr_flags)
6991 rm -f conftest.
$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6995 grep -v '^ *+' conftest.er1
>conftest.err
6997 cat conftest.err
>&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try
='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_member_struct_ifreq_ifr_flags
=yes
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.
$ac_ext >&5
7017 ac_cv_member_struct_ifreq_ifr_flags
=no
7019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7024 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7025 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7027 cat >>confdefs.h
<<_ACEOF
7028 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7033 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7034 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7035 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.
$ac_ext <<_ACEOF
7041 cat confdefs.h
>>conftest.
$ac_ext
7042 cat >>conftest.
$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 $ac_includes_default
7045 #if HAVE_SYS_SOCKET_H
7046 #include <sys/socket.h>
7055 static struct ifreq ac_aggr;
7056 if (ac_aggr.ifr_hwaddr)
7062 rm -f conftest.
$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7066 grep -v '^ *+' conftest.er1
>conftest.err
7068 cat conftest.err
>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try
='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.
$ac_ext >&5
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 (sizeof 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" || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try
='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.
$ac_ext >&5
7138 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7145 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7146 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7148 cat >>confdefs.h
<<_ACEOF
7149 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7154 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7155 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7156 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 cat >conftest.
$ac_ext <<_ACEOF
7162 cat confdefs.h
>>conftest.
$ac_ext
7163 cat >>conftest.
$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7166 #if HAVE_SYS_SOCKET_H
7167 #include <sys/socket.h>
7176 static struct ifreq ac_aggr;
7177 if (ac_aggr.ifr_netmask)
7183 rm -f conftest.
$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try
='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.
$ac_ext >&5
7209 cat >conftest.
$ac_ext <<_ACEOF
7212 cat confdefs.h
>>conftest.
$ac_ext
7213 cat >>conftest.
$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 #if HAVE_SYS_SOCKET_H
7217 #include <sys/socket.h>
7226 static struct ifreq ac_aggr;
7227 if (sizeof ac_aggr.ifr_netmask)
7233 rm -f conftest.
$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7237 grep -v '^ *+' conftest.er1
>conftest.err
7239 cat conftest.err
>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try
='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.
$ac_ext >&5
7259 ac_cv_member_struct_ifreq_ifr_netmask
=no
7261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7266 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7267 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7269 cat >>confdefs.h
<<_ACEOF
7270 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7276 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7277 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 cat >conftest.
$ac_ext <<_ACEOF
7283 cat confdefs.h
>>conftest.
$ac_ext
7284 cat >>conftest.
$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 $ac_includes_default
7287 #if HAVE_SYS_SOCKET_H
7288 #include <sys/socket.h>
7297 static struct ifreq ac_aggr;
7298 if (ac_aggr.ifr_broadaddr)
7304 rm -f conftest.
$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7308 grep -v '^ *+' conftest.er1
>conftest.err
7310 cat conftest.err
>&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; } &&
7319 { ac_try
='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.
$ac_ext >&5
7330 cat >conftest.
$ac_ext <<_ACEOF
7333 cat confdefs.h
>>conftest.
$ac_ext
7334 cat >>conftest.
$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 #if HAVE_SYS_SOCKET_H
7338 #include <sys/socket.h>
7347 static struct ifreq ac_aggr;
7348 if (sizeof ac_aggr.ifr_broadaddr)
7354 rm -f conftest.
$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7358 grep -v '^ *+' conftest.er1
>conftest.err
7360 cat conftest.err
>&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try
='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.
$ac_ext >&5
7380 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7386 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7387 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7388 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7390 cat >>confdefs.h
<<_ACEOF
7391 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7396 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7397 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7398 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 cat >conftest.
$ac_ext <<_ACEOF
7404 cat confdefs.h
>>conftest.
$ac_ext
7405 cat >>conftest.
$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7408 #if HAVE_SYS_SOCKET_H
7409 #include <sys/socket.h>
7418 static struct ifreq ac_aggr;
7419 if (ac_aggr.ifr_addr)
7425 rm -f conftest.
$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; } &&
7440 { ac_try
='test -s conftest.$ac_objext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_member_struct_ifreq_ifr_addr
=yes
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.
$ac_ext >&5
7451 cat >conftest.
$ac_ext <<_ACEOF
7454 cat confdefs.h
>>conftest.
$ac_ext
7455 cat >>conftest.
$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7468 static struct ifreq ac_aggr;
7469 if (sizeof ac_aggr.ifr_addr)
7475 rm -f conftest.
$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7479 grep -v '^ *+' conftest.er1
>conftest.err
7481 cat conftest.err
>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try
='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_addr
=yes
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.
$ac_ext >&5
7501 ac_cv_member_struct_ifreq_ifr_addr
=no
7503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7509 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7511 cat >>confdefs.h
<<_ACEOF
7512 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7520 echo "$as_me:$LINENO: checking for function prototypes" >&5
7521 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7522 if test "$ac_cv_prog_cc_stdc" != no
; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7526 cat >>confdefs.h
<<\_ACEOF
7527 #define PROTOTYPES 1
7531 cat >>confdefs.h
<<\_ACEOF
7532 #define __PROTOTYPES 1
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7540 echo "$as_me:$LINENO: checking for working volatile" >&5
7541 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7542 if test "${ac_cv_c_volatile+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 cat >conftest.
$ac_ext <<_ACEOF
7548 cat confdefs.h
>>conftest.
$ac_ext
7549 cat >>conftest.
$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7562 rm -f conftest.
$ac_objext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>conftest.er1
7566 grep -v '^ *+' conftest.er1
>conftest.err
7568 cat conftest.err
>&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try
='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_c_volatile
=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.
$ac_ext >&5
7590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7593 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7594 if test $ac_cv_c_volatile = no
; then
7596 cat >>confdefs.h
<<\_ACEOF
7602 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7603 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7604 if test "${ac_cv_c_const+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 cat >conftest.
$ac_ext <<_ACEOF
7610 cat confdefs.h
>>conftest.
$ac_ext
7611 cat >>conftest.
$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7617 /* FIXME: Include the comments suggested by Paul. */
7619 /* Ultrix mips cc rejects this. */
7620 typedef int charset[2];
7622 /* SunOS 4.1.1 cc rejects this. */
7623 char const *const *ccp;
7625 /* NEC SVR4.0.2 mips cc rejects this. */
7626 struct point {int x, y;};
7627 static struct point const zero = {0,0};
7628 /* AIX XL C 1.02.0.0 rejects this.
7629 It does not let you subtract one const X* pointer from another in
7630 an arm of an if-expression whose if-part is not a constant
7632 const char *g = "string";
7633 ccp = &g + (g ? g-g : 0);
7634 /* HPUX 7.0 cc rejects these. */
7637 ccp = (char const *const *) p;
7638 { /* SCO 3.2v4 cc rejects this. */
7640 char const *s = 0 ? (char *) 0 : (char const *) 0;
7644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7646 const int *foo = &x[0];
7649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7650 typedef const int *iptr;
7654 { /* AIX XL C 1.02.0.0 rejects this saying
7655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7656 struct s { int j; const int *ap[3]; };
7657 struct s *b; b->j = 5;
7659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7668 rm -f conftest.
$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>conftest.er1
7672 grep -v '^ *+' conftest.er1
>conftest.err
7674 cat conftest.err
>&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try
='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.
$ac_ext >&5
7696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7698 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7699 echo "${ECHO_T}$ac_cv_c_const" >&6
7700 if test $ac_cv_c_const = no
; then
7702 cat >>confdefs.h
<<\_ACEOF
7708 echo "$as_me:$LINENO: checking for void * support" >&5
7709 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7710 if test "${emacs_cv_void_star+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.
$ac_ext <<_ACEOF
7716 cat confdefs.h
>>conftest.
$ac_ext
7717 cat >>conftest.
$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7728 rm -f conftest.
$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>conftest.er1
7732 grep -v '^ *+' conftest.er1
>conftest.err
7734 cat conftest.err
>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try
='test -z "$ac_c_werror_flag" || 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
7749 emacs_cv_void_star
=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.
$ac_ext >&5
7754 emacs_cv_void_star
=no
7756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7759 echo "${ECHO_T}$emacs_cv_void_star" >&6
7760 if test $emacs_cv_void_star = yes; then
7761 cat >>confdefs.h
<<\_ACEOF
7762 #define POINTER_TYPE void
7766 cat >>confdefs.h
<<\_ACEOF
7767 #define POINTER_TYPE char
7776 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7777 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7778 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7779 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.
make <<\_ACEOF
7784 @
echo 'ac_maketemp="$(MAKE)"'
7786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7787 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7788 if test -n "$ac_maketemp"; then
7789 eval ac_cv_prog_make_
${ac_make}_set
=yes
7791 eval ac_cv_prog_make_
${ac_make}_set
=no
7795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7796 echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7802 SET_MAKE
="MAKE=${MAKE-make}"
7806 echo "$as_me:$LINENO: checking for long file names" >&5
7807 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7808 if test "${ac_cv_sys_long_file_names+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_cv_sys_long_file_names
=yes
7812 # Test for long file names in all the places we know might matter:
7813 # . the current directory, where building will happen
7814 # $prefix/lib where we will be installing things
7815 # $exec_prefix/lib likewise
7816 # eval it to expand exec_prefix.
7817 # $TMPDIR if set, where it might want to write temporary files
7818 # if $TMPDIR is not set:
7819 # /tmp where it might want to write temporary files
7822 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7825 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7827 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7828 test -d $ac_dir ||
continue
7829 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7830 ac_xdir
=$ac_dir/cf$$
7831 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7832 ac_tf1
=$ac_xdir/conftest9012345
7833 ac_tf2
=$ac_xdir/conftest9012346
7834 (echo 1 >$ac_tf1) 2>/dev
/null
7835 (echo 2 >$ac_tf2) 2>/dev
/null
7836 ac_val
=`cat $ac_tf1 2>/dev/null`
7837 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7838 ac_cv_sys_long_file_names
=no
7839 rm -rf $ac_xdir 2>/dev
/null
7842 rm -rf $ac_xdir 2>/dev
/null
7845 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7846 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7847 if test $ac_cv_sys_long_file_names = yes; then
7849 cat >>confdefs.h
<<\_ACEOF
7850 #define HAVE_LONG_FILE_NAMES 1
7856 #### Choose a window system.
7858 echo "$as_me:$LINENO: checking for X" >&5
7859 echo $ECHO_N "checking for X... $ECHO_C" >&6
7861 ac_path_x_has_been_run
=yes
7863 # Check whether --with-x or --without-x was given.
7864 if test "${with_x+set}" = set; then
7868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7869 if test "x$with_x" = xno
; then
7870 # The user explicitly disabled X.
7873 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7874 # Both variables are already set.
7877 if test "${ac_cv_have_x+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 # One or both of the vars are not set, and there is no cached value.
7881 ac_x_includes
=no ac_x_libraries
=no
7883 if mkdir conftest.dir
; then
7885 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7886 cat >Imakefile
<<'_ACEOF'
7888 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7890 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7892 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7893 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7894 for ac_extension
in a so sl
; do
7895 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7896 test -f $ac_im_libdir/libX11.
$ac_extension; then
7897 ac_im_usrlibdir
=$ac_im_libdir; break
7900 # Screen out bogus values from the imake configuration. They are
7901 # bogus both because they are the default anyway, and because
7902 # using them would break gcc on systems where it needs fixed includes.
7903 case $ac_im_incroot in
7905 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7907 case $ac_im_usrlibdir in
7909 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7916 # Standard set of common directories for X headers.
7917 # Check X11 before X11Rn because it is often a symlink to the current release.
7929 /usr/local/X11/include
7930 /usr/local/X11R6/include
7931 /usr/local/X11R5/include
7932 /usr/local/X11R4/include
7934 /usr/local/include/X11
7935 /usr/local/include/X11R6
7936 /usr/local/include/X11R5
7937 /usr/local/include/X11R4
7941 /usr/XFree86/include/X11
7945 /usr/unsupported/include
7947 /usr/local/x11r5/include
7948 /usr/lpp/Xamples/include
7950 /usr/openwin/include
7951 /usr/openwin/share/include'
7953 if test "$ac_x_includes" = no
; then
7954 # Guess where to find include files, by looking for a specified header file.
7955 # First, try using that file with no special directory specified.
7956 cat >conftest.
$ac_ext <<_ACEOF
7959 cat confdefs.h
>>conftest.
$ac_ext
7960 cat >>conftest.
$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <X11/Intrinsic.h>
7964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7965 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7967 grep -v '^ *+' conftest.er1
>conftest.err
7969 cat conftest.err
>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } >/dev
/null
; then
7972 if test -s conftest.err
; then
7973 ac_cpp_err
=$ac_c_preproc_warn_flag
7974 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7981 if test -z "$ac_cpp_err"; then
7982 # We can compile using X headers with no special include directory.
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.
$ac_ext >&5
7988 for ac_dir
in $ac_x_header_dirs; do
7989 if test -r "$ac_dir/X11/Intrinsic.h"; then
7990 ac_x_includes
=$ac_dir
7995 rm -f conftest.err conftest.
$ac_ext
7996 fi # $ac_x_includes = no
7998 if test "$ac_x_libraries" = no
; then
7999 # Check for the libraries.
8000 # See if we find them without any special options.
8001 # Don't add to $LIBS permanently.
8004 cat >conftest.
$ac_ext <<_ACEOF
8007 cat confdefs.h
>>conftest.
$ac_ext
8008 cat >>conftest.
$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <X11/Intrinsic.h>
8019 rm -f conftest.
$ac_objext conftest
$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1
>conftest.err
8025 cat conftest.err
>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try
='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8041 # We can link X programs with no special library path.
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.
$ac_ext >&5
8048 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8050 # Don't even attempt the hair of trying to link an X program!
8051 for ac_extension
in a so sl
; do
8052 if test -r $ac_dir/libXt.
$ac_extension; then
8053 ac_x_libraries
=$ac_dir
8059 rm -f conftest.err conftest.
$ac_objext \
8060 conftest
$ac_exeext conftest.
$ac_ext
8061 fi # $ac_x_libraries = no
8063 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8064 # Didn't find X anywhere. Cache the known absence of X.
8065 ac_cv_have_x
="have_x=no"
8067 # Record where we found X for the cache.
8068 ac_cv_have_x
="have_x=yes \
8069 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8074 eval "$ac_cv_have_x"
8077 if test "$have_x" != yes; then
8078 echo "$as_me:$LINENO: result: $have_x" >&5
8079 echo "${ECHO_T}$have_x" >&6
8082 # If each of the values was on the command line, it overrides each guess.
8083 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8084 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8085 # Update the cache value to reflect the command line values.
8086 ac_cv_have_x
="have_x=yes \
8087 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8088 # It might be that x_includes is empty (headers are found in the
8089 # standard search path. Then output the corresponding message
8090 ac_out_x_includes
=$x_includes
8091 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8092 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8093 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8096 if test "$no_x" = yes; then
8102 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8103 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8104 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8105 x_default_search_path
=""
8106 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8108 ${x_library}/X11/%L/%T/%N%C%S:\
8109 ${x_library}/X11/%l/%T/%N%C%S:\
8110 ${x_library}/X11/%T/%N%C%S:\
8111 ${x_library}/X11/%L/%T/%N%S:\
8112 ${x_library}/X11/%l/%T/%N%S:\
8113 ${x_library}/X11/%T/%N%S"
8114 if test x
"${x_default_search_path}" = x
; then
8115 x_default_search_path
=${x_search_path}
8117 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8121 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8122 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8125 if test x
"${x_includes}" = x
; then
8126 bitmapdir
=/usr
/include
/X11
/bitmaps
8128 # accumulate include directories that have X11 bitmap subdirectories
8130 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8131 if test -d "${bmd}/X11/bitmaps"; then
8132 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8134 if test -d "${bmd}/bitmaps"; then
8135 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8138 if test ${bmd_acc} != "dummyval"; then
8139 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8143 case "${window_system}" in
8147 case "${with_x_toolkit}" in
8148 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8149 motif
) USE_X_TOOLKIT
=MOTIF
;;
8151 USE_X_TOOLKIT
=none
;;
8152 no
) USE_X_TOOLKIT
=none
;;
8153 * ) USE_X_TOOLKIT
=maybe
;;
8163 ### If we're using X11, we should use the X menu package.
8166 yes ) HAVE_MENUS
=yes ;;
8169 if test "${opsys}" = "hpux9"; then
8170 case "${x_libraries}" in
8172 opsysfile
="s/hpux9-x11r4.h"
8177 if test "${opsys}" = "hpux9shr"; then
8178 case "${x_libraries}" in
8180 opsysfile
="s/hpux9shxr4.h"
8186 if test "${HAVE_X11}" != "yes"; then
8187 if test "${with_carbon}" != "no"; then
8188 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8189 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8190 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8195 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8197 # Is the header compilable?
8198 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8199 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8200 cat >conftest.
$ac_ext <<_ACEOF
8203 cat confdefs.h
>>conftest.
$ac_ext
8204 cat >>conftest.
$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 $ac_includes_default
8207 #include <Carbon/Carbon.h>
8209 rm -f conftest.
$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8213 grep -v '^ *+' conftest.er1
>conftest.err
8215 cat conftest.err
>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try
='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_header_compiler
=yes
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.
$ac_ext >&5
8235 ac_header_compiler
=no
8237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8239 echo "${ECHO_T}$ac_header_compiler" >&6
8241 # Is the header present?
8242 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8243 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8244 cat >conftest.
$ac_ext <<_ACEOF
8247 cat confdefs.h
>>conftest.
$ac_ext
8248 cat >>conftest.
$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 #include <Carbon/Carbon.h>
8252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8255 grep -v '^ *+' conftest.er1
>conftest.err
8257 cat conftest.err
>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } >/dev
/null
; then
8260 if test -s conftest.err
; then
8261 ac_cpp_err
=$ac_c_preproc_warn_flag
8262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8269 if test -z "$ac_cpp_err"; then
8270 ac_header_preproc
=yes
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.
$ac_ext >&5
8275 ac_header_preproc
=no
8277 rm -f conftest.err conftest.
$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8279 echo "${ECHO_T}$ac_header_preproc" >&6
8281 # So? What about this header?
8282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8284 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8285 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8287 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8288 ac_header_preproc
=yes
8291 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8292 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8296 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8298 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8300 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8302 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8305 ## ------------------------------------------ ##
8306 ## Report this to the AC_PACKAGE_NAME lists. ##
8307 ## ------------------------------------------ ##
8310 sed "s/^/$as_me: WARNING: /" >&2
8313 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8314 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8315 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8320 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8321 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8324 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8332 ### Compute the unexec source name from the object name.
8333 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8335 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8336 # Assume not, until told otherwise.
8339 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8340 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8341 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.
$ac_ext <<_ACEOF
8347 cat confdefs.h
>>conftest.
$ac_ext
8348 cat >>conftest.
$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352 #define malloc_get_state innocuous_malloc_get_state
8354 /* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char malloc_get_state (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8360 # include <limits.h>
8362 # include <assert.h>
8365 #undef malloc_get_state
8367 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char malloc_get_state ();
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8381 char (*f) () = malloc_get_state;
8390 return f != malloc_get_state;
8395 rm -f conftest.
$ac_objext conftest
$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>conftest.er1
8399 grep -v '^ *+' conftest.er1
>conftest.err
8401 cat conftest.err
>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try
='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_malloc_get_state
=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.
$ac_ext >&5
8421 ac_cv_func_malloc_get_state
=no
8423 rm -f conftest.err conftest.
$ac_objext \
8424 conftest
$ac_exeext conftest.
$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8427 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8428 if test $ac_cv_func_malloc_get_state = yes; then
8434 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8435 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8436 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 cat >conftest.
$ac_ext <<_ACEOF
8442 cat confdefs.h
>>conftest.
$ac_ext
8443 cat >>conftest.
$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8447 #define malloc_set_state innocuous_malloc_set_state
8449 /* System header to define __stub macros and hopefully few prototypes,
8450 which can conflict with char malloc_set_state (); below.
8451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8452 <limits.h> exists even on freestanding compilers. */
8455 # include <limits.h>
8457 # include <assert.h>
8460 #undef malloc_set_state
8462 /* Override any gcc2 internal prototype to avoid an error. */
8467 /* We use char because int might match the return type of a gcc2
8468 builtin and then its argument prototype would still apply. */
8469 char malloc_set_state ();
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8476 char (*f) () = malloc_set_state;
8485 return f != malloc_set_state;
8490 rm -f conftest.
$ac_objext conftest
$ac_exeext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492 (eval $ac_link) 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try
='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_malloc_set_state
=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.
$ac_ext >&5
8516 ac_cv_func_malloc_set_state
=no
8518 rm -f conftest.err conftest.
$ac_objext \
8519 conftest
$ac_exeext conftest.
$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8522 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8523 if test $ac_cv_func_malloc_set_state = yes; then
8529 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8530 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8531 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 cat >conftest.
$ac_ext <<_ACEOF
8537 cat confdefs.h
>>conftest.
$ac_ext
8538 cat >>conftest.
$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 extern void (* __after_morecore_hook)();
8544 __after_morecore_hook = 0
8549 rm -f conftest.
$ac_objext conftest
$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>conftest.er1
8553 grep -v '^ *+' conftest.er1
>conftest.err
8555 cat conftest.err
>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try
='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 emacs_cv_var___after_morecore_hook
=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.
$ac_ext >&5
8575 emacs_cv_var___after_morecore_hook
=no
8577 rm -f conftest.err conftest.
$ac_objext \
8578 conftest
$ac_exeext conftest.
$ac_ext
8580 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8581 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8582 if test $emacs_cv_var___after_morecore_hook = no
; then
8585 if test "${system_malloc}" = "yes"; then
8588 (The GNU allocators don't work with this system configuration.)"
8590 if test "$doug_lea_malloc" = "yes" ; then
8591 if test "$GNU_MALLOC" = yes ; then
8593 (Using Doug Lea's new malloc from the GNU C Library.)"
8596 cat >>confdefs.h
<<\_ACEOF
8597 #define DOUG_LEA_MALLOC 1
8602 if test x
"${REL_ALLOC}" = x
; then
8603 REL_ALLOC
=${GNU_MALLOC}
8609 for ac_header
in stdlib.h unistd.h
8611 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8613 echo "$as_me:$LINENO: checking for $ac_header" >&5
8614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8621 # Is the header compilable?
8622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8624 cat >conftest.
$ac_ext <<_ACEOF
8627 cat confdefs.h
>>conftest.
$ac_ext
8628 cat >>conftest.
$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 #include <$ac_header>
8633 rm -f conftest.
$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8637 grep -v '^ *+' conftest.er1
>conftest.err
8639 cat conftest.err
>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try
='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler
=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.
$ac_ext >&5
8659 ac_header_compiler
=no
8661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 echo "${ECHO_T}$ac_header_compiler" >&6
8665 # Is the header present?
8666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <$ac_header>
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1
>conftest.err
8681 cat conftest.err
>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev
/null
; then
8684 if test -s conftest.err
; then
8685 ac_cpp_err
=$ac_c_preproc_warn_flag
8686 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8693 if test -z "$ac_cpp_err"; then
8694 ac_header_preproc
=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.
$ac_ext >&5
8699 ac_header_preproc
=no
8701 rm -f conftest.err conftest.
$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8703 echo "${ECHO_T}$ac_header_preproc" >&6
8705 # So? What about this header?
8706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8712 ac_header_preproc
=yes
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8729 ## ------------------------------------------ ##
8730 ## Report this to the AC_PACKAGE_NAME lists. ##
8731 ## ------------------------------------------ ##
8734 sed "s/^/$as_me: WARNING: /" >&2
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 eval "$as_ac_Header=\$ac_header_preproc"
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8749 cat >>confdefs.h
<<_ACEOF
8750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758 for ac_func
in getpagesize
8760 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8761 echo "$as_me:$LINENO: checking for $ac_func" >&5
8762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_var+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 cat >conftest.
$ac_ext <<_ACEOF
8769 cat confdefs.h
>>conftest.
$ac_ext
8770 cat >>conftest.
$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8774 #define $ac_func innocuous_$ac_func
8776 /* System header to define __stub macros and hopefully few prototypes,
8777 which can conflict with char $ac_func (); below.
8778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8779 <limits.h> exists even on freestanding compilers. */
8782 # include <limits.h>
8784 # include <assert.h>
8789 /* Override any gcc2 internal prototype to avoid an error. */
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8797 /* The GNU C library defines this for functions which it implements
8798 to always fail with ENOSYS. Some functions are actually named
8799 something starting with __ and the normal name is an alias. */
8800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8803 char (*f) () = $ac_func;
8812 return f != $ac_func;
8817 rm -f conftest.
$ac_objext conftest
$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8821 grep -v '^ *+' conftest.er1
>conftest.err
8823 cat conftest.err
>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try
='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "$as_ac_var=yes"
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.
$ac_ext >&5
8843 eval "$as_ac_var=no"
8845 rm -f conftest.err conftest.
$ac_objext \
8846 conftest
$ac_exeext conftest.
$ac_ext
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8850 if test `eval echo '${'$as_ac_var'}'` = yes; then
8851 cat >>confdefs.h
<<_ACEOF
8852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8858 echo "$as_me:$LINENO: checking for working mmap" >&5
8859 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8860 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 if test "$cross_compiling" = yes; then
8864 ac_cv_func_mmap_fixed_mapped
=no
8866 cat >conftest.
$ac_ext <<_ACEOF
8869 cat confdefs.h
>>conftest.
$ac_ext
8870 cat >>conftest.
$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8873 /* malloc might have been renamed as rpl_malloc. */
8876 /* Thanks to Mike Haertel and Jim Avera for this test.
8877 Here is a matrix of mmap possibilities:
8878 mmap private not fixed
8879 mmap private fixed at somewhere currently unmapped
8880 mmap private fixed at somewhere already mapped
8881 mmap shared not fixed
8882 mmap shared fixed at somewhere currently unmapped
8883 mmap shared fixed at somewhere already mapped
8884 For private mappings, we should verify that changes cannot be read()
8885 back from the file, nor mmap's back from the file at a different
8886 address. (There have been systems where private was not correctly
8887 implemented like the infamous i386 svr4.0, and systems where the
8888 VM page cache was not coherent with the file system buffer cache
8889 like early versions of FreeBSD and possibly contemporary NetBSD.)
8890 For shared mappings, we should conversely verify that changes get
8891 propagated back to all the places they're supposed to be.
8893 Grep wants private fixed already mapped.
8894 The main things grep needs to know about mmap are:
8895 * does it exist and is it safe to write into the mmap'd area
8896 * how to use it (BSD variants) */
8899 #include <sys/mman.h>
8901 #if !STDC_HEADERS && !HAVE_STDLIB_H
8905 /* This mess was copied from the GNU getpagesize.h. */
8906 #if !HAVE_GETPAGESIZE
8907 /* Assume that all systems that can run configure have sys/param.h. */
8908 # if !HAVE_SYS_PARAM_H
8909 # define HAVE_SYS_PARAM_H 1
8912 # ifdef _SC_PAGESIZE
8913 # define getpagesize() sysconf(_SC_PAGESIZE)
8914 # else /* no _SC_PAGESIZE */
8915 # if HAVE_SYS_PARAM_H
8916 # include <sys/param.h>
8917 # ifdef EXEC_PAGESIZE
8918 # define getpagesize() EXEC_PAGESIZE
8919 # else /* no EXEC_PAGESIZE */
8921 # define getpagesize() NBPG * CLSIZE
8924 # endif /* no CLSIZE */
8925 # else /* no NBPG */
8927 # define getpagesize() NBPC
8928 # else /* no NBPC */
8930 # define getpagesize() PAGESIZE
8931 # endif /* PAGESIZE */
8932 # endif /* no NBPC */
8933 # endif /* no NBPG */
8934 # endif /* no EXEC_PAGESIZE */
8935 # else /* no HAVE_SYS_PARAM_H */
8936 # define getpagesize() 8192 /* punt totally */
8937 # endif /* no HAVE_SYS_PARAM_H */
8938 # endif /* no _SC_PAGESIZE */
8940 #endif /* no HAVE_GETPAGESIZE */
8945 char *data, *data2, *data3;
8949 pagesize = getpagesize ();
8951 /* First, make a file with some known garbage in it. */
8952 data = (char *) malloc (pagesize);
8955 for (i = 0; i < pagesize; ++i)
8956 *(data + i) = rand ();
8958 fd = creat ("conftest.mmap", 0600);
8961 if (write (fd, data, pagesize) != pagesize)
8965 /* Next, try to mmap the file at a fixed address which already has
8966 something else allocated at it. If we can, also make sure that
8967 we see the same garbage. */
8968 fd = open ("conftest.mmap", O_RDWR);
8971 data2 = (char *) malloc (2 * pagesize);
8974 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8978 for (i = 0; i < pagesize; ++i)
8979 if (*(data + i) != *(data2 + i))
8982 /* Finally, make sure that changes to the mapped area do not
8983 percolate back to the file as seen by read(). (This is a bug on
8984 some variants of i386 svr4.0.) */
8985 for (i = 0; i < pagesize; ++i)
8986 *(data2 + i) = *(data2 + i) + 1;
8987 data3 = (char *) malloc (pagesize);
8990 if (read (fd, data3, pagesize) != pagesize)
8992 for (i = 0; i < pagesize; ++i)
8993 if (*(data + i) != *(data3 + i))
8999 rm -f conftest
$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_func_mmap_fixed_mapped
=yes
9012 echo "$as_me: program exited with status $ac_status" >&5
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.
$ac_ext >&5
9017 ac_cv_func_mmap_fixed_mapped
=no
9019 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9023 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9024 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9026 cat >>confdefs.h
<<\_ACEOF
9033 if test $use_mmap_for_buffers = yes; then
9037 LIBS
="$libsrc_libs $LIBS"
9040 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9041 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9042 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 ac_check_lib_save_LIBS
=$LIBS
9047 cat >conftest.
$ac_ext <<_ACEOF
9050 cat confdefs.h
>>conftest.
$ac_ext
9051 cat >>conftest.
$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9054 /* Override any gcc2 internal prototype to avoid an error. */
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9069 rm -f conftest.
$ac_objext conftest
$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1
>conftest.err
9075 cat conftest.err
>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try
='test -s conftest$ac_exeext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_cv_lib_dnet_dnet_ntoa
=yes
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.
$ac_ext >&5
9095 ac_cv_lib_dnet_dnet_ntoa
=no
9097 rm -f conftest.err conftest.
$ac_objext \
9098 conftest
$ac_exeext conftest.
$ac_ext
9099 LIBS
=$ac_check_lib_save_LIBS
9101 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9102 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9103 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9104 cat >>confdefs.h
<<_ACEOF
9105 #define HAVE_LIBDNET 1
9113 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9114 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9115 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_check_lib_save_LIBS
=$LIBS
9120 cat >conftest.
$ac_ext <<_ACEOF
9123 cat confdefs.h
>>conftest.
$ac_ext
9124 cat >>conftest.
$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9136 rm -f conftest.
$ac_objext conftest
$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138 (eval $ac_link) 2>conftest.er1
9140 grep -v '^ *+' conftest.er1
>conftest.err
9142 cat conftest.err
>&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try
='test -s conftest$ac_exeext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_cv_lib_Xbsd_main
=yes
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.
$ac_ext >&5
9162 ac_cv_lib_Xbsd_main
=no
9164 rm -f conftest.err conftest.
$ac_objext \
9165 conftest
$ac_exeext conftest.
$ac_ext
9166 LIBS
=$ac_check_lib_save_LIBS
9168 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9169 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9170 if test $ac_cv_lib_Xbsd_main = yes; then
9171 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9176 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9177 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9178 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 ac_check_lib_save_LIBS
=$LIBS
9182 LIBS
="-lpthreads $LIBS"
9183 cat >conftest.
$ac_ext <<_ACEOF
9186 cat confdefs.h
>>conftest.
$ac_ext
9187 cat >>conftest.
$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9190 /* Override any gcc2 internal prototype to avoid an error. */
9194 /* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */
9205 rm -f conftest.
$ac_objext conftest
$ac_exeext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>conftest.er1
9209 grep -v '^ *+' conftest.er1
>conftest.err
9211 cat conftest.err
>&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try
='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_lib_pthreads_cma_open
=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.
$ac_ext >&5
9231 ac_cv_lib_pthreads_cma_open
=no
9233 rm -f conftest.err conftest.
$ac_objext \
9234 conftest
$ac_exeext conftest.
$ac_ext
9235 LIBS
=$ac_check_lib_save_LIBS
9237 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9238 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9239 if test $ac_cv_lib_pthreads_cma_open = yes; then
9240 cat >>confdefs.h
<<_ACEOF
9241 #define HAVE_LIBPTHREADS 1
9244 LIBS
="-lpthreads $LIBS"
9249 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9250 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9251 if test -d /usr
/X386
/include
; then
9253 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9257 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9258 echo "${ECHO_T}$HAVE_XFREE386" >&6
9263 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9264 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9265 if test "${gdb_cv_bigtoc+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9271 *) gdb_cv_bigtoc
=-bbigtoc ;;
9274 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9290 rm -f conftest.
$ac_objext conftest
$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9294 grep -v '^ *+' conftest.er1
>conftest.err
9296 cat conftest.err
>&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try
='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.
$ac_ext >&5
9318 rm -f conftest.err conftest.
$ac_objext \
9319 conftest
$ac_exeext conftest.
$ac_ext
9322 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9323 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9327 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9328 # used for the tests that follow. We set them back to REAL_CFLAGS and
9329 # REAL_CPPFLAGS later on.
9331 REAL_CPPFLAGS
="$CPPFLAGS"
9333 if test "${HAVE_X11}" = "yes"; then
9334 DEFS
="$C_SWITCH_X_SITE $DEFS"
9335 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9337 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9338 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9340 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9341 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9342 # but it's more convenient here to set LD_RUN_PATH
9343 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9344 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9345 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9349 if test "${opsys}" = "gnu-linux"; then
9350 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9351 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9352 cat >conftest.
$ac_ext <<_ACEOF
9355 cat confdefs.h
>>conftest.
$ac_ext
9356 cat >>conftest.
$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9362 XOpenDisplay ("foo");
9367 rm -f conftest.
$ac_objext conftest
$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9371 grep -v '^ *+' conftest.er1
>conftest.err
9373 cat conftest.err
>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try
='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 xlinux_first_failure
=no
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.
$ac_ext >&5
9393 xlinux_first_failure
=yes
9395 rm -f conftest.err conftest.
$ac_objext \
9396 conftest
$ac_exeext conftest.
$ac_ext
9397 if test "${xlinux_first_failure}" = "yes"; then
9398 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9399 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9400 OLD_CPPFLAGS
="$CPPFLAGS"
9402 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9403 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9404 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9405 LIBS
="$LIBS -b i486-linuxaout"
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9416 XOpenDisplay ("foo");
9421 rm -f conftest.
$ac_objext conftest
$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9425 grep -v '^ *+' conftest.er1
>conftest.err
9427 cat conftest.err
>&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try
='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 xlinux_second_failure
=no
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.
$ac_ext >&5
9447 xlinux_second_failure
=yes
9449 rm -f conftest.err conftest.
$ac_objext \
9450 conftest
$ac_exeext conftest.
$ac_ext
9451 if test "${xlinux_second_failure}" = "yes"; then
9452 # If we get the same failure with -b, there is no use adding -b.
9453 # So take it out. This plays safe.
9454 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9455 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9456 CPPFLAGS
="$OLD_CPPFLAGS"
9458 echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6
9461 echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9465 echo "$as_me:$LINENO: result: no" >&5
9466 echo "${ECHO_T}no" >&6
9470 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9471 # header files included from there.
9472 echo "$as_me:$LINENO: checking for Xkb" >&5
9473 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9474 cat >conftest.
$ac_ext <<_ACEOF
9477 cat confdefs.h
>>conftest.
$ac_ext
9478 cat >>conftest.
$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <X11/Xlib.h>
9481 #include <X11/XKBlib.h>
9485 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9490 rm -f conftest.
$ac_objext conftest
$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9494 grep -v '^ *+' conftest.er1
>conftest.err
9496 cat conftest.err
>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try
='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.
$ac_ext >&5
9518 rm -f conftest.err conftest.
$ac_objext \
9519 conftest
$ac_exeext conftest.
$ac_ext
9520 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9521 echo "${ECHO_T}$emacs_xkb" >&6
9522 if test $emacs_xkb = yes; then
9524 cat >>confdefs.h
<<\_ACEOF
9525 #define HAVE_XKBGETKEYBOARD 1
9534 for ac_func
in XrmSetDatabase XScreenResourceString \
9535 XScreenNumberOfScreen XSetWMProtocols
9537 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 echo "$as_me:$LINENO: checking for $ac_func" >&5
9539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9540 if eval "test \"\${$as_ac_var+set}\" = set"; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 cat >conftest.
$ac_ext <<_ACEOF
9546 cat confdefs.h
>>conftest.
$ac_ext
9547 cat >>conftest.
$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551 #define $ac_func innocuous_$ac_func
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char $ac_func (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9559 # include <limits.h>
9561 # include <assert.h>
9566 /* Override any gcc2 internal prototype to avoid an error. */
9571 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9580 char (*f) () = $ac_func;
9589 return f != $ac_func;
9594 rm -f conftest.
$ac_objext conftest
$ac_exeext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>conftest.er1
9598 grep -v '^ *+' conftest.er1
>conftest.err
9600 cat conftest.err
>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try
='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 eval "$as_ac_var=yes"
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.
$ac_ext >&5
9620 eval "$as_ac_var=no"
9622 rm -f conftest.err conftest.
$ac_objext \
9623 conftest
$ac_exeext conftest.
$ac_ext
9625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9627 if test `eval echo '${'$as_ac_var'}'` = yes; then
9628 cat >>confdefs.h
<<_ACEOF
9629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9637 if test "${window_system}" = "x11"; then
9638 echo "$as_me:$LINENO: checking X11 version 6" >&5
9639 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9640 if test "${emacs_cv_x11_version_6+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 cat >conftest.
$ac_ext <<_ACEOF
9646 cat confdefs.h
>>conftest.
$ac_ext
9647 cat >>conftest.
$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <X11/Xlib.h>
9653 #if XlibSpecificationRelease < 6
9661 rm -f conftest.
$ac_objext conftest
$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1
>conftest.err
9667 cat conftest.err
>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try
='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 emacs_cv_x11_version_6
=yes
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.
$ac_ext >&5
9687 emacs_cv_x11_version_6
=no
9689 rm -f conftest.err conftest.
$ac_objext \
9690 conftest
$ac_exeext conftest.
$ac_ext
9693 if test $emacs_cv_x11_version_6 = yes; then
9694 echo "$as_me:$LINENO: result: 6 or newer" >&5
9695 echo "${ECHO_T}6 or newer" >&6
9697 cat >>confdefs.h
<<\_ACEOF
9698 #define HAVE_X11R6 1
9702 echo "$as_me:$LINENO: result: before 6" >&5
9703 echo "${ECHO_T}before 6" >&6
9707 if test "${window_system}" = "x11"; then
9708 echo "$as_me:$LINENO: checking X11 version 5" >&5
9709 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9710 if test "${emacs_cv_x11_version_5+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 cat >conftest.
$ac_ext <<_ACEOF
9716 cat confdefs.h
>>conftest.
$ac_ext
9717 cat >>conftest.
$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 #include <X11/Xlib.h>
9723 #if XlibSpecificationRelease < 5
9731 rm -f conftest.
$ac_objext conftest
$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1
>conftest.err
9737 cat conftest.err
>&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try
='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 emacs_cv_x11_version_5
=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.
$ac_ext >&5
9757 emacs_cv_x11_version_5
=no
9759 rm -f conftest.err conftest.
$ac_objext \
9760 conftest
$ac_exeext conftest.
$ac_ext
9763 if test $emacs_cv_x11_version_5 = yes; then
9764 echo "$as_me:$LINENO: result: 5 or newer" >&5
9765 echo "${ECHO_T}5 or newer" >&6
9768 cat >>confdefs.h
<<\_ACEOF
9769 #define HAVE_X11R5 1
9774 echo "$as_me:$LINENO: result: before 5" >&5
9775 echo "${ECHO_T}before 5" >&6
9782 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9783 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9784 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9785 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9786 { (exit 1); exit 1; }; };
9790 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9792 if test "X${with_pkg_config_prog}" != X
; then
9793 PKG_CONFIG
="${with_pkg_config_prog}"
9798 if test -z "$PKG_CONFIG"; then
9799 # Extract the first word of "pkg-config", so it can be a program name with args.
9800 set dummy pkg-config
; ac_word
=$2
9801 echo "$as_me:$LINENO: checking for $ac_word" >&5
9802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9815 test -z "$as_dir" && as_dir
=.
9816 for ac_exec_ext
in '' $ac_executable_extensions; do
9817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9818 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9829 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9831 if test -n "$PKG_CONFIG"; then
9832 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9833 echo "${ECHO_T}$PKG_CONFIG" >&6
9835 echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9841 if test "$PKG_CONFIG" = "no" ; then
9842 echo "*** The pkg-config script could not be found. Make sure it is"
9843 echo "*** in your path, or give the full path to pkg-config with"
9844 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9845 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9847 PKG_CONFIG_MIN_VERSION
=0.9.0
9848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9849 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9850 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9852 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9853 echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6
9857 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9858 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9859 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9860 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9861 echo "${ECHO_T}$GTK_CFLAGS" >&6
9863 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9864 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9865 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9866 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9867 echo "${ECHO_T}$GTK_LIBS" >&6
9871 ## If we have a custom action on failure, don't print errors, but
9872 ## do set a variable so people can do so.
9873 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9874 echo $GTK_PKG_ERRORS
9880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9885 if test $succeeded = yes; then
9888 { { 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
9889 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;}
9890 { (exit 1); exit 1; }; }
9895 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9896 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9897 LIBS
="$GTK_LIBS $LIBS"
9900 cat >>confdefs.h
<<\_ACEOF
9906 if test "$with_toolkit_scroll_bars" != no
; then
9907 with_toolkit_scroll_bars
=yes
9910 HAVE_GTK_MULTIDISPLAY
=no
9912 for ac_func
in gdk_display_open
9914 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9915 echo "$as_me:$LINENO: checking for $ac_func" >&5
9916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9917 if eval "test \"\${$as_ac_var+set}\" = set"; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 cat >conftest.
$ac_ext <<_ACEOF
9923 cat confdefs.h
>>conftest.
$ac_ext
9924 cat >>conftest.
$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9928 #define $ac_func innocuous_$ac_func
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char $ac_func (); below.
9932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933 <limits.h> exists even on freestanding compilers. */
9936 # include <limits.h>
9938 # include <assert.h>
9943 /* Override any gcc2 internal prototype to avoid an error. */
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9957 char (*f) () = $ac_func;
9966 return f != $ac_func;
9971 rm -f conftest.
$ac_objext conftest
$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9975 grep -v '^ *+' conftest.er1
>conftest.err
9977 cat conftest.err
>&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try
='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 eval "$as_ac_var=yes"
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.
$ac_ext >&5
9997 eval "$as_ac_var=no"
9999 rm -f conftest.err conftest.
$ac_objext \
10000 conftest
$ac_exeext conftest.
$ac_ext
10002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10004 if test `eval echo '${'$as_ac_var'}'` = yes; then
10005 cat >>confdefs.h
<<_ACEOF
10006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10008 HAVE_GTK_MULTIDISPLAY
=yes
10012 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10014 cat >>confdefs.h
<<\_ACEOF
10015 #define HAVE_GTK_MULTIDISPLAY 1
10019 HAVE_GTK_FILE_SELECTION
=no
10021 for ac_func
in gtk_file_selection_new
10023 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10024 echo "$as_me:$LINENO: checking for $ac_func" >&5
10025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10026 if eval "test \"\${$as_ac_var+set}\" = set"; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 cat >conftest.
$ac_ext <<_ACEOF
10032 cat confdefs.h
>>conftest.
$ac_ext
10033 cat >>conftest.
$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10037 #define $ac_func innocuous_$ac_func
10039 /* System header to define __stub macros and hopefully few prototypes,
10040 which can conflict with char $ac_func (); below.
10041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10042 <limits.h> exists even on freestanding compilers. */
10045 # include <limits.h>
10047 # include <assert.h>
10052 /* Override any gcc2 internal prototype to avoid an error. */
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10066 char (*f) () = $ac_func;
10075 return f != $ac_func;
10080 rm -f conftest.
$ac_objext conftest
$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10084 grep -v '^ *+' conftest.er1
>conftest.err
10086 cat conftest.err
>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try
='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 eval "$as_ac_var=yes"
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.
$ac_ext >&5
10106 eval "$as_ac_var=no"
10108 rm -f conftest.err conftest.
$ac_objext \
10109 conftest
$ac_exeext conftest.
$ac_ext
10111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10113 if test `eval echo '${'$as_ac_var'}'` = yes; then
10114 cat >>confdefs.h
<<_ACEOF
10115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10117 HAVE_GTK_FILE_SELECTION
=yes
10122 HAVE_GTK_FILE_CHOOSER
=no
10124 for ac_func
in gtk_file_chooser_dialog_new
10126 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10127 echo "$as_me:$LINENO: checking for $ac_func" >&5
10128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10129 if eval "test \"\${$as_ac_var+set}\" = set"; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 cat >conftest.
$ac_ext <<_ACEOF
10135 cat confdefs.h
>>conftest.
$ac_ext
10136 cat >>conftest.
$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140 #define $ac_func innocuous_$ac_func
10142 /* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char $ac_func (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10148 # include <limits.h>
10150 # include <assert.h>
10155 /* Override any gcc2 internal prototype to avoid an error. */
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10163 /* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10169 char (*f) () = $ac_func;
10178 return f != $ac_func;
10183 rm -f conftest.
$ac_objext conftest
$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10187 grep -v '^ *+' conftest.er1
>conftest.err
10189 cat conftest.err
>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try
='test -s conftest$ac_exeext'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 eval "$as_ac_var=yes"
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.
$ac_ext >&5
10209 eval "$as_ac_var=no"
10211 rm -f conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10216 if test `eval echo '${'$as_ac_var'}'` = yes; then
10217 cat >>confdefs.h
<<_ACEOF
10218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10220 HAVE_GTK_FILE_CHOOSER
=yes
10225 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10226 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10228 cat >>confdefs.h
<<\_ACEOF
10229 #define HAVE_GTK_FILE_BOTH 1
10234 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10235 HAVE_GTK_AND_PTHREAD
=no
10237 for ac_header
in pthread.h
10239 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10241 echo "$as_me:$LINENO: checking for $ac_header" >&5
10242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10249 # Is the header compilable?
10250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10252 cat >conftest.
$ac_ext <<_ACEOF
10255 cat confdefs.h
>>conftest.
$ac_ext
10256 cat >>conftest.
$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 $ac_includes_default
10259 #include <$ac_header>
10261 rm -f conftest.
$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10265 grep -v '^ *+' conftest.er1
>conftest.err
10267 cat conftest.err
>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try
='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_header_compiler
=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_header_compiler
=no
10289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10291 echo "${ECHO_T}$ac_header_compiler" >&6
10293 # Is the header present?
10294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10296 cat >conftest.
$ac_ext <<_ACEOF
10299 cat confdefs.h
>>conftest.
$ac_ext
10300 cat >>conftest.
$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <$ac_header>
10304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10305 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10307 grep -v '^ *+' conftest.er1
>conftest.err
10309 cat conftest.err
>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev
/null
; then
10312 if test -s conftest.err
; then
10313 ac_cpp_err
=$ac_c_preproc_warn_flag
10314 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10321 if test -z "$ac_cpp_err"; then
10322 ac_header_preproc
=yes
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.
$ac_ext >&5
10327 ac_header_preproc
=no
10329 rm -f conftest.err conftest.
$ac_ext
10330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10331 echo "${ECHO_T}$ac_header_preproc" >&6
10333 # So? What about this header?
10334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10340 ac_header_preproc
=yes
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10357 ## ------------------------------------------ ##
10358 ## Report this to the AC_PACKAGE_NAME lists. ##
10359 ## ------------------------------------------ ##
10362 sed "s/^/$as_me: WARNING: /" >&2
10365 echo "$as_me:$LINENO: checking for $ac_header" >&5
10366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 eval "$as_ac_Header=\$ac_header_preproc"
10372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377 cat >>confdefs.h
<<_ACEOF
10378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10385 if test "$ac_cv_header_pthread_h"; then
10386 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10387 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10388 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 ac_check_lib_save_LIBS
=$LIBS
10392 LIBS
="-lpthread $LIBS"
10393 cat >conftest.
$ac_ext <<_ACEOF
10396 cat confdefs.h
>>conftest.
$ac_ext
10397 cat >>conftest.
$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any gcc2 internal prototype to avoid an error. */
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char pthread_self ();
10415 rm -f conftest.
$ac_objext conftest
$ac_exeext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>conftest.er1
10419 grep -v '^ *+' conftest.er1
>conftest.err
10421 cat conftest.err
>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try
='test -s conftest$ac_exeext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10436 ac_cv_lib_pthread_pthread_self
=yes
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.
$ac_ext >&5
10441 ac_cv_lib_pthread_pthread_self
=no
10443 rm -f conftest.err conftest.
$ac_objext \
10444 conftest
$ac_exeext conftest.
$ac_ext
10445 LIBS
=$ac_check_lib_save_LIBS
10447 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10448 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10449 if test $ac_cv_lib_pthread_pthread_self = yes; then
10450 HAVE_GTK_AND_PTHREAD
=yes
10454 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10455 GTK_LIBS
="$GTK_LIBS -lpthread"
10457 cat >>confdefs.h
<<\_ACEOF
10458 #define HAVE_GTK_AND_PTHREAD 1
10465 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10466 if test x
"${HAVE_X11R5}" = xyes
; then
10467 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10468 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10469 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 cat >conftest.
$ac_ext <<_ACEOF
10475 cat confdefs.h
>>conftest.
$ac_ext
10476 cat >>conftest.
$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10479 #include <X11/Intrinsic.h>
10480 #include <X11/Xaw/Simple.h>
10489 rm -f conftest.
$ac_objext conftest
$ac_exeext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491 (eval $ac_link) 2>conftest.er1
10493 grep -v '^ *+' conftest.er1
>conftest.err
10495 cat conftest.err
>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; } &&
10504 { ac_try
='test -s conftest$ac_exeext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 emacs_cv_x11_version_5_with_xaw
=yes
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.
$ac_ext >&5
10515 emacs_cv_x11_version_5_with_xaw
=no
10517 rm -f conftest.err conftest.
$ac_objext \
10518 conftest
$ac_exeext conftest.
$ac_ext
10521 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10522 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10523 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10524 USE_X_TOOLKIT
=LUCID
10526 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10527 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10535 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10537 if test "${USE_X_TOOLKIT}" != "none"; then
10538 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10539 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10540 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 cat >conftest.
$ac_ext <<_ACEOF
10546 cat confdefs.h
>>conftest.
$ac_ext
10547 cat >>conftest.
$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <X11/Intrinsic.h>
10553 #if XtSpecificationRelease < 6
10561 rm -f conftest.
$ac_objext conftest
$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>conftest.er1
10565 grep -v '^ *+' conftest.er1
>conftest.err
10567 cat conftest.err
>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try
='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 emacs_cv_x11_toolkit_version_6
=yes
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.
$ac_ext >&5
10587 emacs_cv_x11_toolkit_version_6
=no
10589 rm -f conftest.err conftest.
$ac_objext \
10590 conftest
$ac_exeext conftest.
$ac_ext
10593 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10594 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10595 echo "$as_me:$LINENO: result: 6 or newer" >&5
10596 echo "${ECHO_T}6 or newer" >&6
10598 cat >>confdefs.h
<<\_ACEOF
10599 #define HAVE_X11XTR6 1
10603 echo "$as_me:$LINENO: result: before 6" >&5
10604 echo "${ECHO_T}before 6" >&6
10608 if test x
$HAVE_X11XTR6 = xyes
; then
10609 LIBS
="-lXt -lSM -lICE $LIBS"
10614 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10615 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10616 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 ac_check_lib_save_LIBS
=$LIBS
10621 cat >conftest.
$ac_ext <<_ACEOF
10624 cat confdefs.h
>>conftest.
$ac_ext
10625 cat >>conftest.
$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any gcc2 internal prototype to avoid an error. */
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10634 char XmuConvertStandardSelection ();
10638 XmuConvertStandardSelection ();
10643 rm -f conftest.
$ac_objext conftest
$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10647 grep -v '^ *+' conftest.er1
>conftest.err
10649 cat conftest.err
>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try
='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.
$ac_ext >&5
10669 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10671 rm -f conftest.err conftest.
$ac_objext \
10672 conftest
$ac_exeext conftest.
$ac_ext
10673 LIBS
=$ac_check_lib_save_LIBS
10675 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10676 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10677 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10678 cat >>confdefs.h
<<_ACEOF
10679 #define HAVE_LIBXMU 1
10686 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10689 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10690 if test "${HAVE_X11}" = "yes"; then
10691 if test "${USE_X_TOOLKIT}" != "none"; then
10693 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10694 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10695 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 ac_check_lib_save_LIBS
=$LIBS
10699 LIBS
="-lXext $LIBS"
10700 cat >conftest.
$ac_ext <<_ACEOF
10703 cat confdefs.h
>>conftest.
$ac_ext
10704 cat >>conftest.
$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10707 /* Override any gcc2 internal prototype to avoid an error. */
10711 /* We use char because int might match the return type of a gcc2
10712 builtin and then its argument prototype would still apply. */
10713 char XShapeQueryExtension ();
10717 XShapeQueryExtension ();
10722 rm -f conftest.
$ac_objext conftest
$ac_exeext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724 (eval $ac_link) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1
>conftest.err
10728 cat conftest.err
>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try
='test -s conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.
$ac_ext >&5
10748 ac_cv_lib_Xext_XShapeQueryExtension
=no
10750 rm -f conftest.err conftest.
$ac_objext \
10751 conftest
$ac_exeext conftest.
$ac_ext
10752 LIBS
=$ac_check_lib_save_LIBS
10754 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10755 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10756 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10757 cat >>confdefs.h
<<_ACEOF
10758 #define HAVE_LIBXEXT 1
10761 LIBS
="-lXext $LIBS"
10768 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10769 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10770 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10771 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 cat >conftest.
$ac_ext <<_ACEOF
10777 cat confdefs.h
>>conftest.
$ac_ext
10778 cat >>conftest.
$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10784 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10787 Motif version prior to 2.1.
10793 rm -f conftest.
$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try
='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 emacs_cv_motif_version_2_1
=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.
$ac_ext >&5
10819 emacs_cv_motif_version_2_1
=no
10821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10823 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10824 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10825 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10826 if test $emacs_cv_motif_version_2_1 = yes; then
10829 cat >>confdefs.h
<<\_ACEOF
10830 #define HAVE_MOTIF_2_1 1
10833 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10834 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10835 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 ac_check_lib_save_LIBS
=$LIBS
10840 cat >conftest.
$ac_ext <<_ACEOF
10843 cat confdefs.h
>>conftest.
$ac_ext
10844 cat >>conftest.
$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10847 /* Override any gcc2 internal prototype to avoid an error. */
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853 char XpCreateContext ();
10857 XpCreateContext ();
10862 rm -f conftest.
$ac_objext conftest
$ac_exeext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>conftest.er1
10866 grep -v '^ *+' conftest.er1
>conftest.err
10868 cat conftest.err
>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try
='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_Xp_XpCreateContext
=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.
$ac_ext >&5
10888 ac_cv_lib_Xp_XpCreateContext
=no
10890 rm -f conftest.err conftest.
$ac_objext \
10891 conftest
$ac_exeext conftest.
$ac_ext
10892 LIBS
=$ac_check_lib_save_LIBS
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10895 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10896 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10900 if test ${HAVE_LIBXP} = yes; then
10902 cat >>confdefs.h
<<\_ACEOF
10903 #define HAVE_LIBXP 1
10908 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10909 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10910 if test "${emacs_cv_lesstif+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 # We put this in CFLAGS temporarily to precede other -I options
10914 # that might be in CFLAGS temporarily.
10915 # We put this in CPPFLAGS where it precedes the other -I options.
10916 OLD_CPPFLAGS
=$CPPFLAGS
10918 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10919 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10920 cat >conftest.
$ac_ext <<_ACEOF
10923 cat confdefs.h
>>conftest.
$ac_ext
10924 cat >>conftest.
$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10935 rm -f conftest.
$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10939 grep -v '^ *+' conftest.er1
>conftest.err
10941 cat conftest.err
>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try
='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 emacs_cv_lesstif
=yes
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.
$ac_ext >&5
10961 emacs_cv_lesstif
=no
10963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10965 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10966 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10967 if test $emacs_cv_lesstif = yes; then
10968 # Make sure this -I option remains in CPPFLAGS after it is set
10969 # back to REAL_CPPFLAGS.
10970 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10971 # have those other -I options anyway. Ultimately, having this
10972 # directory ultimately in CPPFLAGS will be enough.
10973 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10974 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10977 CPPFLAGS
=$OLD_CPPFLAGS
10982 ### Is -lXaw3d available?
10984 if test "${HAVE_X11}" = "yes"; then
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10987 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10988 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 cat >conftest.
$ac_ext <<_ACEOF
10994 cat confdefs.h
>>conftest.
$ac_ext
10995 cat >>conftest.
$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <X11/Xaw3d/Scrollbar.h>
10999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11000 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1
>conftest.err
11004 cat conftest.err
>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } >/dev
/null
; then
11007 if test -s conftest.err
; then
11008 ac_cpp_err
=$ac_c_preproc_warn_flag
11009 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11016 if test -z "$ac_cpp_err"; then
11017 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.
$ac_ext >&5
11022 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11024 rm -f conftest.err conftest.
$ac_ext
11026 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11027 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11028 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11029 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11030 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11031 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 ac_check_lib_save_LIBS
=$LIBS
11035 LIBS
="-lXaw3d $LIBS"
11036 cat >conftest.
$ac_ext <<_ACEOF
11039 cat confdefs.h
>>conftest.
$ac_ext
11040 cat >>conftest.
$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11043 /* Override any gcc2 internal prototype to avoid an error. */
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char XawScrollbarSetThumb ();
11053 XawScrollbarSetThumb ();
11058 rm -f conftest.
$ac_objext conftest
$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>conftest.er1
11062 grep -v '^ *+' conftest.er1
>conftest.err
11064 cat conftest.err
>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try
='test -s conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.
$ac_ext >&5
11084 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11086 rm -f conftest.err conftest.
$ac_objext \
11087 conftest
$ac_exeext conftest.
$ac_ext
11088 LIBS
=$ac_check_lib_save_LIBS
11090 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11091 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11092 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11099 if test "${HAVE_XAW3D}" = "yes"; then
11101 cat >>confdefs.h
<<\_ACEOF
11102 #define HAVE_XAW3D 1
11111 USE_TOOLKIT_SCROLL_BARS
=no
11112 if test "${with_toolkit_scroll_bars}" != "no"; then
11113 if test "${USE_X_TOOLKIT}" != "none"; then
11114 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11115 cat >>confdefs.h
<<\_ACEOF
11116 #define USE_TOOLKIT_SCROLL_BARS 1
11120 USE_TOOLKIT_SCROLL_BARS
=yes
11121 elif test "${HAVE_XAW3D}" = "yes"; then
11122 cat >>confdefs.h
<<\_ACEOF
11123 #define USE_TOOLKIT_SCROLL_BARS 1
11126 USE_TOOLKIT_SCROLL_BARS
=yes
11128 elif test "${HAVE_GTK}" = "yes"; then
11129 cat >>confdefs.h
<<\_ACEOF
11130 #define USE_TOOLKIT_SCROLL_BARS 1
11133 USE_TOOLKIT_SCROLL_BARS
=yes
11134 elif test "${HAVE_CARBON}" = "yes"; then
11135 cat >>confdefs.h
<<\_ACEOF
11136 #define USE_TOOLKIT_SCROLL_BARS 1
11139 USE_TOOLKIT_SCROLL_BARS
=yes
11143 cat >conftest.
$ac_ext <<_ACEOF
11146 cat confdefs.h
>>conftest.
$ac_ext
11147 cat >>conftest.
$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11150 #include <X11/Xlib.h>
11151 #include <X11/Xresource.h>
11160 rm -f conftest.
$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11164 grep -v '^ *+' conftest.er1
>conftest.err
11166 cat conftest.err
>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try
='test -s conftest.$ac_objext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11183 cat >>confdefs.h
<<\_ACEOF
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.
$ac_ext >&5
11193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11196 if test "${with_xim}" != "no"; then
11198 cat >>confdefs.h
<<\_ACEOF
11205 if test "${HAVE_XIM}" != "no"; then
11206 late_CFLAGS
=$CFLAGS
11207 if test "$GCC" = yes; then
11208 CFLAGS
="$CFLAGS --pedantic-errors"
11210 cat >conftest.
$ac_ext <<_ACEOF
11213 cat confdefs.h
>>conftest.
$ac_ext
11214 cat >>conftest.
$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11217 #include <X11/Xlib.h>
11218 #include <X11/Xresource.h>
11227 XPointer *client_data;
11229 /* If we're not using GCC, it's probably not XFree86, and this is
11230 probably right, but we can't use something like --pedantic-errors. */
11231 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11232 char*, XIMProc, XPointer*);
11234 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11240 rm -f conftest.
$ac_objext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11244 grep -v '^ *+' conftest.er1
>conftest.err
11246 cat conftest.err
>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try
='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 emacs_cv_arg6_star
=yes
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.
$ac_ext >&5
11267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11269 if test "$emacs_cv_arg6_star" = yes; then
11270 cat >>confdefs.h
<<\_ACEOF
11271 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11275 cat >>confdefs.h
<<\_ACEOF
11276 #define XRegisterIMInstantiateCallback_arg6 XPointer
11280 CFLAGS
=$late_CFLAGS
11283 ### Use -lXpm if available, unless `--with-xpm=no'.
11285 if test "${HAVE_X11}" = "yes"; then
11286 if test "${with_xpm}" != "no"; then
11287 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11288 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11289 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11294 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11296 # Is the header compilable?
11297 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11298 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11299 cat >conftest.
$ac_ext <<_ACEOF
11302 cat confdefs.h
>>conftest.
$ac_ext
11303 cat >>conftest.
$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 #include <X11/xpm.h>
11308 rm -f conftest.
$ac_objext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>conftest.er1
11312 grep -v '^ *+' conftest.er1
>conftest.err
11314 cat conftest.err
>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try
='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_header_compiler
=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 ac_header_compiler
=no
11336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 echo "${ECHO_T}$ac_header_compiler" >&6
11340 # Is the header present?
11341 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11342 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <X11/xpm.h>
11351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11354 grep -v '^ *+' conftest.er1
>conftest.err
11356 cat conftest.err
>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev
/null
; then
11359 if test -s conftest.err
; then
11360 ac_cpp_err
=$ac_c_preproc_warn_flag
11361 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11368 if test -z "$ac_cpp_err"; then
11369 ac_header_preproc
=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.
$ac_ext >&5
11374 ac_header_preproc
=no
11376 rm -f conftest.err conftest.
$ac_ext
11377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc
=yes
11390 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11404 ## ------------------------------------------ ##
11405 ## Report this to the AC_PACKAGE_NAME lists. ##
11406 ## ------------------------------------------ ##
11409 sed "s/^/$as_me: WARNING: /" >&2
11412 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11413 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11414 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11419 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11423 if test $ac_cv_header_X11_xpm_h = yes; then
11424 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11425 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11426 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 ac_check_lib_save_LIBS
=$LIBS
11430 LIBS
="-lXpm -lX11 $LIBS"
11431 cat >conftest.
$ac_ext <<_ACEOF
11434 cat confdefs.h
>>conftest.
$ac_ext
11435 cat >>conftest.
$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11438 /* Override any gcc2 internal prototype to avoid an error. */
11442 /* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11444 char XpmReadFileToPixmap ();
11448 XpmReadFileToPixmap ();
11453 rm -f conftest.
$ac_objext conftest
$ac_exeext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>conftest.er1
11457 grep -v '^ *+' conftest.er1
>conftest.err
11459 cat conftest.err
>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try
='test -s conftest$ac_exeext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.
$ac_ext >&5
11479 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11481 rm -f conftest.err conftest.
$ac_objext \
11482 conftest
$ac_exeext conftest.
$ac_ext
11483 LIBS
=$ac_check_lib_save_LIBS
11485 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11486 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11487 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11494 if test "${HAVE_XPM}" = "yes"; then
11495 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11496 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11497 cat >conftest.
$ac_ext <<_ACEOF
11500 cat confdefs.h
>>conftest.
$ac_ext
11501 cat >>conftest.
$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include "X11/xpm.h"
11504 #ifndef XpmReturnAllocPixels
11505 no_return_alloc_pixels
11509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11510 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11518 if test "${HAVE_XPM}" = "yes"; then
11519 echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11528 if test "${HAVE_XPM}" = "yes"; then
11530 cat >>confdefs.h
<<\_ACEOF
11537 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11539 if test "${HAVE_X11}" = "yes"; then
11540 if test "${with_jpeg}" != "no"; then
11541 if test "${ac_cv_header_jerror_h+set}" = set; then
11542 echo "$as_me:$LINENO: checking for jerror.h" >&5
11543 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11544 if test "${ac_cv_header_jerror_h+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11548 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11550 # Is the header compilable?
11551 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11552 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11553 cat >conftest.
$ac_ext <<_ACEOF
11556 cat confdefs.h
>>conftest.
$ac_ext
11557 cat >>conftest.
$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <jerror.h>
11562 rm -f conftest.
$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11566 grep -v '^ *+' conftest.er1
>conftest.err
11568 cat conftest.err
>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try
='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_header_compiler
=yes
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.
$ac_ext >&5
11588 ac_header_compiler
=no
11590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11596 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11597 cat >conftest.
$ac_ext <<_ACEOF
11600 cat confdefs.h
>>conftest.
$ac_ext
11601 cat >>conftest.
$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <jerror.h>
11605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11606 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11608 grep -v '^ *+' conftest.er1
>conftest.err
11610 cat conftest.err
>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } >/dev
/null
; then
11613 if test -s conftest.err
; then
11614 ac_cpp_err
=$ac_c_preproc_warn_flag
11615 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11622 if test -z "$ac_cpp_err"; then
11623 ac_header_preproc
=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.
$ac_ext >&5
11628 ac_header_preproc
=no
11630 rm -f conftest.err conftest.
$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11637 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc
=yes
11644 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11658 ## ------------------------------------------ ##
11659 ## Report this to the AC_PACKAGE_NAME lists. ##
11660 ## ------------------------------------------ ##
11663 sed "s/^/$as_me: WARNING: /" >&2
11666 echo "$as_me:$LINENO: checking for jerror.h" >&5
11667 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11668 if test "${ac_cv_header_jerror_h+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 ac_cv_header_jerror_h
=$ac_header_preproc
11673 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11677 if test $ac_cv_header_jerror_h = yes; then
11678 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11679 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11680 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_check_lib_save_LIBS
=$LIBS
11684 LIBS
="-ljpeg $LIBS"
11685 cat >conftest.
$ac_ext <<_ACEOF
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char jpeg_destroy_compress ();
11702 jpeg_destroy_compress ();
11707 rm -f conftest.
$ac_objext conftest
$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try
='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.
$ac_ext >&5
11733 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11735 rm -f conftest.err conftest.
$ac_objext \
11736 conftest
$ac_exeext conftest.
$ac_ext
11737 LIBS
=$ac_check_lib_save_LIBS
11739 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11740 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11741 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11751 if test "${HAVE_JPEG}" = "yes"; then
11752 cat >>confdefs.h
<<\_ACEOF
11753 #define HAVE_JPEG 1
11756 cat >conftest.
$ac_ext <<_ACEOF
11759 cat confdefs.h
>>conftest.
$ac_ext
11760 cat >>conftest.
$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 #include <jpeglib.h>
11763 version=JPEG_LIB_VERSION
11766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11767 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11768 cat >>confdefs.h
<<\_ACEOF
11769 #define HAVE_JPEG 1
11773 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11774 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11782 ### Use -lpng if available, unless `--with-png=no'.
11784 if test "${HAVE_X11}" = "yes"; then
11785 if test "${with_png}" != "no"; then
11786 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11787 # in /usr/include/libpng.
11790 for ac_header
in png.h libpng
/png.h
11792 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11802 # Is the header compilable?
11803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11805 cat >conftest.
$ac_ext <<_ACEOF
11808 cat confdefs.h
>>conftest.
$ac_ext
11809 cat >>conftest.
$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 #include <$ac_header>
11814 rm -f conftest.
$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11818 grep -v '^ *+' conftest.er1
>conftest.err
11820 cat conftest.err
>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try
='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_header_compiler
=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.
$ac_ext >&5
11840 ac_header_compiler
=no
11842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 echo "${ECHO_T}$ac_header_compiler" >&6
11846 # Is the header present?
11847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11849 cat >conftest.
$ac_ext <<_ACEOF
11852 cat confdefs.h
>>conftest.
$ac_ext
11853 cat >>conftest.
$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <$ac_header>
11857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11860 grep -v '^ *+' conftest.er1
>conftest.err
11862 cat conftest.err
>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } >/dev
/null
; then
11865 if test -s conftest.err
; then
11866 ac_cpp_err
=$ac_c_preproc_warn_flag
11867 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11874 if test -z "$ac_cpp_err"; then
11875 ac_header_preproc
=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.
$ac_ext >&5
11880 ac_header_preproc
=no
11882 rm -f conftest.err conftest.
$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc
=yes
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11910 ## ------------------------------------------ ##
11911 ## Report this to the AC_PACKAGE_NAME lists. ##
11912 ## ------------------------------------------ ##
11915 sed "s/^/$as_me: WARNING: /" >&2
11918 echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 eval "$as_ac_Header=\$ac_header_preproc"
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11930 cat >>confdefs.h
<<_ACEOF
11931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11939 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11940 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11941 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 ac_check_lib_save_LIBS
=$LIBS
11945 LIBS
="-lpng -lz -lm $LIBS"
11946 cat >conftest.
$ac_ext <<_ACEOF
11949 cat confdefs.h
>>conftest.
$ac_ext
11950 cat >>conftest.
$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11953 /* Override any gcc2 internal prototype to avoid an error. */
11957 /* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959 char png_get_channels ();
11963 png_get_channels ();
11968 rm -f conftest.
$ac_objext conftest
$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11972 grep -v '^ *+' conftest.er1
>conftest.err
11974 cat conftest.err
>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try
='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_png_png_get_channels
=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.
$ac_ext >&5
11994 ac_cv_lib_png_png_get_channels
=no
11996 rm -f conftest.err conftest.
$ac_objext \
11997 conftest
$ac_exeext conftest.
$ac_ext
11998 LIBS
=$ac_check_lib_save_LIBS
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12001 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12002 if test $ac_cv_lib_png_png_get_channels = yes; then
12009 if test "${HAVE_PNG}" = "yes"; then
12011 cat >>confdefs.h
<<\_ACEOF
12018 ### Use -ltiff if available, unless `--with-tiff=no'.
12020 if test "${HAVE_X11}" = "yes"; then
12021 if test "${with_tiff}" != "no"; then
12022 if test "${ac_cv_header_tiffio_h+set}" = set; then
12023 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12024 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12025 if test "${ac_cv_header_tiffio_h+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12029 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12031 # Is the header compilable?
12032 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12033 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12034 cat >conftest.
$ac_ext <<_ACEOF
12037 cat confdefs.h
>>conftest.
$ac_ext
12038 cat >>conftest.
$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12041 #include <tiffio.h>
12043 rm -f conftest.
$ac_objext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>conftest.er1
12047 grep -v '^ *+' conftest.er1
>conftest.err
12049 cat conftest.err
>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try
='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_header_compiler
=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.
$ac_ext >&5
12069 ac_header_compiler
=no
12071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12073 echo "${ECHO_T}$ac_header_compiler" >&6
12075 # Is the header present?
12076 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12077 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12078 cat >conftest.
$ac_ext <<_ACEOF
12081 cat confdefs.h
>>conftest.
$ac_ext
12082 cat >>conftest.
$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <tiffio.h>
12086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12089 grep -v '^ *+' conftest.er1
>conftest.err
12091 cat conftest.err
>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } >/dev
/null
; then
12094 if test -s conftest.err
; then
12095 ac_cpp_err
=$ac_c_preproc_warn_flag
12096 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12103 if test -z "$ac_cpp_err"; then
12104 ac_header_preproc
=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.
$ac_ext >&5
12109 ac_header_preproc
=no
12111 rm -f conftest.err conftest.
$ac_ext
12112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12113 echo "${ECHO_T}$ac_header_preproc" >&6
12115 # So? What about this header?
12116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12118 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12119 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12121 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12122 ac_header_preproc
=yes
12125 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12126 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12128 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12130 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12132 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12134 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12136 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12139 ## ------------------------------------------ ##
12140 ## Report this to the AC_PACKAGE_NAME lists. ##
12141 ## ------------------------------------------ ##
12144 sed "s/^/$as_me: WARNING: /" >&2
12147 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12148 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12149 if test "${ac_cv_header_tiffio_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_cv_header_tiffio_h
=$ac_header_preproc
12154 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12158 if test $ac_cv_header_tiffio_h = yes; then
12160 # At least one tiff package requires the jpeg library.
12161 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12162 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12163 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12164 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 ac_check_lib_save_LIBS
=$LIBS
12168 LIBS
="-ltiff $tifflibs $LIBS"
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12182 char TIFFGetVersion ();
12191 rm -f conftest.
$ac_objext conftest
$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1
>conftest.err
12197 cat conftest.err
>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try
='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_lib_tiff_TIFFGetVersion
=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.
$ac_ext >&5
12217 ac_cv_lib_tiff_TIFFGetVersion
=no
12219 rm -f conftest.err conftest.
$ac_objext \
12220 conftest
$ac_exeext conftest.
$ac_ext
12221 LIBS
=$ac_check_lib_save_LIBS
12223 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12224 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12225 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12234 if test "${HAVE_TIFF}" = "yes"; then
12236 cat >>confdefs.h
<<\_ACEOF
12237 #define HAVE_TIFF 1
12243 ### Use -lgif if available, unless `--with-gif=no'.
12245 if test "${HAVE_X11}" = "yes"; then
12246 if test "${with_gif}" != "no"; then
12247 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12248 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12249 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12250 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12254 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12256 # Is the header compilable?
12257 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12258 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12259 cat >conftest.
$ac_ext <<_ACEOF
12262 cat confdefs.h
>>conftest.
$ac_ext
12263 cat >>conftest.
$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 $ac_includes_default
12266 #include <gif_lib.h>
12268 rm -f conftest.
$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>conftest.er1
12272 grep -v '^ *+' conftest.er1
>conftest.err
12274 cat conftest.err
>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try
='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_header_compiler
=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.
$ac_ext >&5
12294 ac_header_compiler
=no
12296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12298 echo "${ECHO_T}$ac_header_compiler" >&6
12300 # Is the header present?
12301 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12302 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12303 cat >conftest.
$ac_ext <<_ACEOF
12306 cat confdefs.h
>>conftest.
$ac_ext
12307 cat >>conftest.
$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <gif_lib.h>
12311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12312 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1
>conftest.err
12316 cat conftest.err
>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } >/dev
/null
; then
12319 if test -s conftest.err
; then
12320 ac_cpp_err
=$ac_c_preproc_warn_flag
12321 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12328 if test -z "$ac_cpp_err"; then
12329 ac_header_preproc
=yes
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.
$ac_ext >&5
12334 ac_header_preproc
=no
12336 rm -f conftest.err conftest.
$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12338 echo "${ECHO_T}$ac_header_preproc" >&6
12340 # So? What about this header?
12341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12343 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12344 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12346 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12347 ac_header_preproc
=yes
12350 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12351 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12353 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12355 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12357 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12359 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12361 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12364 ## ------------------------------------------ ##
12365 ## Report this to the AC_PACKAGE_NAME lists. ##
12366 ## ------------------------------------------ ##
12369 sed "s/^/$as_me: WARNING: /" >&2
12372 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12373 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12374 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_cv_header_gif_lib_h
=$ac_header_preproc
12379 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12380 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12383 if test $ac_cv_header_gif_lib_h = yes; then
12384 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12385 # Earlier versions can crash Emacs.
12386 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12387 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12388 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 ac_check_lib_save_LIBS
=$LIBS
12392 LIBS
="-lungif $LIBS"
12393 cat >conftest.
$ac_ext <<_ACEOF
12396 cat confdefs.h
>>conftest.
$ac_ext
12397 cat >>conftest.
$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 /* Override any gcc2 internal prototype to avoid an error. */
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12406 char EGifPutExtensionLast ();
12410 EGifPutExtensionLast ();
12415 rm -f conftest.
$ac_objext conftest
$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12419 grep -v '^ *+' conftest.er1
>conftest.err
12421 cat conftest.err
>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try
='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.
$ac_ext >&5
12441 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12443 rm -f conftest.err conftest.
$ac_objext \
12444 conftest
$ac_exeext conftest.
$ac_ext
12445 LIBS
=$ac_check_lib_save_LIBS
12447 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12448 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12449 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12458 if test "${HAVE_GIF}" = "yes"; then
12460 cat >>confdefs.h
<<\_ACEOF
12467 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12468 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12469 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12470 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12474 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12476 # Is the header compilable?
12477 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12478 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12479 cat >conftest.
$ac_ext <<_ACEOF
12482 cat confdefs.h
>>conftest.
$ac_ext
12483 cat >>conftest.
$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 #include <malloc/malloc.h>
12488 rm -f conftest.
$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12492 grep -v '^ *+' conftest.er1
>conftest.err
12494 cat conftest.err
>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try
='test -s conftest.$ac_objext'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_header_compiler
=yes
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.
$ac_ext >&5
12514 ac_header_compiler
=no
12516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12518 echo "${ECHO_T}$ac_header_compiler" >&6
12520 # Is the header present?
12521 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12522 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12523 cat >conftest.
$ac_ext <<_ACEOF
12526 cat confdefs.h
>>conftest.
$ac_ext
12527 cat >>conftest.
$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <malloc/malloc.h>
12531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12532 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12534 grep -v '^ *+' conftest.er1
>conftest.err
12536 cat conftest.err
>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } >/dev
/null
; then
12539 if test -s conftest.err
; then
12540 ac_cpp_err
=$ac_c_preproc_warn_flag
12541 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12548 if test -z "$ac_cpp_err"; then
12549 ac_header_preproc
=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.
$ac_ext >&5
12554 ac_header_preproc
=no
12556 rm -f conftest.err conftest.
$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558 echo "${ECHO_T}$ac_header_preproc" >&6
12560 # So? What about this header?
12561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12563 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12564 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12566 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12567 ac_header_preproc
=yes
12570 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12571 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12573 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12575 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12577 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12579 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12581 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12584 ## ------------------------------------------ ##
12585 ## Report this to the AC_PACKAGE_NAME lists. ##
12586 ## ------------------------------------------ ##
12589 sed "s/^/$as_me: WARNING: /" >&2
12592 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12593 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12594 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12599 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12600 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12603 if test $ac_cv_header_malloc_malloc_h = yes; then
12605 cat >>confdefs.h
<<\_ACEOF
12606 #define HAVE_MALLOC_MALLOC_H 1
12613 ### Use Mac OS X Carbon API to implement GUI.
12614 if test "${HAVE_CARBON}" = "yes"; then
12616 cat >>confdefs.h
<<\_ACEOF
12617 #define HAVE_CARBON 1
12621 ## Specify the install directory
12623 if test "${carbon_appdir_x}" != ""; then
12624 case ${carbon_appdir_x} in
12625 y | ye |
yes) carbon_appdir
=/Applications
;;
12626 * ) carbon_appdir
=${carbon_appdir_x} ;;
12629 # We also have mouse menus.
12633 ### Use session management (-lSM -lICE) if available
12635 if test "${HAVE_X11}" = "yes"; then
12636 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12637 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12638 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12639 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12645 # Is the header compilable?
12646 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12647 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12648 cat >conftest.
$ac_ext <<_ACEOF
12651 cat confdefs.h
>>conftest.
$ac_ext
12652 cat >>conftest.
$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 #include <X11/SM/SMlib.h>
12657 rm -f conftest.
$ac_objext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>conftest.er1
12661 grep -v '^ *+' conftest.er1
>conftest.err
12663 cat conftest.err
>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try
='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_header_compiler
=yes
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.
$ac_ext >&5
12683 ac_header_compiler
=no
12685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687 echo "${ECHO_T}$ac_header_compiler" >&6
12689 # Is the header present?
12690 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12691 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12692 cat >conftest.
$ac_ext <<_ACEOF
12695 cat confdefs.h
>>conftest.
$ac_ext
12696 cat >>conftest.
$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 #include <X11/SM/SMlib.h>
12700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12703 grep -v '^ *+' conftest.er1
>conftest.err
12705 cat conftest.err
>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } >/dev
/null
; then
12708 if test -s conftest.err
; then
12709 ac_cpp_err
=$ac_c_preproc_warn_flag
12710 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12717 if test -z "$ac_cpp_err"; then
12718 ac_header_preproc
=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.
$ac_ext >&5
12723 ac_header_preproc
=no
12725 rm -f conftest.err conftest.
$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727 echo "${ECHO_T}$ac_header_preproc" >&6
12729 # So? What about this header?
12730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12732 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12733 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12735 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12736 ac_header_preproc
=yes
12739 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12740 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12741 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12742 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12744 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12746 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12748 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12750 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12753 ## ------------------------------------------ ##
12754 ## Report this to the AC_PACKAGE_NAME lists. ##
12755 ## ------------------------------------------ ##
12758 sed "s/^/$as_me: WARNING: /" >&2
12761 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12762 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12763 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12768 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12769 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12772 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12773 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12774 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12775 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 ac_check_lib_save_LIBS
=$LIBS
12779 LIBS
="-lSM -lICE $LIBS"
12780 cat >conftest.
$ac_ext <<_ACEOF
12783 cat confdefs.h
>>conftest.
$ac_ext
12784 cat >>conftest.
$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12787 /* Override any gcc2 internal prototype to avoid an error. */
12791 /* We use char because int might match the return type of a gcc2
12792 builtin and then its argument prototype would still apply. */
12793 char SmcOpenConnection ();
12797 SmcOpenConnection ();
12802 rm -f conftest.
$ac_objext conftest
$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1
>conftest.err
12808 cat conftest.err
>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12817 { ac_try
='test -s conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lib_SM_SmcOpenConnection
=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.
$ac_ext >&5
12828 ac_cv_lib_SM_SmcOpenConnection
=no
12830 rm -f conftest.err conftest.
$ac_objext \
12831 conftest
$ac_exeext conftest.
$ac_ext
12832 LIBS
=$ac_check_lib_save_LIBS
12834 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12835 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12836 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12844 if test "${HAVE_X_SM}" = "yes"; then
12846 cat >>confdefs.h
<<\_ACEOF
12847 #define HAVE_X_SM 1
12852 *) LIBS
="-lSM -lICE $LIBS" ;;
12857 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12858 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12859 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12860 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 cat >conftest.
$ac_ext <<_ACEOF
12866 cat confdefs.h
>>conftest.
$ac_ext
12867 cat >>conftest.
$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12878 rm -f conftest.
$ac_objext conftest
$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>conftest.er1
12882 grep -v '^ *+' conftest.er1
>conftest.err
12884 cat conftest.err
>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try
='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 emacs_cv_netdb_declares_h_errno
=yes
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.
$ac_ext >&5
12904 emacs_cv_netdb_declares_h_errno
=no
12906 rm -f conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12909 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12910 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12911 if test $emacs_cv_netdb_declares_h_errno = yes; then
12913 cat >>confdefs.h
<<\_ACEOF
12914 #define HAVE_H_ERRNO 1
12919 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12920 # for constant arguments. Useless!
12921 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12922 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12923 if test "${ac_cv_working_alloca_h+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 cat >conftest.
$ac_ext <<_ACEOF
12929 cat confdefs.h
>>conftest.
$ac_ext
12930 cat >>conftest.
$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 #include <alloca.h>
12936 char *p = (char *) alloca (2 * sizeof (int));
12941 rm -f conftest.
$ac_objext conftest
$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12945 grep -v '^ *+' conftest.er1
>conftest.err
12947 cat conftest.err
>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try
='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_working_alloca_h
=yes
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.
$ac_ext >&5
12967 ac_cv_working_alloca_h
=no
12969 rm -f conftest.err conftest.
$ac_objext \
12970 conftest
$ac_exeext conftest.
$ac_ext
12972 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12973 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12974 if test $ac_cv_working_alloca_h = yes; then
12976 cat >>confdefs.h
<<\_ACEOF
12977 #define HAVE_ALLOCA_H 1
12982 echo "$as_me:$LINENO: checking for alloca" >&5
12983 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12984 if test "${ac_cv_func_alloca_works+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 cat >conftest.
$ac_ext <<_ACEOF
12990 cat confdefs.h
>>conftest.
$ac_ext
12991 cat >>conftest.
$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 # define alloca __builtin_alloca
12997 # include <malloc.h>
12998 # define alloca _alloca
13001 # include <alloca.h>
13006 # ifndef alloca /* predefined by HP cc +Olibcalls */
13017 char *p = (char *) alloca (1);
13022 rm -f conftest.
$ac_objext conftest
$ac_exeext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>conftest.er1
13026 grep -v '^ *+' conftest.er1
>conftest.err
13028 cat conftest.err
>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13037 { ac_try
='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_func_alloca_works
=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.
$ac_ext >&5
13048 ac_cv_func_alloca_works
=no
13050 rm -f conftest.err conftest.
$ac_objext \
13051 conftest
$ac_exeext conftest.
$ac_ext
13053 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13054 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13056 if test $ac_cv_func_alloca_works = yes; then
13058 cat >>confdefs.h
<<\_ACEOF
13059 #define HAVE_ALLOCA 1
13063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13064 # that cause trouble. Some versions do not even contain alloca or
13065 # contain a buggy version. If you still want to use their alloca,
13066 # use ar to extract alloca.o from them instead of compiling alloca.c.
13068 ALLOCA
=alloca.
$ac_objext
13070 cat >>confdefs.h
<<\_ACEOF
13075 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13076 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13077 if test "${ac_cv_os_cray+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 cat >conftest.
$ac_ext <<_ACEOF
13083 cat confdefs.h
>>conftest.
$ac_ext
13084 cat >>conftest.
$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 #if defined(CRAY) && ! defined(CRAY2)
13093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13094 $EGREP "webecray" >/dev
/null
2>&1; then
13102 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13103 echo "${ECHO_T}$ac_cv_os_cray" >&6
13104 if test $ac_cv_os_cray = yes; then
13105 for ac_func
in _getb67 GETB67 getb67
; do
13106 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13107 echo "$as_me:$LINENO: checking for $ac_func" >&5
13108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13109 if eval "test \"\${$as_ac_var+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 cat >conftest.
$ac_ext <<_ACEOF
13115 cat confdefs.h
>>conftest.
$ac_ext
13116 cat >>conftest.
$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13120 #define $ac_func innocuous_$ac_func
13122 /* System header to define __stub macros and hopefully few prototypes,
13123 which can conflict with char $ac_func (); below.
13124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 <limits.h> exists even on freestanding compilers. */
13128 # include <limits.h>
13130 # include <assert.h>
13135 /* Override any gcc2 internal prototype to avoid an error. */
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13143 /* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13149 char (*f) () = $ac_func;
13158 return f != $ac_func;
13163 rm -f conftest.
$ac_objext conftest
$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13167 grep -v '^ *+' conftest.er1
>conftest.err
13169 cat conftest.err
>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try
='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 eval "$as_ac_var=yes"
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.
$ac_ext >&5
13189 eval "$as_ac_var=no"
13191 rm -f conftest.err conftest.
$ac_objext \
13192 conftest
$ac_exeext conftest.
$ac_ext
13194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13196 if test `eval echo '${'$as_ac_var'}'` = yes; then
13198 cat >>confdefs.h
<<_ACEOF
13199 #define CRAY_STACKSEG_END $ac_func
13208 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13209 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13210 if test "${ac_cv_c_stack_direction+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 if test "$cross_compiling" = yes; then
13214 ac_cv_c_stack_direction
=0
13216 cat >conftest.
$ac_ext <<_ACEOF
13219 cat confdefs.h
>>conftest.
$ac_ext
13220 cat >>conftest.
$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13223 find_stack_direction ()
13225 static char *addr = 0;
13230 return find_stack_direction ();
13233 return (&dummy > addr) ? 1 : -1;
13239 exit (find_stack_direction () < 0);
13242 rm -f conftest
$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_c_stack_direction
=1
13255 echo "$as_me: program exited with status $ac_status" >&5
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.
$ac_ext >&5
13259 ( exit $ac_status )
13260 ac_cv_c_stack_direction
=-1
13262 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13265 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13266 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13268 cat >>confdefs.h
<<_ACEOF
13269 #define STACK_DIRECTION $ac_cv_c_stack_direction
13276 # fmod, logb, and frexp are found in -lm on most systems.
13277 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13279 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13280 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13281 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 ac_check_lib_save_LIBS
=$LIBS
13286 cat >conftest.
$ac_ext <<_ACEOF
13289 cat confdefs.h
>>conftest.
$ac_ext
13290 cat >>conftest.
$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13293 /* Override any gcc2 internal prototype to avoid an error. */
13297 /* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */
13308 rm -f conftest.
$ac_objext conftest
$ac_exeext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13310 (eval $ac_link) 2>conftest.er1
13312 grep -v '^ *+' conftest.er1
>conftest.err
13314 cat conftest.err
>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try
='test -s conftest$ac_exeext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_lib_m_sqrt
=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.
$ac_ext >&5
13334 ac_cv_lib_m_sqrt
=no
13336 rm -f conftest.err conftest.
$ac_objext \
13337 conftest
$ac_exeext conftest.
$ac_ext
13338 LIBS
=$ac_check_lib_save_LIBS
13340 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13341 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13342 if test $ac_cv_lib_m_sqrt = yes; then
13343 cat >>confdefs.h
<<_ACEOF
13344 #define HAVE_LIBM 1
13352 # Check for mail-locking functions in a "mail" library. Probably this should
13353 # have the same check as for liblockfile below.
13355 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13356 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13357 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 ac_check_lib_save_LIBS
=$LIBS
13361 LIBS
="-lmail $LIBS"
13362 cat >conftest.
$ac_ext <<_ACEOF
13365 cat confdefs.h
>>conftest.
$ac_ext
13366 cat >>conftest.
$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13369 /* Override any gcc2 internal prototype to avoid an error. */
13373 /* We use char because int might match the return type of a gcc2
13374 builtin and then its argument prototype would still apply. */
13384 rm -f conftest.
$ac_objext conftest
$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try
='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_lib_mail_maillock
=yes
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.
$ac_ext >&5
13410 ac_cv_lib_mail_maillock
=no
13412 rm -f conftest.err conftest.
$ac_objext \
13413 conftest
$ac_exeext conftest.
$ac_ext
13414 LIBS
=$ac_check_lib_save_LIBS
13416 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13417 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13418 if test $ac_cv_lib_mail_maillock = yes; then
13419 cat >>confdefs.h
<<_ACEOF
13420 #define HAVE_LIBMAIL 1
13423 LIBS
="-lmail $LIBS"
13428 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13429 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13430 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 ac_check_lib_save_LIBS
=$LIBS
13434 LIBS
="-llockfile $LIBS"
13435 cat >conftest.
$ac_ext <<_ACEOF
13438 cat confdefs.h
>>conftest.
$ac_ext
13439 cat >>conftest.
$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13442 /* Override any gcc2 internal prototype to avoid an error. */
13446 /* We use char because int might match the return type of a gcc2
13447 builtin and then its argument prototype would still apply. */
13457 rm -f conftest.
$ac_objext conftest
$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>conftest.er1
13461 grep -v '^ *+' conftest.er1
>conftest.err
13463 cat conftest.err
>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try
='test -s conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_lib_lockfile_maillock
=yes
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.
$ac_ext >&5
13483 ac_cv_lib_lockfile_maillock
=no
13485 rm -f conftest.err conftest.
$ac_objext \
13486 conftest
$ac_exeext conftest.
$ac_ext
13487 LIBS
=$ac_check_lib_save_LIBS
13489 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13490 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13491 if test $ac_cv_lib_lockfile_maillock = yes; then
13492 cat >>confdefs.h
<<_ACEOF
13493 #define HAVE_LIBLOCKFILE 1
13496 LIBS
="-llockfile $LIBS"
13500 # If we have the shared liblockfile, assume we must use it for mail
13501 # locking (e.g. Debian). If we couldn't link against liblockfile
13502 # (no liblockfile.a installed), ensure that we don't need to.
13503 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13504 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13505 set dummy liblockfile.so
; ac_word
=$2
13506 echo "$as_me:$LINENO: checking for $ac_word" >&5
13507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13508 if test "${ac_cv_prog_liblockfile+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 if test -n "$liblockfile"; then
13512 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13515 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13516 for as_dir
in $as_dummy
13519 test -z "$as_dir" && as_dir
=.
13520 for ac_exec_ext
in '' $ac_executable_extensions; do
13521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522 ac_cv_prog_liblockfile
="yes"
13523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13532 liblockfile
=$ac_cv_prog_liblockfile
13533 if test -n "$liblockfile"; then
13534 echo "$as_me:$LINENO: result: $liblockfile" >&5
13535 echo "${ECHO_T}$liblockfile" >&6
13537 echo "$as_me:$LINENO: result: no" >&5
13538 echo "${ECHO_T}no" >&6
13541 if test $ac_cv_prog_liblockfile = yes; then
13542 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13543 This probably means that movemail could lose mail.
13544 There may be a \`development' package to install containing liblockfile." >&5
13545 echo "$as_me: error: Shared liblockfile found but can't link against it.
13546 This probably means that movemail could lose mail.
13547 There may be a \`development' package to install containing liblockfile." >&2;}
13548 { (exit 1); exit 1; }; }
13553 for ac_func
in touchlock
13555 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13556 echo "$as_me:$LINENO: checking for $ac_func" >&5
13557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13558 if eval "test \"\${$as_ac_var+set}\" = set"; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 cat >conftest.
$ac_ext <<_ACEOF
13564 cat confdefs.h
>>conftest.
$ac_ext
13565 cat >>conftest.
$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13569 #define $ac_func innocuous_$ac_func
13571 /* System header to define __stub macros and hopefully few prototypes,
13572 which can conflict with char $ac_func (); below.
13573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13574 <limits.h> exists even on freestanding compilers. */
13577 # include <limits.h>
13579 # include <assert.h>
13584 /* Override any gcc2 internal prototype to avoid an error. */
13589 /* We use char because int might match the return type of a gcc2
13590 builtin and then its argument prototype would still apply. */
13592 /* The GNU C library defines this for functions which it implements
13593 to always fail with ENOSYS. Some functions are actually named
13594 something starting with __ and the normal name is an alias. */
13595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13598 char (*f) () = $ac_func;
13607 return f != $ac_func;
13612 rm -f conftest.
$ac_objext conftest
$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614 (eval $ac_link) 2>conftest.er1
13616 grep -v '^ *+' conftest.er1
>conftest.err
13618 cat conftest.err
>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try
='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 eval "$as_ac_var=yes"
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 eval "$as_ac_var=no"
13640 rm -f conftest.err conftest.
$ac_objext \
13641 conftest
$ac_exeext conftest.
$ac_ext
13643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13645 if test `eval echo '${'$as_ac_var'}'` = yes; then
13646 cat >>confdefs.h
<<_ACEOF
13647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13654 for ac_header
in maillock.h
13656 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13658 echo "$as_me:$LINENO: checking for $ac_header" >&5
13659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13666 # Is the header compilable?
13667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13669 cat >conftest.
$ac_ext <<_ACEOF
13672 cat confdefs.h
>>conftest.
$ac_ext
13673 cat >>conftest.
$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13676 #include <$ac_header>
13678 rm -f conftest.
$ac_objext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>conftest.er1
13682 grep -v '^ *+' conftest.er1
>conftest.err
13684 cat conftest.err
>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try
='test -z "$ac_c_werror_flag" || 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_objext'
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_header_compiler
=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.
$ac_ext >&5
13704 ac_header_compiler
=no
13706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13708 echo "${ECHO_T}$ac_header_compiler" >&6
13710 # Is the header present?
13711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13713 cat >conftest.
$ac_ext <<_ACEOF
13716 cat confdefs.h
>>conftest.
$ac_ext
13717 cat >>conftest.
$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 #include <$ac_header>
13721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13724 grep -v '^ *+' conftest.er1
>conftest.err
13726 cat conftest.err
>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev
/null
; then
13729 if test -s conftest.err
; then
13730 ac_cpp_err
=$ac_c_preproc_warn_flag
13731 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13738 if test -z "$ac_cpp_err"; then
13739 ac_header_preproc
=yes
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.
$ac_ext >&5
13744 ac_header_preproc
=no
13746 rm -f conftest.err conftest.
$ac_ext
13747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13748 echo "${ECHO_T}$ac_header_preproc" >&6
13750 # So? What about this header?
13751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13757 ac_header_preproc
=yes
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13774 ## ------------------------------------------ ##
13775 ## Report this to the AC_PACKAGE_NAME lists. ##
13776 ## ------------------------------------------ ##
13779 sed "s/^/$as_me: WARNING: /" >&2
13782 echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 eval "$as_ac_Header=\$ac_header_preproc"
13789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13794 cat >>confdefs.h
<<_ACEOF
13795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13870 for ac_func
in gethostname getdomainname dup2 \
13871 rename closedir mkdir
rmdir sysinfo getrusage \
13872 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13873 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13874 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13875 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13876 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13877 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13878 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 echo "$as_me:$LINENO: checking for $ac_func" >&5
13882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_var+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 cat >conftest.
$ac_ext <<_ACEOF
13889 cat confdefs.h
>>conftest.
$ac_ext
13890 cat >>conftest.
$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define $ac_func innocuous_$ac_func
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13902 # include <limits.h>
13904 # include <assert.h>
13909 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13923 char (*f) () = $ac_func;
13932 return f != $ac_func;
13937 rm -f conftest.
$ac_objext conftest
$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1
>conftest.err
13943 cat conftest.err
>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try
='test -s conftest$ac_exeext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 eval "$as_ac_var=yes"
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.
$ac_ext >&5
13963 eval "$as_ac_var=no"
13965 rm -f conftest.err conftest.
$ac_objext \
13966 conftest
$ac_exeext conftest.
$ac_ext
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13971 cat >>confdefs.h
<<_ACEOF
13972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13980 for ac_header
in sys
/un.h
13982 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13984 echo "$as_me:$LINENO: checking for $ac_header" >&5
13985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13992 # Is the header compilable?
13993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13995 cat >conftest.
$ac_ext <<_ACEOF
13998 cat confdefs.h
>>conftest.
$ac_ext
13999 cat >>conftest.
$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include <$ac_header>
14004 rm -f conftest.
$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14008 grep -v '^ *+' conftest.er1
>conftest.err
14010 cat conftest.err
>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try
='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_header_compiler
=yes
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.
$ac_ext >&5
14030 ac_header_compiler
=no
14032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14034 echo "${ECHO_T}$ac_header_compiler" >&6
14036 # Is the header present?
14037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14039 cat >conftest.
$ac_ext <<_ACEOF
14042 cat confdefs.h
>>conftest.
$ac_ext
14043 cat >>conftest.
$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 #include <$ac_header>
14047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14048 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14050 grep -v '^ *+' conftest.er1
>conftest.err
14052 cat conftest.err
>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev
/null
; then
14055 if test -s conftest.err
; then
14056 ac_cpp_err
=$ac_c_preproc_warn_flag
14057 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14064 if test -z "$ac_cpp_err"; then
14065 ac_header_preproc
=yes
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.
$ac_ext >&5
14070 ac_header_preproc
=no
14072 rm -f conftest.err conftest.
$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14074 echo "${ECHO_T}$ac_header_preproc" >&6
14076 # So? What about this header?
14077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14083 ac_header_preproc
=yes
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14100 ## ------------------------------------------ ##
14101 ## Report this to the AC_PACKAGE_NAME lists. ##
14102 ## ------------------------------------------ ##
14105 sed "s/^/$as_me: WARNING: /" >&2
14108 echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 eval "$as_ac_Header=\$ac_header_preproc"
14115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h
<<_ACEOF
14121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14132 for ac_header
in stdlib.h sys
/time.h unistd.h
14134 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144 # Is the header compilable?
14145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14147 cat >conftest.
$ac_ext <<_ACEOF
14150 cat confdefs.h
>>conftest.
$ac_ext
14151 cat >>conftest.
$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14154 #include <$ac_header>
14156 rm -f conftest.
$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14160 grep -v '^ *+' conftest.er1
>conftest.err
14162 cat conftest.err
>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try
='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_header_compiler
=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14182 ac_header_compiler
=no
14184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14191 cat >conftest.
$ac_ext <<_ACEOF
14194 cat confdefs.h
>>conftest.
$ac_ext
14195 cat >>conftest.
$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <$ac_header>
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14202 grep -v '^ *+' conftest.er1
>conftest.err
14204 cat conftest.err
>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev
/null
; then
14207 if test -s conftest.err
; then
14208 ac_cpp_err
=$ac_c_preproc_warn_flag
14209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14216 if test -z "$ac_cpp_err"; then
14217 ac_header_preproc
=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.
$ac_ext >&5
14222 ac_header_preproc
=no
14224 rm -f conftest.err conftest.
$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14228 # So? What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14235 ac_header_preproc
=yes
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists. ##
14254 ## ------------------------------------------ ##
14257 sed "s/^/$as_me: WARNING: /" >&2
14260 echo "$as_me:$LINENO: checking for $ac_header" >&5
14261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 eval "$as_ac_Header=\$ac_header_preproc"
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272 cat >>confdefs.h
<<_ACEOF
14273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14281 for ac_func
in alarm
14283 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 echo "$as_me:$LINENO: checking for $ac_func" >&5
14285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14286 if eval "test \"\${$as_ac_var+set}\" = set"; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 cat >conftest.
$ac_ext <<_ACEOF
14292 cat confdefs.h
>>conftest.
$ac_ext
14293 cat >>conftest.
$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14297 #define $ac_func innocuous_$ac_func
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char $ac_func (); below.
14301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14302 <limits.h> exists even on freestanding compilers. */
14305 # include <limits.h>
14307 # include <assert.h>
14312 /* Override any gcc2 internal prototype to avoid an error. */
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14320 /* The GNU C library defines this for functions which it implements
14321 to always fail with ENOSYS. Some functions are actually named
14322 something starting with __ and the normal name is an alias. */
14323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14326 char (*f) () = $ac_func;
14335 return f != $ac_func;
14340 rm -f conftest.
$ac_objext conftest
$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>conftest.er1
14344 grep -v '^ *+' conftest.er1
>conftest.err
14346 cat conftest.err
>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try
='test -s conftest$ac_exeext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 eval "$as_ac_var=yes"
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.
$ac_ext >&5
14366 eval "$as_ac_var=no"
14368 rm -f conftest.err conftest.
$ac_objext \
14369 conftest
$ac_exeext conftest.
$ac_ext
14371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14373 if test `eval echo '${'$as_ac_var'}'` = yes; then
14374 cat >>confdefs.h
<<_ACEOF
14375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14381 echo "$as_me:$LINENO: checking for working mktime" >&5
14382 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14383 if test "${ac_cv_func_working_mktime+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 if test "$cross_compiling" = yes; then
14387 ac_cv_func_working_mktime
=no
14389 cat >conftest.
$ac_ext <<_ACEOF
14392 cat confdefs.h
>>conftest.
$ac_ext
14393 cat >>conftest.
$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 /* Test program from Paul Eggert and Tony Leneis. */
14396 #if TIME_WITH_SYS_TIME
14397 # include <sys/time.h>
14400 # if HAVE_SYS_TIME_H
14401 # include <sys/time.h>
14408 # include <stdlib.h>
14412 # include <unistd.h>
14416 # define alarm(X) /* empty */
14419 /* Work around redefinition to rpl_putenv by other config tests. */
14422 static time_t time_t_max;
14423 static time_t time_t_min;
14425 /* Values we'll use to set the TZ environment variable. */
14426 static char *tz_strings[] = {
14427 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14428 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14430 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14432 /* Fail if mktime fails to convert a date in the spring-forward gap.
14433 Based on a problem report from Andreas Jaeger. */
14435 spring_forward_gap ()
14437 /* glibc (up to about 1998-10-07) failed this test. */
14440 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14441 instead of "TZ=America/Vancouver" in order to detect the bug even
14442 on systems that don't support the Olson extension, or don't have the
14443 full zoneinfo tables installed. */
14444 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14453 if (mktime (&tm) == (time_t)-1)
14462 if ((lt = localtime (&now)) && mktime (lt) != now)
14470 mktime_test1 (now);
14471 mktime_test1 ((time_t) (time_t_max - now));
14472 mktime_test1 ((time_t) (time_t_min + now));
14478 /* Based on code from Ariel Faigon. */
14488 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14498 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14499 now = mktime (&tm);
14500 if (now != (time_t) -1)
14502 struct tm *lt = localtime (&now);
14504 && lt->tm_year == tm.tm_year
14505 && lt->tm_mon == tm.tm_mon
14506 && lt->tm_mday == tm.tm_mday
14507 && lt->tm_hour == tm.tm_hour
14508 && lt->tm_min == tm.tm_min
14509 && lt->tm_sec == tm.tm_sec
14510 && lt->tm_yday == tm.tm_yday
14511 && lt->tm_wday == tm.tm_wday
14512 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14513 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14524 /* This test makes some buggy mktime implementations loop.
14525 Give up after 60 seconds; a mktime slower than that
14526 isn't worth using anyway. */
14529 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14532 if ((time_t) -1 < 0)
14533 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14535 delta = time_t_max / 997; /* a suitable prime number */
14536 for (i = 0; i < N_STRINGS; i++)
14539 putenv (tz_strings[i]);
14541 for (t = 0; t <= time_t_max - delta; t += delta)
14543 mktime_test ((time_t) 1);
14544 mktime_test ((time_t) (60 * 60));
14545 mktime_test ((time_t) (60 * 60 * 24));
14547 for (j = 1; 0 < j; j *= 2)
14549 bigtime_test (j - 1);
14552 spring_forward_gap ();
14556 rm -f conftest
$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_func_working_mktime
=yes
14569 echo "$as_me: program exited with status $ac_status" >&5
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.
$ac_ext >&5
14573 ( exit $ac_status )
14574 ac_cv_func_working_mktime
=no
14576 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14579 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14580 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14581 if test $ac_cv_func_working_mktime = no
; then
14583 "mktime.$ac_objext" | \
14584 *" mktime.$ac_objext" | \
14585 "mktime.$ac_objext "* | \
14586 *" mktime.$ac_objext "* ) ;;
14587 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14592 if test "$ac_cv_func_working_mktime" = no
; then
14594 cat >>confdefs.h
<<\_ACEOF
14595 #define BROKEN_MKTIME 1
14600 ac_have_func
=no
# yes means we've found a way to get the load average.
14602 # Make sure getloadavg.c is where it belongs, at configure-time.
14603 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14604 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14605 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14606 { (exit 1); exit 1; }; }
14610 # Check for getloadavg, but be sure not to touch the cache variable.
14611 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14612 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14613 if test "${ac_cv_func_getloadavg+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.
$ac_ext <<_ACEOF
14619 cat confdefs.h
>>conftest.
$ac_ext
14620 cat >>conftest.
$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14624 #define getloadavg innocuous_getloadavg
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char getloadavg (); below.
14628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629 <limits.h> exists even on freestanding compilers. */
14632 # include <limits.h>
14634 # include <assert.h>
14639 /* Override any gcc2 internal prototype to avoid an error. */
14644 /* We use char because int might match the return type of a gcc2
14645 builtin and then its argument prototype would still apply. */
14646 char getloadavg ();
14647 /* The GNU C library defines this for functions which it implements
14648 to always fail with ENOSYS. Some functions are actually named
14649 something starting with __ and the normal name is an alias. */
14650 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14653 char (*f) () = getloadavg;
14662 return f != getloadavg;
14667 rm -f conftest.
$ac_objext conftest
$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>conftest.er1
14671 grep -v '^ *+' conftest.er1
>conftest.err
14673 cat conftest.err
>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try
='test -s conftest$ac_exeext'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 ac_cv_func_getloadavg
=yes
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.
$ac_ext >&5
14693 ac_cv_func_getloadavg
=no
14695 rm -f conftest.err conftest.
$ac_objext \
14696 conftest
$ac_exeext conftest.
$ac_ext
14698 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14699 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14700 if test $ac_cv_func_getloadavg = yes; then
14705 ) && ac_have_func
=yes
14707 # On HPUX9, an unprivileged user can get load averages through this function.
14709 for ac_func
in pstat_getdynamic
14711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.
$ac_ext <<_ACEOF
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14725 #define $ac_func innocuous_$ac_func
14727 /* System header to define __stub macros and hopefully few prototypes,
14728 which can conflict with char $ac_func (); below.
14729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730 <limits.h> exists even on freestanding compilers. */
14733 # include <limits.h>
14735 # include <assert.h>
14740 /* Override any gcc2 internal prototype to avoid an error. */
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14748 /* The GNU C library defines this for functions which it implements
14749 to always fail with ENOSYS. Some functions are actually named
14750 something starting with __ and the normal name is an alias. */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14754 char (*f) () = $ac_func;
14763 return f != $ac_func;
14768 rm -f conftest.
$ac_objext conftest
$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1
>conftest.err
14774 cat conftest.err
>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try
='test -s conftest$ac_exeext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 eval "$as_ac_var=yes"
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.
$ac_ext >&5
14794 eval "$as_ac_var=no"
14796 rm -f conftest.err conftest.
$ac_objext \
14797 conftest
$ac_exeext conftest.
$ac_ext
14799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14801 if test `eval echo '${'$as_ac_var'}'` = yes; then
14802 cat >>confdefs.h
<<_ACEOF
14803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14810 # Solaris has libkstat which does not require root.
14812 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14813 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14814 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 ac_check_lib_save_LIBS
=$LIBS
14818 LIBS
="-lkstat $LIBS"
14819 cat >conftest.
$ac_ext <<_ACEOF
14822 cat confdefs.h
>>conftest.
$ac_ext
14823 cat >>conftest.
$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14826 /* Override any gcc2 internal prototype to avoid an error. */
14830 /* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14832 char kstat_open ();
14841 rm -f conftest.
$ac_objext conftest
$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>conftest.er1
14845 grep -v '^ *+' conftest.er1
>conftest.err
14847 cat conftest.err
>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try
='test -s conftest$ac_exeext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_lib_kstat_kstat_open
=yes
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.
$ac_ext >&5
14867 ac_cv_lib_kstat_kstat_open
=no
14869 rm -f conftest.err conftest.
$ac_objext \
14870 conftest
$ac_exeext conftest.
$ac_ext
14871 LIBS
=$ac_check_lib_save_LIBS
14873 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14874 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14875 if test $ac_cv_lib_kstat_kstat_open = yes; then
14876 cat >>confdefs.h
<<_ACEOF
14877 #define HAVE_LIBKSTAT 1
14880 LIBS
="-lkstat $LIBS"
14884 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14886 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14887 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14888 # to get the right answer into the cache.
14889 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14890 if test $ac_have_func = no
; then
14891 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14892 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14893 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 ac_check_lib_save_LIBS
=$LIBS
14898 cat >conftest.
$ac_ext <<_ACEOF
14901 cat confdefs.h
>>conftest.
$ac_ext
14902 cat >>conftest.
$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any gcc2 internal prototype to avoid an error. */
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14920 rm -f conftest.
$ac_objext conftest
$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>conftest.er1
14924 grep -v '^ *+' conftest.er1
>conftest.err
14926 cat conftest.err
>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try
='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_elf_elf_begin
=yes
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.
$ac_ext >&5
14946 ac_cv_lib_elf_elf_begin
=no
14948 rm -f conftest.err conftest.
$ac_objext \
14949 conftest
$ac_exeext conftest.
$ac_ext
14950 LIBS
=$ac_check_lib_save_LIBS
14952 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14953 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14954 if test $ac_cv_lib_elf_elf_begin = yes; then
14959 if test $ac_have_func = no
; then
14960 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14961 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14962 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 ac_check_lib_save_LIBS
=$LIBS
14967 cat >conftest.
$ac_ext <<_ACEOF
14970 cat confdefs.h
>>conftest.
$ac_ext
14971 cat >>conftest.
$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 /* Override any gcc2 internal prototype to avoid an error. */
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14989 rm -f conftest.
$ac_objext conftest
$ac_exeext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14991 (eval $ac_link) 2>conftest.er1
14993 grep -v '^ *+' conftest.er1
>conftest.err
14995 cat conftest.err
>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try
='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_cv_lib_kvm_kvm_open
=yes
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.
$ac_ext >&5
15015 ac_cv_lib_kvm_kvm_open
=no
15017 rm -f conftest.err conftest.
$ac_objext \
15018 conftest
$ac_exeext conftest.
$ac_ext
15019 LIBS
=$ac_check_lib_save_LIBS
15021 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15022 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15023 if test $ac_cv_lib_kvm_kvm_open = yes; then
15027 # Check for the 4.4BSD definition of getloadavg.
15028 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15029 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15030 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 ac_check_lib_save_LIBS
=$LIBS
15034 LIBS
="-lutil $LIBS"
15035 cat >conftest.
$ac_ext <<_ACEOF
15038 cat confdefs.h
>>conftest.
$ac_ext
15039 cat >>conftest.
$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 /* Override any gcc2 internal prototype to avoid an error. */
15046 /* We use char because int might match the return type of a gcc2
15047 builtin and then its argument prototype would still apply. */
15048 char getloadavg ();
15057 rm -f conftest.
$ac_objext conftest
$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15061 grep -v '^ *+' conftest.er1
>conftest.err
15063 cat conftest.err
>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try
='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_lib_util_getloadavg
=yes
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.
$ac_ext >&5
15083 ac_cv_lib_util_getloadavg
=no
15085 rm -f conftest.err conftest.
$ac_objext \
15086 conftest
$ac_exeext conftest.
$ac_ext
15087 LIBS
=$ac_check_lib_save_LIBS
15089 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15090 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15091 if test $ac_cv_lib_util_getloadavg = yes; then
15092 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15097 if test $ac_have_func = no
; then
15098 # There is a commonly available library for RS/6000 AIX.
15099 # Since it is not a standard part of AIX, it might be installed locally.
15100 ac_getloadavg_LIBS
=$LIBS
15101 LIBS
="-L/usr/local/lib $LIBS"
15102 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15103 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15104 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 ac_check_lib_save_LIBS
=$LIBS
15108 LIBS
="-lgetloadavg $LIBS"
15109 cat >conftest.
$ac_ext <<_ACEOF
15112 cat confdefs.h
>>conftest.
$ac_ext
15113 cat >>conftest.
$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15116 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char getloadavg ();
15131 rm -f conftest.
$ac_objext conftest
$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>conftest.er1
15135 grep -v '^ *+' conftest.er1
>conftest.err
15137 cat conftest.err
>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try
='test -s conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_lib_getloadavg_getloadavg
=yes
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.
$ac_ext >&5
15157 ac_cv_lib_getloadavg_getloadavg
=no
15159 rm -f conftest.err conftest.
$ac_objext \
15160 conftest
$ac_exeext conftest.
$ac_ext
15161 LIBS
=$ac_check_lib_save_LIBS
15163 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15164 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15165 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15166 LIBS
="-lgetloadavg $LIBS"
15168 LIBS
=$ac_getloadavg_LIBS
15173 # Make sure it is really in the library, if we think we found it,
15174 # otherwise set up the replacement function.
15176 for ac_func
in getloadavg
15178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15179 echo "$as_me:$LINENO: checking for $ac_func" >&5
15180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15181 if eval "test \"\${$as_ac_var+set}\" = set"; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 cat >conftest.
$ac_ext <<_ACEOF
15187 cat confdefs.h
>>conftest.
$ac_ext
15188 cat >>conftest.
$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15192 #define $ac_func innocuous_$ac_func
15194 /* System header to define __stub macros and hopefully few prototypes,
15195 which can conflict with char $ac_func (); below.
15196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15197 <limits.h> exists even on freestanding compilers. */
15200 # include <limits.h>
15202 # include <assert.h>
15207 /* Override any gcc2 internal prototype to avoid an error. */
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15221 char (*f) () = $ac_func;
15230 return f != $ac_func;
15235 rm -f conftest.
$ac_objext conftest
$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>conftest.er1
15239 grep -v '^ *+' conftest.er1
>conftest.err
15241 cat conftest.err
>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try
='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 eval "$as_ac_var=yes"
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.
$ac_ext >&5
15261 eval "$as_ac_var=no"
15263 rm -f conftest.err conftest.
$ac_objext \
15264 conftest
$ac_exeext conftest.
$ac_ext
15266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269 cat >>confdefs.h
<<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15275 "getloadavg.$ac_objext" | \
15276 *" getloadavg.$ac_objext" | \
15277 "getloadavg.$ac_objext "* | \
15278 *" getloadavg.$ac_objext "* ) ;;
15279 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15283 cat >>confdefs.h
<<\_ACEOF
15284 #define C_GETLOADAVG 1
15287 # Figure out what our getloadavg.c needs.
15289 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15290 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15291 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15292 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15296 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15298 # Is the header compilable?
15299 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15300 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15301 cat >conftest.
$ac_ext <<_ACEOF
15304 cat confdefs.h
>>conftest.
$ac_ext
15305 cat >>conftest.
$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <sys/dg_sys_info.h>
15310 rm -f conftest.
$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15314 grep -v '^ *+' conftest.er1
>conftest.err
15316 cat conftest.err
>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try
='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler
=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.
$ac_ext >&5
15336 ac_header_compiler
=no
15338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340 echo "${ECHO_T}$ac_header_compiler" >&6
15342 # Is the header present?
15343 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15344 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15345 cat >conftest.
$ac_ext <<_ACEOF
15348 cat confdefs.h
>>conftest.
$ac_ext
15349 cat >>conftest.
$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <sys/dg_sys_info.h>
15353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15354 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15356 grep -v '^ *+' conftest.er1
>conftest.err
15358 cat conftest.err
>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } >/dev
/null
; then
15361 if test -s conftest.err
; then
15362 ac_cpp_err
=$ac_c_preproc_warn_flag
15363 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15370 if test -z "$ac_cpp_err"; then
15371 ac_header_preproc
=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.
$ac_ext >&5
15376 ac_header_preproc
=no
15378 rm -f conftest.err conftest.
$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15380 echo "${ECHO_T}$ac_header_preproc" >&6
15382 # So? What about this header?
15383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15385 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15386 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15388 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15389 ac_header_preproc
=yes
15392 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15393 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15395 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15397 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15399 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15401 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15403 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15406 ## ------------------------------------------ ##
15407 ## Report this to the AC_PACKAGE_NAME lists. ##
15408 ## ------------------------------------------ ##
15411 sed "s/^/$as_me: WARNING: /" >&2
15414 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15415 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15416 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15421 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15422 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15425 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15428 cat >>confdefs.h
<<\_ACEOF
15433 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15434 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15435 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 ac_check_lib_save_LIBS
=$LIBS
15440 cat >conftest.
$ac_ext <<_ACEOF
15443 cat confdefs.h
>>conftest.
$ac_ext
15444 cat >>conftest.
$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15447 /* Override any gcc2 internal prototype to avoid an error. */
15451 /* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15453 char dg_sys_info ();
15462 rm -f conftest.
$ac_objext conftest
$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>conftest.er1
15466 grep -v '^ *+' conftest.er1
>conftest.err
15468 cat conftest.err
>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; } &&
15477 { ac_try
='test -s conftest$ac_exeext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_lib_dgc_dg_sys_info
=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.
$ac_ext >&5
15488 ac_cv_lib_dgc_dg_sys_info
=no
15490 rm -f conftest.err conftest.
$ac_objext \
15491 conftest
$ac_exeext conftest.
$ac_ext
15492 LIBS
=$ac_check_lib_save_LIBS
15494 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15495 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15496 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15497 cat >>confdefs.h
<<_ACEOF
15498 #define HAVE_LIBDGC 1
15509 if test "${ac_cv_header_locale_h+set}" = set; then
15510 echo "$as_me:$LINENO: checking for locale.h" >&5
15511 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15512 if test "${ac_cv_header_locale_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15516 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15518 # Is the header compilable?
15519 echo "$as_me:$LINENO: checking locale.h usability" >&5
15520 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15521 cat >conftest.
$ac_ext <<_ACEOF
15524 cat confdefs.h
>>conftest.
$ac_ext
15525 cat >>conftest.
$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <locale.h>
15530 rm -f conftest.
$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15534 grep -v '^ *+' conftest.er1
>conftest.err
15536 cat conftest.err
>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try
='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_header_compiler
=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.
$ac_ext >&5
15556 ac_header_compiler
=no
15558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15560 echo "${ECHO_T}$ac_header_compiler" >&6
15562 # Is the header present?
15563 echo "$as_me:$LINENO: checking locale.h presence" >&5
15564 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15565 cat >conftest.
$ac_ext <<_ACEOF
15568 cat confdefs.h
>>conftest.
$ac_ext
15569 cat >>conftest.
$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 #include <locale.h>
15573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15574 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15576 grep -v '^ *+' conftest.er1
>conftest.err
15578 cat conftest.err
>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } >/dev
/null
; then
15581 if test -s conftest.err
; then
15582 ac_cpp_err
=$ac_c_preproc_warn_flag
15583 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15590 if test -z "$ac_cpp_err"; then
15591 ac_header_preproc
=yes
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.
$ac_ext >&5
15596 ac_header_preproc
=no
15598 rm -f conftest.err conftest.
$ac_ext
15599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15600 echo "${ECHO_T}$ac_header_preproc" >&6
15602 # So? What about this header?
15603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15605 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15606 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15608 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15609 ac_header_preproc
=yes
15612 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15613 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15615 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15617 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15619 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15621 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15623 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15626 ## ------------------------------------------ ##
15627 ## Report this to the AC_PACKAGE_NAME lists. ##
15628 ## ------------------------------------------ ##
15631 sed "s/^/$as_me: WARNING: /" >&2
15634 echo "$as_me:$LINENO: checking for locale.h" >&5
15635 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15636 if test "${ac_cv_header_locale_h+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 ac_cv_header_locale_h
=$ac_header_preproc
15641 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15642 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15648 for ac_func
in setlocale
15650 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15651 echo "$as_me:$LINENO: checking for $ac_func" >&5
15652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15653 if eval "test \"\${$as_ac_var+set}\" = set"; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 cat >conftest.
$ac_ext <<_ACEOF
15659 cat confdefs.h
>>conftest.
$ac_ext
15660 cat >>conftest.
$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15664 #define $ac_func innocuous_$ac_func
15666 /* System header to define __stub macros and hopefully few prototypes,
15667 which can conflict with char $ac_func (); below.
15668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15669 <limits.h> exists even on freestanding compilers. */
15672 # include <limits.h>
15674 # include <assert.h>
15679 /* Override any gcc2 internal prototype to avoid an error. */
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15687 /* The GNU C library defines this for functions which it implements
15688 to always fail with ENOSYS. Some functions are actually named
15689 something starting with __ and the normal name is an alias. */
15690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15693 char (*f) () = $ac_func;
15702 return f != $ac_func;
15707 rm -f conftest.
$ac_objext conftest
$ac_exeext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>conftest.er1
15711 grep -v '^ *+' conftest.er1
>conftest.err
15713 cat conftest.err
>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try
='test -s conftest$ac_exeext'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 eval "$as_ac_var=yes"
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.
$ac_ext >&5
15733 eval "$as_ac_var=no"
15735 rm -f conftest.err conftest.
$ac_objext \
15736 conftest
$ac_exeext conftest.
$ac_ext
15738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741 cat >>confdefs.h
<<_ACEOF
15742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15749 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15750 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15751 # Irix 4.0.5F has the header but not the library.
15752 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15755 cat >>confdefs.h
<<\_ACEOF
15761 if test $ac_have_func = no
; then
15762 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15763 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15764 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15765 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15769 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15771 # Is the header compilable?
15772 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15773 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15774 cat >conftest.
$ac_ext <<_ACEOF
15777 cat confdefs.h
>>conftest.
$ac_ext
15778 cat >>conftest.
$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <inq_stats/cpustats.h>
15783 rm -f conftest.
$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1
>conftest.err
15789 cat conftest.err
>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try
='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler
=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 ac_header_compiler
=no
15811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15813 echo "${ECHO_T}$ac_header_compiler" >&6
15815 # Is the header present?
15816 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15817 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15818 cat >conftest.
$ac_ext <<_ACEOF
15821 cat confdefs.h
>>conftest.
$ac_ext
15822 cat >>conftest.
$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 #include <inq_stats/cpustats.h>
15826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15827 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15829 grep -v '^ *+' conftest.er1
>conftest.err
15831 cat conftest.err
>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev
/null
; then
15834 if test -s conftest.err
; then
15835 ac_cpp_err
=$ac_c_preproc_warn_flag
15836 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc
=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.
$ac_ext >&5
15849 ac_header_preproc
=no
15851 rm -f conftest.err conftest.
$ac_ext
15852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc
=yes
15865 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15879 ## ------------------------------------------ ##
15880 ## Report this to the AC_PACKAGE_NAME lists. ##
15881 ## ------------------------------------------ ##
15884 sed "s/^/$as_me: WARNING: /" >&2
15887 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15888 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15894 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15895 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15898 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15901 cat >>confdefs.h
<<\_ACEOF
15906 cat >>confdefs.h
<<\_ACEOF
15915 if test $ac_have_func = no
; then
15916 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15917 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15918 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15919 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15923 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15925 # Is the header compilable?
15926 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15927 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15928 cat >conftest.
$ac_ext <<_ACEOF
15931 cat confdefs.h
>>conftest.
$ac_ext
15932 cat >>conftest.
$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15935 #include <sys/cpustats.h>
15937 rm -f conftest.
$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1
>conftest.err
15943 cat conftest.err
>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try
='test -s conftest.$ac_objext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_header_compiler
=yes
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.
$ac_ext >&5
15963 ac_header_compiler
=no
15965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6
15969 # Is the header present?
15970 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15971 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15972 cat >conftest.
$ac_ext <<_ACEOF
15975 cat confdefs.h
>>conftest.
$ac_ext
15976 cat >>conftest.
$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <sys/cpustats.h>
15980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15981 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15983 grep -v '^ *+' conftest.er1
>conftest.err
15985 cat conftest.err
>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } >/dev
/null
; then
15988 if test -s conftest.err
; then
15989 ac_cpp_err
=$ac_c_preproc_warn_flag
15990 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15997 if test -z "$ac_cpp_err"; then
15998 ac_header_preproc
=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.
$ac_ext >&5
16003 ac_header_preproc
=no
16005 rm -f conftest.err conftest.
$ac_ext
16006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16007 echo "${ECHO_T}$ac_header_preproc" >&6
16009 # So? What about this header?
16010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16012 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16013 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16015 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16016 ac_header_preproc
=yes
16019 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16020 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16022 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16024 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16026 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16030 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16033 ## ------------------------------------------ ##
16034 ## Report this to the AC_PACKAGE_NAME lists. ##
16035 ## ------------------------------------------ ##
16038 sed "s/^/$as_me: WARNING: /" >&2
16041 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16042 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16043 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16049 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16052 if test $ac_cv_header_sys_cpustats_h = yes; then
16053 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16062 if test $ac_have_func = no
; then
16064 for ac_header
in mach
/mach.h
16066 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16068 echo "$as_me:$LINENO: checking for $ac_header" >&5
16069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16076 # Is the header compilable?
16077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16079 cat >conftest.
$ac_ext <<_ACEOF
16082 cat confdefs.h
>>conftest.
$ac_ext
16083 cat >>conftest.
$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 $ac_includes_default
16086 #include <$ac_header>
16088 rm -f conftest.
$ac_objext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16090 (eval $ac_compile) 2>conftest.er1
16092 grep -v '^ *+' conftest.er1
>conftest.err
16094 cat conftest.err
>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try
='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler
=yes
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.
$ac_ext >&5
16114 ac_header_compiler
=no
16116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6
16120 # Is the header present?
16121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16123 cat >conftest.
$ac_ext <<_ACEOF
16126 cat confdefs.h
>>conftest.
$ac_ext
16127 cat >>conftest.
$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16132 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16134 grep -v '^ *+' conftest.er1
>conftest.err
16136 cat conftest.err
>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } >/dev
/null
; then
16139 if test -s conftest.err
; then
16140 ac_cpp_err
=$ac_c_preproc_warn_flag
16141 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16148 if test -z "$ac_cpp_err"; then
16149 ac_header_preproc
=yes
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.
$ac_ext >&5
16154 ac_header_preproc
=no
16156 rm -f conftest.err conftest.
$ac_ext
16157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16158 echo "${ECHO_T}$ac_header_preproc" >&6
16160 # So? What about this header?
16161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16167 ac_header_preproc
=yes
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16184 ## ------------------------------------------ ##
16185 ## Report this to the AC_PACKAGE_NAME lists. ##
16186 ## ------------------------------------------ ##
16189 sed "s/^/$as_me: WARNING: /" >&2
16192 echo "$as_me:$LINENO: checking for $ac_header" >&5
16193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 eval "$as_ac_Header=\$ac_header_preproc"
16199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204 cat >>confdefs.h
<<_ACEOF
16205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16215 for ac_header
in nlist.h
16217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16219 echo "$as_me:$LINENO: checking for $ac_header" >&5
16220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16227 # Is the header compilable?
16228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16230 cat >conftest.
$ac_ext <<_ACEOF
16233 cat confdefs.h
>>conftest.
$ac_ext
16234 cat >>conftest.
$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16237 #include <$ac_header>
16239 rm -f conftest.
$ac_objext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16241 (eval $ac_compile) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1
>conftest.err
16245 cat conftest.err
>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try
='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler
=yes
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.
$ac_ext >&5
16265 ac_header_compiler
=no
16267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16269 echo "${ECHO_T}$ac_header_compiler" >&6
16271 # Is the header present?
16272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16274 cat >conftest.
$ac_ext <<_ACEOF
16277 cat confdefs.h
>>conftest.
$ac_ext
16278 cat >>conftest.
$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 #include <$ac_header>
16282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16283 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16285 grep -v '^ *+' conftest.er1
>conftest.err
16287 cat conftest.err
>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev
/null
; then
16290 if test -s conftest.err
; then
16291 ac_cpp_err
=$ac_c_preproc_warn_flag
16292 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16299 if test -z "$ac_cpp_err"; then
16300 ac_header_preproc
=yes
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.
$ac_ext >&5
16305 ac_header_preproc
=no
16307 rm -f conftest.err conftest.
$ac_ext
16308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309 echo "${ECHO_T}$ac_header_preproc" >&6
16311 # So? What about this header?
16312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc
=yes
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16335 ## ------------------------------------------ ##
16336 ## Report this to the AC_PACKAGE_NAME lists. ##
16337 ## ------------------------------------------ ##
16340 sed "s/^/$as_me: WARNING: /" >&2
16343 echo "$as_me:$LINENO: checking for $ac_header" >&5
16344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 eval "$as_ac_Header=\$ac_header_preproc"
16350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h
<<_ACEOF
16356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16359 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16360 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 cat >conftest.
$ac_ext <<_ACEOF
16366 cat confdefs.h
>>conftest.
$ac_ext
16367 cat >>conftest.
$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16374 static struct nlist ac_aggr;
16375 if (ac_aggr.n_un.n_name)
16381 rm -f conftest.
$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16385 grep -v '^ *+' conftest.er1
>conftest.err
16387 cat conftest.err
>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try
='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_member_struct_nlist_n_un_n_name
=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.
$ac_ext >&5
16407 cat >conftest.
$ac_ext <<_ACEOF
16410 cat confdefs.h
>>conftest.
$ac_ext
16411 cat >>conftest.
$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16418 static struct nlist ac_aggr;
16419 if (sizeof ac_aggr.n_un.n_name)
16425 rm -f conftest.
$ac_objext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16427 (eval $ac_compile) 2>conftest.er1
16429 grep -v '^ *+' conftest.er1
>conftest.err
16431 cat conftest.err
>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try
='test -s conftest.$ac_objext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_member_struct_nlist_n_un_n_name
=yes
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.
$ac_ext >&5
16451 ac_cv_member_struct_nlist_n_un_n_name
=no
16453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16457 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16458 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16459 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16461 cat >>confdefs.h
<<_ACEOF
16462 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16466 cat >>confdefs.h
<<\_ACEOF
16467 #define NLIST_NAME_UNION 1
16481 # Some definitions of getloadavg require that the program be installed setgid.
16482 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16483 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16484 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 cat >conftest.
$ac_ext <<_ACEOF
16490 cat confdefs.h
>>conftest.
$ac_ext
16491 cat >>conftest.
$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16494 #ifdef LDAV_PRIVILEGED
16495 Yowza Am I SETGID yet
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16500 ac_cv_func_getloadavg_setgid
=yes
16502 ac_cv_func_getloadavg_setgid
=no
16507 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16508 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16509 if test $ac_cv_func_getloadavg_setgid = yes; then
16512 cat >>confdefs.h
<<\_ACEOF
16513 #define GETLOADAVG_PRIVILEGED 1
16520 if test $ac_cv_func_getloadavg_setgid = yes; then
16521 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16522 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16523 if test "${ac_cv_group_kmem+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16527 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16528 # If we got an error (system does not support symlinks), try without -L.
16529 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16530 ac_cv_group_kmem
=`echo $ac_ls_output \
16531 | sed -ne 's/[ ][ ]*/ /g;
16532 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16536 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16537 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16538 KMEM_GROUP
=$ac_cv_group_kmem
16540 if test "x$ac_save_LIBS" = x
; then
16541 GETLOADAVG_LIBS
=$LIBS
16543 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16549 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16550 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16551 if test "${ac_cv_sys_largefile_source+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_cv_sys_largefile_source
=no
16556 cat >conftest.
$ac_ext <<_ACEOF
16559 cat confdefs.h
>>conftest.
$ac_ext
16560 cat >>conftest.
$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16571 rm -f conftest.
$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>conftest.er1
16575 grep -v '^ *+' conftest.er1
>conftest.err
16577 cat conftest.err
>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try
='test -s conftest.$ac_objext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.
$ac_ext >&5
16598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16599 cat >conftest.
$ac_ext <<_ACEOF
16602 cat confdefs.h
>>conftest.
$ac_ext
16603 cat >>conftest.
$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #define _LARGEFILE_SOURCE 1
16615 rm -f conftest.
$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>conftest.er1
16619 grep -v '^ *+' conftest.er1
>conftest.err
16621 cat conftest.err
>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try
='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_sys_largefile_source
=1; break
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.
$ac_ext >&5
16642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16646 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16648 if test "$ac_cv_sys_largefile_source" != no
; then
16650 cat >>confdefs.h
<<_ACEOF
16651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16657 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16658 # in glibc 2.1.3, but that breaks too many other things.
16659 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16660 echo "$as_me:$LINENO: checking for fseeko" >&5
16661 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16662 if test "${ac_cv_func_fseeko+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 cat >conftest.
$ac_ext <<_ACEOF
16668 cat confdefs.h
>>conftest.
$ac_ext
16669 cat >>conftest.
$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16675 return fseeko && fseeko (stdin, 0, 0);
16680 rm -f conftest.
$ac_objext conftest
$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>conftest.er1
16684 grep -v '^ *+' conftest.er1
>conftest.err
16686 cat conftest.err
>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try
='test -s conftest$ac_exeext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_func_fseeko
=yes
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.
$ac_ext >&5
16706 ac_cv_func_fseeko
=no
16708 rm -f conftest.err conftest.
$ac_objext \
16709 conftest
$ac_exeext conftest.
$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16712 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16713 if test $ac_cv_func_fseeko = yes; then
16715 cat >>confdefs.h
<<\_ACEOF
16716 #define HAVE_FSEEKO 1
16722 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16723 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16724 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 # Use it with a single arg.
16728 cat >conftest.
$ac_ext <<_ACEOF
16731 cat confdefs.h
>>conftest.
$ac_ext
16732 cat >>conftest.
$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16743 rm -f conftest.
$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16747 grep -v '^ *+' conftest.er1
>conftest.err
16749 cat conftest.err
>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try
='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_func_getpgrp_void
=no
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.
$ac_ext >&5
16769 ac_cv_func_getpgrp_void
=yes
16771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16774 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16775 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16776 if test $ac_cv_func_getpgrp_void = yes; then
16778 cat >>confdefs.h
<<\_ACEOF
16779 #define GETPGRP_VOID 1
16786 for ac_func
in strftime
16788 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16789 echo "$as_me:$LINENO: checking for $ac_func" >&5
16790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16791 if eval "test \"\${$as_ac_var+set}\" = set"; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 cat >conftest.
$ac_ext <<_ACEOF
16797 cat confdefs.h
>>conftest.
$ac_ext
16798 cat >>conftest.
$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16802 #define $ac_func innocuous_$ac_func
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func (); below.
16806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807 <limits.h> exists even on freestanding compilers. */
16810 # include <limits.h>
16812 # include <assert.h>
16817 /* Override any gcc2 internal prototype to avoid an error. */
16822 /* We use char because int might match the return type of a gcc2
16823 builtin and then its argument prototype would still apply. */
16825 /* The GNU C library defines this for functions which it implements
16826 to always fail with ENOSYS. Some functions are actually named
16827 something starting with __ and the normal name is an alias. */
16828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16831 char (*f) () = $ac_func;
16840 return f != $ac_func;
16845 rm -f conftest.
$ac_objext conftest
$ac_exeext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847 (eval $ac_link) 2>conftest.er1
16849 grep -v '^ *+' conftest.er1
>conftest.err
16851 cat conftest.err
>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try
='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_var=yes"
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.
$ac_ext >&5
16871 eval "$as_ac_var=no"
16873 rm -f conftest.err conftest.
$ac_objext \
16874 conftest
$ac_exeext conftest.
$ac_ext
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16878 if test `eval echo '${'$as_ac_var'}'` = yes; then
16879 cat >>confdefs.h
<<_ACEOF
16880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16884 # strftime is in -lintl on SCO UNIX.
16885 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16886 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16887 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 ac_check_lib_save_LIBS
=$LIBS
16891 LIBS
="-lintl $LIBS"
16892 cat >conftest.
$ac_ext <<_ACEOF
16895 cat confdefs.h
>>conftest.
$ac_ext
16896 cat >>conftest.
$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any gcc2 internal prototype to avoid an error. */
16903 /* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16914 rm -f conftest.
$ac_objext conftest
$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>conftest.er1
16918 grep -v '^ *+' conftest.er1
>conftest.err
16920 cat conftest.err
>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try
='test -s conftest$ac_exeext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 ac_cv_lib_intl_strftime
=yes
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.
$ac_ext >&5
16940 ac_cv_lib_intl_strftime
=no
16942 rm -f conftest.err conftest.
$ac_objext \
16943 conftest
$ac_exeext conftest.
$ac_ext
16944 LIBS
=$ac_check_lib_save_LIBS
16946 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16947 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16948 if test $ac_cv_lib_intl_strftime = yes; then
16949 cat >>confdefs.h
<<\_ACEOF
16950 #define HAVE_STRFTIME 1
16953 LIBS
="-lintl $LIBS"
16962 for ac_func
in grantpt
16964 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16965 echo "$as_me:$LINENO: checking for $ac_func" >&5
16966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16967 if eval "test \"\${$as_ac_var+set}\" = set"; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 cat >conftest.
$ac_ext <<_ACEOF
16973 cat confdefs.h
>>conftest.
$ac_ext
16974 cat >>conftest.
$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16978 #define $ac_func innocuous_$ac_func
16980 /* System header to define __stub macros and hopefully few prototypes,
16981 which can conflict with char $ac_func (); below.
16982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16983 <limits.h> exists even on freestanding compilers. */
16986 # include <limits.h>
16988 # include <assert.h>
16993 /* Override any gcc2 internal prototype to avoid an error. */
16998 /* We use char because int might match the return type of a gcc2
16999 builtin and then its argument prototype would still apply. */
17001 /* The GNU C library defines this for functions which it implements
17002 to always fail with ENOSYS. Some functions are actually named
17003 something starting with __ and the normal name is an alias. */
17004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17007 char (*f) () = $ac_func;
17016 return f != $ac_func;
17021 rm -f conftest.
$ac_objext conftest
$ac_exeext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17023 (eval $ac_link) 2>conftest.er1
17025 grep -v '^ *+' conftest.er1
>conftest.err
17027 cat conftest.err
>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try
='test -s conftest$ac_exeext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.
$ac_ext >&5
17047 eval "$as_ac_var=no"
17049 rm -f conftest.err conftest.
$ac_objext \
17050 conftest
$ac_exeext conftest.
$ac_ext
17052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h
<<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17063 # PTY-related GNU extensions.
17065 for ac_func
in getpt
17067 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17070 if eval "test \"\${$as_ac_var+set}\" = set"; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 cat >conftest.
$ac_ext <<_ACEOF
17076 cat confdefs.h
>>conftest.
$ac_ext
17077 cat >>conftest.
$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081 #define $ac_func innocuous_$ac_func
17083 /* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17089 # include <limits.h>
17091 # include <assert.h>
17096 /* Override any gcc2 internal prototype to avoid an error. */
17101 /* We use char because int might match the return type of a gcc2
17102 builtin and then its argument prototype would still apply. */
17104 /* The GNU C library defines this for functions which it implements
17105 to always fail with ENOSYS. Some functions are actually named
17106 something starting with __ and the normal name is an alias. */
17107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17110 char (*f) () = $ac_func;
17119 return f != $ac_func;
17124 rm -f conftest.
$ac_objext conftest
$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>conftest.er1
17128 grep -v '^ *+' conftest.er1
>conftest.err
17130 cat conftest.err
>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try
='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 eval "$as_ac_var=yes"
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17150 eval "$as_ac_var=no"
17152 rm -f conftest.err conftest.
$ac_objext \
17153 conftest
$ac_exeext conftest.
$ac_ext
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17157 if test `eval echo '${'$as_ac_var'}'` = yes; then
17158 cat >>confdefs.h
<<_ACEOF
17159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17166 # Check this now, so that we will NOT find the above functions in ncurses.
17167 # That is because we have not set up to link ncurses in lib-src.
17168 # It's better to believe a function is not available
17169 # than to expect to find it in ncurses.
17171 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17172 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17173 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 ac_check_lib_save_LIBS
=$LIBS
17177 LIBS
="-lncurses $LIBS"
17178 cat >conftest.
$ac_ext <<_ACEOF
17181 cat confdefs.h
>>conftest.
$ac_ext
17182 cat >>conftest.
$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17185 /* Override any gcc2 internal prototype to avoid an error. */
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17200 rm -f conftest.
$ac_objext conftest
$ac_exeext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17202 (eval $ac_link) 2>conftest.er1
17204 grep -v '^ *+' conftest.er1
>conftest.err
17206 cat conftest.err
>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try
='test -s conftest$ac_exeext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_lib_ncurses_tparm
=yes
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.
$ac_ext >&5
17226 ac_cv_lib_ncurses_tparm
=no
17228 rm -f conftest.err conftest.
$ac_objext \
17229 conftest
$ac_exeext conftest.
$ac_ext
17230 LIBS
=$ac_check_lib_save_LIBS
17232 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17233 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17234 if test $ac_cv_lib_ncurses_tparm = yes; then
17235 cat >>confdefs.h
<<_ACEOF
17236 #define HAVE_LIBNCURSES 1
17239 LIBS
="-lncurses $LIBS"
17244 # Do we need the Hesiod library to provide the support routines?
17245 if test "$with_hesiod" = yes ; then
17246 # Don't set $LIBS here -- see comments above.
17248 echo "$as_me:$LINENO: checking for res_send" >&5
17249 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17250 if test "${ac_cv_func_res_send+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 cat >conftest.
$ac_ext <<_ACEOF
17256 cat confdefs.h
>>conftest.
$ac_ext
17257 cat >>conftest.
$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17261 #define res_send innocuous_res_send
17263 /* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char res_send (); below.
17265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17266 <limits.h> exists even on freestanding compilers. */
17269 # include <limits.h>
17271 # include <assert.h>
17276 /* Override any gcc2 internal prototype to avoid an error. */
17281 /* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17284 /* The GNU C library defines this for functions which it implements
17285 to always fail with ENOSYS. Some functions are actually named
17286 something starting with __ and the normal name is an alias. */
17287 #if defined (__stub_res_send) || defined (__stub___res_send)
17290 char (*f) () = res_send;
17299 return f != res_send;
17304 rm -f conftest.
$ac_objext conftest
$ac_exeext
17305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17306 (eval $ac_link) 2>conftest.er1
17308 grep -v '^ *+' conftest.er1
>conftest.err
17310 cat conftest.err
>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try
='test -s conftest$ac_exeext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_func_res_send
=yes
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.
$ac_ext >&5
17330 ac_cv_func_res_send
=no
17332 rm -f conftest.err conftest.
$ac_objext \
17333 conftest
$ac_exeext conftest.
$ac_ext
17335 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17336 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17337 if test $ac_cv_func_res_send = yes; then
17340 echo "$as_me:$LINENO: checking for __res_send" >&5
17341 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17342 if test "${ac_cv_func___res_send+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.
$ac_ext <<_ACEOF
17348 cat confdefs.h
>>conftest.
$ac_ext
17349 cat >>conftest.
$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define __res_send innocuous___res_send
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char __res_send (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17361 # include <limits.h>
17363 # include <assert.h>
17368 /* Override any gcc2 internal prototype to avoid an error. */
17373 /* We use char because int might match the return type of a gcc2
17374 builtin and then its argument prototype would still apply. */
17375 char __res_send ();
17376 /* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379 #if defined (__stub___res_send) || defined (__stub_____res_send)
17382 char (*f) () = __res_send;
17391 return f != __res_send;
17396 rm -f conftest.
$ac_objext conftest
$ac_exeext
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>conftest.er1
17400 grep -v '^ *+' conftest.er1
>conftest.err
17402 cat conftest.err
>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try
='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_cv_func___res_send
=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.
$ac_ext >&5
17422 ac_cv_func___res_send
=no
17424 rm -f conftest.err conftest.
$ac_objext \
17425 conftest
$ac_exeext conftest.
$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17428 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17429 if test $ac_cv_func___res_send = yes; then
17432 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17433 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17434 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 ac_check_lib_save_LIBS
=$LIBS
17438 LIBS
="-lresolv $LIBS"
17439 cat >conftest.
$ac_ext <<_ACEOF
17442 cat confdefs.h
>>conftest.
$ac_ext
17443 cat >>conftest.
$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17446 /* Override any gcc2 internal prototype to avoid an error. */
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17461 rm -f conftest.
$ac_objext conftest
$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17465 grep -v '^ *+' conftest.er1
>conftest.err
17467 cat conftest.err
>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try
='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_lib_resolv_res_send
=yes
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.
$ac_ext >&5
17487 ac_cv_lib_resolv_res_send
=no
17489 rm -f conftest.err conftest.
$ac_objext \
17490 conftest
$ac_exeext conftest.
$ac_ext
17491 LIBS
=$ac_check_lib_save_LIBS
17493 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17494 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17495 if test $ac_cv_lib_resolv_res_send = yes; then
17498 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17499 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17500 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 ac_check_lib_save_LIBS
=$LIBS
17504 LIBS
="-lresolv $LIBS"
17505 cat >conftest.
$ac_ext <<_ACEOF
17508 cat confdefs.h
>>conftest.
$ac_ext
17509 cat >>conftest.
$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 /* Override any gcc2 internal prototype to avoid an error. */
17516 /* We use char because int might match the return type of a gcc2
17517 builtin and then its argument prototype would still apply. */
17518 char __res_send ();
17527 rm -f conftest.
$ac_objext conftest
$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17531 grep -v '^ *+' conftest.er1
>conftest.err
17533 cat conftest.err
>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try
='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_lib_resolv___res_send
=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.
$ac_ext >&5
17553 ac_cv_lib_resolv___res_send
=no
17555 rm -f conftest.err conftest.
$ac_objext \
17556 conftest
$ac_exeext conftest.
$ac_ext
17557 LIBS
=$ac_check_lib_save_LIBS
17559 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17560 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17561 if test $ac_cv_lib_resolv___res_send = yes; then
17571 if test "$resolv" = yes ; then
17574 cat >>confdefs.h
<<\_ACEOF
17575 #define HAVE_LIBRESOLV 1
17581 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17582 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17583 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.
$ac_ext <<_ACEOF
17589 cat confdefs.h
>>conftest.
$ac_ext
17590 cat >>conftest.
$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define hes_getmailhost innocuous_hes_getmailhost
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char hes_getmailhost (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17602 # include <limits.h>
17604 # include <assert.h>
17607 #undef hes_getmailhost
17609 /* Override any gcc2 internal prototype to avoid an error. */
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616 char hes_getmailhost ();
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17623 char (*f) () = hes_getmailhost;
17632 return f != hes_getmailhost;
17637 rm -f conftest.
$ac_objext conftest
$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17641 grep -v '^ *+' conftest.er1
>conftest.err
17643 cat conftest.err
>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try
='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_func_hes_getmailhost
=yes
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.
$ac_ext >&5
17663 ac_cv_func_hes_getmailhost
=no
17665 rm -f conftest.err conftest.
$ac_objext \
17666 conftest
$ac_exeext conftest.
$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17669 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17670 if test $ac_cv_func_hes_getmailhost = yes; then
17673 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17674 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17675 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 ac_check_lib_save_LIBS
=$LIBS
17679 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17680 cat >conftest.
$ac_ext <<_ACEOF
17683 cat confdefs.h
>>conftest.
$ac_ext
17684 cat >>conftest.
$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17687 /* Override any gcc2 internal prototype to avoid an error. */
17691 /* We use char because int might match the return type of a gcc2
17692 builtin and then its argument prototype would still apply. */
17693 char hes_getmailhost ();
17697 hes_getmailhost ();
17702 rm -f conftest.
$ac_objext conftest
$ac_exeext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704 (eval $ac_link) 2>conftest.er1
17706 grep -v '^ *+' conftest.er1
>conftest.err
17708 cat conftest.err
>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try
='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_lib_hesiod_hes_getmailhost
=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.
$ac_ext >&5
17728 ac_cv_lib_hesiod_hes_getmailhost
=no
17730 rm -f conftest.err conftest.
$ac_objext \
17731 conftest
$ac_exeext conftest.
$ac_ext
17732 LIBS
=$ac_check_lib_save_LIBS
17734 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17735 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17736 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17738 cat >>confdefs.h
<<\_ACEOF
17739 #define HAVE_LIBHESIOD 1
17750 # These tell us which Kerberos-related libraries to use.
17751 if test "${with_kerberos+set}" = set; then
17753 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17754 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_check_lib_save_LIBS
=$LIBS
17759 LIBS
="-lcom_err $LIBS"
17760 cat >conftest.
$ac_ext <<_ACEOF
17763 cat confdefs.h
>>conftest.
$ac_ext
17764 cat >>conftest.
$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any gcc2 internal prototype to avoid an error. */
17771 /* We use char because int might match the return type of a gcc2
17772 builtin and then its argument prototype would still apply. */
17782 rm -f conftest.
$ac_objext conftest
$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>conftest.er1
17786 grep -v '^ *+' conftest.er1
>conftest.err
17788 cat conftest.err
>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try
='test -s conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_cv_lib_com_err_com_err
=yes
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.
$ac_ext >&5
17808 ac_cv_lib_com_err_com_err
=no
17810 rm -f conftest.err conftest.
$ac_objext \
17811 conftest
$ac_exeext conftest.
$ac_ext
17812 LIBS
=$ac_check_lib_save_LIBS
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17815 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17816 if test $ac_cv_lib_com_err_com_err = yes; then
17817 cat >>confdefs.h
<<_ACEOF
17818 #define HAVE_LIBCOM_ERR 1
17821 LIBS
="-lcom_err $LIBS"
17826 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17827 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17828 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 ac_check_lib_save_LIBS
=$LIBS
17832 LIBS
="-lk5crypto $LIBS"
17833 cat >conftest.
$ac_ext <<_ACEOF
17836 cat confdefs.h
>>conftest.
$ac_ext
17837 cat >>conftest.
$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 /* Override any gcc2 internal prototype to avoid an error. */
17844 /* We use char because int might match the return type of a gcc2
17845 builtin and then its argument prototype would still apply. */
17846 char mit_des_cbc_encrypt ();
17850 mit_des_cbc_encrypt ();
17855 rm -f conftest.
$ac_objext conftest
$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>conftest.er1
17859 grep -v '^ *+' conftest.er1
>conftest.err
17861 cat conftest.err
>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try
='test -s conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.
$ac_ext >&5
17881 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17883 rm -f conftest.err conftest.
$ac_objext \
17884 conftest
$ac_exeext conftest.
$ac_ext
17885 LIBS
=$ac_check_lib_save_LIBS
17887 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17888 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17889 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17890 cat >>confdefs.h
<<_ACEOF
17891 #define HAVE_LIBK5CRYPTO 1
17894 LIBS
="-lk5crypto $LIBS"
17899 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17900 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17901 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 ac_check_lib_save_LIBS
=$LIBS
17905 LIBS
="-lcrypto $LIBS"
17906 cat >conftest.
$ac_ext <<_ACEOF
17909 cat confdefs.h
>>conftest.
$ac_ext
17910 cat >>conftest.
$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17913 /* Override any gcc2 internal prototype to avoid an error. */
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919 char mit_des_cbc_encrypt ();
17923 mit_des_cbc_encrypt ();
17928 rm -f conftest.
$ac_objext conftest
$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17932 grep -v '^ *+' conftest.er1
>conftest.err
17934 cat conftest.err
>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try
='test -s conftest$ac_exeext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.
$ac_ext >&5
17954 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17956 rm -f conftest.err conftest.
$ac_objext \
17957 conftest
$ac_exeext conftest.
$ac_ext
17958 LIBS
=$ac_check_lib_save_LIBS
17960 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17961 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17962 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17963 cat >>confdefs.h
<<_ACEOF
17964 #define HAVE_LIBCRYPTO 1
17967 LIBS
="-lcrypto $LIBS"
17972 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17973 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17974 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 ac_check_lib_save_LIBS
=$LIBS
17978 LIBS
="-lkrb5 $LIBS"
17979 cat >conftest.
$ac_ext <<_ACEOF
17982 cat confdefs.h
>>conftest.
$ac_ext
17983 cat >>conftest.
$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17986 /* Override any gcc2 internal prototype to avoid an error. */
17990 /* We use char because int might match the return type of a gcc2
17991 builtin and then its argument prototype would still apply. */
17992 char krb5_init_context ();
17996 krb5_init_context ();
18001 rm -f conftest.
$ac_objext conftest
$ac_exeext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>conftest.er1
18005 grep -v '^ *+' conftest.er1
>conftest.err
18007 cat conftest.err
>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try
='test -s conftest$ac_exeext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_lib_krb5_krb5_init_context
=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.
$ac_ext >&5
18027 ac_cv_lib_krb5_krb5_init_context
=no
18029 rm -f conftest.err conftest.
$ac_objext \
18030 conftest
$ac_exeext conftest.
$ac_ext
18031 LIBS
=$ac_check_lib_save_LIBS
18033 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18034 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18035 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18036 cat >>confdefs.h
<<_ACEOF
18037 #define HAVE_LIBKRB5 1
18040 LIBS
="-lkrb5 $LIBS"
18044 if test "${with_kerberos5+set}" != set; then
18046 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18047 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18048 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 ac_check_lib_save_LIBS
=$LIBS
18052 LIBS
="-ldes425 $LIBS"
18053 cat >conftest.
$ac_ext <<_ACEOF
18056 cat confdefs.h
>>conftest.
$ac_ext
18057 cat >>conftest.
$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18060 /* Override any gcc2 internal prototype to avoid an error. */
18064 /* We use char because int might match the return type of a gcc2
18065 builtin and then its argument prototype would still apply. */
18066 char des_cbc_encrypt ();
18070 des_cbc_encrypt ();
18075 rm -f conftest.
$ac_objext conftest
$ac_exeext
18076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18077 (eval $ac_link) 2>conftest.er1
18079 grep -v '^ *+' conftest.er1
>conftest.err
18081 cat conftest.err
>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try
='test -s conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_lib_des425_des_cbc_encrypt
=yes
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.
$ac_ext >&5
18101 ac_cv_lib_des425_des_cbc_encrypt
=no
18103 rm -f conftest.err conftest.
$ac_objext \
18104 conftest
$ac_exeext conftest.
$ac_ext
18105 LIBS
=$ac_check_lib_save_LIBS
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18108 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18109 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18110 cat >>confdefs.h
<<_ACEOF
18111 #define HAVE_LIBDES425 1
18114 LIBS
="-ldes425 $LIBS"
18118 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18119 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18120 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 ac_check_lib_save_LIBS
=$LIBS
18125 cat >conftest.
$ac_ext <<_ACEOF
18128 cat confdefs.h
>>conftest.
$ac_ext
18129 cat >>conftest.
$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18132 /* Override any gcc2 internal prototype to avoid an error. */
18136 /* We use char because int might match the return type of a gcc2
18137 builtin and then its argument prototype would still apply. */
18138 char des_cbc_encrypt ();
18142 des_cbc_encrypt ();
18147 rm -f conftest.
$ac_objext conftest
$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>conftest.er1
18151 grep -v '^ *+' conftest.er1
>conftest.err
18153 cat conftest.err
>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try
='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_lib_des_des_cbc_encrypt
=yes
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.
$ac_ext >&5
18173 ac_cv_lib_des_des_cbc_encrypt
=no
18175 rm -f conftest.err conftest.
$ac_objext \
18176 conftest
$ac_exeext conftest.
$ac_ext
18177 LIBS
=$ac_check_lib_save_LIBS
18179 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18180 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18181 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18182 cat >>confdefs.h
<<_ACEOF
18183 #define HAVE_LIBDES 1
18193 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18194 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18195 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 ac_check_lib_save_LIBS
=$LIBS
18199 LIBS
="-lkrb4 $LIBS"
18200 cat >conftest.
$ac_ext <<_ACEOF
18203 cat confdefs.h
>>conftest.
$ac_ext
18204 cat >>conftest.
$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18207 /* Override any gcc2 internal prototype to avoid an error. */
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213 char krb_get_cred ();
18222 rm -f conftest.
$ac_objext conftest
$ac_exeext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18224 (eval $ac_link) 2>conftest.er1
18226 grep -v '^ *+' conftest.er1
>conftest.err
18228 cat conftest.err
>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try
='test -s conftest$ac_exeext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 ac_cv_lib_krb4_krb_get_cred
=yes
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.
$ac_ext >&5
18248 ac_cv_lib_krb4_krb_get_cred
=no
18250 rm -f conftest.err conftest.
$ac_objext \
18251 conftest
$ac_exeext conftest.
$ac_ext
18252 LIBS
=$ac_check_lib_save_LIBS
18254 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18255 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18256 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18257 cat >>confdefs.h
<<_ACEOF
18258 #define HAVE_LIBKRB4 1
18261 LIBS
="-lkrb4 $LIBS"
18265 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18266 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18267 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 ac_check_lib_save_LIBS
=$LIBS
18272 cat >conftest.
$ac_ext <<_ACEOF
18275 cat confdefs.h
>>conftest.
$ac_ext
18276 cat >>conftest.
$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18279 /* Override any gcc2 internal prototype to avoid an error. */
18283 /* We use char because int might match the return type of a gcc2
18284 builtin and then its argument prototype would still apply. */
18285 char krb_get_cred ();
18294 rm -f conftest.
$ac_objext conftest
$ac_exeext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>conftest.er1
18298 grep -v '^ *+' conftest.er1
>conftest.err
18300 cat conftest.err
>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
18303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try
='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 ac_cv_lib_krb_krb_get_cred
=yes
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.
$ac_ext >&5
18320 ac_cv_lib_krb_krb_get_cred
=no
18322 rm -f conftest.err conftest.
$ac_objext \
18323 conftest
$ac_exeext conftest.
$ac_ext
18324 LIBS
=$ac_check_lib_save_LIBS
18326 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18327 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18328 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18329 cat >>confdefs.h
<<_ACEOF
18330 #define HAVE_LIBKRB 1
18341 if test "${with_kerberos5+set}" = set; then
18343 for ac_header
in krb5.h
18345 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo "$as_me:$LINENO: checking for $ac_header" >&5
18348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18355 # Is the header compilable?
18356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18358 cat >conftest.
$ac_ext <<_ACEOF
18361 cat confdefs.h
>>conftest.
$ac_ext
18362 cat >>conftest.
$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 $ac_includes_default
18365 #include <$ac_header>
18367 rm -f conftest.
$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try
='test -s conftest.$ac_objext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_header_compiler
=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.
$ac_ext >&5
18393 ac_header_compiler
=no
18395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18397 echo "${ECHO_T}$ac_header_compiler" >&6
18399 # Is the header present?
18400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18402 cat >conftest.
$ac_ext <<_ACEOF
18405 cat confdefs.h
>>conftest.
$ac_ext
18406 cat >>conftest.
$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 #include <$ac_header>
18410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18411 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18413 grep -v '^ *+' conftest.er1
>conftest.err
18415 cat conftest.err
>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } >/dev
/null
; then
18418 if test -s conftest.err
; then
18419 ac_cpp_err
=$ac_c_preproc_warn_flag
18420 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18427 if test -z "$ac_cpp_err"; then
18428 ac_header_preproc
=yes
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.
$ac_ext >&5
18433 ac_header_preproc
=no
18435 rm -f conftest.err conftest.
$ac_ext
18436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18437 echo "${ECHO_T}$ac_header_preproc" >&6
18439 # So? What about this header?
18440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18446 ac_header_preproc
=yes
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18463 ## ------------------------------------------ ##
18464 ## Report this to the AC_PACKAGE_NAME lists. ##
18465 ## ------------------------------------------ ##
18468 sed "s/^/$as_me: WARNING: /" >&2
18471 echo "$as_me:$LINENO: checking for $ac_header" >&5
18472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 eval "$as_ac_Header=\$ac_header_preproc"
18478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18483 cat >>confdefs.h
<<_ACEOF
18484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18493 for ac_header
in des.h
18495 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18497 echo "$as_me:$LINENO: checking for $ac_header" >&5
18498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18505 # Is the header compilable?
18506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18508 cat >conftest.
$ac_ext <<_ACEOF
18511 cat confdefs.h
>>conftest.
$ac_ext
18512 cat >>conftest.
$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 #include <$ac_header>
18517 rm -f conftest.
$ac_objext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18519 (eval $ac_compile) 2>conftest.er1
18521 grep -v '^ *+' conftest.er1
>conftest.err
18523 cat conftest.err
>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try
='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_header_compiler
=yes
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.
$ac_ext >&5
18543 ac_header_compiler
=no
18545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18547 echo "${ECHO_T}$ac_header_compiler" >&6
18549 # Is the header present?
18550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18552 cat >conftest.
$ac_ext <<_ACEOF
18555 cat confdefs.h
>>conftest.
$ac_ext
18556 cat >>conftest.
$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 #include <$ac_header>
18560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18563 grep -v '^ *+' conftest.er1
>conftest.err
18565 cat conftest.err
>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } >/dev
/null
; then
18568 if test -s conftest.err
; then
18569 ac_cpp_err
=$ac_c_preproc_warn_flag
18570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18577 if test -z "$ac_cpp_err"; then
18578 ac_header_preproc
=yes
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.
$ac_ext >&5
18583 ac_header_preproc
=no
18585 rm -f conftest.err conftest.
$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18587 echo "${ECHO_T}$ac_header_preproc" >&6
18589 # So? What about this header?
18590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18596 ac_header_preproc
=yes
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18613 ## ------------------------------------------ ##
18614 ## Report this to the AC_PACKAGE_NAME lists. ##
18615 ## ------------------------------------------ ##
18618 sed "s/^/$as_me: WARNING: /" >&2
18621 echo "$as_me:$LINENO: checking for $ac_header" >&5
18622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 eval "$as_ac_Header=\$ac_header_preproc"
18628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18633 cat >>confdefs.h
<<_ACEOF
18634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18639 for ac_header
in kerberosIV
/des.h
18641 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18643 echo "$as_me:$LINENO: checking for $ac_header" >&5
18644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18651 # Is the header compilable?
18652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18654 cat >conftest.
$ac_ext <<_ACEOF
18657 cat confdefs.h
>>conftest.
$ac_ext
18658 cat >>conftest.
$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 $ac_includes_default
18661 #include <$ac_header>
18663 rm -f conftest.
$ac_objext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>conftest.er1
18667 grep -v '^ *+' conftest.er1
>conftest.err
18669 cat conftest.err
>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try
='test -s conftest.$ac_objext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_header_compiler
=yes
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.
$ac_ext >&5
18689 ac_header_compiler
=no
18691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18693 echo "${ECHO_T}$ac_header_compiler" >&6
18695 # Is the header present?
18696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18698 cat >conftest.
$ac_ext <<_ACEOF
18701 cat confdefs.h
>>conftest.
$ac_ext
18702 cat >>conftest.
$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 #include <$ac_header>
18706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18709 grep -v '^ *+' conftest.er1
>conftest.err
18711 cat conftest.err
>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } >/dev
/null
; then
18714 if test -s conftest.err
; then
18715 ac_cpp_err
=$ac_c_preproc_warn_flag
18716 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18723 if test -z "$ac_cpp_err"; then
18724 ac_header_preproc
=yes
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.
$ac_ext >&5
18729 ac_header_preproc
=no
18731 rm -f conftest.err conftest.
$ac_ext
18732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18733 echo "${ECHO_T}$ac_header_preproc" >&6
18735 # So? What about this header?
18736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18742 ac_header_preproc
=yes
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18759 ## ------------------------------------------ ##
18760 ## Report this to the AC_PACKAGE_NAME lists. ##
18761 ## ------------------------------------------ ##
18764 sed "s/^/$as_me: WARNING: /" >&2
18767 echo "$as_me:$LINENO: checking for $ac_header" >&5
18768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 eval "$as_ac_Header=\$ac_header_preproc"
18774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18779 cat >>confdefs.h
<<_ACEOF
18780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18785 for ac_header
in kerberos
/des.h
18787 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18789 echo "$as_me:$LINENO: checking for $ac_header" >&5
18790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18797 # Is the header compilable?
18798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18800 cat >conftest.
$ac_ext <<_ACEOF
18803 cat confdefs.h
>>conftest.
$ac_ext
18804 cat >>conftest.
$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 $ac_includes_default
18807 #include <$ac_header>
18809 rm -f conftest.
$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1
>conftest.err
18815 cat conftest.err
>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try
='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_header_compiler
=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.
$ac_ext >&5
18835 ac_header_compiler
=no
18837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18839 echo "${ECHO_T}$ac_header_compiler" >&6
18841 # Is the header present?
18842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18844 cat >conftest.
$ac_ext <<_ACEOF
18847 cat confdefs.h
>>conftest.
$ac_ext
18848 cat >>conftest.
$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 #include <$ac_header>
18852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18855 grep -v '^ *+' conftest.er1
>conftest.err
18857 cat conftest.err
>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } >/dev
/null
; then
18860 if test -s conftest.err
; then
18861 ac_cpp_err
=$ac_c_preproc_warn_flag
18862 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18869 if test -z "$ac_cpp_err"; then
18870 ac_header_preproc
=yes
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.
$ac_ext >&5
18875 ac_header_preproc
=no
18877 rm -f conftest.err conftest.
$ac_ext
18878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18879 echo "${ECHO_T}$ac_header_preproc" >&6
18881 # So? What about this header?
18882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18888 ac_header_preproc
=yes
18891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18905 ## ------------------------------------------ ##
18906 ## Report this to the AC_PACKAGE_NAME lists. ##
18907 ## ------------------------------------------ ##
18910 sed "s/^/$as_me: WARNING: /" >&2
18913 echo "$as_me:$LINENO: checking for $ac_header" >&5
18914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 eval "$as_ac_Header=\$ac_header_preproc"
18920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18925 cat >>confdefs.h
<<_ACEOF
18926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18942 for ac_header
in krb.h
18944 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo "$as_me:$LINENO: checking for $ac_header" >&5
18947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18954 # Is the header compilable?
18955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18957 cat >conftest.
$ac_ext <<_ACEOF
18960 cat confdefs.h
>>conftest.
$ac_ext
18961 cat >>conftest.
$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 $ac_includes_default
18964 #include <$ac_header>
18966 rm -f conftest.
$ac_objext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18968 (eval $ac_compile) 2>conftest.er1
18970 grep -v '^ *+' conftest.er1
>conftest.err
18972 cat conftest.err
>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try
='test -s conftest.$ac_objext'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_header_compiler
=yes
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.
$ac_ext >&5
18992 ac_header_compiler
=no
18994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18996 echo "${ECHO_T}$ac_header_compiler" >&6
18998 # Is the header present?
18999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19001 cat >conftest.
$ac_ext <<_ACEOF
19004 cat confdefs.h
>>conftest.
$ac_ext
19005 cat >>conftest.
$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <$ac_header>
19009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19010 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19012 grep -v '^ *+' conftest.er1
>conftest.err
19014 cat conftest.err
>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } >/dev
/null
; then
19017 if test -s conftest.err
; then
19018 ac_cpp_err
=$ac_c_preproc_warn_flag
19019 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19026 if test -z "$ac_cpp_err"; then
19027 ac_header_preproc
=yes
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.
$ac_ext >&5
19032 ac_header_preproc
=no
19034 rm -f conftest.err conftest.
$ac_ext
19035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19036 echo "${ECHO_T}$ac_header_preproc" >&6
19038 # So? What about this header?
19039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19045 ac_header_preproc
=yes
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19062 ## ------------------------------------------ ##
19063 ## Report this to the AC_PACKAGE_NAME lists. ##
19064 ## ------------------------------------------ ##
19067 sed "s/^/$as_me: WARNING: /" >&2
19070 echo "$as_me:$LINENO: checking for $ac_header" >&5
19071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 eval "$as_ac_Header=\$ac_header_preproc"
19077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19082 cat >>confdefs.h
<<_ACEOF
19083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19088 for ac_header
in kerberosIV
/krb.h
19090 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19092 echo "$as_me:$LINENO: checking for $ac_header" >&5
19093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19100 # Is the header compilable?
19101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19103 cat >conftest.
$ac_ext <<_ACEOF
19106 cat confdefs.h
>>conftest.
$ac_ext
19107 cat >>conftest.
$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 $ac_includes_default
19110 #include <$ac_header>
19112 rm -f conftest.
$ac_objext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19114 (eval $ac_compile) 2>conftest.er1
19116 grep -v '^ *+' conftest.er1
>conftest.err
19118 cat conftest.err
>&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
19121 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try
='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_header_compiler
=yes
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.
$ac_ext >&5
19138 ac_header_compiler
=no
19140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19142 echo "${ECHO_T}$ac_header_compiler" >&6
19144 # Is the header present?
19145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19147 cat >conftest.
$ac_ext <<_ACEOF
19150 cat confdefs.h
>>conftest.
$ac_ext
19151 cat >>conftest.
$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <$ac_header>
19155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19156 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19158 grep -v '^ *+' conftest.er1
>conftest.err
19160 cat conftest.err
>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } >/dev
/null
; then
19163 if test -s conftest.err
; then
19164 ac_cpp_err
=$ac_c_preproc_warn_flag
19165 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19172 if test -z "$ac_cpp_err"; then
19173 ac_header_preproc
=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.
$ac_ext >&5
19178 ac_header_preproc
=no
19180 rm -f conftest.err conftest.
$ac_ext
19181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19182 echo "${ECHO_T}$ac_header_preproc" >&6
19184 # So? What about this header?
19185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19191 ac_header_preproc
=yes
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19208 ## ------------------------------------------ ##
19209 ## Report this to the AC_PACKAGE_NAME lists. ##
19210 ## ------------------------------------------ ##
19213 sed "s/^/$as_me: WARNING: /" >&2
19216 echo "$as_me:$LINENO: checking for $ac_header" >&5
19217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 eval "$as_ac_Header=\$ac_header_preproc"
19223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19228 cat >>confdefs.h
<<_ACEOF
19229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19234 for ac_header
in kerberos
/krb.h
19236 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19238 echo "$as_me:$LINENO: checking for $ac_header" >&5
19239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19246 # Is the header compilable?
19247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19249 cat >conftest.
$ac_ext <<_ACEOF
19252 cat confdefs.h
>>conftest.
$ac_ext
19253 cat >>conftest.
$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 $ac_includes_default
19256 #include <$ac_header>
19258 rm -f conftest.
$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260 (eval $ac_compile) 2>conftest.er1
19262 grep -v '^ *+' conftest.er1
>conftest.err
19264 cat conftest.err
>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try
='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_header_compiler
=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.
$ac_ext >&5
19284 ac_header_compiler
=no
19286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6
19290 # Is the header present?
19291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19293 cat >conftest.
$ac_ext <<_ACEOF
19296 cat confdefs.h
>>conftest.
$ac_ext
19297 cat >>conftest.
$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 #include <$ac_header>
19301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19302 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19304 grep -v '^ *+' conftest.er1
>conftest.err
19306 cat conftest.err
>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } >/dev
/null
; then
19309 if test -s conftest.err
; then
19310 ac_cpp_err
=$ac_c_preproc_warn_flag
19311 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19318 if test -z "$ac_cpp_err"; then
19319 ac_header_preproc
=yes
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.
$ac_ext >&5
19324 ac_header_preproc
=no
19326 rm -f conftest.err conftest.
$ac_ext
19327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6
19330 # So? What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19337 ac_header_preproc
=yes
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19354 ## ------------------------------------------ ##
19355 ## Report this to the AC_PACKAGE_NAME lists. ##
19356 ## ------------------------------------------ ##
19359 sed "s/^/$as_me: WARNING: /" >&2
19362 echo "$as_me:$LINENO: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 eval "$as_ac_Header=\$ac_header_preproc"
19369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19374 cat >>confdefs.h
<<_ACEOF
19375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19392 for ac_header
in com_err.h
19394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396 echo "$as_me:$LINENO: checking for $ac_header" >&5
19397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19404 # Is the header compilable?
19405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19407 cat >conftest.
$ac_ext <<_ACEOF
19410 cat confdefs.h
>>conftest.
$ac_ext
19411 cat >>conftest.
$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 $ac_includes_default
19414 #include <$ac_header>
19416 rm -f conftest.
$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1
>conftest.err
19422 cat conftest.err
>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try
='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler
=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.
$ac_ext >&5
19442 ac_header_compiler
=no
19444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19451 cat >conftest.
$ac_ext <<_ACEOF
19454 cat confdefs.h
>>conftest.
$ac_ext
19455 cat >>conftest.
$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <$ac_header>
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19462 grep -v '^ *+' conftest.er1
>conftest.err
19464 cat conftest.err
>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev
/null
; then
19467 if test -s conftest.err
; then
19468 ac_cpp_err
=$ac_c_preproc_warn_flag
19469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19476 if test -z "$ac_cpp_err"; then
19477 ac_header_preproc
=yes
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.
$ac_ext >&5
19482 ac_header_preproc
=no
19484 rm -f conftest.err conftest.
$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486 echo "${ECHO_T}$ac_header_preproc" >&6
19488 # So? What about this header?
19489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc
=yes
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19512 ## ------------------------------------------ ##
19513 ## Report this to the AC_PACKAGE_NAME lists. ##
19514 ## ------------------------------------------ ##
19517 sed "s/^/$as_me: WARNING: /" >&2
19520 echo "$as_me:$LINENO: checking for $ac_header" >&5
19521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 eval "$as_ac_Header=\$ac_header_preproc"
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19532 cat >>confdefs.h
<<_ACEOF
19533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19542 # Solaris requires -lintl if you want strerror (which calls dgettext)
19543 # to return localized messages.
19545 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19546 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19547 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_check_lib_save_LIBS
=$LIBS
19551 LIBS
="-lintl $LIBS"
19552 cat >conftest.
$ac_ext <<_ACEOF
19555 cat confdefs.h
>>conftest.
$ac_ext
19556 cat >>conftest.
$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any gcc2 internal prototype to avoid an error. */
19563 /* We use char because int might match the return type of a gcc2
19564 builtin and then its argument prototype would still apply. */
19574 rm -f conftest.
$ac_objext conftest
$ac_exeext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19578 grep -v '^ *+' conftest.er1
>conftest.err
19580 cat conftest.err
>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try
='test -s conftest$ac_exeext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_lib_intl_dgettext
=yes
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.
$ac_ext >&5
19600 ac_cv_lib_intl_dgettext
=no
19602 rm -f conftest.err conftest.
$ac_objext \
19603 conftest
$ac_exeext conftest.
$ac_ext
19604 LIBS
=$ac_check_lib_save_LIBS
19606 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19607 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19608 if test $ac_cv_lib_intl_dgettext = yes; then
19609 cat >>confdefs.h
<<_ACEOF
19610 #define HAVE_LIBINTL 1
19613 LIBS
="-lintl $LIBS"
19618 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19619 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19620 if test "${emacs_cv_localtime_cache+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 if test x
$ac_cv_func_tzset = xyes
; then
19624 if test "$cross_compiling" = yes; then
19625 # If we have tzset, assume the worst when cross-compiling.
19626 emacs_cv_localtime_cache
=yes
19628 cat >conftest.
$ac_ext <<_ACEOF
19631 cat confdefs.h
>>conftest.
$ac_ext
19632 cat >>conftest.
$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 extern char **environ;
19639 for (to = from = environ; (*to = *from); from++)
19640 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19643 char TZ_GMT0[] = "TZ=GMT0";
19644 char TZ_PST8[] = "TZ=PST8";
19647 time_t now = time ((time_t *) 0);
19648 int hour_GMT0, hour_unset;
19649 if (putenv (TZ_GMT0) != 0)
19651 hour_GMT0 = localtime (&now)->tm_hour;
19653 hour_unset = localtime (&now)->tm_hour;
19654 if (putenv (TZ_PST8) != 0)
19656 if (localtime (&now)->tm_hour == hour_GMT0)
19659 if (localtime (&now)->tm_hour != hour_unset)
19664 rm -f conftest
$ac_exeext
19665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19666 (eval $ac_link) 2>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 emacs_cv_localtime_cache
=no
19677 echo "$as_me: program exited with status $ac_status" >&5
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.
$ac_ext >&5
19681 ( exit $ac_status )
19682 emacs_cv_localtime_cache
=yes
19684 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19687 # If we lack tzset, report that localtime does not cache TZ,
19688 # since we can't invalidate the cache if we don't have tzset.
19689 emacs_cv_localtime_cache
=no
19692 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19693 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19694 if test $emacs_cv_localtime_cache = yes; then
19696 cat >>confdefs.h
<<\_ACEOF
19697 #define LOCALTIME_CACHE 1
19702 if test "x$HAVE_TIMEVAL" = xyes
; then
19704 for ac_func
in gettimeofday
19706 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19707 echo "$as_me:$LINENO: checking for $ac_func" >&5
19708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19709 if eval "test \"\${$as_ac_var+set}\" = set"; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 cat >conftest.
$ac_ext <<_ACEOF
19715 cat confdefs.h
>>conftest.
$ac_ext
19716 cat >>conftest.
$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19720 #define $ac_func innocuous_$ac_func
19722 /* System header to define __stub macros and hopefully few prototypes,
19723 which can conflict with char $ac_func (); below.
19724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19725 <limits.h> exists even on freestanding compilers. */
19728 # include <limits.h>
19730 # include <assert.h>
19735 /* Override any gcc2 internal prototype to avoid an error. */
19740 /* We use char because int might match the return type of a gcc2
19741 builtin and then its argument prototype would still apply. */
19743 /* The GNU C library defines this for functions which it implements
19744 to always fail with ENOSYS. Some functions are actually named
19745 something starting with __ and the normal name is an alias. */
19746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19749 char (*f) () = $ac_func;
19758 return f != $ac_func;
19763 rm -f conftest.
$ac_objext conftest
$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1
>conftest.err
19769 cat conftest.err
>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try
='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 eval "$as_ac_var=yes"
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.
$ac_ext >&5
19789 eval "$as_ac_var=no"
19791 rm -f conftest.err conftest.
$ac_objext \
19792 conftest
$ac_exeext conftest.
$ac_ext
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19796 if test `eval echo '${'$as_ac_var'}'` = yes; then
19797 cat >>confdefs.h
<<_ACEOF
19798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19804 if test $ac_cv_func_gettimeofday = yes; then
19805 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19806 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19807 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 cat >conftest.
$ac_ext <<_ACEOF
19813 cat confdefs.h
>>conftest.
$ac_ext
19814 cat >>conftest.
$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19817 #ifdef TIME_WITH_SYS_TIME
19818 #include <sys/time.h>
19821 #ifdef HAVE_SYS_TIME_H
19822 #include <sys/time.h>
19830 struct timeval time;
19831 gettimeofday (&time, 0);
19836 rm -f conftest.
$ac_objext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19838 (eval $ac_compile) 2>conftest.er1
19840 grep -v '^ *+' conftest.er1
>conftest.err
19842 cat conftest.err
>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
19845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try
='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 emacs_cv_gettimeofday_two_arguments
=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.
$ac_ext >&5
19862 emacs_cv_gettimeofday_two_arguments
=no
19864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19866 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19867 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19868 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19870 cat >>confdefs.h
<<\_ACEOF
19871 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19878 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 cat >conftest.
$ac_ext <<_ACEOF
19887 cat confdefs.h
>>conftest.
$ac_ext
19888 cat >>conftest.
$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <$ac_cv_struct_tm>
19897 static struct tm ac_aggr;
19898 if (ac_aggr.tm_zone)
19904 rm -f conftest.
$ac_objext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 2>conftest.er1
19908 grep -v '^ *+' conftest.er1
>conftest.err
19910 cat conftest.err
>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
19913 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try
='test -s conftest.$ac_objext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 ac_cv_member_struct_tm_tm_zone
=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.
$ac_ext >&5
19930 cat >conftest.
$ac_ext <<_ACEOF
19933 cat confdefs.h
>>conftest.
$ac_ext
19934 cat >>conftest.
$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #include <sys/types.h>
19937 #include <$ac_cv_struct_tm>
19943 static struct tm ac_aggr;
19944 if (sizeof ac_aggr.tm_zone)
19950 rm -f conftest.
$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1
>conftest.err
19956 cat conftest.err
>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try
='test -s conftest.$ac_objext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_member_struct_tm_tm_zone
=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.
$ac_ext >&5
19976 ac_cv_member_struct_tm_tm_zone
=no
19978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19982 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19983 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19984 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19986 cat >>confdefs.h
<<_ACEOF
19987 #define HAVE_STRUCT_TM_TM_ZONE 1
19993 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19995 cat >>confdefs.h
<<\_ACEOF
19996 #define HAVE_TM_ZONE 1
20000 echo "$as_me:$LINENO: checking for tzname" >&5
20001 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20002 if test "${ac_cv_var_tzname+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 cat >conftest.
$ac_ext <<_ACEOF
20008 cat confdefs.h
>>conftest.
$ac_ext
20009 cat >>conftest.
$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 #ifndef tzname /* For SGI. */
20013 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20024 rm -f conftest.
$ac_objext conftest
$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>conftest.er1
20028 grep -v '^ *+' conftest.er1
>conftest.err
20030 cat conftest.err
>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try
='test -s conftest$ac_exeext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_cv_var_tzname
=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.
$ac_ext >&5
20050 ac_cv_var_tzname
=no
20052 rm -f conftest.err conftest.
$ac_objext \
20053 conftest
$ac_exeext conftest.
$ac_ext
20055 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20056 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20057 if test $ac_cv_var_tzname = yes; then
20059 cat >>confdefs.h
<<\_ACEOF
20060 #define HAVE_TZNAME 1
20067 if test "$ac_cv_func_gettimeofday" = yes; then
20068 echo "$as_me:$LINENO: checking for struct timezone" >&5
20069 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20070 if test "${emacs_cv_struct_timezone+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 cat >conftest.
$ac_ext <<_ACEOF
20076 cat confdefs.h
>>conftest.
$ac_ext
20077 cat >>conftest.
$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 #include <sys/time.h>
20083 struct timezone tz;
20088 rm -f conftest.
$ac_objext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090 (eval $ac_compile) 2>conftest.er1
20092 grep -v '^ *+' conftest.er1
>conftest.err
20094 cat conftest.err
>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try
='test -s conftest.$ac_objext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 if test "$cross_compiling" = yes; then
20110 emacs_cv_struct_timezone
=yes
20112 cat >conftest.
$ac_ext <<_ACEOF
20115 cat confdefs.h
>>conftest.
$ac_ext
20116 cat >>conftest.
$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20119 #ifdef TIME_WITH_SYS_TIME
20120 #include <sys/time.h>
20123 #ifdef HAVE_SYS_TIME_H
20124 #include <sys/time.h>
20130 struct timeval time;
20131 struct timezone dummy;
20132 exit (gettimeofday (&time, &dummy));
20135 rm -f conftest
$ac_exeext
20136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20137 (eval $ac_link) 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 emacs_cv_struct_timezone
=yes
20148 echo "$as_me: program exited with status $ac_status" >&5
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.
$ac_ext >&5
20152 ( exit $ac_status )
20153 emacs_cv_struct_timezone
=no
20155 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.
$ac_ext >&5
20161 emacs_cv_struct_timezone
=no
20163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20165 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20166 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20170 echo "$as_me:$LINENO: checking for socket" >&5
20171 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20172 if test "${ac_cv_func_socket+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 cat >conftest.
$ac_ext <<_ACEOF
20178 cat confdefs.h
>>conftest.
$ac_ext
20179 cat >>conftest.
$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20183 #define socket innocuous_socket
20185 /* System header to define __stub macros and hopefully few prototypes,
20186 which can conflict with char socket (); below.
20187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20188 <limits.h> exists even on freestanding compilers. */
20191 # include <limits.h>
20193 # include <assert.h>
20198 /* Override any gcc2 internal prototype to avoid an error. */
20203 /* We use char because int might match the return type of a gcc2
20204 builtin and then its argument prototype would still apply. */
20206 /* The GNU C library defines this for functions which it implements
20207 to always fail with ENOSYS. Some functions are actually named
20208 something starting with __ and the normal name is an alias. */
20209 #if defined (__stub_socket) || defined (__stub___socket)
20212 char (*f) () = socket;
20221 return f != socket;
20226 rm -f conftest.
$ac_objext conftest
$ac_exeext
20227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20228 (eval $ac_link) 2>conftest.er1
20230 grep -v '^ *+' conftest.er1
>conftest.err
20232 cat conftest.err
>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try
='test -s conftest$ac_exeext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_func_socket
=yes
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.
$ac_ext >&5
20252 ac_cv_func_socket
=no
20254 rm -f conftest.err conftest.
$ac_objext \
20255 conftest
$ac_exeext conftest.
$ac_ext
20257 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20258 echo "${ECHO_T}$ac_cv_func_socket" >&6
20259 if test $ac_cv_func_socket = yes; then
20265 if test $ok_so_far = yes; then
20266 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20267 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20268 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20269 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20275 # Is the header compilable?
20276 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20277 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20278 cat >conftest.
$ac_ext <<_ACEOF
20281 cat confdefs.h
>>conftest.
$ac_ext
20282 cat >>conftest.
$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <netinet/in.h>
20287 rm -f conftest.
$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20291 grep -v '^ *+' conftest.er1
>conftest.err
20293 cat conftest.err
>&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try
='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_header_compiler
=yes
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.
$ac_ext >&5
20313 ac_header_compiler
=no
20315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20317 echo "${ECHO_T}$ac_header_compiler" >&6
20319 # Is the header present?
20320 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20321 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20322 cat >conftest.
$ac_ext <<_ACEOF
20325 cat confdefs.h
>>conftest.
$ac_ext
20326 cat >>conftest.
$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <netinet/in.h>
20330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20331 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20333 grep -v '^ *+' conftest.er1
>conftest.err
20335 cat conftest.err
>&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev
/null
; then
20338 if test -s conftest.err
; then
20339 ac_cpp_err
=$ac_c_preproc_warn_flag
20340 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20347 if test -z "$ac_cpp_err"; then
20348 ac_header_preproc
=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.
$ac_ext >&5
20353 ac_header_preproc
=no
20355 rm -f conftest.err conftest.
$ac_ext
20356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20357 echo "${ECHO_T}$ac_header_preproc" >&6
20359 # So? What about this header?
20360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20363 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20365 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20366 ac_header_preproc
=yes
20369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20370 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20372 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20374 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20376 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20378 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20379 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20380 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20383 ## ------------------------------------------ ##
20384 ## Report this to the AC_PACKAGE_NAME lists. ##
20385 ## ------------------------------------------ ##
20388 sed "s/^/$as_me: WARNING: /" >&2
20391 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20392 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20393 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20396 ac_cv_header_netinet_in_h
=$ac_header_preproc
20398 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20399 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20402 if test $ac_cv_header_netinet_in_h = yes; then
20410 if test $ok_so_far = yes; then
20411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20412 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20413 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20414 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20418 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20420 # Is the header compilable?
20421 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20422 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20423 cat >conftest.
$ac_ext <<_ACEOF
20426 cat confdefs.h
>>conftest.
$ac_ext
20427 cat >>conftest.
$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 #include <arpa/inet.h>
20432 rm -f conftest.
$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
20436 grep -v '^ *+' conftest.er1
>conftest.err
20438 cat conftest.err
>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try
='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_header_compiler
=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.
$ac_ext >&5
20458 ac_header_compiler
=no
20460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20462 echo "${ECHO_T}$ac_header_compiler" >&6
20464 # Is the header present?
20465 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20466 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20467 cat >conftest.
$ac_ext <<_ACEOF
20470 cat confdefs.h
>>conftest.
$ac_ext
20471 cat >>conftest.
$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <arpa/inet.h>
20475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20476 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20478 grep -v '^ *+' conftest.er1
>conftest.err
20480 cat conftest.err
>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev
/null
; then
20483 if test -s conftest.err
; then
20484 ac_cpp_err
=$ac_c_preproc_warn_flag
20485 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20492 if test -z "$ac_cpp_err"; then
20493 ac_header_preproc
=yes
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.
$ac_ext >&5
20498 ac_header_preproc
=no
20500 rm -f conftest.err conftest.
$ac_ext
20501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20502 echo "${ECHO_T}$ac_header_preproc" >&6
20504 # So? What about this header?
20505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20507 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20508 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20510 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20511 ac_header_preproc
=yes
20514 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20515 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20517 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20519 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20521 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20523 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20525 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20528 ## ------------------------------------------ ##
20529 ## Report this to the AC_PACKAGE_NAME lists. ##
20530 ## ------------------------------------------ ##
20533 sed "s/^/$as_me: WARNING: /" >&2
20536 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20537 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20538 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20543 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20544 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20547 if test $ac_cv_header_arpa_inet_h = yes; then
20555 if test $ok_so_far = yes; then
20557 cat >>confdefs.h
<<\_ACEOF
20558 #define HAVE_INET_SOCKETS 1
20564 for ac_header
in sys
/ioctl.h
20566 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20576 # Is the header compilable?
20577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20579 cat >conftest.
$ac_ext <<_ACEOF
20582 cat confdefs.h
>>conftest.
$ac_ext
20583 cat >>conftest.
$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 $ac_includes_default
20586 #include <$ac_header>
20588 rm -f conftest.
$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>conftest.er1
20592 grep -v '^ *+' conftest.er1
>conftest.err
20594 cat conftest.err
>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try
='test -s conftest.$ac_objext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_header_compiler
=yes
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.
$ac_ext >&5
20614 ac_header_compiler
=no
20616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618 echo "${ECHO_T}$ac_header_compiler" >&6
20620 # Is the header present?
20621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20623 cat >conftest.
$ac_ext <<_ACEOF
20626 cat confdefs.h
>>conftest.
$ac_ext
20627 cat >>conftest.
$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <$ac_header>
20631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20634 grep -v '^ *+' conftest.er1
>conftest.err
20636 cat conftest.err
>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } >/dev
/null
; then
20639 if test -s conftest.err
; then
20640 ac_cpp_err
=$ac_c_preproc_warn_flag
20641 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20648 if test -z "$ac_cpp_err"; then
20649 ac_header_preproc
=yes
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.
$ac_ext >&5
20654 ac_header_preproc
=no
20656 rm -f conftest.err conftest.
$ac_ext
20657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 echo "${ECHO_T}$ac_header_preproc" >&6
20660 # So? What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20667 ac_header_preproc
=yes
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20684 ## ------------------------------------------ ##
20685 ## Report this to the AC_PACKAGE_NAME lists. ##
20686 ## ------------------------------------------ ##
20689 sed "s/^/$as_me: WARNING: /" >&2
20692 echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 eval "$as_ac_Header=\$ac_header_preproc"
20699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20704 cat >>confdefs.h
<<_ACEOF
20705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20713 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20715 cat >>confdefs.h
<<\_ACEOF
20716 #define HAVE_AIX_SMT_EXP 1
20721 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20722 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20723 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20724 echo "$as_me:$LINENO: result: yes" >&5
20725 echo "${ECHO_T}yes" >&6
20727 cat >>confdefs.h
<<\_ACEOF
20728 #define HAVE_DEV_PTMX 1
20732 echo "$as_me:$LINENO: result: no" >&5
20733 echo "${ECHO_T}no" >&6
20736 echo "$as_me:$LINENO: checking for pid_t" >&5
20737 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20738 if test "${ac_cv_type_pid_t+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 cat >conftest.
$ac_ext <<_ACEOF
20744 cat confdefs.h
>>conftest.
$ac_ext
20745 cat >>conftest.
$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20753 if (sizeof (pid_t))
20759 rm -f conftest.
$ac_objext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20761 (eval $ac_compile) 2>conftest.er1
20763 grep -v '^ *+' conftest.er1
>conftest.err
20765 cat conftest.err
>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try
='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_cv_type_pid_t
=yes
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.
$ac_ext >&5
20785 ac_cv_type_pid_t
=no
20787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20789 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20790 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20791 if test $ac_cv_type_pid_t = yes; then
20795 cat >>confdefs.h
<<_ACEOF
20803 for ac_header
in unistd.h vfork.h
20805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20807 echo "$as_me:$LINENO: checking for $ac_header" >&5
20808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20815 # Is the header compilable?
20816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20818 cat >conftest.
$ac_ext <<_ACEOF
20821 cat confdefs.h
>>conftest.
$ac_ext
20822 cat >>conftest.
$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 $ac_includes_default
20825 #include <$ac_header>
20827 rm -f conftest.
$ac_objext
20828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20829 (eval $ac_compile) 2>conftest.er1
20831 grep -v '^ *+' conftest.er1
>conftest.err
20833 cat conftest.err
>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; } &&
20842 { ac_try
='test -s conftest.$ac_objext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_header_compiler
=yes
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.
$ac_ext >&5
20853 ac_header_compiler
=no
20855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20857 echo "${ECHO_T}$ac_header_compiler" >&6
20859 # Is the header present?
20860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20862 cat >conftest.
$ac_ext <<_ACEOF
20865 cat confdefs.h
>>conftest.
$ac_ext
20866 cat >>conftest.
$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <$ac_header>
20870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20873 grep -v '^ *+' conftest.er1
>conftest.err
20875 cat conftest.err
>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } >/dev
/null
; then
20878 if test -s conftest.err
; then
20879 ac_cpp_err
=$ac_c_preproc_warn_flag
20880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20887 if test -z "$ac_cpp_err"; then
20888 ac_header_preproc
=yes
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.
$ac_ext >&5
20893 ac_header_preproc
=no
20895 rm -f conftest.err conftest.
$ac_ext
20896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20897 echo "${ECHO_T}$ac_header_preproc" >&6
20899 # So? What about this header?
20900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20906 ac_header_preproc
=yes
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20923 ## ------------------------------------------ ##
20924 ## Report this to the AC_PACKAGE_NAME lists. ##
20925 ## ------------------------------------------ ##
20928 sed "s/^/$as_me: WARNING: /" >&2
20931 echo "$as_me:$LINENO: checking for $ac_header" >&5
20932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 eval "$as_ac_Header=\$ac_header_preproc"
20938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20943 cat >>confdefs.h
<<_ACEOF
20944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20953 for ac_func
in fork vfork
20955 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20956 echo "$as_me:$LINENO: checking for $ac_func" >&5
20957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20958 if eval "test \"\${$as_ac_var+set}\" = set"; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 cat >conftest.
$ac_ext <<_ACEOF
20964 cat confdefs.h
>>conftest.
$ac_ext
20965 cat >>conftest.
$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20969 #define $ac_func innocuous_$ac_func
20971 /* System header to define __stub macros and hopefully few prototypes,
20972 which can conflict with char $ac_func (); below.
20973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20974 <limits.h> exists even on freestanding compilers. */
20977 # include <limits.h>
20979 # include <assert.h>
20984 /* Override any gcc2 internal prototype to avoid an error. */
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20998 char (*f) () = $ac_func;
21007 return f != $ac_func;
21012 rm -f conftest.
$ac_objext conftest
$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>conftest.er1
21016 grep -v '^ *+' conftest.er1
>conftest.err
21018 cat conftest.err
>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try
='test -s conftest$ac_exeext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 eval "$as_ac_var=yes"
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.
$ac_ext >&5
21038 eval "$as_ac_var=no"
21040 rm -f conftest.err conftest.
$ac_objext \
21041 conftest
$ac_exeext conftest.
$ac_ext
21043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21045 if test `eval echo '${'$as_ac_var'}'` = yes; then
21046 cat >>confdefs.h
<<_ACEOF
21047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21053 if test "x$ac_cv_func_fork" = xyes
; then
21054 echo "$as_me:$LINENO: checking for working fork" >&5
21055 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21056 if test "${ac_cv_func_fork_works+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 if test "$cross_compiling" = yes; then
21060 ac_cv_func_fork_works
=cross
21062 cat >conftest.
$ac_ext <<_ACEOF
21063 /* By Ruediger Kuhlmann. */
21064 #include <sys/types.h>
21066 # include <unistd.h>
21068 /* Some systems only have a dummy stub for fork() */
21076 rm -f conftest
$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_func_fork_works
=yes
21089 echo "$as_me: program exited with status $ac_status" >&5
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.
$ac_ext >&5
21093 ( exit $ac_status )
21094 ac_cv_func_fork_works
=no
21096 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21099 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21100 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21103 ac_cv_func_fork_works
=$ac_cv_func_fork
21105 if test "x$ac_cv_func_fork_works" = xcross
; then
21107 *-*-amigaos* |
*-*-msdosdjgpp*)
21108 # Override, as these systems have only a dummy fork() stub
21109 ac_cv_func_fork_works
=no
21112 ac_cv_func_fork_works
=yes
21115 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21116 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21118 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21119 if test "x$ac_cv_func_vfork" = xyes
; then
21120 echo "$as_me:$LINENO: checking for working vfork" >&5
21121 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21122 if test "${ac_cv_func_vfork_works+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 if test "$cross_compiling" = yes; then
21126 ac_cv_func_vfork_works
=cross
21128 cat >conftest.
$ac_ext <<_ACEOF
21131 cat confdefs.h
>>conftest.
$ac_ext
21132 cat >>conftest.
$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 /* Thanks to Paul Eggert for this test. */
21136 #include <stdlib.h>
21137 #include <sys/types.h>
21138 #include <sys/stat.h>
21139 #include <sys/wait.h>
21141 # include <unistd.h>
21144 # include <vfork.h>
21146 /* On some sparc systems, changes by the child to local and incoming
21147 argument registers are propagated back to the parent. The compiler
21148 is told about this with #include <vfork.h>, but some compilers
21149 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21150 static variable whose address is put into a register that is
21151 clobbered by the vfork. */
21154 sparc_address_test (int arg)
21156 sparc_address_test (arg) int arg;
21159 static pid_t child;
21177 pid_t parent = getpid ();
21180 sparc_address_test (0);
21185 /* Here is another test for sparc vfork register problems. This
21186 test uses lots of local variables, at least as many local
21187 variables as main has allocated so far including compiler
21188 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21189 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21190 reuse the register of parent for one of the local variables,
21191 since it will think that parent can't possibly be used any more
21192 in this routine. Assigning to the local variable will thus
21193 munge parent in the parent process. */
21195 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21196 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21197 /* Convince the compiler that p..p7 are live; otherwise, it might
21198 use the same hardware register for all 8 local variables. */
21199 if (p != p1 || p != p2 || p != p3 || p != p4
21200 || p != p5 || p != p6 || p != p7)
21203 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21204 from child file descriptors. If the child closes a descriptor
21205 before it execs or exits, this munges the parent's descriptor
21206 as well. Test for this by closing stdout in the child. */
21207 _exit(close(fileno(stdout)) != 0);
21212 while (wait(&status) != child)
21215 /* Was there some problem with vforking? */
21218 /* Did the child fail? (This shouldn't happen.) */
21221 /* Did the vfork/compiler bug occur? */
21222 || parent != getpid()
21224 /* Did the file descriptor bug occur? */
21225 || fstat(fileno(stdout), &st) != 0
21230 rm -f conftest
$ac_exeext
21231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21232 (eval $ac_link) 2>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_func_vfork_works
=yes
21243 echo "$as_me: program exited with status $ac_status" >&5
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.
$ac_ext >&5
21247 ( exit $ac_status )
21248 ac_cv_func_vfork_works
=no
21250 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21253 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21254 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21257 if test "x$ac_cv_func_fork_works" = xcross
; then
21258 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21259 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21260 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21263 if test "x$ac_cv_func_vfork_works" = xyes
; then
21265 cat >>confdefs.h
<<\_ACEOF
21266 #define HAVE_WORKING_VFORK 1
21271 cat >>confdefs.h
<<\_ACEOF
21276 if test "x$ac_cv_func_fork_works" = xyes
; then
21278 cat >>confdefs.h
<<\_ACEOF
21279 #define HAVE_WORKING_FORK 1
21285 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21286 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21287 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 cat >conftest.
$ac_ext <<_ACEOF
21293 cat confdefs.h
>>conftest.
$ac_ext
21294 cat >>conftest.
$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <langinfo.h>
21300 char* cs = nl_langinfo(CODESET);
21305 rm -f conftest.
$ac_objext conftest
$ac_exeext
21306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21307 (eval $ac_link) 2>conftest.er1
21309 grep -v '^ *+' conftest.er1
>conftest.err
21311 cat conftest.err
>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; } &&
21320 { ac_try
='test -s conftest$ac_exeext'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
21326 emacs_cv_langinfo_codeset
=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.
$ac_ext >&5
21331 emacs_cv_langinfo_codeset
=no
21333 rm -f conftest.err conftest.
$ac_objext \
21334 conftest
$ac_exeext conftest.
$ac_ext
21337 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21338 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21339 if test $emacs_cv_langinfo_codeset = yes; then
21341 cat >>confdefs.h
<<\_ACEOF
21342 #define HAVE_LANGINFO_CODESET 1
21347 echo "$as_me:$LINENO: checking for size_t" >&5
21348 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21349 if test "${ac_cv_type_size_t+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 cat >conftest.
$ac_ext <<_ACEOF
21355 cat confdefs.h
>>conftest.
$ac_ext
21356 cat >>conftest.
$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21364 if (sizeof (size_t))
21370 rm -f conftest.
$ac_objext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21372 (eval $ac_compile) 2>conftest.er1
21374 grep -v '^ *+' conftest.er1
>conftest.err
21376 cat conftest.err
>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
21379 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; } &&
21385 { ac_try
='test -s conftest.$ac_objext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_type_size_t
=yes
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.
$ac_ext >&5
21396 ac_cv_type_size_t
=no
21398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21400 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21401 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21402 if test $ac_cv_type_size_t = yes; then
21404 cat >>confdefs.h
<<_ACEOF
21405 #define HAVE_SIZE_T 1
21412 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21413 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21414 if test "${ac_cv_type_mbstate_t+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 cat >conftest.
$ac_ext <<_ACEOF
21420 cat confdefs.h
>>conftest.
$ac_ext
21421 cat >>conftest.
$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 # include <wchar.h>
21428 mbstate_t x; return sizeof x;
21433 rm -f conftest.
$ac_objext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21435 (eval $ac_compile) 2>conftest.er1
21437 grep -v '^ *+' conftest.er1
>conftest.err
21439 cat conftest.err
>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
21442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try
='test -s conftest.$ac_objext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_type_mbstate_t
=yes
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.
$ac_ext >&5
21459 ac_cv_type_mbstate_t
=no
21461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21463 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21464 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21465 if test $ac_cv_type_mbstate_t = yes; then
21467 cat >>confdefs.h
<<\_ACEOF
21468 #define HAVE_MBSTATE_T 1
21473 cat >>confdefs.h
<<\_ACEOF
21474 #define mbstate_t int
21479 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21480 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21481 if test "${emacs_cv_c_restrict+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 cat >conftest.
$ac_ext <<_ACEOF
21487 cat confdefs.h
>>conftest.
$ac_ext
21488 cat >>conftest.
$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 void fred (int *restrict x);
21499 rm -f conftest.
$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21503 grep -v '^ *+' conftest.er1
>conftest.err
21505 cat conftest.err
>&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; } &&
21514 { ac_try
='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 emacs_cv_c_restrict
=yes
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.
$ac_ext >&5
21525 cat >conftest.
$ac_ext <<_ACEOF
21528 cat confdefs.h
>>conftest.
$ac_ext
21529 cat >>conftest.
$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 void fred (int *__restrict x);
21540 rm -f conftest.
$ac_objext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542 (eval $ac_compile) 2>conftest.er1
21544 grep -v '^ *+' conftest.er1
>conftest.err
21546 cat conftest.err
>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try
='test -s conftest.$ac_objext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 emacs_cv_c_restrict
=__restrict
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.
$ac_ext >&5
21566 emacs_cv_c_restrict
=no
21568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21572 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21573 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21574 case "$emacs_cv_c_restrict" in
21575 yes) emacs_restrict
=restrict
;;
21576 no
) emacs_restrict
="";;
21577 *) emacs_restrict
="$emacs_cv_c_restrict";;
21579 if test "$emacs_restrict" != __restrict
; then
21581 cat >>confdefs.h
<<_ACEOF
21582 #define __restrict $emacs_restrict
21587 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21588 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21589 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 cat >conftest.
$ac_ext <<_ACEOF
21595 cat confdefs.h
>>conftest.
$ac_ext
21596 cat >>conftest.
$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 void fred (int x[__restrict]);
21607 rm -f conftest.
$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21611 grep -v '^ *+' conftest.er1
>conftest.err
21613 cat conftest.err
>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try
='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 emacs_cv_c_restrict_arr
=yes
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.
$ac_ext >&5
21633 emacs_cv_c_restrict_arr
=no
21635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21637 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21638 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21639 if test "$emacs_cv_c_restrict_arr" = yes; then
21641 cat >>confdefs.h
<<\_ACEOF
21642 #define __restrict_arr __restrict
21649 # Set up the CFLAGS for real compilation, so we can substitute it.
21650 CFLAGS
="$REAL_CFLAGS"
21651 CPPFLAGS
="$REAL_CPPFLAGS"
21653 #### Find out which version of Emacs this is.
21654 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21655 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21656 if test x
"${version}" = x
; then
21657 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21658 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21659 { (exit 1); exit 1; }; }
21662 ### Specify what sort of things we'll be editing into Makefile and config.h.
21663 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21699 cat >>confdefs.h
<<_ACEOF
21700 #define EMACS_CONFIGURATION "${canonical}"
21704 cat >>confdefs.h
<<_ACEOF
21705 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21709 cat >>confdefs.h
<<_ACEOF
21710 #define config_machfile "${machfile}"
21714 cat >>confdefs.h
<<_ACEOF
21715 #define config_opsysfile "${opsysfile}"
21719 cat >>confdefs.h
<<_ACEOF
21720 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21724 cat >>confdefs.h
<<_ACEOF
21725 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21729 cat >>confdefs.h
<<_ACEOF
21730 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21734 cat >>confdefs.h
<<_ACEOF
21735 #define UNEXEC_SRC ${UNEXEC_SRC}
21739 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21741 cat >>confdefs.h
<<\_ACEOF
21742 #define HAVE_X_WINDOWS 1
21746 if test "${USE_X_TOOLKIT}" != "none" ; then
21748 cat >>confdefs.h
<<\_ACEOF
21749 #define USE_X_TOOLKIT 1
21753 if test "${HAVE_X11}" = "yes" ; then
21755 cat >>confdefs.h
<<\_ACEOF
21760 if test "${HAVE_XFREE386}" = "yes" ; then
21762 cat >>confdefs.h
<<\_ACEOF
21763 #define HAVE_XFREE386 1
21767 if test "${HAVE_MENUS}" = "yes" ; then
21769 cat >>confdefs.h
<<\_ACEOF
21770 #define HAVE_MENUS 1
21774 if test "${GNU_MALLOC}" = "yes" ; then
21776 cat >>confdefs.h
<<\_ACEOF
21777 #define GNU_MALLOC 1
21781 if test "${REL_ALLOC}" = "yes" ; then
21783 cat >>confdefs.h
<<\_ACEOF
21784 #define REL_ALLOC 1
21793 #### Report on what we decided to do.
21794 #### Report GTK as a toolkit, even if it doesn't use Xt.
21795 #### It makes printing result more understandable as using GTK sets
21796 #### toolkit_scroll_bars to yes by default.
21797 if test "${HAVE_GTK}" = "yes"; then
21802 Configured for \`${canonical}'.
21804 Where should the build process find the source code? ${srcdir}
21805 What operating system and machine description files should Emacs use?
21806 \`${opsysfile}' and \`${machfile}'
21807 What compiler should emacs be built with? ${CC} ${CFLAGS}
21808 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21809 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21810 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21811 What window system should Emacs use? ${window_system}
21812 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21814 if test -n "${x_includes}"; then
21815 echo " Where do we find X Windows header files? ${x_includes}"
21817 echo " Where do we find X Windows header files? Standard dirs"
21819 if test -n "${x_libraries}"; then
21820 echo " Where do we find X Windows libraries? ${x_libraries}"
21822 echo " Where do we find X Windows libraries? Standard dirs"
21825 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21826 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21827 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21828 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21829 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21830 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21831 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21834 if test $USE_XASSERTS = yes; then
21835 echo " Compiling with asserts turned on."
21836 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21842 # Remove any trailing slashes in these variables.
21843 test "${prefix}" != NONE
&&
21844 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21845 test "${exec_prefix}" != NONE
&&
21846 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21848 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21849 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21850 ## from Makefile.c can correctly provide the arg `-traditional' to the
21853 cat >conftest.
$ac_ext <<_ACEOF
21856 cat confdefs.h
>>conftest.
$ac_ext
21857 cat >>conftest.
$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21862 $EGREP "yes..yes" >/dev
/null
2>&1; then
21863 CPP_NEED_TRADITIONAL
=no
21865 CPP_NEED_TRADITIONAL
=yes
21870 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"
21871 ac_config_commands
="$ac_config_commands default"
21872 cat >confcache
<<\_ACEOF
21873 # This file is a shell script that caches the results of configure
21874 # tests run on this system so they can be shared between configure
21875 # scripts and configure runs, see configure's option --config-cache.
21876 # It is not useful on other systems. If it contains results you don't
21877 # want to keep, you may remove or edit it.
21879 # config.status only pays attention to the cache file if you give it
21880 # the --recheck option to rerun configure.
21882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21884 # following values.
21888 # The following way of writing the cache mishandles newlines in values,
21889 # but we know of no workaround that is simple, portable, and efficient.
21890 # So, don't put newlines in cache variables' values.
21891 # Ultrix sh set writes to stderr and can't be redirected directly,
21892 # and sets the high bit in the cache file unless we assign to the vars.
21895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21897 # `set' does not quote correctly, so add quotes (double-quote
21898 # substitution turns \\\\ into \\, and sed turns \\ into \).
21901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21904 # `set' quotes correctly as required by POSIX, so do not add quotes.
21906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21915 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21917 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21918 if test -w $cache_file; then
21919 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21920 cat confcache
>$cache_file
21922 echo "not updating unwritable cache $cache_file"
21927 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21928 # Let make expand exec_prefix.
21929 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21931 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21932 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21933 # trailing colons and then remove the whole line if VPATH becomes empty
21934 # (actually we leave an empty line to preserve line numbers).
21935 if test "x$srcdir" = x.
; then
21936 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21937 s/:*\$(srcdir):*/:/;
21938 s/:*\${srcdir}:*/:/;
21940 s/^\([^=]*=[ ]*\):*/\1/;
21946 DEFS
=-DHAVE_CONFIG_H
21950 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21951 # 1. Remove the extension, and $U if already installed.
21952 ac_i
=`echo "$ac_i" |
21953 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21955 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21956 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21958 LIBOBJS
=$ac_libobjs
21960 LTLIBOBJS
=$ac_ltlibobjs
21964 : ${CONFIG_STATUS=./config.status}
21965 ac_clean_files_save
=$ac_clean_files
21966 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21967 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21968 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21969 cat >$CONFIG_STATUS <<_ACEOF
21971 # Generated by $as_me.
21972 # Run this file to recreate the current configuration.
21973 # Compiler output produced by configure, useful for debugging
21974 # configure, is in config.log if it exists.
21977 ac_cs_recheck=false
21979 SHELL=\${CONFIG_SHELL-$SHELL}
21982 cat >>$CONFIG_STATUS <<\_ACEOF
21983 ## --------------------- ##
21984 ## M4sh Initialization. ##
21985 ## --------------------- ##
21987 # Be Bourne compatible
21988 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21992 # is contrary to our usage. Disable this feature.
21993 alias -g '${1+"$@"}'='"$@"'
21994 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21997 DUALCASE
=1; export DUALCASE
# for MKS sh
21999 # Support unset when possible.
22000 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22007 # Work around bugs in pre-3.0 UWIN ksh.
22008 $as_unset ENV MAIL MAILPATH
22015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22017 LC_TELEPHONE LC_TIME
22019 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22020 eval $as_var=C
; export $as_var
22026 # Required to use basename.
22027 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22033 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22034 as_basename
=basename
22040 # Name of the executable.
22041 as_me
=`$as_basename "$0" ||
22042 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22043 X"$0" : 'X\(//\)$' \| \
22044 X"$0" : 'X\(/\)$' \| \
22045 . : '\(.\)' 2>/dev/null ||
22047 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22048 /^X\/\(\/\/\)$/{ s//\1/; q; }
22049 /^X\/\(\/\).*/{ s//\1/; q; }
22053 # PATH needs CR, and LINENO needs CR and PATH.
22054 # Avoid depending upon Character Ranges.
22055 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22056 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22057 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22058 as_cr_digits
='0123456789'
22059 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22061 # The user is always right.
22062 if test "${PATH_SEPARATOR+set}" != set; then
22063 echo "#! /bin/sh" >conf$$.sh
22064 echo "exit 0" >>conf$$.sh
22066 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22075 as_lineno_1
=$LINENO
22076 as_lineno_2
=$LINENO
22077 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22078 test "x$as_lineno_1" != "x$as_lineno_2" &&
22079 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22080 # Find who we are. Look in the path if we contain no path at all
22083 *[\\/]* ) as_myself
=$0 ;;
22084 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22085 for as_dir
in $PATH
22088 test -z "$as_dir" && as_dir
=.
22089 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22094 # We did not find ourselves, most probably we were run as `sh COMMAND'
22095 # in which case we are not to be found in the path.
22096 if test "x$as_myself" = x
; then
22099 if test ! -f "$as_myself"; then
22100 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22101 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22102 { (exit 1); exit 1; }; }
22104 case $CONFIG_SHELL in
22106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22107 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22110 test -z "$as_dir" && as_dir
=.
22111 for as_base
in sh bash ksh sh5
; do
22114 if ("$as_dir/$as_base" -c '
22115 as_lineno_1=$LINENO
22116 as_lineno_2=$LINENO
22117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22118 test "x$as_lineno_1" != "x$as_lineno_2" &&
22119 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22120 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22121 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22122 CONFIG_SHELL
=$as_dir/$as_base
22123 export CONFIG_SHELL
22124 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22133 # uniformly replaced by the line number. The first 'sed' inserts a
22134 # line-number line before each line; the second 'sed' does the real
22135 # work. The second script uses 'N' to pair each line-number line
22136 # with the numbered line, and appends trailing '-' during
22137 # substitution so that $LINENO is not a special case at line end.
22138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22139 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22140 sed '=' <$as_myself |
22145 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22148 s,^['$as_cr_digits']*\n,,
22149 ' >$as_me.lineno
&&
22150 chmod +x
$as_me.lineno ||
22151 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22152 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22153 { (exit 1); exit 1; }; }
22155 # Don't try to exec as it changes $[0], causing all sort of problems
22156 # (the dirname of $[0] is not the place where we might find the
22157 # original and so on. Autoconf is especially sensible to this).
22159 # Exit status is that of the last command.
22164 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22165 *c
*,-n*) ECHO_N
= ECHO_C
='
22167 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22168 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22171 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22177 rm -f conf$$ conf$$.exe conf$$.
file
22179 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22180 # We could just check for DJGPP; but this test a) works b) is more generic
22181 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22182 if test -f conf$$.exe
; then
22183 # Don't use ln at all; we don't have any links
22188 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22193 rm -f conf$$ conf$$.exe conf$$.
file
22195 if mkdir
-p .
2>/dev
/null
; then
22198 test -d .
/-p && rmdir .
/-p
22202 as_executable_p
="test -f"
22204 # Sed expression to map a string onto a valid CPP name.
22205 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22207 # Sed expression to map a string onto a valid variable name.
22208 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22212 # We need space, tab and new line, in precisely that order.
22222 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22223 # report actual input values of CONFIG_FILES etc. instead of their
22224 # values after options handling. Logging --version etc. is OK.
22228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22229 ## Running $as_me. ##
22234 This file was extended by $as_me, which was
22235 generated by GNU Autoconf 2.59. Invocation command line was
22237 CONFIG_FILES = $CONFIG_FILES
22238 CONFIG_HEADERS = $CONFIG_HEADERS
22239 CONFIG_LINKS = $CONFIG_LINKS
22240 CONFIG_COMMANDS = $CONFIG_COMMANDS
22244 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22248 # Files that config.status was made for.
22249 if test -n "$ac_config_files"; then
22250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22253 if test -n "$ac_config_headers"; then
22254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22257 if test -n "$ac_config_links"; then
22258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22261 if test -n "$ac_config_commands"; then
22262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22268 \`$as_me' instantiates files from templates according to the
22269 current configuration.
22271 Usage: $0 [OPTIONS] [FILE]...
22273 -h, --help print this help, then exit
22274 -V, --version print version number, then exit
22275 -q, --quiet do not print progress messages
22276 -d, --debug don't remove temporary files
22277 --recheck update $as_me by reconfiguring in the same conditions
22278 --file=FILE[:TEMPLATE]
22279 instantiate the configuration file FILE
22280 --header=FILE[:TEMPLATE]
22281 instantiate the configuration header FILE
22283 Configuration files:
22286 Configuration headers:
22289 Configuration commands:
22292 Report bugs to <bug-autoconf@gnu.org>."
22295 cat >>$CONFIG_STATUS <<_ACEOF
22298 configured by $0, generated by GNU Autoconf 2.59,
22299 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22301 Copyright (C) 2003 Free Software Foundation, Inc.
22302 This config.status script is free software; the Free Software Foundation
22303 gives unlimited permission to copy, distribute and modify it."
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309 # If no file are specified by the user, then we need to provide default
22310 # value. By we need to know if files were specified by the user.
22316 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22317 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22325 *) # This is not an option, so the user has probably given explicit
22328 ac_need_defaults
=false
;;
22332 # Handling of the options.
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22337 --version |
--vers* |
-V )
22338 echo "$ac_cs_version"; exit 0 ;;
22340 # Conflict between --help and --header
22341 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22342 Try \`$0 --help' for more information." >&5
22343 echo "$as_me: error: ambiguous option: $1
22344 Try \`$0 --help' for more information." >&2;}
22345 { (exit 1); exit 1; }; };;
22346 --help |
--hel |
-h )
22347 echo "$ac_cs_usage"; exit 0 ;;
22348 --debug |
--d* |
-d )
22350 --file |
--fil |
--fi |
--f )
22352 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22353 ac_need_defaults
=false
;;
22354 --header |
--heade |
--head |
--hea )
22356 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22357 ac_need_defaults
=false
;;
22358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22359 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22362 # This is an error.
22363 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22364 Try \`$0 --help' for more information." >&5
22365 echo "$as_me: error: unrecognized option: $1
22366 Try \`$0 --help' for more information." >&2;}
22367 { (exit 1); exit 1; }; } ;;
22369 *) ac_config_targets
="$ac_config_targets $1" ;;
22375 ac_configure_extra_args
=
22377 if $ac_cs_silent; then
22379 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22383 cat >>$CONFIG_STATUS <<_ACEOF
22384 if \$ac_cs_recheck; then
22385 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22386 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22391 cat >>$CONFIG_STATUS <<_ACEOF
22393 # INIT-COMMANDS section.
22396 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 for ac_config_target
in $ac_config_targets
22405 case "$ac_config_target" in
22406 # Handling of arguments.
22407 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22408 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22409 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22410 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22411 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22412 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22413 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22414 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22415 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22416 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22417 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22418 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22419 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22420 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22421 { (exit 1); exit 1; }; };;
22425 # If the user did not use the arguments to specify the items to instantiate,
22426 # then the envvar interface is used. Set only those that are not.
22427 # We use the long form for the default assignment because of an extremely
22428 # bizarre bug on SunOS 4.1.3.
22429 if $ac_need_defaults; then
22430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22435 # Have a temporary directory for convenience. Make it in the build tree
22436 # simply because there is no reason to put it here, and in addition,
22437 # creating and moving files from /tmp can sometimes cause problems.
22438 # Create a temporary directory, and hook for its removal unless debugging.
22441 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22442 trap '{ (exit 1); exit 1; }' 1 2 13 15
22445 # Create a (secure) tmp directory for tmp files.
22448 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22449 test -n "$tmp" && test -d "$tmp"
22452 tmp
=.
/confstat$$
-$RANDOM
22453 (umask 077 && mkdir
$tmp)
22456 echo "$me: cannot create a temporary directory in ." >&2
22457 { (exit 1); exit 1; }
22462 cat >>$CONFIG_STATUS <<_ACEOF
22465 # CONFIG_FILES section.
22468 # No need to generate the scripts if there are no CONFIG_FILES.
22469 # This happens for instance when ./config.status config.h
22470 if test -n "\$CONFIG_FILES"; then
22471 # Protect against being on the right side of a sed subst in config.status.
22472 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22473 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22474 s,@SHELL@,$SHELL,;t t
22475 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22476 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22477 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22478 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22479 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22480 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22481 s,@exec_prefix@,$exec_prefix,;t t
22482 s,@prefix@,$prefix,;t t
22483 s,@program_transform_name@,$program_transform_name,;t t
22484 s,@bindir@,$bindir,;t t
22485 s,@sbindir@,$sbindir,;t t
22486 s,@libexecdir@,$libexecdir,;t t
22487 s,@datadir@,$datadir,;t t
22488 s,@sysconfdir@,$sysconfdir,;t t
22489 s,@sharedstatedir@,$sharedstatedir,;t t
22490 s,@localstatedir@,$localstatedir,;t t
22491 s,@libdir@,$libdir,;t t
22492 s,@includedir@,$includedir,;t t
22493 s,@oldincludedir@,$oldincludedir,;t t
22494 s,@infodir@,$infodir,;t t
22495 s,@mandir@,$mandir,;t t
22496 s,@build_alias@,$build_alias,;t t
22497 s,@host_alias@,$host_alias,;t t
22498 s,@target_alias@,$target_alias,;t t
22499 s,@DEFS@,$DEFS,;t t
22500 s,@ECHO_C@,$ECHO_C,;t t
22501 s,@ECHO_N@,$ECHO_N,;t t
22502 s,@ECHO_T@,$ECHO_T,;t t
22503 s,@LIBS@,$LIBS,;t t
22504 s,@MAINT@,$MAINT,;t t
22505 s,@build@,$build,;t t
22506 s,@build_cpu@,$build_cpu,;t t
22507 s,@build_vendor@,$build_vendor,;t t
22508 s,@build_os@,$build_os,;t t
22509 s,@host@,$host,;t t
22510 s,@host_cpu@,$host_cpu,;t t
22511 s,@host_vendor@,$host_vendor,;t t
22512 s,@host_os@,$host_os,;t t
22514 s,@CFLAGS@,$CFLAGS,;t t
22515 s,@LDFLAGS@,$LDFLAGS,;t t
22516 s,@CPPFLAGS@,$CPPFLAGS,;t t
22517 s,@ac_ct_CC@,$ac_ct_CC,;t t
22518 s,@EXEEXT@,$EXEEXT,;t t
22519 s,@OBJEXT@,$OBJEXT,;t t
22520 s,@LN_S@,$LN_S,;t t
22522 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22523 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22524 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22525 s,@RANLIB@,$RANLIB,;t t
22526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22527 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22528 s,@EGREP@,$EGREP,;t t
22529 s,@LIBSOUND@,$LIBSOUND,;t t
22530 s,@SET_MAKE@,$SET_MAKE,;t t
22531 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22532 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22533 s,@GTK_LIBS@,$GTK_LIBS,;t t
22534 s,@ALLOCA@,$ALLOCA,;t t
22535 s,@liblockfile@,$liblockfile,;t t
22536 s,@LIBOBJS@,$LIBOBJS,;t t
22537 s,@NEED_SETGID@,$NEED_SETGID,;t t
22538 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22539 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22540 s,@version@,$version,;t t
22541 s,@configuration@,$configuration,;t t
22542 s,@canonical@,$canonical,;t t
22543 s,@srcdir@,$srcdir,;t t
22544 s,@lispdir@,$lispdir,;t t
22545 s,@locallisppath@,$locallisppath,;t t
22546 s,@lisppath@,$lisppath,;t t
22547 s,@x_default_search_path@,$x_default_search_path,;t t
22548 s,@etcdir@,$etcdir,;t t
22549 s,@archlibdir@,$archlibdir,;t t
22550 s,@docdir@,$docdir,;t t
22551 s,@bitmapdir@,$bitmapdir,;t t
22552 s,@gamedir@,$gamedir,;t t
22553 s,@gameuser@,$gameuser,;t t
22554 s,@c_switch_system@,$c_switch_system,;t t
22555 s,@c_switch_machine@,$c_switch_machine,;t t
22556 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22557 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22558 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22559 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22560 s,@machfile@,$machfile,;t t
22561 s,@opsysfile@,$opsysfile,;t t
22562 s,@carbon_appdir@,$carbon_appdir,;t t
22563 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22568 cat >>$CONFIG_STATUS <<\_ACEOF
22569 # Split the substitutions into bite-sized pieces for seds with
22570 # small command number limits, like on Digital OSF/1 and HP-UX.
22571 ac_max_sed_lines
=48
22572 ac_sed_frag
=1 # Number of current file.
22573 ac_beg
=1 # First line for current file.
22574 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22577 while $ac_more_lines; do
22578 if test $ac_beg -gt 1; then
22579 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22581 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22583 if test ! -s $tmp/subs.frag
; then
22584 ac_more_lines
=false
22586 # The purpose of the label and of the branching condition is to
22587 # speed up the sed processing (if there are no `@' at all, there
22588 # is no need to browse any of the substitutions).
22589 # These are the two extra sed commands mentioned above.
22591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22592 if test -z "$ac_sed_cmds"; then
22593 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22595 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22597 ac_sed_frag
=`expr $ac_sed_frag + 1`
22599 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22602 if test -z "$ac_sed_cmds"; then
22605 fi # test -n "$CONFIG_FILES"
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22612 - |
*:- |
*:-:* ) # input from stdin
22614 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22615 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22616 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22617 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22618 * ) ac_file_in
=$ac_file.
in ;;
22621 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22622 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624 X"$ac_file" : 'X\(//\)[^/]' \| \
22625 X"$ac_file" : 'X\(//\)$' \| \
22626 X"$ac_file" : 'X\(/\)' \| \
22627 . : '\(.\)' 2>/dev/null ||
22629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631 /^X\(\/\/\)$/{ s//\1/; q; }
22632 /^X\(\/\).*/{ s//\1/; q; }
22634 { if $as_mkdir_p; then
22639 while test ! -d "$as_dir"; do
22640 as_dirs
="$as_dir $as_dirs"
22641 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643 X"$as_dir" : 'X\(//\)[^/]' \| \
22644 X"$as_dir" : 'X\(//\)$' \| \
22645 X"$as_dir" : 'X\(/\)' \| \
22646 . : '\(.\)' 2>/dev/null ||
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650 /^X\(\/\/\)$/{ s//\1/; q; }
22651 /^X\(\/\).*/{ s//\1/; q; }
22654 test ! -n "$as_dirs" || mkdir
$as_dirs
22655 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22657 { (exit 1); exit 1; }; }; }
22661 if test "$ac_dir" != .
; then
22662 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22663 # A "../" for each directory in $ac_dir_suffix.
22664 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22666 ac_dir_suffix
= ac_top_builddir
=
22670 .
) # No --srcdir option. We are building in place.
22672 if test -z "$ac_top_builddir"; then
22675 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22677 [\\/]* | ?
:[\\/]* ) # Absolute path.
22678 ac_srcdir
=$srcdir$ac_dir_suffix;
22679 ac_top_srcdir
=$srcdir ;;
22680 *) # Relative path.
22681 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22682 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22685 # Do not use `cd foo && pwd` to compute absolute paths, because
22686 # the directories may not exist.
22688 .
) ac_abs_builddir
="$ac_dir";;
22691 .
) ac_abs_builddir
=`pwd`;;
22692 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22693 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22696 case $ac_abs_builddir in
22697 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22699 case ${ac_top_builddir}.
in
22700 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22701 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22702 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22705 case $ac_abs_builddir in
22706 .
) ac_abs_srcdir
=$ac_srcdir;;
22709 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22710 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22711 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22714 case $ac_abs_builddir in
22715 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22717 case $ac_top_srcdir in
22718 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22719 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22720 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22726 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22727 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22730 # Let's still pretend it is `configure' which instantiates (i.e., don't
22731 # use $as_me), people would be surprised to read:
22732 # /* config.h. Generated by config.status. */
22733 if test x
"$ac_file" = x-
; then
22736 configure_input
="$ac_file. "
22738 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22739 sed 's,.*/,,'` by configure."
22741 # First look for the input files in the build tree, otherwise in the
22743 ac_file_inputs
=`IFS=:
22744 for f in $ac_file_in; do
22746 -) echo $tmp/stdin ;;
22748 # Absolute (can't be DOS-style, as IFS=:)
22749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
22754 if test -f "$f"; then
22757 elif test -f "$srcdir/$f"; then
22762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22763 echo "$as_me: error: cannot find input file: $f" >&2;}
22764 { (exit 1); exit 1; }; }
22767 done` ||
{ (exit 1); exit 1; }
22769 if test x
"$ac_file" != x-
; then
22770 { echo "$as_me:$LINENO: creating $ac_file" >&5
22771 echo "$as_me: creating $ac_file" >&6;}
22775 cat >>$CONFIG_STATUS <<_ACEOF
22779 cat >>$CONFIG_STATUS <<\_ACEOF
22781 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22782 s
,@configure_input@
,$configure_input,;t t
22783 s
,@srcdir@
,$ac_srcdir,;t t
22784 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22785 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22786 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22787 s
,@builddir@
,$ac_builddir,;t t
22788 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22789 s
,@top_builddir@
,$ac_top_builddir,;t t
22790 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22791 s
,@INSTALL@
,$ac_INSTALL,;t t
22792 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22794 if test x"$ac_file" != x-; then
22795 mv $tmp/out $ac_file
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22806 # CONFIG_HEADER section.
22809 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22810 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22812 # ac_d sets the value in "#define NAME VALUE" lines.
22813 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22814 ac_dB
='[ ].*$,\1#\2'
22817 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22818 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22819 ac_uB
='$,\1#\2define\3'
22823 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22826 - |
*:- |
*:-:* ) # input from stdin
22828 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22829 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22830 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22831 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22832 * ) ac_file_in
=$ac_file.
in ;;
22835 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22836 echo "$as_me: creating $ac_file" >&6;}
22838 # First look for the input files in the build tree, otherwise in the
22840 ac_file_inputs
=`IFS=:
22841 for f in $ac_file_in; do
22843 -) echo $tmp/stdin ;;
22845 # Absolute (can't be DOS-style, as IFS=:)
22846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22847 echo "$as_me: error: cannot find input file: $f" >&2;}
22848 { (exit 1); exit 1; }; }
22849 # Do quote $f, to prevent DOS paths from being IFS'd.
22852 if test -f "$f"; then
22855 elif test -f "$srcdir/$f"; then
22860 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22861 echo "$as_me: error: cannot find input file: $f" >&2;}
22862 { (exit 1); exit 1; }; }
22865 done` ||
{ (exit 1); exit 1; }
22866 # Remove the trailing spaces.
22867 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22872 # `conftest.undefs', that substitutes the proper values into
22873 # config.h.in to produce config.h. The first handles `#define'
22874 # templates, and the second `#undef' templates.
22875 # And first: Protect against being on the right side of a sed subst in
22876 # config.status. Protect against being in an unquoted here document
22877 # in config.status.
22878 rm -f conftest.defines conftest.undefs
22879 # Using a here document instead of a string reduces the quoting nightmare.
22880 # Putting comments in sed scripts is not portable.
22882 # `end' is used to avoid that the second main sed command (meant for
22883 # 0-ary CPP macros) applies to n-ary macro definitions.
22884 # See the Autoconf documentation for `clear'.
22885 cat >confdef2sed.
sed <<\_ACEOF
22890 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22892 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22895 # If some macros were called several times there might be several times
22896 # the same #defines, which is useless. Nevertheless, we may not want to
22897 # sort them, since we want the *last* AC-DEFINE to be honored.
22898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22900 rm -f confdef2sed.sed
22902 # This sed command replaces #undef with comments. This is necessary, for
22903 # example, in the case of _POSIX_SOURCE, which is predefined and required
22904 # on some systems where configure will not decide to define it.
22905 cat >>conftest.undefs <<\_ACEOF
22906 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22909 # Break up conftest.defines because some shells have a limit on the size
22910 # of here documents, and old seds have small limits too (100 cmds).
22911 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22912 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22913 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22914 echo ' :' >>$CONFIG_STATUS
22915 rm -f conftest.tail
22916 while grep . conftest.defines >/dev/null
22918 # Write a limited-size here document to $tmp/defines.sed.
22919 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22920 # Speed up: don't consider the non `#define' lines.
22921 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22922 # Work around the forget-to-reset-the-flag bug.
22923 echo 't clr' >>$CONFIG_STATUS
22924 echo ': clr' >>$CONFIG_STATUS
22925 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22927 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22929 mv $tmp/out $tmp/in
22931 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22932 rm -f conftest.defines
22933 mv conftest.
tail conftest.defines
22935 rm -f conftest.defines
22936 echo ' fi # grep' >>$CONFIG_STATUS
22937 echo >>$CONFIG_STATUS
22939 # Break up conftest.undefs because some shells have a limit on the size
22940 # of here documents, and old seds have small limits too (100 cmds).
22941 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22942 rm -f conftest.
tail
22943 while grep . conftest.undefs
>/dev
/null
22945 # Write a limited-size here document to $tmp/undefs.sed.
22946 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22947 # Speed up: don't consider the non
`#undef'
22948 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22949 # Work around the forget-to-reset-the-flag bug.
22950 echo 't clr' >>$CONFIG_STATUS
22951 echo ': clr' >>$CONFIG_STATUS
22952 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22954 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22956 mv $tmp/out $tmp/in
22958 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22959 rm -f conftest.undefs
22960 mv conftest.tail conftest.undefs
22962 rm -f conftest.undefs
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22966 # use $as_me), people would be surprised to read:
22967 # /* config.h. Generated by config.status. */
22968 if test x
"$ac_file" = x-
; then
22969 echo "/* Generated by configure. */" >$tmp/config.h
22971 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22973 cat $tmp/in >>$tmp/config.h
22975 if test x
"$ac_file" != x-
; then
22976 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22978 echo "$as_me: $ac_file is unchanged" >&6;}
22980 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22982 X"$ac_file" : 'X\(//\)[^/]' \| \
22983 X"$ac_file" : 'X\(//\)$' \| \
22984 X"$ac_file" : 'X\(/\)' \| \
22985 . : '\(.\)' 2>/dev/null ||
22987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989 /^X\(\/\/\)$/{ s//\1/; q; }
22990 /^X\(\/\).*/{ s//\1/; q; }
22992 { if $as_mkdir_p; then
22997 while test ! -d "$as_dir"; do
22998 as_dirs
="$as_dir $as_dirs"
22999 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23001 X"$as_dir" : 'X\(//\)[^/]' \| \
23002 X"$as_dir" : 'X\(//\)$' \| \
23003 X"$as_dir" : 'X\(/\)' \| \
23004 . : '\(.\)' 2>/dev/null ||
23006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23008 /^X\(\/\/\)$/{ s//\1/; q; }
23009 /^X\(\/\).*/{ s//\1/; q; }
23012 test ! -n "$as_dirs" || mkdir
$as_dirs
23013 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23015 { (exit 1); exit 1; }; }; }
23018 mv $tmp/config.h
$ac_file
23022 rm -f $tmp/config.h
23026 cat >>$CONFIG_STATUS <<\_ACEOF
23029 # CONFIG_COMMANDS section.
23031 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23032 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23033 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23034 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23036 X"$ac_dest" : 'X\(//\)[^/]' \| \
23037 X"$ac_dest" : 'X\(//\)$' \| \
23038 X"$ac_dest" : 'X\(/\)' \| \
23039 . : '\(.\)' 2>/dev/null ||
23041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23043 /^X\(\/\/\)$/{ s//\1/; q; }
23044 /^X\(\/\).*/{ s//\1/; q; }
23046 { if $as_mkdir_p; then
23051 while test ! -d "$as_dir"; do
23052 as_dirs
="$as_dir $as_dirs"
23053 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23055 X"$as_dir" : 'X\(//\)[^/]' \| \
23056 X"$as_dir" : 'X\(//\)$' \| \
23057 X"$as_dir" : 'X\(/\)' \| \
23058 . : '\(.\)' 2>/dev/null ||
23060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23062 /^X\(\/\/\)$/{ s//\1/; q; }
23063 /^X\(\/\).*/{ s//\1/; q; }
23066 test ! -n "$as_dirs" || mkdir
$as_dirs
23067 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23069 { (exit 1); exit 1; }; }; }
23073 if test "$ac_dir" != .
; then
23074 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23075 # A "../" for each directory in $ac_dir_suffix.
23076 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23078 ac_dir_suffix
= ac_top_builddir
=
23082 .
) # No --srcdir option. We are building in place.
23084 if test -z "$ac_top_builddir"; then
23087 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23089 [\\/]* | ?
:[\\/]* ) # Absolute path.
23090 ac_srcdir
=$srcdir$ac_dir_suffix;
23091 ac_top_srcdir
=$srcdir ;;
23092 *) # Relative path.
23093 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23094 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23097 # Do not use `cd foo && pwd` to compute absolute paths, because
23098 # the directories may not exist.
23100 .
) ac_abs_builddir
="$ac_dir";;
23103 .
) ac_abs_builddir
=`pwd`;;
23104 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23105 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23108 case $ac_abs_builddir in
23109 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23111 case ${ac_top_builddir}.
in
23112 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23113 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23114 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23117 case $ac_abs_builddir in
23118 .
) ac_abs_srcdir
=$ac_srcdir;;
23121 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23122 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23123 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23126 case $ac_abs_builddir in
23127 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23129 case $ac_top_srcdir in
23130 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23131 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23132 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23137 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23138 echo "$as_me: executing $ac_dest commands" >&6;}
23142 ### Make the necessary directories, if they don't exist.
23143 for dir
in etc lisp
; do
23144 test -d ${dir} || mkdir
${dir}
23147 # Build src/Makefile from ${srcdir}/src/Makefile.c
23148 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23149 # This must be done after src/config.h is built, since we rely on that file.
23151 # Now get this: Some word that is part of the ${srcdir} directory name
23152 # or the ${configuration} value might, just might, happen to be an
23153 # identifier like `sun4' or `i386' or something, and be predefined by
23154 # the C preprocessor to some helpful value like 1, or maybe the empty
23155 # string. Needless to say consequent macro substitutions are less
23156 # than conducive to the makefile finding the correct directory.
23157 undefs
="`echo $top_srcdir $configuration $canonical |
23158 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23159 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23162 echo creating src
/epaths.h
23163 ${MAKE-make} epaths-force
23165 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23166 # `..' to `. .' unless invoked with -traditional
23168 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23169 CPPFLAGS
="$CPPFLAGS -traditional"
23172 echo creating lib-src
/Makefile
23174 rm -f junk.c junk1.c junk2.c
23175 sed -e '/start of cpp stuff/q' \
23176 < Makefile.c
> junk1.c
23177 sed -e '1,/start of cpp stuff/d'\
23178 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23179 < Makefile.c
> junk.c
23180 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23181 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23182 cat junk1.c junk2.c
> Makefile.new
23183 rm -f junk.c junk1.c junk2.c
23184 chmod 444 Makefile.new
23185 mv -f Makefile.new Makefile
23188 echo creating src
/Makefile
23190 rm -f junk.c junk1.c junk2.c
23191 sed -e '/start of cpp stuff/q' \
23192 < Makefile.c
> junk1.c
23193 sed -e '1,/start of cpp stuff/d'\
23194 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23195 < Makefile.c
> junk.c
23196 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23197 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23198 cat junk1.c junk2.c
> Makefile.new
23199 rm -f junk.c junk1.c junk2.c
23200 chmod 444 Makefile.new
23201 mv -f Makefile.new Makefile
23204 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23205 echo creating src
/.gdbinit
23206 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23209 # This is how we know whether to re-run configure in certain cases.
23210 touch src
/config.stamp
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23219 { (exit 0); exit 0; }
23221 chmod +x
$CONFIG_STATUS
23222 ac_clean_files
=$ac_clean_files_save
23225 # configure is writing to config.log, and then calls config.status.
23226 # config.status does its own redirection, appending to config.log.
23227 # Unfortunately, on DOS this fails, as config.log is still kept open
23228 # by configure, so config.status won't be able to write to it; its
23229 # output is simply discarded. So we exec the FD to /dev/null,
23230 # effectively closing config.log, so it can be properly (re)opened and
23231 # appended to by config.status. When coming back to configure, we
23232 # need to make the FD available again.
23233 if test "$no_create" != yes; then
23235 ac_config_status_args
=
23236 test "$silent" = yes &&
23237 ac_config_status_args
="$ac_config_status_args --quiet"
23239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23242 # would make configure fail if this is the last instruction.
23243 $ac_cs_success ||
{ (exit 1); exit 1; }