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 GZIP_PROG EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2098 hppa
*-*-linux-gnu* )
2099 machine
=hp800 opsys
=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2111 *) machine
=hp800 opsys
=hpux10
;;
2115 machine
=hp800 opsys
=nextstep
2120 machine
=orion opsys
=bsd4-2
2122 clipper-orion-bsd
* )
2123 machine
=orion105 opsys
=bsd4-2
2127 i
[3456]86-ibm-aix1.1
* )
2128 machine
=ibmps2-aix opsys
=usg5-2-2
2130 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2131 machine
=ibmps2-aix opsys
=usg5-3
2134 machine
=ibm370aix opsys
=usg5-3
2137 machine
=ibms390 opsys
=gnu-linux
2139 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2140 machine
=ibmrs6000 opsys
=aix3-1
2142 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2143 machine
=ibmrs6000 opsys
=aix3-2-5
2145 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2146 machine
=ibmrs6000 opsys
=aix4-1
2148 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2149 machine
=ibmrs6000 opsys
=aix4-2
2151 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2152 machine
=ibmrs6000 opsys
=aix4-2
2154 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2155 machine
=ibmrs6000 opsys
=aix4
2157 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2158 machine
=ibmrs6000 opsys
=aix4-1
2160 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2161 machine
=ibmrs6000 opsys
=aix3-2
2164 machine
=ibmrt opsys
=bsd4-3
2167 machine
=ibmrt opsys
=bsd4-2
2170 machine
=ibmrt opsys
=bsd4-3
2173 machine
=ibmrt opsys
=bsd4-2
2176 machine
=ibmrt opsys
=bsd4-3
2179 machine
=ibmrt opsys
=bsd4-3
2182 machine
=ibmrt-aix opsys
=usg5-2-2
2185 ## Integrated Solutions `Optimum V'
2187 machine
=isi-ov opsys
=bsd4-2
2190 machine
=isi-ov opsys
=bsd4-3
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i
[3456]86-intsys-sysv* )
2195 machine
=is386 opsys
=usg5-2-2
2199 i
[3456]86-prime-sysv* )
2200 machine
=i386 opsys
=usg5-3
2203 ## Sequent Symmetry running Dynix
2204 i
[3456]86-sequent-bsd* )
2205 machine
=symmetry opsys
=bsd4-3
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2210 machine
=sequent-ptx opsys
=ptx4
2211 NON_GNU_CPP
=/lib
/cpp
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i
[3456]86-sequent-ptx* )
2217 machine
=sequent-ptx opsys
=ptx
2218 NON_GNU_CPP
="/lib/cpp"
2221 ## ncr machine running svr4.3.
2222 i
[3456]86-ncr-sysv4.3
)
2223 machine
=ncr386 opsys
=usg5-4-3
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i
[3456]86-ncr-sysv* )
2229 machine
=ncr386 opsys
=usg5-4-2
2232 ## Intel Paragon OSF/1
2234 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2239 machine
=i860 opsys
=usg5-4
2240 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2244 ## Macintosh PowerPC
2245 powerpc
*-*-linux-gnu* )
2246 machine
=macppc opsys
=gnu-linux
2249 ## Masscomp machines
2250 m68
*-masscomp-rtu* )
2251 machine
=masscomp opsys
=rtu
2254 ## Megatest machines
2255 m68
*-megatest-bsd* )
2256 machine
=mega68 opsys
=bsd4-2
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2272 ## Fall through to the general code at the bottom to decide on the OS.
2274 mips-mips-riscos4
* )
2275 machine
=mips4 opsys
=bsd4-3
2276 NON_GNU_CC
="cc -systype bsd43"
2277 NON_GNU_CPP
="cc -systype bsd43 -E"
2279 mips-mips-riscos5
* )
2280 machine
=mips4 opsys
=riscos5
2281 NON_GNU_CC
="cc -systype bsd43"
2282 NON_GNU_CPP
="cc -systype bsd43 -E"
2285 machine
=mips opsys
=bsd4-3
2288 machine
=mips opsys
=usg5-2-2
2292 m68
*-next-* | m68k-
*-nextstep* )
2293 machine
=m68k opsys
=nextstep
2296 ## The complete machine from National Semiconductor
2298 machine
=ns32000 opsys
=usg5-2
2302 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2303 machine
=tower32 opsys
=usg5-2-2
2305 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2306 machine
=tower32v3 opsys
=usg5-3
2311 machine
=ews4800 opsys
=ux4800
2314 ## Nixdorf Targon 31
2315 m68
*-nixdorf-sysv* )
2316 machine
=targon31 opsys
=usg5-2-2
2321 machine
=nu opsys
=usg5-2
2326 machine
=plexus opsys
=usg5-2
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd
* )
2333 machine
=pyramid opsys
=bsd4-2
2337 ns32k-sequent-bsd4.2
* )
2338 machine
=sequent opsys
=bsd4-2
2340 ns32k-sequent-bsd4.3
* )
2341 machine
=sequent opsys
=bsd4-3
2345 mips-siemens-sysv
* | mips-sni-sysv
*)
2346 machine
=mips-siemens opsys
=usg5-4
2347 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2348 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2354 machine
=irist opsys
=iris3-5
2356 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2357 machine
=irist opsys
=iris3-6
2361 machine
=iris4d opsys
=irix3-3
2364 machine
=iris4d opsys
=irix4-0
2367 machine
=iris4d opsys
=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2375 machine
=iris4d opsys
=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS
=-32
2382 mips-sgi-irix5.
[01]* )
2383 machine
=iris4d opsys
=irix5-0
2385 mips-sgi-irix5
* | mips-sgi-irix
* )
2386 machine
=iris4d opsys
=irix5-2
2391 machine
=news opsys
=bsd4-2
2394 machine
=news opsys
=bsd4-3
2396 m68
*-sony-newsos3* | m68
*-sony-news3*)
2397 machine
=news opsys
=bsd4-3
2399 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2400 machine
=news-risc opsys
=bsd4-3
2402 mips-sony-newsos6
* )
2403 machine
=news-r6 opsys
=newsos6
2406 machine
=news-risc opsys
=newsos5
2411 machine
=stride opsys
=usg5-2
2415 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2416 machine
=sparc opsys
=gnu-linux
2419 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2420 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2421 | rs6000-
*-solaris2*)
2422 case "${canonical}" in
2423 m68
*-sunos1* ) machine
=sun1
;;
2424 m68
*-sunos2* ) machine
=sun2
;;
2425 m68
* ) machine
=sun3
;;
2426 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2427 i
[3456]86-*-* ) machine
=intel386
;;
2428 powerpcle
* ) machine
=powerpcle
;;
2429 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2430 sparc
* ) machine
=sparc
;;
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2436 *-sunos4.0
* ) opsys
=sunos4-0
;;
2437 *-sunos4.1.
[3-9]*noshare
)
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2441 NON_GNU_CPP
=/usr
/lib
/cpp
2442 NON_GCC_TEST_OPTIONS
=-Bstatic
2443 GCC_TEST_OPTIONS
=-static
2445 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2447 NON_GNU_CPP
=/usr
/lib
/cpp
2449 *-sunos4* |
*-sunos )
2451 NON_GCC_TEST_OPTIONS
=-Bstatic
2452 GCC_TEST_OPTIONS
=-static
2454 *-sunos5.3
* |
*-solaris2.3
* )
2456 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 *-sunos5.4
* |
*-solaris2.4
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5.5
* |
*-solaris2.5
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2468 *-sunos5.6
* |
*-solaris2.6
* )
2470 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2473 *-sunos5* |
*-solaris* )
2475 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* |
*-sunos5* )
2482 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2492 machine
=sparc opsys
=nextstep
2496 m68
*-tadpole-sysv* )
2497 machine
=tad68k opsys
=usg5-3
2501 tahoe-tahoe-bsd4.2
* )
2502 machine
=tahoe opsys
=bsd4-2
2504 tahoe-tahoe-bsd4.3
* )
2505 machine
=tahoe opsys
=bsd4-3
2508 ## Tandem Integrity S2
2510 machine
=tandem-s2 opsys
=usg5-3
2514 m88k-tektronix-sysv3
* )
2515 machine
=tekxd88 opsys
=usg5-3
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd
* )
2520 machine
=ns16000 opsys
=bsd4-2
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68
*-tektronix-bsd* )
2525 machine
=tek4300 opsys
=bsd4-3
2529 ## We seem to have lost the machine-description file titan.h!
2531 machine
=titan opsys
=usg5-3
2534 ## Ustation E30 (SS5E)
2535 m68
*-unisys-uniplus* )
2536 machine
=ustation opsystem
=unipl5-2
2542 case "${canonical}" in
2543 *-bsd4.1
* ) opsys
=bsd4-1
;;
2544 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2545 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2546 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2547 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2548 *-vms* ) opsys
=vms
;;
2554 ns16k-whitechapel-
* )
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2562 machine
=wicat opsys
=usg5-2
2567 machine
=ia64 opsys
=gnu-linux
2570 ## Intel 386 machines where we don't care about the manufacturer
2573 case "${canonical}" in
2574 *-cygwin ) opsys
=cygwin
;;
2575 *-darwin* ) opsys
=darwin
2576 CPP
="${CC-cc} -E -no-cpp-precomp"
2578 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2579 *-isc2.2
* ) opsys
=isc2-2
;;
2580 *-isc4.0
* ) opsys
=isc4-0
;;
2581 *-isc4.
* ) opsys
=isc4-1
2582 GCC_TEST_OPTIONS
=-posix
2583 NON_GCC_TEST_OPTIONS
=-Xp
2585 *-isc* ) opsys
=isc3-0
;;
2586 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2587 *-esix* ) opsys
=esix
;;
2588 *-xenix* ) opsys
=xenix
;;
2589 *-linux-gnu* ) opsys
=gnu-linux
;;
2590 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2591 *-sco3.2v5
* ) opsys
=sco5
2592 NON_GNU_CPP
=/lib
/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS
=" "
2597 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2598 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2600 *-386bsd* ) opsys
=386bsd
;;
2601 *-nextstep* ) opsys
=nextstep
;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2606 ## m68k Linux-based GNU system
2608 machine
=m68k opsys
=gnu-linux
2611 ## Mips Linux-based GNU system
2612 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2613 machine
=mips opsys
=gnu-linux
2617 sparc-fujitsu-sysv4
* )
2618 machine
=sparc opsys
=uxpds
2619 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2624 f301-fujitsu-uxpv4.1
)
2625 machine
=f301 opsys
=uxpv
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin
* )
2630 machine
=powermac opsys
=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP
="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw
/include
&& test -d /sw
/lib
; then
2635 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2636 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-
*-linux-gnu* )
2643 machine
=amdx86-64 opsys
=gnu-linux
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2657 if test x
"${opsys}" = x
; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys
=gnu
;;
2660 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2661 *-bsd4.2
) opsys
=bsd4-2
;;
2662 *-bsd4.3
) opsys
=bsd4-3
;;
2663 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2664 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2665 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2666 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2667 *-sysv4.2uw
* ) opsys
=unixware
;;
2668 *-sysv5uw* ) opsys
=unixware
;;
2669 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2670 *-sysv4.1
* |
*-sysvr4.1
* )
2671 NON_GNU_CPP
=/usr
/lib
/cpp
2673 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2674 if [ x
$NON_GNU_CPP = x
]; then
2675 if [ -f /usr
/ccs
/lib
/cpp
]; then
2676 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2678 NON_GNU_CPP
=/lib
/cpp
2682 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile
="m/${machine}.h"
2700 opsysfile
="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified
=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS
="$CFLAGS"
2710 "yes" ) CC
="gcc" GCC
=yes ;;
2711 "no" ) : ${CC=cc} ;;
2715 ac_cpp
='$CPP $CPPFLAGS'
2716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC
="$CC" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc
; ac_word
=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC
="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC
="$CC" # Let the user override the test.
2810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir
=.
2815 for ac_exec_ext
in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc
; ac_word
=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC
="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc
; ac_word
=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC
="$CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected
=yes
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy
$ac_cv_prog_CC
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy
$ac_prog; ac_word
=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC
="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ac_ct_CC" && break
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler
=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save
=$ac_clean_files
3065 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3084 # b.out is created by i960 compilers.
3085 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3087 test -f "$ac_file" ||
continue
3089 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3092 # This is the source file.
3095 # We found the default executable, but exeext='' is most
3099 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.
$ac_ext >&5
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3120 ac_exeext
=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try
='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 if test "$cross_compiling" = maybe
; then
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3156 ac_clean_files
=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3175 for ac_file
in conftest.exe conftest conftest.
*; do
3176 test -f "$ac_file" ||
continue
3178 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3179 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3193 rm -f conftest
$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3197 rm -f conftest.
$ac_ext
3198 EXEEXT
=$ac_cv_exeext
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.
$ac_ext <<_ACEOF
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3229 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT
=$ac_cv_objext
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3273 rm -f conftest.
$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1
>conftest.err
3279 cat conftest.err
>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS
=${CFLAGS+set}
3309 ac_save_CFLAGS
=$CFLAGS
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.
$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1
>conftest.err
3337 cat conftest.err
>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try
='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.
$ac_ext >&5
3359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS
=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3372 if test "$GCC" = yes; then
3378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_prog_cc_stdc
=no
3385 cat >conftest.
$ac_ext <<_ACEOF
3388 cat confdefs.h
>>conftest.
$ac_ext
3389 cat >>conftest.
$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3409 s = g (p, va_arg (v,int));
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std1 is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std1. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423 int test (int i, double x);
3424 struct s1 {int (*f) (int a);};
3425 struct s2 {int (*f) (double a);};
3426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3437 # Don't try gcc -ansi; that turns off useful extensions and
3438 # breaks some systems' header files.
3439 # AIX -qlanglvl=ansi
3440 # Ultrix and OSF/1 -std1
3441 # HP-UX 10.20 and later -Ae
3442 # HP-UX older versions -Aa -D_HPUX_SOURCE
3443 # SVR4 -Xc -D__EXTENSIONS__
3444 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 CC
="$ac_save_CC $ac_arg"
3447 rm -f conftest.
$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3451 grep -v '^ *+' conftest.er1
>conftest.err
3453 cat conftest.err
>&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try
='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_prog_cc_stdc
=$ac_arg
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3475 rm -f conftest.err conftest.
$ac_objext
3477 rm -f conftest.
$ac_ext conftest.
$ac_objext
3482 case "x$ac_cv_prog_cc_stdc" in
3484 echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6 ;;
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3489 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3492 # Some people use a C++ compiler to compile C. Since we use `exit',
3493 # in C++ we need to declare it. In case someone uses the same compiler
3494 # for both compiling C and C++ we need to have the C++ compiler decide
3495 # the declaration of exit, since it's the most demanding environment.
3496 cat >conftest.
$ac_ext <<_ACEOF
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try
='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 for ac_declaration
in \
3524 'extern "C" void std::exit (int) throw (); using std::exit;' \
3525 'extern "C" void std::exit (int); using std::exit;' \
3526 'extern "C" void exit (int) throw ();' \
3527 'extern "C" void exit (int);' \
3530 cat >conftest.
$ac_ext <<_ACEOF
3533 cat confdefs.h
>>conftest.
$ac_ext
3534 cat >>conftest.
$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3546 rm -f conftest.
$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.
$ac_ext >&5
3574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3575 cat >conftest.
$ac_ext <<_ACEOF
3578 cat confdefs.h
>>conftest.
$ac_ext
3579 cat >>conftest.
$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1
>conftest.err
3596 cat conftest.err
>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try
='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3620 if test -n "$ac_declaration"; then
3621 echo '#ifdef __cplusplus' >>confdefs.h
3622 echo $ac_declaration >>confdefs.h
3623 echo '#endif' >>confdefs.h
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3633 ac_cpp
='$CPP $CPPFLAGS'
3634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3639 # On Suns, sometimes $CPP names a directory.
3640 if test -n "$CPP" && test -d "$CPP"; then
3644 #### Some systems specify a CPP to use unless we are using GCC.
3645 #### Now that we know whether we are using GCC, we can decide whether
3646 #### to use that one.
3647 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3652 #### Some systems specify a CC to use unless we are using GCC.
3653 #### Now that we know whether we are using GCC, we can decide whether
3654 #### to use that one.
3655 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3656 test x
$cc_specified != xyes
3661 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3663 CC
="$CC $GCC_TEST_OPTIONS"
3666 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3668 CC
="$CC $NON_GCC_TEST_OPTIONS"
3671 ### Use -Wno-pointer-sign if the compiler supports it
3672 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3673 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3674 SAVE_CFLAGS
="$CFLAGS"
3675 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3677 cat >conftest.
$ac_ext <<_ACEOF
3680 cat confdefs.h
>>conftest.
$ac_ext
3681 cat >>conftest.
$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.
$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1
>conftest.err
3698 cat conftest.err
>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try
='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3721 if test $has_option = yes; then
3722 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
3724 echo "$as_me:$LINENO: result: $has_option" >&5
3725 echo "${ECHO_T}$has_option" >&6
3726 CFLAGS
="$SAVE_CFLAGS"
3730 #### Some other nice autoconf tests.
3732 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3735 if test "$LN_S" = "ln -s"; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6
3739 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3740 echo "${ECHO_T}no, using $LN_S" >&6
3744 ac_cpp
='$CPP $CPPFLAGS'
3745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3754 if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 # Double quotes because CPP needs to be expanded
3759 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762 for ac_c_preproc_warn_flag
in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 # include <limits.h>
3779 # include <assert.h>
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev
/null
; then
3791 if test -s conftest.err
; then
3792 ac_cpp_err
=$ac_c_preproc_warn_flag
3793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3800 if test -z "$ac_cpp_err"; then
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.
$ac_ext >&5
3806 # Broken: fails on valid input.
3809 rm -f conftest.err conftest.
$ac_ext
3811 # OK, works on sane cases. Now check whether non-existent headers
3812 # can be detected and how.
3813 cat >conftest.
$ac_ext <<_ACEOF
3816 cat confdefs.h
>>conftest.
$ac_ext
3817 cat >>conftest.
$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3824 grep -v '^ *+' conftest.er1
>conftest.err
3826 cat conftest.err
>&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev
/null
; then
3829 if test -s conftest.err
; then
3830 ac_cpp_err
=$ac_c_preproc_warn_flag
3831 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3838 if test -z "$ac_cpp_err"; then
3839 # Broken: success on invalid input.
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3845 # Passes both tests.
3849 rm -f conftest.err conftest.
$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.
$ac_ext
3854 if $ac_preproc_ok; then
3866 echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6
3869 for ac_c_preproc_warn_flag
in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.
$ac_ext <<_ACEOF
3880 cat confdefs.h
>>conftest.
$ac_ext
3881 cat >>conftest.
$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1
>conftest.err
3895 cat conftest.err
>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev
/null
; then
3898 if test -s conftest.err
; then
3899 ac_cpp_err
=$ac_c_preproc_warn_flag
3900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3907 if test -z "$ac_cpp_err"; then
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 # Broken: fails on valid input.
3916 rm -f conftest.err conftest.
$ac_ext
3918 # OK, works on sane cases. Now check whether non-existent headers
3919 # can be detected and how.
3920 cat >conftest.
$ac_ext <<_ACEOF
3923 cat confdefs.h
>>conftest.
$ac_ext
3924 cat >>conftest.
$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1
>conftest.err
3933 cat conftest.err
>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev
/null
; then
3936 if test -s conftest.err
; then
3937 ac_cpp_err
=$ac_c_preproc_warn_flag
3938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3945 if test -z "$ac_cpp_err"; then
3946 # Broken: success on invalid input.
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3952 # Passes both tests.
3956 rm -f conftest.err conftest.
$ac_ext
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.
$ac_ext
3961 if $ac_preproc_ok; then
3964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3972 ac_cpp
='$CPP $CPPFLAGS'
3973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3977 # Find a good install program. We prefer a C program (faster),
3978 # so one script is as good as another. But avoid the broken or
3979 # incompatible versions:
3980 # SysV /etc/install, /usr/sbin/install
3981 # SunOS /usr/etc/install
3982 # IRIX /sbin/install
3984 # AmigaOS /C/install, which installs bootblocks on floppy discs
3985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3988 # OS/2's system install, which has a completely different semantic
3989 # ./install, which can be erroneously created by make from ./install.sh.
3990 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3992 if test -z "$INSTALL"; then
3993 if test "${ac_cv_path_install+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir
=.
4001 # Account for people who put trailing slashes in PATH elements.
4003 .
/ | .
// |
/cC
/* | \
4004 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4005 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4008 # OSF1 and SCO ODT 3.0 have their own names for install.
4009 # Don't use installbsd from OSF since it installs stuff as root
4011 for ac_prog
in ginstall scoinst
install; do
4012 for ac_exec_ext
in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4014 if test $ac_prog = install &&
4015 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4016 # AIX install. It has an incompatible calling convention.
4018 elif test $ac_prog = install &&
4019 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4020 # program-specific install script used by HP pwplus--don't use.
4023 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL
=$ac_cv_path_install
4038 # As a last resort, use the slow shell script. We don't cache a
4039 # path for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the path is relative.
4042 INSTALL
=$ac_install_sh
4045 echo "$as_me:$LINENO: result: $INSTALL" >&5
4046 echo "${ECHO_T}$INSTALL" >&6
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4054 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4056 if test "x$RANLIB" = x
; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4059 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_RANLIB+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$RANLIB"; then
4066 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 RANLIB
=$ac_cv_prog_RANLIB
4085 if test -n "$RANLIB"; then
4086 echo "$as_me:$LINENO: result: $RANLIB" >&5
4087 echo "${ECHO_T}$RANLIB" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 if test -z "$ac_cv_prog_RANLIB"; then
4095 ac_ct_RANLIB
=$RANLIB
4096 # Extract the first word of "ranlib", so it can be a program name with args.
4097 set dummy ranlib
; ac_word
=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test -n "$ac_ct_RANLIB"; then
4104 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir
=.
4111 for ac_exec_ext
in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4123 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4124 if test -n "$ac_ct_RANLIB"; then
4125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4132 RANLIB
=$ac_ct_RANLIB
4134 RANLIB
="$ac_cv_prog_RANLIB"
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info
; ac_word
=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 case $INSTALL_INFO in
4147 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 # Extract the first word of "install-info", so it can be a program name with args.
4178 set dummy install-info
; ac_word
=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 case $INSTALL_INFO in
4186 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 for as_dir
in /usr
/sbin
4193 test -z "$as_dir" && as_dir
=.
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4208 if test -n "$INSTALL_INFO"; then
4209 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4210 echo "${ECHO_T}$INSTALL_INFO" >&6
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4216 # Extract the first word of "install-info", so it can be a program name with args.
4217 set dummy install-info
; ac_word
=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 case $INSTALL_INFO in
4225 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir
=.
4233 for ac_exec_ext
in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4246 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4248 if test -n "$INSTALL_INFO"; then
4249 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4250 echo "${ECHO_T}$INSTALL_INFO" >&6
4252 echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4256 # Extract the first word of "gzip", so it can be a program name with args.
4257 set dummy
gzip; ac_word
=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir
=.
4273 for ac_exec_ext
in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4287 if test -n "$GZIP_PROG"; then
4288 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4289 echo "${ECHO_T}$GZIP_PROG" >&6
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4297 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4299 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4302 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4304 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4308 late_LDFLAGS
=$LDFLAGS
4309 if test "$GCC" = yes; then
4310 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4312 LDFLAGS
="$LDFLAGS -znocombreloc"
4315 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4316 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4317 cat >conftest.
$ac_ext <<_ACEOF
4320 rm -f conftest.
$ac_objext conftest
$ac_exeext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4322 (eval $ac_link) 2>conftest.er1
4324 grep -v '^ *+' conftest.er1
>conftest.err
4326 cat conftest.err
>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try
='test -s conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.
$ac_ext >&5
4347 LDFLAGS
=$late_LDFLAGS
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4351 rm -f conftest.err conftest.
$ac_objext \
4352 conftest
$ac_exeext conftest.
$ac_ext
4355 echo "$as_me:$LINENO: checking for egrep" >&5
4356 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4357 if test "${ac_cv_prog_egrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4361 then ac_cv_prog_egrep
='grep -E'
4362 else ac_cv_prog_egrep
='egrep'
4365 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4366 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4367 EGREP
=$ac_cv_prog_egrep
4371 echo "$as_me:$LINENO: checking for AIX" >&5
4372 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4373 cat >conftest.
$ac_ext <<_ACEOF
4376 cat confdefs.h
>>conftest.
$ac_ext
4377 cat >>conftest.
$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 $EGREP "yes" >/dev
/null
2>&1; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388 cat >>confdefs.h
<<\_ACEOF
4389 #define _ALL_SOURCE 1
4393 echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4401 #### Extract some information from the operating system and machine files.
4403 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4404 - which libraries the lib-src programs will want, and
4405 - whether the GNU malloc routines are usable..." >&5
4406 echo "$as_me: checking the machine- and system-dependent files to find out
4407 - which libraries the lib-src programs will want, and
4408 - whether the GNU malloc routines are usable..." >&6;}
4410 ### First figure out CFLAGS (which we use for running the compiler here)
4411 ### and REAL_CFLAGS (which we use for real compilation).
4412 ### The two are the same except on a few systems, where they are made
4413 ### different to work around various lossages. For example,
4414 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4415 ### as implying static linking.
4417 ### If the CFLAGS env var is specified, we use that value
4418 ### instead of the default.
4420 ### It's not important that this name contain the PID; you can't run
4421 ### two configures in the same directory and have anything work
4423 tempcname
="conftest.c"
4426 #include "'${srcdir}'/src/'${opsysfile}'"
4427 #include "'${srcdir}'/src/'${machfile}'"
4428 #ifndef LIBS_MACHINE
4429 #define LIBS_MACHINE
4434 #ifndef C_SWITCH_SYSTEM
4435 #define C_SWITCH_SYSTEM
4437 #ifndef C_SWITCH_MACHINE
4438 #define C_SWITCH_MACHINE
4440 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4441 configure___ c_switch_system=C_SWITCH_SYSTEM
4442 configure___ c_switch_machine=C_SWITCH_MACHINE
4445 #define LIB_X11_LIB -lX11
4448 #ifndef LIBX11_MACHINE
4449 #define LIBX11_MACHINE
4452 #ifndef LIBX11_SYSTEM
4453 #define LIBX11_SYSTEM
4455 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4458 configure___ unexec=UNEXEC
4460 configure___ unexec=unexec.o
4463 #ifdef SYSTEM_MALLOC
4464 configure___ system_malloc=yes
4466 configure___ system_malloc=no
4469 #ifdef USE_MMAP_FOR_BUFFERS
4470 configure___ use_mmap_for_buffers=yes
4472 configure___ use_mmap_for_buffers=no
4475 #ifndef C_DEBUG_SWITCH
4476 #define C_DEBUG_SWITCH -g
4479 #ifndef C_OPTIMIZE_SWITCH
4481 #define C_OPTIMIZE_SWITCH -O2
4483 #define C_OPTIMIZE_SWITCH -O
4487 #ifndef C_WARNINGS_SWITCH
4488 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4491 #ifndef LD_SWITCH_MACHINE
4492 #define LD_SWITCH_MACHINE
4495 #ifndef LD_SWITCH_SYSTEM
4496 #define LD_SWITCH_SYSTEM
4499 #ifndef LD_SWITCH_X_SITE_AUX
4500 #define LD_SWITCH_X_SITE_AUX
4503 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4504 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4506 #ifdef THIS_IS_CONFIGURE
4508 /* Get the CFLAGS for tests in configure. */
4510 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4512 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4515 #else /* not THIS_IS_CONFIGURE */
4517 /* Get the CFLAGS for real compilation. */
4519 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4521 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4524 #endif /* not THIS_IS_CONFIGURE */
4527 # The value of CPP is a quoted variable reference, so we need to do this
4528 # to get its actual value...
4529 CPP
=`eval "echo $CPP"`
4530 eval `${CPP} -Isrc ${tempcname} \
4531 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4532 if test "x$SPECIFIED_CFLAGS" = x
; then
4533 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4534 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4536 REAL_CFLAGS
="$CFLAGS"
4540 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4542 ### Make sure subsequent tests use flags consistent with the build flags.
4544 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4545 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4547 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4553 cat >>confdefs.h
<<\_ACEOF
4554 #define _GNU_SOURCE 1
4559 # Check whether --enable-largefile or --disable-largefile was given.
4560 if test "${enable_largefile+set}" = set; then
4561 enableval
="$enable_largefile"
4564 if test "$enable_largefile" != no
; then
4566 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_sys_largefile_CC
=no
4572 if test "$GCC" != yes; then
4575 # IRIX 6.2 and later do not support large files by default,
4576 # so use the C compiler's -n32 option if that helps.
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 /* Check that off_t can represent 2**63 - 1 correctly.
4585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586 since some C++ compilers masquerading as C compilers
4587 incorrectly reject 9223372036854775807. */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590 && LARGE_OFF_T % 2147483647 == 1)
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1
>conftest.err
4606 cat conftest.err
>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try
='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.
$ac_ext >&5
4627 rm -f conftest.err conftest.
$ac_objext
4629 rm -f conftest.
$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4633 grep -v '^ *+' conftest.er1
>conftest.err
4635 cat conftest.err
>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try
='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_sys_largefile_CC
=' -n32'; break
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.
$ac_ext >&5
4656 rm -f conftest.err conftest.
$ac_objext
4660 rm -f conftest.
$ac_ext
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4664 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4665 if test "$ac_cv_sys_largefile_CC" != no
; then
4666 CC
=$CC$ac_cv_sys_largefile_CC
4669 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4670 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4671 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 ac_cv_sys_file_offset_bits
=no
4676 cat >conftest.
$ac_ext <<_ACEOF
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <sys/types.h>
4683 /* Check that off_t can represent 2**63 - 1 correctly.
4684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685 since some C++ compilers masquerading as C compilers
4686 incorrectly reject 9223372036854775807. */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689 && LARGE_OFF_T % 2147483647 == 1)
4699 rm -f conftest.
$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4727 cat >conftest.
$ac_ext <<_ACEOF
4730 cat confdefs.h
>>conftest.
$ac_ext
4731 cat >>conftest.
$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #define _FILE_OFFSET_BITS 64
4734 #include <sys/types.h>
4735 /* Check that off_t can represent 2**63 - 1 correctly.
4736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4737 since some C++ compilers masquerading as C compilers
4738 incorrectly reject 9223372036854775807. */
4739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4741 && LARGE_OFF_T % 2147483647 == 1)
4751 rm -f conftest.
$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1
>conftest.err
4757 cat conftest.err
>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try
='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_sys_file_offset_bits
=64; break
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4782 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4783 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4784 if test "$ac_cv_sys_file_offset_bits" != no
; then
4786 cat >>confdefs.h
<<_ACEOF
4787 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4792 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4793 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4794 if test "${ac_cv_sys_large_files+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 ac_cv_sys_large_files
=no
4799 cat >conftest.
$ac_ext <<_ACEOF
4802 cat confdefs.h
>>conftest.
$ac_ext
4803 cat >>conftest.
$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try
='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.
$ac_ext >&5
4849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4850 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #define _LARGE_FILES 1
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4874 rm -f conftest.
$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try
='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_sys_large_files
=1; break
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.
$ac_ext >&5
4901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4906 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4907 if test "$ac_cv_sys_large_files" != no
; then
4909 cat >>confdefs.h
<<_ACEOF
4910 #define _LARGE_FILES $ac_cv_sys_large_files
4918 if test "${with_sound}" != "no"; then
4919 # Sound support for GNU/Linux and the free BSDs.
4920 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4922 if test "${ac_cv_header_stdc+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 cat >conftest.
$ac_ext <<_ACEOF
4928 cat confdefs.h
>>conftest.
$ac_ext
4929 cat >>conftest.
$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4944 rm -f conftest.
$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1
>conftest.err
4950 cat conftest.err
>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try
='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_header_stdc
=yes
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.
$ac_ext >&5
4970 ac_cv_header_stdc
=no
4972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 if test $ac_cv_header_stdc = yes; then
4975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976 cat >conftest.
$ac_ext <<_ACEOF
4979 cat confdefs.h
>>conftest.
$ac_ext
4980 cat >>conftest.
$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "memchr" >/dev
/null
2>&1; then
4989 ac_cv_header_stdc
=no
4995 if test $ac_cv_header_stdc = yes; then
4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 $EGREP "free" >/dev
/null
2>&1; then
5010 ac_cv_header_stdc
=no
5016 if test $ac_cv_header_stdc = yes; then
5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018 if test "$cross_compiling" = yes; then
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5051 rm -f conftest
$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.
$ac_ext >&5
5069 ac_cv_header_stdc
=no
5071 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077 if test $ac_cv_header_stdc = yes; then
5079 cat >>confdefs.h
<<\_ACEOF
5080 #define STDC_HEADERS 1
5085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5096 inttypes.h stdint.h unistd.h
5098 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5112 #include <$ac_header>
5114 rm -f conftest.
$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1
>conftest.err
5120 cat conftest.err
>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try
='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 eval "$as_ac_Header=yes"
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.
$ac_ext >&5
5140 eval "$as_ac_Header=no"
5142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h
<<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5159 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5161 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5171 # Is the header compilable?
5172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 #include <$ac_header>
5183 rm -f conftest.
$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1
>conftest.err
5189 cat conftest.err
>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try
='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_header_compiler
=yes
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.
$ac_ext >&5
5209 ac_header_compiler
=no
5211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213 echo "${ECHO_T}$ac_header_compiler" >&6
5215 # Is the header present?
5216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218 cat >conftest.
$ac_ext <<_ACEOF
5221 cat confdefs.h
>>conftest.
$ac_ext
5222 cat >>conftest.
$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <$ac_header>
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5229 grep -v '^ *+' conftest.er1
>conftest.err
5231 cat conftest.err
>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev
/null
; then
5234 if test -s conftest.err
; then
5235 ac_cpp_err
=$ac_c_preproc_warn_flag
5236 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5243 if test -z "$ac_cpp_err"; then
5244 ac_header_preproc
=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.
$ac_ext >&5
5249 ac_header_preproc
=no
5251 rm -f conftest.err conftest.
$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253 echo "${ECHO_T}$ac_header_preproc" >&6
5255 # So? What about this header?
5256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262 ac_header_preproc
=yes
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5279 ## ------------------------------------------ ##
5280 ## Report this to the AC_PACKAGE_NAME lists. ##
5281 ## ------------------------------------------ ##
5284 sed "s/^/$as_me: WARNING: /" >&2
5287 echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 eval "$as_ac_Header=\$ac_header_preproc"
5294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5299 cat >>confdefs.h
<<_ACEOF
5300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 # Emulation library used on NetBSD.
5308 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5309 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5310 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_check_lib_save_LIBS
=$LIBS
5314 LIBS
="-lossaudio $LIBS"
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 cat confdefs.h
>>conftest.
$ac_ext
5319 cat >>conftest.
$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5337 rm -f conftest.
$ac_objext conftest
$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>conftest.er1
5341 grep -v '^ *+' conftest.er1
>conftest.err
5343 cat conftest.err
>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try
='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_lib_ossaudio__oss_ioctl
=yes
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.
$ac_ext >&5
5363 ac_cv_lib_ossaudio__oss_ioctl
=no
5365 rm -f conftest.err conftest.
$ac_objext \
5366 conftest
$ac_exeext conftest.
$ac_ext
5367 LIBS
=$ac_check_lib_save_LIBS
5369 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5370 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5371 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5405 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5406 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5407 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5408 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5411 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421 # Is the header compilable?
5422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5424 cat >conftest.
$ac_ext <<_ACEOF
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5431 #include <$ac_header>
5433 rm -f conftest.
$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1
>conftest.err
5439 cat conftest.err
>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try
='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_header_compiler
=yes
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.
$ac_ext >&5
5459 ac_header_compiler
=no
5461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5463 echo "${ECHO_T}$ac_header_compiler" >&6
5465 # Is the header present?
5466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5468 cat >conftest.
$ac_ext <<_ACEOF
5471 cat confdefs.h
>>conftest.
$ac_ext
5472 cat >>conftest.
$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <$ac_header>
5476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1
>conftest.err
5481 cat conftest.err
>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev
/null
; then
5484 if test -s conftest.err
; then
5485 ac_cpp_err
=$ac_c_preproc_warn_flag
5486 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5493 if test -z "$ac_cpp_err"; then
5494 ac_header_preproc
=yes
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5499 ac_header_preproc
=no
5501 rm -f conftest.err conftest.
$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503 echo "${ECHO_T}$ac_header_preproc" >&6
5505 # So? What about this header?
5506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5512 ac_header_preproc
=yes
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5529 ## ------------------------------------------ ##
5530 ## Report this to the AC_PACKAGE_NAME lists. ##
5531 ## ------------------------------------------ ##
5534 sed "s/^/$as_me: WARNING: /" >&2
5537 echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 eval "$as_ac_Header=\$ac_header_preproc"
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 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
5558 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5559 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5560 cat >conftest.
$ac_ext <<_ACEOF
5563 cat confdefs.h
>>conftest.
$ac_ext
5564 cat >>conftest.
$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <sys/personality.h>
5570 personality (PER_LINUX32)
5575 rm -f conftest.
$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>conftest.er1
5579 grep -v '^ *+' conftest.er1
>conftest.err
5581 cat conftest.err
>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 emacs_cv_personality_linux32
=yes
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.
$ac_ext >&5
5601 emacs_cv_personality_linux32
=no
5603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5605 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5607 if test $emacs_cv_personality_linux32 = yes; then
5609 cat >>confdefs.h
<<\_ACEOF
5610 #define HAVE_PERSONALITY_LINUX32 1
5616 for ac_header
in term.h
5618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5619 echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 cat >conftest.
$ac_ext <<_ACEOF
5627 cat confdefs.h
>>conftest.
$ac_ext
5628 cat >>conftest.
$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <$ac_header>
5632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev
/null
; then
5640 if test -s conftest.err
; then
5641 ac_cpp_err
=$ac_c_preproc_warn_flag
5642 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5649 if test -z "$ac_cpp_err"; then
5650 eval "$as_ac_Header=yes"
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.
$ac_ext >&5
5655 eval "$as_ac_Header=no"
5657 rm -f conftest.err conftest.
$ac_ext
5659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662 cat >>confdefs.h
<<_ACEOF
5663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5670 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5671 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5672 if test "${ac_cv_header_stdc+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 cat >conftest.
$ac_ext <<_ACEOF
5678 cat confdefs.h
>>conftest.
$ac_ext
5679 cat >>conftest.
$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5694 rm -f conftest.
$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5698 grep -v '^ *+' conftest.er1
>conftest.err
5700 cat conftest.err
>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try
='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_header_stdc
=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.
$ac_ext >&5
5720 ac_cv_header_stdc
=no
5722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 if test $ac_cv_header_stdc = yes; then
5725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5726 cat >conftest.
$ac_ext <<_ACEOF
5729 cat confdefs.h
>>conftest.
$ac_ext
5730 cat >>conftest.
$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736 $EGREP "memchr" >/dev
/null
2>&1; then
5739 ac_cv_header_stdc
=no
5745 if test $ac_cv_header_stdc = yes; then
5746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5747 cat >conftest.
$ac_ext <<_ACEOF
5750 cat confdefs.h
>>conftest.
$ac_ext
5751 cat >>conftest.
$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757 $EGREP "free" >/dev
/null
2>&1; then
5760 ac_cv_header_stdc
=no
5766 if test $ac_cv_header_stdc = yes; then
5767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5768 if test "$cross_compiling" = yes; then
5771 cat >conftest.
$ac_ext <<_ACEOF
5774 cat confdefs.h
>>conftest.
$ac_ext
5775 cat >>conftest.
$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 #if ((' ' & 0x0FF) == 0x020)
5779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5782 # define ISLOWER(c) \
5783 (('a' <= (c) && (c) <= 'i') \
5784 || ('j' <= (c) && (c) <= 'r') \
5785 || ('s' <= (c) && (c) <= 'z'))
5786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5794 for (i = 0; i < 256; i++)
5795 if (XOR (islower (i), ISLOWER (i))
5796 || toupper (i) != TOUPPER (i))
5801 rm -f conftest
$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5814 echo "$as_me: program exited with status $ac_status" >&5
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.
$ac_ext >&5
5819 ac_cv_header_stdc
=no
5821 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5826 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5827 if test $ac_cv_header_stdc = yes; then
5829 cat >>confdefs.h
<<\_ACEOF
5830 #define STDC_HEADERS 1
5835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5837 if test "${ac_cv_header_time+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.
$ac_ext <<_ACEOF
5843 cat confdefs.h
>>conftest.
$ac_ext
5844 cat >>conftest.
$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <sys/types.h>
5847 #include <sys/time.h>
5853 if ((struct tm *) 0)
5859 rm -f conftest.
$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1
>conftest.err
5865 cat conftest.err
>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try
='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_header_time
=yes
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.
$ac_ext >&5
5885 ac_cv_header_time
=no
5887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5890 echo "${ECHO_T}$ac_cv_header_time" >&6
5891 if test $ac_cv_header_time = yes; then
5893 cat >>confdefs.h
<<\_ACEOF
5894 #define TIME_WITH_SYS_TIME 1
5899 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5900 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5901 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 cat >conftest.
$ac_ext <<_ACEOF
5907 cat confdefs.h
>>conftest.
$ac_ext
5908 cat >>conftest.
$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5915 char *p = (char *) sys_siglist;
5922 rm -f conftest.
$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5926 grep -v '^ *+' conftest.er1
>conftest.err
5928 cat conftest.err
>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try
='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_have_decl_sys_siglist
=yes
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 ac_cv_have_decl_sys_siglist
=no
5950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5953 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5954 if test $ac_cv_have_decl_sys_siglist = yes; then
5956 cat >>confdefs.h
<<_ACEOF
5957 #define HAVE_DECL_SYS_SIGLIST 1
5962 cat >>confdefs.h
<<_ACEOF
5963 #define HAVE_DECL_SYS_SIGLIST 0
5970 if test $ac_cv_have_decl_sys_siglist != yes; then
5971 # For Tru64, at least:
5972 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5973 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5974 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5987 #ifndef __sys_siglist
5988 char *p = (char *) __sys_siglist;
5995 rm -f conftest.
$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5999 grep -v '^ *+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try
='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_have_decl___sys_siglist
=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.
$ac_ext >&5
6021 ac_cv_have_decl___sys_siglist
=no
6023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6026 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6027 if test $ac_cv_have_decl___sys_siglist = yes; then
6029 cat >>confdefs.h
<<_ACEOF
6030 #define HAVE_DECL___SYS_SIGLIST 1
6035 cat >>confdefs.h
<<_ACEOF
6036 #define HAVE_DECL___SYS_SIGLIST 0
6043 if test $ac_cv_have_decl___sys_siglist = yes; then
6045 cat >>confdefs.h
<<\_ACEOF
6046 #define sys_siglist __sys_siglist
6051 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6052 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6053 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <sys/types.h>
6063 #include <sys/wait.h>
6065 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6068 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6076 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6081 rm -f conftest.
$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1
>conftest.err
6087 cat conftest.err
>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try
='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_header_sys_wait_h
=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.
$ac_ext >&5
6107 ac_cv_header_sys_wait_h
=no
6109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6113 if test $ac_cv_header_sys_wait_h = yes; then
6115 cat >>confdefs.h
<<\_ACEOF
6116 #define HAVE_SYS_WAIT_H 1
6122 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6123 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6124 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.
$ac_ext <<_ACEOF
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #ifdef TIME_WITH_SYS_TIME
6134 #include <sys/time.h>
6137 #ifdef HAVE_SYS_TIME_H
6138 #include <sys/time.h>
6149 static struct utimbuf x; x.actime = x.modtime;
6154 rm -f conftest.
$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1
>conftest.err
6160 cat conftest.err
>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try
='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 emacs_cv_struct_utimbuf
=yes
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.
$ac_ext >&5
6180 emacs_cv_struct_utimbuf
=no
6182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6184 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6185 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6186 if test $emacs_cv_struct_utimbuf = yes; then
6188 cat >>confdefs.h
<<\_ACEOF
6189 #define HAVE_STRUCT_UTIMBUF 1
6194 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6195 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6196 if test "${ac_cv_type_signal+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 cat >conftest.
$ac_ext <<_ACEOF
6202 cat confdefs.h
>>conftest.
$ac_ext
6203 cat >>conftest.
$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <sys/types.h>
6211 extern "C" void (*signal (int, void (*)(int)))(int);
6213 void (*signal ()) ();
6224 rm -f conftest.
$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1
>conftest.err
6230 cat conftest.err
>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try
='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_type_signal
=void
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.
$ac_ext >&5
6250 ac_cv_type_signal
=int
6252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6255 echo "${ECHO_T}$ac_cv_type_signal" >&6
6257 cat >>confdefs.h
<<_ACEOF
6258 #define RETSIGTYPE $ac_cv_type_signal
6263 echo "$as_me:$LINENO: checking for speed_t" >&5
6264 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6265 if test "${emacs_cv_speed_t+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 cat >conftest.
$ac_ext <<_ACEOF
6271 cat confdefs.h
>>conftest.
$ac_ext
6272 cat >>conftest.
$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <termios.h>
6283 rm -f conftest.
$ac_objext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>conftest.er1
6287 grep -v '^ *+' conftest.er1
>conftest.err
6289 cat conftest.err
>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try
='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 emacs_cv_speed_t
=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.
$ac_ext >&5
6311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6313 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6314 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6315 if test $emacs_cv_speed_t = yes; then
6317 cat >>confdefs.h
<<\_ACEOF
6318 #define HAVE_SPEED_T 1
6323 echo "$as_me:$LINENO: checking for struct timeval" >&5
6324 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6325 if test "${emacs_cv_struct_timeval+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.
$ac_ext <<_ACEOF
6331 cat confdefs.h
>>conftest.
$ac_ext
6332 cat >>conftest.
$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #ifdef TIME_WITH_SYS_TIME
6335 #include <sys/time.h>
6338 #ifdef HAVE_SYS_TIME_H
6339 #include <sys/time.h>
6347 static struct timeval x; x.tv_sec = x.tv_usec;
6352 rm -f conftest.
$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6356 grep -v '^ *+' conftest.er1
>conftest.err
6358 cat conftest.err
>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try
='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 emacs_cv_struct_timeval
=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.
$ac_ext >&5
6378 emacs_cv_struct_timeval
=no
6380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6382 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6383 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6384 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6385 if test $emacs_cv_struct_timeval = yes; then
6387 cat >>confdefs.h
<<\_ACEOF
6388 #define HAVE_TIMEVAL 1
6393 echo "$as_me:$LINENO: checking for struct exception" >&5
6394 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6395 if test "${emacs_cv_struct_exception+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.
$ac_ext <<_ACEOF
6401 cat confdefs.h
>>conftest.
$ac_ext
6402 cat >>conftest.
$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6408 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6413 rm -f conftest.
$ac_objext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415 (eval $ac_compile) 2>conftest.er1
6417 grep -v '^ *+' conftest.er1
>conftest.err
6419 cat conftest.err
>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try
='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_struct_exception
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 emacs_cv_struct_exception
=no
6441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6444 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6445 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6446 if test $emacs_cv_struct_exception != yes; then
6448 cat >>confdefs.h
<<\_ACEOF
6449 #define NO_MATHERR 1
6455 for ac_header
in sys
/socket.h
6457 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.
$ac_ext <<_ACEOF
6473 cat confdefs.h
>>conftest.
$ac_ext
6474 cat >>conftest.
$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6479 rm -f conftest.
$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try
='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_header_compiler
=yes
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.
$ac_ext >&5
6505 ac_header_compiler
=no
6507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509 echo "${ECHO_T}$ac_header_compiler" >&6
6511 # Is the header present?
6512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514 cat >conftest.
$ac_ext <<_ACEOF
6517 cat confdefs.h
>>conftest.
$ac_ext
6518 cat >>conftest.
$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <$ac_header>
6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1
>conftest.err
6527 cat conftest.err
>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev
/null
; then
6530 if test -s conftest.err
; then
6531 ac_cpp_err
=$ac_c_preproc_warn_flag
6532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6539 if test -z "$ac_cpp_err"; then
6540 ac_header_preproc
=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 ac_header_preproc
=no
6547 rm -f conftest.err conftest.
$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549 echo "${ECHO_T}$ac_header_preproc" >&6
6551 # So? What about this header?
6552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc
=yes
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6575 ## ------------------------------------------ ##
6576 ## Report this to the AC_PACKAGE_NAME lists. ##
6577 ## ------------------------------------------ ##
6580 sed "s/^/$as_me: WARNING: /" >&2
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 eval "$as_ac_Header=\$ac_header_preproc"
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h
<<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604 for ac_header
in net
/if.h
6606 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 cat >conftest.
$ac_ext <<_ACEOF
6615 cat confdefs.h
>>conftest.
$ac_ext
6616 cat >>conftest.
$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 #if HAVE_SYS_SOCKET_H
6620 #include <sys/socket.h>
6623 #include <$ac_header>
6625 rm -f conftest.
$ac_objext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>conftest.er1
6629 grep -v '^ *+' conftest.er1
>conftest.err
6631 cat conftest.err
>&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 eval "$as_ac_Header=yes"
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 eval "$as_ac_Header=no"
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h
<<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6669 if test "${ac_cv_struct_tm+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.
$ac_ext <<_ACEOF
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <sys/types.h>
6684 struct tm *tp; tp->tm_sec;
6689 rm -f conftest.
$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1
>conftest.err
6695 cat conftest.err
>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try
='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_struct_tm
=time.h
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.
$ac_ext >&5
6715 ac_cv_struct_tm
=sys
/time.h
6717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6720 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6721 if test $ac_cv_struct_tm = sys
/time.h
; then
6723 cat >>confdefs.h
<<\_ACEOF
6724 #define TM_IN_SYS_TIME 1
6729 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.
$ac_ext <<_ACEOF
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <$ac_cv_struct_tm>
6747 static struct tm ac_aggr;
6748 if (ac_aggr.tm_zone)
6754 rm -f conftest.
$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1
>conftest.err
6760 cat conftest.err
>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try
='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_member_struct_tm_tm_zone
=yes
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.
$ac_ext >&5
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <$ac_cv_struct_tm>
6793 static struct tm ac_aggr;
6794 if (sizeof ac_aggr.tm_zone)
6800 rm -f conftest.
$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try
='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_member_struct_tm_tm_zone
=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6826 ac_cv_member_struct_tm_tm_zone
=no
6828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6833 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6834 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6836 cat >>confdefs.h
<<_ACEOF
6837 #define HAVE_STRUCT_TM_TM_ZONE 1
6843 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6845 cat >>confdefs.h
<<\_ACEOF
6846 #define HAVE_TM_ZONE 1
6850 echo "$as_me:$LINENO: checking for tzname" >&5
6851 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6852 if test "${ac_cv_var_tzname+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6862 #ifndef tzname /* For SGI. */
6863 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6874 rm -f conftest.
$ac_objext conftest
$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6878 grep -v '^ *+' conftest.er1
>conftest.err
6880 cat conftest.err
>&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try
='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_var_tzname
=yes
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.
$ac_ext >&5
6902 rm -f conftest.err conftest.
$ac_objext \
6903 conftest
$ac_exeext conftest.
$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6906 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6907 if test $ac_cv_var_tzname = yes; then
6909 cat >>confdefs.h
<<\_ACEOF
6910 #define HAVE_TZNAME 1
6916 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6917 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6918 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.
$ac_ext <<_ACEOF
6924 cat confdefs.h
>>conftest.
$ac_ext
6925 cat >>conftest.
$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6932 static struct tm ac_aggr;
6933 if (ac_aggr.tm_gmtoff)
6939 rm -f conftest.
$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6943 grep -v '^ *+' conftest.er1
>conftest.err
6945 cat conftest.err
>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try
='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_member_struct_tm_tm_gmtoff
=yes
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.
$ac_ext >&5
6965 cat >conftest.
$ac_ext <<_ACEOF
6968 cat confdefs.h
>>conftest.
$ac_ext
6969 cat >>conftest.
$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6976 static struct tm ac_aggr;
6977 if (sizeof ac_aggr.tm_gmtoff)
6983 rm -f conftest.
$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try
='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_member_struct_tm_tm_gmtoff
=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7009 ac_cv_member_struct_tm_tm_gmtoff
=no
7011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7016 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7017 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7019 cat >>confdefs.h
<<\_ACEOF
7020 #define HAVE_TM_GMTOFF 1
7025 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7026 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7027 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.
$ac_ext <<_ACEOF
7033 cat confdefs.h
>>conftest.
$ac_ext
7034 cat >>conftest.
$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7037 #if HAVE_SYS_SOCKET_H
7038 #include <sys/socket.h>
7047 static struct ifreq ac_aggr;
7048 if (ac_aggr.ifr_flags)
7054 rm -f conftest.
$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try
='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_member_struct_ifreq_ifr_flags
=yes
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.
$ac_ext >&5
7080 cat >conftest.
$ac_ext <<_ACEOF
7083 cat confdefs.h
>>conftest.
$ac_ext
7084 cat >>conftest.
$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7087 #if HAVE_SYS_SOCKET_H
7088 #include <sys/socket.h>
7097 static struct ifreq ac_aggr;
7098 if (sizeof ac_aggr.ifr_flags)
7104 rm -f conftest.
$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7108 grep -v '^ *+' conftest.er1
>conftest.err
7110 cat conftest.err
>&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try
='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_member_struct_ifreq_ifr_flags
=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_cv_member_struct_ifreq_ifr_flags
=no
7132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7137 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7138 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7140 cat >>confdefs.h
<<_ACEOF
7141 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7146 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7147 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7148 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7154 cat confdefs.h
>>conftest.
$ac_ext
7155 cat >>conftest.
$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 $ac_includes_default
7158 #if HAVE_SYS_SOCKET_H
7159 #include <sys/socket.h>
7168 static struct ifreq ac_aggr;
7169 if (ac_aggr.ifr_hwaddr)
7175 rm -f conftest.
$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try
='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7201 cat >conftest.
$ac_ext <<_ACEOF
7204 cat confdefs.h
>>conftest.
$ac_ext
7205 cat >>conftest.
$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 #if HAVE_SYS_SOCKET_H
7209 #include <sys/socket.h>
7218 static struct ifreq ac_aggr;
7219 if (sizeof ac_aggr.ifr_hwaddr)
7225 rm -f conftest.
$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1
>conftest.err
7231 cat conftest.err
>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try
='test -s conftest.$ac_objext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7251 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7259 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7261 cat >>confdefs.h
<<_ACEOF
7262 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7267 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7268 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 cat >conftest.
$ac_ext <<_ACEOF
7275 cat confdefs.h
>>conftest.
$ac_ext
7276 cat >>conftest.
$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 #if HAVE_SYS_SOCKET_H
7280 #include <sys/socket.h>
7289 static struct ifreq ac_aggr;
7290 if (ac_aggr.ifr_netmask)
7296 rm -f conftest.
$ac_objext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>conftest.er1
7300 grep -v '^ *+' conftest.er1
>conftest.err
7302 cat conftest.err
>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try
='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.
$ac_ext >&5
7322 cat >conftest.
$ac_ext <<_ACEOF
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 #if HAVE_SYS_SOCKET_H
7330 #include <sys/socket.h>
7339 static struct ifreq ac_aggr;
7340 if (sizeof ac_aggr.ifr_netmask)
7346 rm -f conftest.
$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7350 grep -v '^ *+' conftest.er1
>conftest.err
7352 cat conftest.err
>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try
='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 ac_cv_member_struct_ifreq_ifr_netmask
=no
7374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7379 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7380 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7382 cat >>confdefs.h
<<_ACEOF
7383 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7388 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7389 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7390 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 cat >conftest.
$ac_ext <<_ACEOF
7396 cat confdefs.h
>>conftest.
$ac_ext
7397 cat >>conftest.
$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 #if HAVE_SYS_SOCKET_H
7401 #include <sys/socket.h>
7410 static struct ifreq ac_aggr;
7411 if (ac_aggr.ifr_broadaddr)
7417 rm -f conftest.
$ac_objext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419 (eval $ac_compile) 2>conftest.er1
7421 grep -v '^ *+' conftest.er1
>conftest.err
7423 cat conftest.err
>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try
='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.
$ac_ext >&5
7443 cat >conftest.
$ac_ext <<_ACEOF
7446 cat confdefs.h
>>conftest.
$ac_ext
7447 cat >>conftest.
$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7450 #if HAVE_SYS_SOCKET_H
7451 #include <sys/socket.h>
7460 static struct ifreq ac_aggr;
7461 if (sizeof ac_aggr.ifr_broadaddr)
7467 rm -f conftest.
$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>conftest.er1
7471 grep -v '^ *+' conftest.er1
>conftest.err
7473 cat conftest.err
>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try
='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.
$ac_ext >&5
7493 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7500 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7501 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7503 cat >>confdefs.h
<<_ACEOF
7504 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7509 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7510 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7511 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.
$ac_ext <<_ACEOF
7517 cat confdefs.h
>>conftest.
$ac_ext
7518 cat >>conftest.
$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7521 #if HAVE_SYS_SOCKET_H
7522 #include <sys/socket.h>
7531 static struct ifreq ac_aggr;
7532 if (ac_aggr.ifr_addr)
7538 rm -f conftest.
$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7542 grep -v '^ *+' conftest.er1
>conftest.err
7544 cat conftest.err
>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try
='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_member_struct_ifreq_ifr_addr
=yes
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.
$ac_ext >&5
7564 cat >conftest.
$ac_ext <<_ACEOF
7567 cat confdefs.h
>>conftest.
$ac_ext
7568 cat >>conftest.
$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #if HAVE_SYS_SOCKET_H
7572 #include <sys/socket.h>
7581 static struct ifreq ac_aggr;
7582 if (sizeof ac_aggr.ifr_addr)
7588 rm -f conftest.
$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>conftest.er1
7592 grep -v '^ *+' conftest.er1
>conftest.err
7594 cat conftest.err
>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try
='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_member_struct_ifreq_ifr_addr
=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.
$ac_ext >&5
7614 ac_cv_member_struct_ifreq_ifr_addr
=no
7616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7621 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7622 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7624 cat >>confdefs.h
<<_ACEOF
7625 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7633 echo "$as_me:$LINENO: checking for function prototypes" >&5
7634 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7635 if test "$ac_cv_prog_cc_stdc" != no
; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6
7639 cat >>confdefs.h
<<\_ACEOF
7640 #define PROTOTYPES 1
7644 cat >>confdefs.h
<<\_ACEOF
7645 #define __PROTOTYPES 1
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7653 echo "$as_me:$LINENO: checking for working volatile" >&5
7654 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7655 if test "${ac_cv_c_volatile+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 cat >conftest.
$ac_ext <<_ACEOF
7661 cat confdefs.h
>>conftest.
$ac_ext
7662 cat >>conftest.
$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7675 rm -f conftest.
$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7679 grep -v '^ *+' conftest.er1
>conftest.err
7681 cat conftest.err
>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try
='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_c_volatile
=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.
$ac_ext >&5
7703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7706 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7707 if test $ac_cv_c_volatile = no
; then
7709 cat >>confdefs.h
<<\_ACEOF
7715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7717 if test "${ac_cv_c_const+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7730 /* FIXME: Include the comments suggested by Paul. */
7732 /* Ultrix mips cc rejects this. */
7733 typedef int charset[2];
7735 /* SunOS 4.1.1 cc rejects this. */
7736 char const *const *ccp;
7738 /* NEC SVR4.0.2 mips cc rejects this. */
7739 struct point {int x, y;};
7740 static struct point const zero = {0,0};
7741 /* AIX XL C 1.02.0.0 rejects this.
7742 It does not let you subtract one const X* pointer from another in
7743 an arm of an if-expression whose if-part is not a constant
7745 const char *g = "string";
7746 ccp = &g + (g ? g-g : 0);
7747 /* HPUX 7.0 cc rejects these. */
7750 ccp = (char const *const *) p;
7751 { /* SCO 3.2v4 cc rejects this. */
7753 char const *s = 0 ? (char *) 0 : (char const *) 0;
7757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7759 const int *foo = &x[0];
7762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7763 typedef const int *iptr;
7767 { /* AIX XL C 1.02.0.0 rejects this saying
7768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7769 struct s { int j; const int *ap[3]; };
7770 struct s *b; b->j = 5;
7772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7781 rm -f conftest.
$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7785 grep -v '^ *+' conftest.er1
>conftest.err
7787 cat conftest.err
>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try
='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.
$ac_ext >&5
7809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7812 echo "${ECHO_T}$ac_cv_c_const" >&6
7813 if test $ac_cv_c_const = no
; then
7815 cat >>confdefs.h
<<\_ACEOF
7821 echo "$as_me:$LINENO: checking for void * support" >&5
7822 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7823 if test "${emacs_cv_void_star+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 cat >conftest.
$ac_ext <<_ACEOF
7829 cat confdefs.h
>>conftest.
$ac_ext
7830 cat >>conftest.
$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7841 rm -f conftest.
$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7845 grep -v '^ *+' conftest.er1
>conftest.err
7847 cat conftest.err
>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try
='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 emacs_cv_void_star
=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.
$ac_ext >&5
7867 emacs_cv_void_star
=no
7869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7871 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7872 echo "${ECHO_T}$emacs_cv_void_star" >&6
7873 if test $emacs_cv_void_star = yes; then
7874 cat >>confdefs.h
<<\_ACEOF
7875 #define POINTER_TYPE void
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define POINTER_TYPE char
7889 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7890 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7891 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7892 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 cat >conftest.
make <<\_ACEOF
7897 @
echo 'ac_maketemp="$(MAKE)"'
7899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7900 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7901 if test -n "$ac_maketemp"; then
7902 eval ac_cv_prog_make_
${ac_make}_set
=yes
7904 eval ac_cv_prog_make_
${ac_make}_set
=no
7908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7913 echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6
7915 SET_MAKE
="MAKE=${MAKE-make}"
7919 echo "$as_me:$LINENO: checking for long file names" >&5
7920 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7921 if test "${ac_cv_sys_long_file_names+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_cv_sys_long_file_names
=yes
7925 # Test for long file names in all the places we know might matter:
7926 # . the current directory, where building will happen
7927 # $prefix/lib where we will be installing things
7928 # $exec_prefix/lib likewise
7929 # eval it to expand exec_prefix.
7930 # $TMPDIR if set, where it might want to write temporary files
7931 # if $TMPDIR is not set:
7932 # /tmp where it might want to write temporary files
7935 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7938 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7940 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7941 test -d $ac_dir ||
continue
7942 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7943 ac_xdir
=$ac_dir/cf$$
7944 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7945 ac_tf1
=$ac_xdir/conftest9012345
7946 ac_tf2
=$ac_xdir/conftest9012346
7947 (echo 1 >$ac_tf1) 2>/dev
/null
7948 (echo 2 >$ac_tf2) 2>/dev
/null
7949 ac_val
=`cat $ac_tf1 2>/dev/null`
7950 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7951 ac_cv_sys_long_file_names
=no
7952 rm -rf $ac_xdir 2>/dev
/null
7955 rm -rf $ac_xdir 2>/dev
/null
7958 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7959 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7960 if test $ac_cv_sys_long_file_names = yes; then
7962 cat >>confdefs.h
<<\_ACEOF
7963 #define HAVE_LONG_FILE_NAMES 1
7969 #### Choose a window system.
7971 echo "$as_me:$LINENO: checking for X" >&5
7972 echo $ECHO_N "checking for X... $ECHO_C" >&6
7974 ac_path_x_has_been_run
=yes
7976 # Check whether --with-x or --without-x was given.
7977 if test "${with_x+set}" = set; then
7981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7982 if test "x$with_x" = xno
; then
7983 # The user explicitly disabled X.
7986 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7987 # Both variables are already set.
7990 if test "${ac_cv_have_x+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 # One or both of the vars are not set, and there is no cached value.
7994 ac_x_includes
=no ac_x_libraries
=no
7996 if mkdir conftest.dir
; then
7998 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7999 cat >Imakefile
<<'_ACEOF'
8001 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8003 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8005 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8006 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8007 for ac_extension
in a so sl
; do
8008 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8009 test -f $ac_im_libdir/libX11.
$ac_extension; then
8010 ac_im_usrlibdir
=$ac_im_libdir; break
8013 # Screen out bogus values from the imake configuration. They are
8014 # bogus both because they are the default anyway, and because
8015 # using them would break gcc on systems where it needs fixed includes.
8016 case $ac_im_incroot in
8018 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8020 case $ac_im_usrlibdir in
8022 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8029 # Standard set of common directories for X headers.
8030 # Check X11 before X11Rn because it is often a symlink to the current release.
8042 /usr/local/X11/include
8043 /usr/local/X11R6/include
8044 /usr/local/X11R5/include
8045 /usr/local/X11R4/include
8047 /usr/local/include/X11
8048 /usr/local/include/X11R6
8049 /usr/local/include/X11R5
8050 /usr/local/include/X11R4
8054 /usr/XFree86/include/X11
8058 /usr/unsupported/include
8060 /usr/local/x11r5/include
8061 /usr/lpp/Xamples/include
8063 /usr/openwin/include
8064 /usr/openwin/share/include'
8066 if test "$ac_x_includes" = no
; then
8067 # Guess where to find include files, by looking for a specified header file.
8068 # First, try using that file with no special directory specified.
8069 cat >conftest.
$ac_ext <<_ACEOF
8072 cat confdefs.h
>>conftest.
$ac_ext
8073 cat >>conftest.
$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 #include <X11/Intrinsic.h>
8077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8080 grep -v '^ *+' conftest.er1
>conftest.err
8082 cat conftest.err
>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } >/dev
/null
; then
8085 if test -s conftest.err
; then
8086 ac_cpp_err
=$ac_c_preproc_warn_flag
8087 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8094 if test -z "$ac_cpp_err"; then
8095 # We can compile using X headers with no special include directory.
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8101 for ac_dir
in $ac_x_header_dirs; do
8102 if test -r "$ac_dir/X11/Intrinsic.h"; then
8103 ac_x_includes
=$ac_dir
8108 rm -f conftest.err conftest.
$ac_ext
8109 fi # $ac_x_includes = no
8111 if test "$ac_x_libraries" = no
; then
8112 # Check for the libraries.
8113 # See if we find them without any special options.
8114 # Don't add to $LIBS permanently.
8117 cat >conftest.
$ac_ext <<_ACEOF
8120 cat confdefs.h
>>conftest.
$ac_ext
8121 cat >>conftest.
$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <X11/Intrinsic.h>
8132 rm -f conftest.
$ac_objext conftest
$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1
>conftest.err
8138 cat conftest.err
>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try
='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8154 # We can link X programs with no special library path.
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.
$ac_ext >&5
8161 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8163 # Don't even attempt the hair of trying to link an X program!
8164 for ac_extension
in a so sl
; do
8165 if test -r $ac_dir/libXt.
$ac_extension; then
8166 ac_x_libraries
=$ac_dir
8172 rm -f conftest.err conftest.
$ac_objext \
8173 conftest
$ac_exeext conftest.
$ac_ext
8174 fi # $ac_x_libraries = no
8176 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8177 # Didn't find X anywhere. Cache the known absence of X.
8178 ac_cv_have_x
="have_x=no"
8180 # Record where we found X for the cache.
8181 ac_cv_have_x
="have_x=yes \
8182 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8187 eval "$ac_cv_have_x"
8190 if test "$have_x" != yes; then
8191 echo "$as_me:$LINENO: result: $have_x" >&5
8192 echo "${ECHO_T}$have_x" >&6
8195 # If each of the values was on the command line, it overrides each guess.
8196 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8197 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8198 # Update the cache value to reflect the command line values.
8199 ac_cv_have_x
="have_x=yes \
8200 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8201 # It might be that x_includes is empty (headers are found in the
8202 # standard search path. Then output the corresponding message
8203 ac_out_x_includes
=$x_includes
8204 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8205 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8206 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8209 if test "$no_x" = yes; then
8215 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8216 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8217 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8218 x_default_search_path
=""
8219 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8221 ${x_library}/X11/%L/%T/%N%C%S:\
8222 ${x_library}/X11/%l/%T/%N%C%S:\
8223 ${x_library}/X11/%T/%N%C%S:\
8224 ${x_library}/X11/%L/%T/%N%S:\
8225 ${x_library}/X11/%l/%T/%N%S:\
8226 ${x_library}/X11/%T/%N%S"
8227 if test x
"${x_default_search_path}" = x
; then
8228 x_default_search_path
=${x_search_path}
8230 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8234 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8235 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8238 if test x
"${x_includes}" = x
; then
8239 bitmapdir
=/usr
/include
/X11
/bitmaps
8241 # accumulate include directories that have X11 bitmap subdirectories
8243 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8244 if test -d "${bmd}/X11/bitmaps"; then
8245 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8247 if test -d "${bmd}/bitmaps"; then
8248 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8251 if test ${bmd_acc} != "dummyval"; then
8252 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8257 if test "${with_carbon}" != no
; then
8258 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8259 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8260 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8265 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8267 # Is the header compilable?
8268 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8269 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #include <Carbon/Carbon.h>
8279 rm -f conftest.
$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try
='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_header_compiler
=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.
$ac_ext >&5
8305 ac_header_compiler
=no
8307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6
8311 # Is the header present?
8312 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8313 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8314 cat >conftest.
$ac_ext <<_ACEOF
8317 cat confdefs.h
>>conftest.
$ac_ext
8318 cat >>conftest.
$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <Carbon/Carbon.h>
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8325 grep -v '^ *+' conftest.er1
>conftest.err
8327 cat conftest.err
>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } >/dev
/null
; then
8330 if test -s conftest.err
; then
8331 ac_cpp_err
=$ac_c_preproc_warn_flag
8332 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8339 if test -z "$ac_cpp_err"; then
8340 ac_header_preproc
=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.
$ac_ext >&5
8345 ac_header_preproc
=no
8347 rm -f conftest.err conftest.
$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8349 echo "${ECHO_T}$ac_header_preproc" >&6
8351 # So? What about this header?
8352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8354 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8355 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8357 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8358 ac_header_preproc
=yes
8361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8362 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8364 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8366 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8368 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8370 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8372 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8375 ## ------------------------------------------ ##
8376 ## Report this to the AC_PACKAGE_NAME lists. ##
8377 ## ------------------------------------------ ##
8380 sed "s/^/$as_me: WARNING: /" >&2
8383 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8390 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8391 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8394 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8400 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8401 if test "${with_carbon+set}" != set \
8402 && test "${carbon_appdir_x+set}" != set; then
8406 if test "${HAVE_CARBON}" = yes; then
8410 case "${window_system}" in
8414 case "${with_x_toolkit}" in
8415 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8416 motif
) USE_X_TOOLKIT
=MOTIF
;;
8418 USE_X_TOOLKIT
=none
;;
8419 no
) USE_X_TOOLKIT
=none
;;
8420 * ) USE_X_TOOLKIT
=maybe
;;
8430 ### If we're using X11, we should use the X menu package.
8433 yes ) HAVE_MENUS
=yes ;;
8436 if test "${opsys}" = "hpux9"; then
8437 case "${x_libraries}" in
8439 opsysfile
="s/hpux9-x11r4.h"
8444 if test "${opsys}" = "hpux9shr"; then
8445 case "${x_libraries}" in
8447 opsysfile
="s/hpux9shxr4.h"
8452 ### Compute the unexec source name from the object name.
8453 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8455 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8456 # Assume not, until told otherwise.
8459 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8460 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8461 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.
$ac_ext <<_ACEOF
8467 cat confdefs.h
>>conftest.
$ac_ext
8468 cat >>conftest.
$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472 #define malloc_get_state innocuous_malloc_get_state
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char malloc_get_state (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8480 # include <limits.h>
8482 # include <assert.h>
8485 #undef malloc_get_state
8487 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char malloc_get_state ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8501 char (*f) () = malloc_get_state;
8510 return f != malloc_get_state;
8515 rm -f conftest.
$ac_objext conftest
$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1
>conftest.err
8521 cat conftest.err
>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try
='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_malloc_get_state
=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 ac_cv_func_malloc_get_state
=no
8543 rm -f conftest.err conftest.
$ac_objext \
8544 conftest
$ac_exeext conftest.
$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8547 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8548 if test $ac_cv_func_malloc_get_state = yes; then
8554 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8555 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8556 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 cat >conftest.
$ac_ext <<_ACEOF
8562 cat confdefs.h
>>conftest.
$ac_ext
8563 cat >>conftest.
$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8567 #define malloc_set_state innocuous_malloc_set_state
8569 /* System header to define __stub macros and hopefully few prototypes,
8570 which can conflict with char malloc_set_state (); below.
8571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 <limits.h> exists even on freestanding compilers. */
8575 # include <limits.h>
8577 # include <assert.h>
8580 #undef malloc_set_state
8582 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char malloc_set_state ();
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8596 char (*f) () = malloc_set_state;
8605 return f != malloc_set_state;
8610 rm -f conftest.
$ac_objext conftest
$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try
='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_func_malloc_set_state
=yes
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.
$ac_ext >&5
8636 ac_cv_func_malloc_set_state
=no
8638 rm -f conftest.err conftest.
$ac_objext \
8639 conftest
$ac_exeext conftest.
$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8642 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8643 if test $ac_cv_func_malloc_set_state = yes; then
8649 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8650 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8651 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 extern void (* __after_morecore_hook)();
8664 __after_morecore_hook = 0
8669 rm -f conftest.
$ac_objext conftest
$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8673 grep -v '^ *+' conftest.er1
>conftest.err
8675 cat conftest.err
>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try
='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 emacs_cv_var___after_morecore_hook
=yes
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.
$ac_ext >&5
8695 emacs_cv_var___after_morecore_hook
=no
8697 rm -f conftest.err conftest.
$ac_objext \
8698 conftest
$ac_exeext conftest.
$ac_ext
8700 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8701 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8702 if test $emacs_cv_var___after_morecore_hook = no
; then
8705 if test "${system_malloc}" = "yes"; then
8708 (The GNU allocators don't work with this system configuration.)"
8710 if test "$doug_lea_malloc" = "yes" ; then
8711 if test "$GNU_MALLOC" = yes ; then
8713 (Using Doug Lea's new malloc from the GNU C Library.)"
8716 cat >>confdefs.h
<<\_ACEOF
8717 #define DOUG_LEA_MALLOC 1
8722 if test x
"${REL_ALLOC}" = x
; then
8723 REL_ALLOC
=${GNU_MALLOC}
8729 for ac_header
in stdlib.h unistd.h
8731 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8741 # Is the header compilable?
8742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8744 cat >conftest.
$ac_ext <<_ACEOF
8747 cat confdefs.h
>>conftest.
$ac_ext
8748 cat >>conftest.
$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 #include <$ac_header>
8753 rm -f conftest.
$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8757 grep -v '^ *+' conftest.er1
>conftest.err
8759 cat conftest.err
>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try
='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler
=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.
$ac_ext >&5
8779 ac_header_compiler
=no
8781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.
$ac_ext <<_ACEOF
8791 cat confdefs.h
>>conftest.
$ac_ext
8792 cat >>conftest.
$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <$ac_header>
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1
>conftest.err
8801 cat conftest.err
>&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev
/null
; then
8804 if test -s conftest.err
; then
8805 ac_cpp_err
=$ac_c_preproc_warn_flag
8806 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc
=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8819 ac_header_preproc
=no
8821 rm -f conftest.err conftest.
$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc
=yes
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8849 ## ------------------------------------------ ##
8850 ## Report this to the AC_PACKAGE_NAME lists. ##
8851 ## ------------------------------------------ ##
8854 sed "s/^/$as_me: WARNING: /" >&2
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 eval "$as_ac_Header=\$ac_header_preproc"
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8869 cat >>confdefs.h
<<_ACEOF
8870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8878 for ac_func
in getpagesize
8880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8881 echo "$as_me:$LINENO: checking for $ac_func" >&5
8882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_var+set}\" = set"; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 cat >conftest.
$ac_ext <<_ACEOF
8889 cat confdefs.h
>>conftest.
$ac_ext
8890 cat >>conftest.
$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8894 #define $ac_func innocuous_$ac_func
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char $ac_func (); below.
8898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899 <limits.h> exists even on freestanding compilers. */
8902 # include <limits.h>
8904 # include <assert.h>
8909 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8923 char (*f) () = $ac_func;
8932 return f != $ac_func;
8937 rm -f conftest.
$ac_objext conftest
$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8941 grep -v '^ *+' conftest.er1
>conftest.err
8943 cat conftest.err
>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try
='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 eval "$as_ac_var=yes"
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8963 eval "$as_ac_var=no"
8965 rm -f conftest.err conftest.
$ac_objext \
8966 conftest
$ac_exeext conftest.
$ac_ext
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8970 if test `eval echo '${'$as_ac_var'}'` = yes; then
8971 cat >>confdefs.h
<<_ACEOF
8972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8978 echo "$as_me:$LINENO: checking for working mmap" >&5
8979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 if test "$cross_compiling" = yes; then
8984 ac_cv_func_mmap_fixed_mapped
=no
8986 cat >conftest.
$ac_ext <<_ACEOF
8989 cat confdefs.h
>>conftest.
$ac_ext
8990 cat >>conftest.
$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 $ac_includes_default
8993 /* malloc might have been renamed as rpl_malloc. */
8996 /* Thanks to Mike Haertel and Jim Avera for this test.
8997 Here is a matrix of mmap possibilities:
8998 mmap private not fixed
8999 mmap private fixed at somewhere currently unmapped
9000 mmap private fixed at somewhere already mapped
9001 mmap shared not fixed
9002 mmap shared fixed at somewhere currently unmapped
9003 mmap shared fixed at somewhere already mapped
9004 For private mappings, we should verify that changes cannot be read()
9005 back from the file, nor mmap's back from the file at a different
9006 address. (There have been systems where private was not correctly
9007 implemented like the infamous i386 svr4.0, and systems where the
9008 VM page cache was not coherent with the file system buffer cache
9009 like early versions of FreeBSD and possibly contemporary NetBSD.)
9010 For shared mappings, we should conversely verify that changes get
9011 propagated back to all the places they're supposed to be.
9013 Grep wants private fixed already mapped.
9014 The main things grep needs to know about mmap are:
9015 * does it exist and is it safe to write into the mmap'd area
9016 * how to use it (BSD variants) */
9019 #include <sys/mman.h>
9021 #if !STDC_HEADERS && !HAVE_STDLIB_H
9025 /* This mess was copied from the GNU getpagesize.h. */
9026 #if !HAVE_GETPAGESIZE
9027 /* Assume that all systems that can run configure have sys/param.h. */
9028 # if !HAVE_SYS_PARAM_H
9029 # define HAVE_SYS_PARAM_H 1
9032 # ifdef _SC_PAGESIZE
9033 # define getpagesize() sysconf(_SC_PAGESIZE)
9034 # else /* no _SC_PAGESIZE */
9035 # if HAVE_SYS_PARAM_H
9036 # include <sys/param.h>
9037 # ifdef EXEC_PAGESIZE
9038 # define getpagesize() EXEC_PAGESIZE
9039 # else /* no EXEC_PAGESIZE */
9041 # define getpagesize() NBPG * CLSIZE
9044 # endif /* no CLSIZE */
9045 # else /* no NBPG */
9047 # define getpagesize() NBPC
9048 # else /* no NBPC */
9050 # define getpagesize() PAGESIZE
9051 # endif /* PAGESIZE */
9052 # endif /* no NBPC */
9053 # endif /* no NBPG */
9054 # endif /* no EXEC_PAGESIZE */
9055 # else /* no HAVE_SYS_PARAM_H */
9056 # define getpagesize() 8192 /* punt totally */
9057 # endif /* no HAVE_SYS_PARAM_H */
9058 # endif /* no _SC_PAGESIZE */
9060 #endif /* no HAVE_GETPAGESIZE */
9065 char *data, *data2, *data3;
9069 pagesize = getpagesize ();
9071 /* First, make a file with some known garbage in it. */
9072 data = (char *) malloc (pagesize);
9075 for (i = 0; i < pagesize; ++i)
9076 *(data + i) = rand ();
9078 fd = creat ("conftest.mmap", 0600);
9081 if (write (fd, data, pagesize) != pagesize)
9085 /* Next, try to mmap the file at a fixed address which already has
9086 something else allocated at it. If we can, also make sure that
9087 we see the same garbage. */
9088 fd = open ("conftest.mmap", O_RDWR);
9091 data2 = (char *) malloc (2 * pagesize);
9094 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9098 for (i = 0; i < pagesize; ++i)
9099 if (*(data + i) != *(data2 + i))
9102 /* Finally, make sure that changes to the mapped area do not
9103 percolate back to the file as seen by read(). (This is a bug on
9104 some variants of i386 svr4.0.) */
9105 for (i = 0; i < pagesize; ++i)
9106 *(data2 + i) = *(data2 + i) + 1;
9107 data3 = (char *) malloc (pagesize);
9110 if (read (fd, data3, pagesize) != pagesize)
9112 for (i = 0; i < pagesize; ++i)
9113 if (*(data + i) != *(data3 + i))
9119 rm -f conftest
$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_func_mmap_fixed_mapped
=yes
9132 echo "$as_me: program exited with status $ac_status" >&5
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.
$ac_ext >&5
9137 ac_cv_func_mmap_fixed_mapped
=no
9139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9143 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9144 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9146 cat >>confdefs.h
<<\_ACEOF
9153 if test $use_mmap_for_buffers = yes; then
9157 LIBS
="$libsrc_libs $LIBS"
9160 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9161 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9162 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 ac_check_lib_save_LIBS
=$LIBS
9167 cat >conftest.
$ac_ext <<_ACEOF
9170 cat confdefs.h
>>conftest.
$ac_ext
9171 cat >>conftest.
$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9189 rm -f conftest.
$ac_objext conftest
$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try
='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_dnet_dnet_ntoa
=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.
$ac_ext >&5
9215 ac_cv_lib_dnet_dnet_ntoa
=no
9217 rm -f conftest.err conftest.
$ac_objext \
9218 conftest
$ac_exeext conftest.
$ac_ext
9219 LIBS
=$ac_check_lib_save_LIBS
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9222 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9223 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9224 cat >>confdefs.h
<<_ACEOF
9225 #define HAVE_LIBDNET 1
9233 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9234 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9235 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 ac_check_lib_save_LIBS
=$LIBS
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9256 rm -f conftest.
$ac_objext conftest
$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>conftest.er1
9260 grep -v '^ *+' conftest.er1
>conftest.err
9262 cat conftest.err
>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try
='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_cv_lib_Xbsd_main
=yes
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9282 ac_cv_lib_Xbsd_main
=no
9284 rm -f conftest.err conftest.
$ac_objext \
9285 conftest
$ac_exeext conftest.
$ac_ext
9286 LIBS
=$ac_check_lib_save_LIBS
9288 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9289 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9290 if test $ac_cv_lib_Xbsd_main = yes; then
9291 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9296 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9297 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9298 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 ac_check_lib_save_LIBS
=$LIBS
9302 LIBS
="-lpthreads $LIBS"
9303 cat >conftest.
$ac_ext <<_ACEOF
9306 cat confdefs.h
>>conftest.
$ac_ext
9307 cat >>conftest.
$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9310 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9325 rm -f conftest.
$ac_objext conftest
$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9329 grep -v '^ *+' conftest.er1
>conftest.err
9331 cat conftest.err
>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try
='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_lib_pthreads_cma_open
=yes
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.
$ac_ext >&5
9351 ac_cv_lib_pthreads_cma_open
=no
9353 rm -f conftest.err conftest.
$ac_objext \
9354 conftest
$ac_exeext conftest.
$ac_ext
9355 LIBS
=$ac_check_lib_save_LIBS
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9358 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9359 if test $ac_cv_lib_pthreads_cma_open = yes; then
9360 cat >>confdefs.h
<<_ACEOF
9361 #define HAVE_LIBPTHREADS 1
9364 LIBS
="-lpthreads $LIBS"
9369 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9370 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9371 if test -d /usr
/X386
/include
; then
9373 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9377 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9378 echo "${ECHO_T}$HAVE_XFREE386" >&6
9383 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9384 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9385 if test "${gdb_cv_bigtoc+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9391 *) gdb_cv_bigtoc
=-bbigtoc ;;
9394 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9395 cat >conftest.
$ac_ext <<_ACEOF
9398 cat confdefs.h
>>conftest.
$ac_ext
9399 cat >>conftest.
$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9410 rm -f conftest.
$ac_objext conftest
$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9414 grep -v '^ *+' conftest.er1
>conftest.err
9416 cat conftest.err
>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try
='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9438 rm -f conftest.err conftest.
$ac_objext \
9439 conftest
$ac_exeext conftest.
$ac_ext
9442 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9443 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9447 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9448 # used for the tests that follow. We set them back to REAL_CFLAGS and
9449 # REAL_CPPFLAGS later on.
9451 REAL_CPPFLAGS
="$CPPFLAGS"
9453 if test "${HAVE_X11}" = "yes"; then
9454 DEFS
="$C_SWITCH_X_SITE $DEFS"
9455 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9457 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9458 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9460 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9461 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9462 # but it's more convenient here to set LD_RUN_PATH
9463 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9464 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9465 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9469 if test "${opsys}" = "gnu-linux"; then
9470 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9471 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9472 cat >conftest.
$ac_ext <<_ACEOF
9475 cat confdefs.h
>>conftest.
$ac_ext
9476 cat >>conftest.
$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9482 XOpenDisplay ("foo");
9487 rm -f conftest.
$ac_objext conftest
$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9491 grep -v '^ *+' conftest.er1
>conftest.err
9493 cat conftest.err
>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try
='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 xlinux_first_failure
=no
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.
$ac_ext >&5
9513 xlinux_first_failure
=yes
9515 rm -f conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9517 if test "${xlinux_first_failure}" = "yes"; then
9518 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9519 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9520 OLD_CPPFLAGS
="$CPPFLAGS"
9522 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9523 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9524 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9525 LIBS
="$LIBS -b i486-linuxaout"
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9536 XOpenDisplay ("foo");
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9545 grep -v '^ *+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try
='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 xlinux_second_failure
=no
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.
$ac_ext >&5
9567 xlinux_second_failure
=yes
9569 rm -f conftest.err conftest.
$ac_objext \
9570 conftest
$ac_exeext conftest.
$ac_ext
9571 if test "${xlinux_second_failure}" = "yes"; then
9572 # If we get the same failure with -b, there is no use adding -b.
9573 # So take it out. This plays safe.
9574 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9575 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9576 CPPFLAGS
="$OLD_CPPFLAGS"
9578 echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9581 echo "$as_me:$LINENO: result: yes" >&5
9582 echo "${ECHO_T}yes" >&6
9585 echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9590 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9591 # header files included from there.
9592 echo "$as_me:$LINENO: checking for Xkb" >&5
9593 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <X11/Xlib.h>
9601 #include <X11/XKBlib.h>
9605 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9610 rm -f conftest.
$ac_objext conftest
$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1
>conftest.err
9616 cat conftest.err
>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try
='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9638 rm -f conftest.err conftest.
$ac_objext \
9639 conftest
$ac_exeext conftest.
$ac_ext
9640 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9641 echo "${ECHO_T}$emacs_xkb" >&6
9642 if test $emacs_xkb = yes; then
9644 cat >>confdefs.h
<<\_ACEOF
9645 #define HAVE_XKBGETKEYBOARD 1
9654 for ac_func
in XrmSetDatabase XScreenResourceString \
9655 XScreenNumberOfScreen XSetWMProtocols
9657 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658 echo "$as_me:$LINENO: checking for $ac_func" >&5
9659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9660 if eval "test \"\${$as_ac_var+set}\" = set"; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.
$ac_ext <<_ACEOF
9666 cat confdefs.h
>>conftest.
$ac_ext
9667 cat >>conftest.
$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671 #define $ac_func innocuous_$ac_func
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9679 # include <limits.h>
9681 # include <assert.h>
9686 /* Override any gcc2 internal prototype to avoid an error. */
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9694 /* The GNU C library defines this for functions which it implements
9695 to always fail with ENOSYS. Some functions are actually named
9696 something starting with __ and the normal name is an alias. */
9697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9700 char (*f) () = $ac_func;
9709 return f != $ac_func;
9714 rm -f conftest.
$ac_objext conftest
$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9718 grep -v '^ *+' conftest.er1
>conftest.err
9720 cat conftest.err
>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try
='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 eval "$as_ac_var=yes"
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.
$ac_ext >&5
9740 eval "$as_ac_var=no"
9742 rm -f conftest.err conftest.
$ac_objext \
9743 conftest
$ac_exeext conftest.
$ac_ext
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h
<<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9757 if test "${window_system}" = "x11"; then
9758 echo "$as_me:$LINENO: checking X11 version 6" >&5
9759 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9760 if test "${emacs_cv_x11_version_6+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.
$ac_ext <<_ACEOF
9766 cat confdefs.h
>>conftest.
$ac_ext
9767 cat >>conftest.
$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 #include <X11/Xlib.h>
9773 #if XlibSpecificationRelease < 6
9781 rm -f conftest.
$ac_objext conftest
$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1
>conftest.err
9787 cat conftest.err
>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try
='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 emacs_cv_x11_version_6
=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.
$ac_ext >&5
9807 emacs_cv_x11_version_6
=no
9809 rm -f conftest.err conftest.
$ac_objext \
9810 conftest
$ac_exeext conftest.
$ac_ext
9813 if test $emacs_cv_x11_version_6 = yes; then
9814 echo "$as_me:$LINENO: result: 6 or newer" >&5
9815 echo "${ECHO_T}6 or newer" >&6
9817 cat >>confdefs.h
<<\_ACEOF
9818 #define HAVE_X11R6 1
9822 echo "$as_me:$LINENO: result: before 6" >&5
9823 echo "${ECHO_T}before 6" >&6
9827 if test "${window_system}" = "x11"; then
9828 echo "$as_me:$LINENO: checking X11 version 5" >&5
9829 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9830 if test "${emacs_cv_x11_version_5+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9843 #if XlibSpecificationRelease < 5
9851 rm -f conftest.
$ac_objext conftest
$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1
>conftest.err
9857 cat conftest.err
>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try
='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 emacs_cv_x11_version_5
=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.
$ac_ext >&5
9877 emacs_cv_x11_version_5
=no
9879 rm -f conftest.err conftest.
$ac_objext \
9880 conftest
$ac_exeext conftest.
$ac_ext
9883 if test $emacs_cv_x11_version_5 = yes; then
9884 echo "$as_me:$LINENO: result: 5 or newer" >&5
9885 echo "${ECHO_T}5 or newer" >&6
9888 cat >>confdefs.h
<<\_ACEOF
9889 #define HAVE_X11R5 1
9894 echo "$as_me:$LINENO: result: before 5" >&5
9895 echo "${ECHO_T}before 5" >&6
9902 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9903 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9904 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9905 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9906 { (exit 1); exit 1; }; };
9910 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9912 if test "X${with_pkg_config_prog}" != X
; then
9913 PKG_CONFIG
="${with_pkg_config_prog}"
9918 if test -z "$PKG_CONFIG"; then
9919 # Extract the first word of "pkg-config", so it can be a program name with args.
9920 set dummy pkg-config
; ac_word
=$2
9921 echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9935 test -z "$as_dir" && as_dir
=.
9936 for ac_exec_ext
in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9949 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9951 if test -n "$PKG_CONFIG"; then
9952 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9953 echo "${ECHO_T}$PKG_CONFIG" >&6
9955 echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9961 if test "$PKG_CONFIG" = "no" ; then
9962 echo "*** The pkg-config script could not be found. Make sure it is"
9963 echo "*** in your path, or give the full path to pkg-config with"
9964 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9965 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9967 PKG_CONFIG_MIN_VERSION
=0.9.0
9968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9969 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9970 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9972 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9973 echo "$as_me:$LINENO: result: yes" >&5
9974 echo "${ECHO_T}yes" >&6
9977 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9978 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9979 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9980 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9981 echo "${ECHO_T}$GTK_CFLAGS" >&6
9983 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9984 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9985 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9986 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9987 echo "${ECHO_T}$GTK_LIBS" >&6
9991 ## If we have a custom action on failure, don't print errors, but
9992 ## do set a variable so people can do so.
9993 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9994 echo $GTK_PKG_ERRORS
10000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10005 if test $succeeded = yes; then
10008 { { 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
10009 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;}
10010 { (exit 1); exit 1; }; }
10015 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10016 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10017 LIBS
="$GTK_LIBS $LIBS"
10020 cat >>confdefs.h
<<\_ACEOF
10026 if test "$with_toolkit_scroll_bars" != no
; then
10027 with_toolkit_scroll_bars
=yes
10030 HAVE_GTK_MULTIDISPLAY
=no
10032 for ac_func
in gdk_display_open
10034 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_var+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.
$ac_ext <<_ACEOF
10043 cat confdefs.h
>>conftest.
$ac_ext
10044 cat >>conftest.
$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10056 # include <limits.h>
10058 # include <assert.h>
10063 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10077 char (*f) () = $ac_func;
10086 return f != $ac_func;
10091 rm -f conftest.
$ac_objext conftest
$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1
>conftest.err
10097 cat conftest.err
>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try
='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.
$ac_ext >&5
10117 eval "$as_ac_var=no"
10119 rm -f conftest.err conftest.
$ac_objext \
10120 conftest
$ac_exeext conftest.
$ac_ext
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h
<<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10128 HAVE_GTK_MULTIDISPLAY
=yes
10132 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10134 cat >>confdefs.h
<<\_ACEOF
10135 #define HAVE_GTK_MULTIDISPLAY 1
10139 HAVE_GTK_FILE_SELECTION
=no
10141 for ac_func
in gtk_file_selection_new
10143 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_var+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 cat >conftest.
$ac_ext <<_ACEOF
10152 cat confdefs.h
>>conftest.
$ac_ext
10153 cat >>conftest.
$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10157 #define $ac_func innocuous_$ac_func
10159 /* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char $ac_func (); below.
10161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162 <limits.h> exists even on freestanding compilers. */
10165 # include <limits.h>
10167 # include <assert.h>
10172 /* Override any gcc2 internal prototype to avoid an error. */
10177 /* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10186 char (*f) () = $ac_func;
10195 return f != $ac_func;
10200 rm -f conftest.
$ac_objext conftest
$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1
>conftest.err
10206 cat conftest.err
>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try
='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 eval "$as_ac_var=yes"
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.
$ac_ext >&5
10226 eval "$as_ac_var=no"
10228 rm -f conftest.err conftest.
$ac_objext \
10229 conftest
$ac_exeext conftest.
$ac_ext
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10233 if test `eval echo '${'$as_ac_var'}'` = yes; then
10234 cat >>confdefs.h
<<_ACEOF
10235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10237 HAVE_GTK_FILE_SELECTION
=yes
10242 HAVE_GTK_FILE_CHOOSER
=no
10244 for ac_func
in gtk_file_chooser_dialog_new
10246 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10247 echo "$as_me:$LINENO: checking for $ac_func" >&5
10248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10249 if eval "test \"\${$as_ac_var+set}\" = set"; then
10250 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260 #define $ac_func innocuous_$ac_func
10262 /* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char $ac_func (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
10268 # include <limits.h>
10270 # include <assert.h>
10275 /* Override any gcc2 internal prototype to avoid an error. */
10280 /* We use char because int might match the return type of a gcc2
10281 builtin and then its argument prototype would still apply. */
10283 /* The GNU C library defines this for functions which it implements
10284 to always fail with ENOSYS. Some functions are actually named
10285 something starting with __ and the normal name is an alias. */
10286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10289 char (*f) () = $ac_func;
10298 return f != $ac_func;
10303 rm -f conftest.
$ac_objext conftest
$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 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); } &&
10312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try
='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 eval "$as_ac_var=yes"
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.
$ac_ext >&5
10329 eval "$as_ac_var=no"
10331 rm -f conftest.err conftest.
$ac_objext \
10332 conftest
$ac_exeext conftest.
$ac_ext
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then
10337 cat >>confdefs.h
<<_ACEOF
10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10340 HAVE_GTK_FILE_CHOOSER
=yes
10345 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10346 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10348 cat >>confdefs.h
<<\_ACEOF
10349 #define HAVE_GTK_FILE_BOTH 1
10354 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10355 HAVE_GTK_AND_PTHREAD
=no
10357 for ac_header
in pthread.h
10359 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369 # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.
$ac_ext <<_ACEOF
10375 cat confdefs.h
>>conftest.
$ac_ext
10376 cat >>conftest.
$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10379 #include <$ac_header>
10381 rm -f conftest.
$ac_objext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>conftest.er1
10385 grep -v '^ *+' conftest.er1
>conftest.err
10387 cat conftest.err
>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try
='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_header_compiler
=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.
$ac_ext >&5
10407 ac_header_compiler
=no
10409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10411 echo "${ECHO_T}$ac_header_compiler" >&6
10413 # Is the header present?
10414 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10416 cat >conftest.
$ac_ext <<_ACEOF
10419 cat confdefs.h
>>conftest.
$ac_ext
10420 cat >>conftest.
$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 #include <$ac_header>
10424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10427 grep -v '^ *+' conftest.er1
>conftest.err
10429 cat conftest.err
>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } >/dev
/null
; then
10432 if test -s conftest.err
; then
10433 ac_cpp_err
=$ac_c_preproc_warn_flag
10434 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10441 if test -z "$ac_cpp_err"; then
10442 ac_header_preproc
=yes
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.
$ac_ext >&5
10447 ac_header_preproc
=no
10449 rm -f conftest.err conftest.
$ac_ext
10450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10451 echo "${ECHO_T}$ac_header_preproc" >&6
10453 # So? What about this header?
10454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10460 ac_header_preproc
=yes
10463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10477 ## ------------------------------------------ ##
10478 ## Report this to the AC_PACKAGE_NAME lists. ##
10479 ## ------------------------------------------ ##
10482 sed "s/^/$as_me: WARNING: /" >&2
10485 echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 eval "$as_ac_Header=\$ac_header_preproc"
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10497 cat >>confdefs.h
<<_ACEOF
10498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10505 if test "$ac_cv_header_pthread_h"; then
10506 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10507 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10508 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 ac_check_lib_save_LIBS
=$LIBS
10512 LIBS
="-lpthread $LIBS"
10513 cat >conftest.
$ac_ext <<_ACEOF
10516 cat confdefs.h
>>conftest.
$ac_ext
10517 cat >>conftest.
$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 /* Override any gcc2 internal prototype to avoid an error. */
10524 /* We use char because int might match the return type of a gcc2
10525 builtin and then its argument prototype would still apply. */
10526 char pthread_self ();
10535 rm -f conftest.
$ac_objext conftest
$ac_exeext
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537 (eval $ac_link) 2>conftest.er1
10539 grep -v '^ *+' conftest.er1
>conftest.err
10541 cat conftest.err
>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try
='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_lib_pthread_pthread_self
=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.
$ac_ext >&5
10561 ac_cv_lib_pthread_pthread_self
=no
10563 rm -f conftest.err conftest.
$ac_objext \
10564 conftest
$ac_exeext conftest.
$ac_ext
10565 LIBS
=$ac_check_lib_save_LIBS
10567 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10568 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10569 if test $ac_cv_lib_pthread_pthread_self = yes; then
10570 HAVE_GTK_AND_PTHREAD
=yes
10574 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10575 GTK_LIBS
="$GTK_LIBS -lpthread"
10577 cat >>confdefs.h
<<\_ACEOF
10578 #define HAVE_GTK_AND_PTHREAD 1
10585 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10586 if test x
"${HAVE_X11R5}" = xyes
; then
10587 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10588 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10589 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 cat >conftest.
$ac_ext <<_ACEOF
10595 cat confdefs.h
>>conftest.
$ac_ext
10596 cat >>conftest.
$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10599 #include <X11/Intrinsic.h>
10600 #include <X11/Xaw/Simple.h>
10609 rm -f conftest.
$ac_objext conftest
$ac_exeext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>conftest.er1
10613 grep -v '^ *+' conftest.er1
>conftest.err
10615 cat conftest.err
>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try
='test -s conftest$ac_exeext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 emacs_cv_x11_version_5_with_xaw
=yes
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.
$ac_ext >&5
10635 emacs_cv_x11_version_5_with_xaw
=no
10637 rm -f conftest.err conftest.
$ac_objext \
10638 conftest
$ac_exeext conftest.
$ac_ext
10641 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10642 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10643 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10644 USE_X_TOOLKIT
=LUCID
10646 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10647 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10655 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10657 if test "${USE_X_TOOLKIT}" != "none"; then
10658 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10659 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10660 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 cat >conftest.
$ac_ext <<_ACEOF
10666 cat confdefs.h
>>conftest.
$ac_ext
10667 cat >>conftest.
$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <X11/Intrinsic.h>
10673 #if XtSpecificationRelease < 6
10681 rm -f conftest.
$ac_objext conftest
$ac_exeext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683 (eval $ac_link) 2>conftest.er1
10685 grep -v '^ *+' conftest.er1
>conftest.err
10687 cat conftest.err
>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try
='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 emacs_cv_x11_toolkit_version_6
=yes
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.
$ac_ext >&5
10707 emacs_cv_x11_toolkit_version_6
=no
10709 rm -f conftest.err conftest.
$ac_objext \
10710 conftest
$ac_exeext conftest.
$ac_ext
10713 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10714 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10715 echo "$as_me:$LINENO: result: 6 or newer" >&5
10716 echo "${ECHO_T}6 or newer" >&6
10718 cat >>confdefs.h
<<\_ACEOF
10719 #define HAVE_X11XTR6 1
10723 echo "$as_me:$LINENO: result: before 6" >&5
10724 echo "${ECHO_T}before 6" >&6
10728 if test x
$HAVE_X11XTR6 = xyes
; then
10729 LIBS
="-lXt -lSM -lICE $LIBS"
10734 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10735 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10736 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 ac_check_lib_save_LIBS
=$LIBS
10741 cat >conftest.
$ac_ext <<_ACEOF
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 /* Override any gcc2 internal prototype to avoid an error. */
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char XmuConvertStandardSelection ();
10758 XmuConvertStandardSelection ();
10763 rm -f conftest.
$ac_objext conftest
$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>conftest.er1
10767 grep -v '^ *+' conftest.er1
>conftest.err
10769 cat conftest.err
>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try
='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.
$ac_ext >&5
10789 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10791 rm -f conftest.err conftest.
$ac_objext \
10792 conftest
$ac_exeext conftest.
$ac_ext
10793 LIBS
=$ac_check_lib_save_LIBS
10795 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10796 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10797 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10798 cat >>confdefs.h
<<_ACEOF
10799 #define HAVE_LIBXMU 1
10806 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10809 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10810 if test "${HAVE_X11}" = "yes"; then
10811 if test "${USE_X_TOOLKIT}" != "none"; then
10813 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10814 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10815 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 ac_check_lib_save_LIBS
=$LIBS
10819 LIBS
="-lXext $LIBS"
10820 cat >conftest.
$ac_ext <<_ACEOF
10823 cat confdefs.h
>>conftest.
$ac_ext
10824 cat >>conftest.
$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10827 /* Override any gcc2 internal prototype to avoid an error. */
10831 /* We use char because int might match the return type of a gcc2
10832 builtin and then its argument prototype would still apply. */
10833 char XShapeQueryExtension ();
10837 XShapeQueryExtension ();
10842 rm -f conftest.
$ac_objext conftest
$ac_exeext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844 (eval $ac_link) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1
>conftest.err
10848 cat conftest.err
>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; } &&
10857 { ac_try
='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.
$ac_ext >&5
10868 ac_cv_lib_Xext_XShapeQueryExtension
=no
10870 rm -f conftest.err conftest.
$ac_objext \
10871 conftest
$ac_exeext conftest.
$ac_ext
10872 LIBS
=$ac_check_lib_save_LIBS
10874 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10875 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10876 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10877 cat >>confdefs.h
<<_ACEOF
10878 #define HAVE_LIBXEXT 1
10881 LIBS
="-lXext $LIBS"
10888 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10889 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10890 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10891 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.
$ac_ext <<_ACEOF
10897 cat confdefs.h
>>conftest.
$ac_ext
10898 cat >>conftest.
$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10904 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10907 Motif version prior to 2.1.
10913 rm -f conftest.
$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>conftest.er1
10917 grep -v '^ *+' conftest.er1
>conftest.err
10919 cat conftest.err
>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try
='test -s conftest.$ac_objext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 emacs_cv_motif_version_2_1
=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.
$ac_ext >&5
10939 emacs_cv_motif_version_2_1
=no
10941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10943 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10944 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10945 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10946 if test $emacs_cv_motif_version_2_1 = yes; then
10949 cat >>confdefs.h
<<\_ACEOF
10950 #define HAVE_MOTIF_2_1 1
10953 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10954 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10955 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 ac_check_lib_save_LIBS
=$LIBS
10960 cat >conftest.
$ac_ext <<_ACEOF
10963 cat confdefs.h
>>conftest.
$ac_ext
10964 cat >>conftest.
$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10967 /* Override any gcc2 internal prototype to avoid an error. */
10971 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */
10973 char XpCreateContext ();
10977 XpCreateContext ();
10982 rm -f conftest.
$ac_objext conftest
$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984 (eval $ac_link) 2>conftest.er1
10986 grep -v '^ *+' conftest.er1
>conftest.err
10988 cat conftest.err
>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try
='test -s conftest$ac_exeext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_lib_Xp_XpCreateContext
=yes
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.
$ac_ext >&5
11008 ac_cv_lib_Xp_XpCreateContext
=no
11010 rm -f conftest.err conftest.
$ac_objext \
11011 conftest
$ac_exeext conftest.
$ac_ext
11012 LIBS
=$ac_check_lib_save_LIBS
11014 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11015 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11016 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11020 if test ${HAVE_LIBXP} = yes; then
11022 cat >>confdefs.h
<<\_ACEOF
11023 #define HAVE_LIBXP 1
11028 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11029 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11030 if test "${emacs_cv_lesstif+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 # We put this in CFLAGS temporarily to precede other -I options
11034 # that might be in CFLAGS temporarily.
11035 # We put this in CPPFLAGS where it precedes the other -I options.
11036 OLD_CPPFLAGS
=$CPPFLAGS
11038 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11039 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11040 cat >conftest.
$ac_ext <<_ACEOF
11043 cat confdefs.h
>>conftest.
$ac_ext
11044 cat >>conftest.
$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11055 rm -f conftest.
$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>conftest.er1
11059 grep -v '^ *+' conftest.er1
>conftest.err
11061 cat conftest.err
>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try
='test -s conftest.$ac_objext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 emacs_cv_lesstif
=yes
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.
$ac_ext >&5
11081 emacs_cv_lesstif
=no
11083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11085 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11086 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11087 if test $emacs_cv_lesstif = yes; then
11088 # Make sure this -I option remains in CPPFLAGS after it is set
11089 # back to REAL_CPPFLAGS.
11090 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11091 # have those other -I options anyway. Ultimately, having this
11092 # directory ultimately in CPPFLAGS will be enough.
11093 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11094 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11097 CPPFLAGS
=$OLD_CPPFLAGS
11102 ### Is -lXaw3d available?
11104 if test "${HAVE_X11}" = "yes"; then
11105 if test "${USE_X_TOOLKIT}" != "none"; then
11106 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11107 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11108 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.
$ac_ext <<_ACEOF
11114 cat confdefs.h
>>conftest.
$ac_ext
11115 cat >>conftest.
$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #include <X11/Xaw3d/Scrollbar.h>
11119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11120 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11122 grep -v '^ *+' conftest.er1
>conftest.err
11124 cat conftest.err
>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } >/dev
/null
; then
11127 if test -s conftest.err
; then
11128 ac_cpp_err
=$ac_c_preproc_warn_flag
11129 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11136 if test -z "$ac_cpp_err"; then
11137 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.
$ac_ext >&5
11142 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11144 rm -f conftest.err conftest.
$ac_ext
11146 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11147 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11148 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11149 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11150 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11151 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 ac_check_lib_save_LIBS
=$LIBS
11155 LIBS
="-lXaw3d $LIBS"
11156 cat >conftest.
$ac_ext <<_ACEOF
11159 cat confdefs.h
>>conftest.
$ac_ext
11160 cat >>conftest.
$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11163 /* Override any gcc2 internal prototype to avoid an error. */
11167 /* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11169 char XawScrollbarSetThumb ();
11173 XawScrollbarSetThumb ();
11178 rm -f conftest.
$ac_objext conftest
$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11182 grep -v '^ *+' conftest.er1
>conftest.err
11184 cat conftest.err
>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } &&
11193 { ac_try
='test -s conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.
$ac_ext >&5
11204 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11206 rm -f conftest.err conftest.
$ac_objext \
11207 conftest
$ac_exeext conftest.
$ac_ext
11208 LIBS
=$ac_check_lib_save_LIBS
11210 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11211 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11212 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11219 if test "${HAVE_XAW3D}" = "yes"; then
11221 cat >>confdefs.h
<<\_ACEOF
11222 #define HAVE_XAW3D 1
11231 USE_TOOLKIT_SCROLL_BARS
=no
11232 if test "${with_toolkit_scroll_bars}" != "no"; then
11233 if test "${USE_X_TOOLKIT}" != "none"; then
11234 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11235 cat >>confdefs.h
<<\_ACEOF
11236 #define USE_TOOLKIT_SCROLL_BARS 1
11240 USE_TOOLKIT_SCROLL_BARS
=yes
11241 elif test "${HAVE_XAW3D}" = "yes"; then
11242 cat >>confdefs.h
<<\_ACEOF
11243 #define USE_TOOLKIT_SCROLL_BARS 1
11246 USE_TOOLKIT_SCROLL_BARS
=yes
11248 elif test "${HAVE_GTK}" = "yes"; then
11249 cat >>confdefs.h
<<\_ACEOF
11250 #define USE_TOOLKIT_SCROLL_BARS 1
11253 USE_TOOLKIT_SCROLL_BARS
=yes
11254 elif test "${HAVE_CARBON}" = "yes"; then
11255 cat >>confdefs.h
<<\_ACEOF
11256 #define USE_TOOLKIT_SCROLL_BARS 1
11259 USE_TOOLKIT_SCROLL_BARS
=yes
11263 cat >conftest.
$ac_ext <<_ACEOF
11266 cat confdefs.h
>>conftest.
$ac_ext
11267 cat >>conftest.
$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11270 #include <X11/Xlib.h>
11271 #include <X11/Xresource.h>
11280 rm -f conftest.
$ac_objext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>conftest.er1
11284 grep -v '^ *+' conftest.er1
>conftest.err
11286 cat conftest.err
>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try
='test -s conftest.$ac_objext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11303 cat >>confdefs.h
<<\_ACEOF
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.
$ac_ext >&5
11313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11316 if test "${with_xim}" != "no"; then
11318 cat >>confdefs.h
<<\_ACEOF
11325 if test "${HAVE_XIM}" != "no"; then
11326 late_CFLAGS
=$CFLAGS
11327 if test "$GCC" = yes; then
11328 CFLAGS
="$CFLAGS --pedantic-errors"
11330 cat >conftest.
$ac_ext <<_ACEOF
11333 cat confdefs.h
>>conftest.
$ac_ext
11334 cat >>conftest.
$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11337 #include <X11/Xlib.h>
11338 #include <X11/Xresource.h>
11347 XPointer *client_data;
11349 /* If we're not using GCC, it's probably not XFree86, and this is
11350 probably right, but we can't use something like --pedantic-errors. */
11351 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11352 char*, XIMProc, XPointer*);
11354 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11360 rm -f conftest.
$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11364 grep -v '^ *+' conftest.er1
>conftest.err
11366 cat conftest.err
>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try
='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 emacs_cv_arg6_star
=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.
$ac_ext >&5
11387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11389 if test "$emacs_cv_arg6_star" = yes; then
11390 cat >>confdefs.h
<<\_ACEOF
11391 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11395 cat >>confdefs.h
<<\_ACEOF
11396 #define XRegisterIMInstantiateCallback_arg6 XPointer
11400 CFLAGS
=$late_CFLAGS
11403 ### Use -lXpm if available, unless `--with-xpm=no'.
11405 if test "${HAVE_X11}" = "yes"; then
11406 if test "${with_xpm}" != "no"; then
11407 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11408 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11409 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11410 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11414 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11416 # Is the header compilable?
11417 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11418 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11419 cat >conftest.
$ac_ext <<_ACEOF
11422 cat confdefs.h
>>conftest.
$ac_ext
11423 cat >>conftest.
$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 #include <X11/xpm.h>
11428 rm -f conftest.
$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1
>conftest.err
11434 cat conftest.err
>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try
='test -s conftest.$ac_objext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_header_compiler
=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.
$ac_ext >&5
11454 ac_header_compiler
=no
11456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11458 echo "${ECHO_T}$ac_header_compiler" >&6
11460 # Is the header present?
11461 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11462 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11463 cat >conftest.
$ac_ext <<_ACEOF
11466 cat confdefs.h
>>conftest.
$ac_ext
11467 cat >>conftest.
$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 #include <X11/xpm.h>
11471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11474 grep -v '^ *+' conftest.er1
>conftest.err
11476 cat conftest.err
>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } >/dev
/null
; then
11479 if test -s conftest.err
; then
11480 ac_cpp_err
=$ac_c_preproc_warn_flag
11481 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11488 if test -z "$ac_cpp_err"; then
11489 ac_header_preproc
=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.
$ac_ext >&5
11494 ac_header_preproc
=no
11496 rm -f conftest.err conftest.
$ac_ext
11497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11498 echo "${ECHO_T}$ac_header_preproc" >&6
11500 # So? What about this header?
11501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11503 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11504 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11506 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11507 ac_header_preproc
=yes
11510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11511 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11513 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11515 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11517 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11519 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11521 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11524 ## ------------------------------------------ ##
11525 ## Report this to the AC_PACKAGE_NAME lists. ##
11526 ## ------------------------------------------ ##
11529 sed "s/^/$as_me: WARNING: /" >&2
11532 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11533 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11534 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11539 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11540 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11543 if test $ac_cv_header_X11_xpm_h = yes; then
11544 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11545 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11546 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 ac_check_lib_save_LIBS
=$LIBS
11550 LIBS
="-lXpm -lX11 $LIBS"
11551 cat >conftest.
$ac_ext <<_ACEOF
11554 cat confdefs.h
>>conftest.
$ac_ext
11555 cat >>conftest.
$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11558 /* Override any gcc2 internal prototype to avoid an error. */
11562 /* We use char because int might match the return type of a gcc2
11563 builtin and then its argument prototype would still apply. */
11564 char XpmReadFileToPixmap ();
11568 XpmReadFileToPixmap ();
11573 rm -f conftest.
$ac_objext conftest
$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575 (eval $ac_link) 2>conftest.er1
11577 grep -v '^ *+' conftest.er1
>conftest.err
11579 cat conftest.err
>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try
='test -s conftest$ac_exeext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.
$ac_ext >&5
11599 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11601 rm -f conftest.err conftest.
$ac_objext \
11602 conftest
$ac_exeext conftest.
$ac_ext
11603 LIBS
=$ac_check_lib_save_LIBS
11605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11606 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11607 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11614 if test "${HAVE_XPM}" = "yes"; then
11615 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11616 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11617 cat >conftest.
$ac_ext <<_ACEOF
11620 cat confdefs.h
>>conftest.
$ac_ext
11621 cat >>conftest.
$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 #include "X11/xpm.h"
11624 #ifndef XpmReturnAllocPixels
11625 no_return_alloc_pixels
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11638 if test "${HAVE_XPM}" = "yes"; then
11639 echo "$as_me:$LINENO: result: yes" >&5
11640 echo "${ECHO_T}yes" >&6
11642 echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11648 if test "${HAVE_XPM}" = "yes"; then
11650 cat >>confdefs.h
<<\_ACEOF
11657 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11659 if test "${HAVE_X11}" = "yes"; then
11660 if test "${with_jpeg}" != "no"; then
11661 if test "${ac_cv_header_jerror_h+set}" = set; then
11662 echo "$as_me:$LINENO: checking for jerror.h" >&5
11663 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11664 if test "${ac_cv_header_jerror_h+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11668 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11670 # Is the header compilable?
11671 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11672 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11673 cat >conftest.
$ac_ext <<_ACEOF
11676 cat confdefs.h
>>conftest.
$ac_ext
11677 cat >>conftest.
$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 $ac_includes_default
11680 #include <jerror.h>
11682 rm -f conftest.
$ac_objext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1
>conftest.err
11688 cat conftest.err
>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try
='test -s conftest.$ac_objext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_header_compiler
=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.
$ac_ext >&5
11708 ac_header_compiler
=no
11710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11712 echo "${ECHO_T}$ac_header_compiler" >&6
11714 # Is the header present?
11715 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11716 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11717 cat >conftest.
$ac_ext <<_ACEOF
11720 cat confdefs.h
>>conftest.
$ac_ext
11721 cat >>conftest.
$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 #include <jerror.h>
11725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11728 grep -v '^ *+' conftest.er1
>conftest.err
11730 cat conftest.err
>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } >/dev
/null
; then
11733 if test -s conftest.err
; then
11734 ac_cpp_err
=$ac_c_preproc_warn_flag
11735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11742 if test -z "$ac_cpp_err"; then
11743 ac_header_preproc
=yes
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.
$ac_ext >&5
11748 ac_header_preproc
=no
11750 rm -f conftest.err conftest.
$ac_ext
11751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11752 echo "${ECHO_T}$ac_header_preproc" >&6
11754 # So? What about this header?
11755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11757 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11758 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11760 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11761 ac_header_preproc
=yes
11764 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11765 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11767 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11769 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11771 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11773 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11775 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11778 ## ------------------------------------------ ##
11779 ## Report this to the AC_PACKAGE_NAME lists. ##
11780 ## ------------------------------------------ ##
11783 sed "s/^/$as_me: WARNING: /" >&2
11786 echo "$as_me:$LINENO: checking for jerror.h" >&5
11787 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11788 if test "${ac_cv_header_jerror_h+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_cv_header_jerror_h
=$ac_header_preproc
11793 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11794 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11797 if test $ac_cv_header_jerror_h = yes; then
11798 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11799 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11800 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 ac_check_lib_save_LIBS
=$LIBS
11804 LIBS
="-ljpeg $LIBS"
11805 cat >conftest.
$ac_ext <<_ACEOF
11808 cat confdefs.h
>>conftest.
$ac_ext
11809 cat >>conftest.
$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11812 /* Override any gcc2 internal prototype to avoid an error. */
11816 /* We use char because int might match the return type of a gcc2
11817 builtin and then its argument prototype would still apply. */
11818 char jpeg_destroy_compress ();
11822 jpeg_destroy_compress ();
11827 rm -f conftest.
$ac_objext conftest
$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1
>conftest.err
11833 cat conftest.err
>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try
='test -s conftest$ac_exeext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.
$ac_ext >&5
11853 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11855 rm -f conftest.err conftest.
$ac_objext \
11856 conftest
$ac_exeext conftest.
$ac_ext
11857 LIBS
=$ac_check_lib_save_LIBS
11859 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11860 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11871 if test "${HAVE_JPEG}" = "yes"; then
11872 cat >>confdefs.h
<<\_ACEOF
11873 #define HAVE_JPEG 1
11876 cat >conftest.
$ac_ext <<_ACEOF
11879 cat confdefs.h
>>conftest.
$ac_ext
11880 cat >>conftest.
$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <jpeglib.h>
11883 version=JPEG_LIB_VERSION
11886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11888 cat >>confdefs.h
<<\_ACEOF
11889 #define HAVE_JPEG 1
11893 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11894 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11902 ### Use -lpng if available, unless `--with-png=no'.
11904 if test "${HAVE_X11}" = "yes"; then
11905 if test "${with_png}" != "no"; then
11906 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11907 # in /usr/include/libpng.
11910 for ac_header
in png.h libpng
/png.h
11912 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11914 echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11922 # Is the header compilable?
11923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11925 cat >conftest.
$ac_ext <<_ACEOF
11928 cat confdefs.h
>>conftest.
$ac_ext
11929 cat >>conftest.
$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11932 #include <$ac_header>
11934 rm -f conftest.
$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>conftest.er1
11938 grep -v '^ *+' conftest.er1
>conftest.err
11940 cat conftest.err
>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try
='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_header_compiler
=yes
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.
$ac_ext >&5
11960 ac_header_compiler
=no
11962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11964 echo "${ECHO_T}$ac_header_compiler" >&6
11966 # Is the header present?
11967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11969 cat >conftest.
$ac_ext <<_ACEOF
11972 cat confdefs.h
>>conftest.
$ac_ext
11973 cat >>conftest.
$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #include <$ac_header>
11977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11980 grep -v '^ *+' conftest.er1
>conftest.err
11982 cat conftest.err
>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } >/dev
/null
; then
11985 if test -s conftest.err
; then
11986 ac_cpp_err
=$ac_c_preproc_warn_flag
11987 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11994 if test -z "$ac_cpp_err"; then
11995 ac_header_preproc
=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.
$ac_ext >&5
12000 ac_header_preproc
=no
12002 rm -f conftest.err conftest.
$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12004 echo "${ECHO_T}$ac_header_preproc" >&6
12006 # So? What about this header?
12007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12013 ac_header_preproc
=yes
12016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12030 ## ------------------------------------------ ##
12031 ## Report this to the AC_PACKAGE_NAME lists. ##
12032 ## ------------------------------------------ ##
12035 sed "s/^/$as_me: WARNING: /" >&2
12038 echo "$as_me:$LINENO: checking for $ac_header" >&5
12039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 eval "$as_ac_Header=\$ac_header_preproc"
12045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12050 cat >>confdefs.h
<<_ACEOF
12051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12058 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12059 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12060 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12061 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 ac_check_lib_save_LIBS
=$LIBS
12065 LIBS
="-lpng -lz -lm $LIBS"
12066 cat >conftest.
$ac_ext <<_ACEOF
12069 cat confdefs.h
>>conftest.
$ac_ext
12070 cat >>conftest.
$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12073 /* Override any gcc2 internal prototype to avoid an error. */
12077 /* We use char because int might match the return type of a gcc2
12078 builtin and then its argument prototype would still apply. */
12079 char png_get_channels ();
12083 png_get_channels ();
12088 rm -f conftest.
$ac_objext conftest
$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1
>conftest.err
12094 cat conftest.err
>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try
='test -s conftest$ac_exeext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_lib_png_png_get_channels
=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.
$ac_ext >&5
12114 ac_cv_lib_png_png_get_channels
=no
12116 rm -f conftest.err conftest.
$ac_objext \
12117 conftest
$ac_exeext conftest.
$ac_ext
12118 LIBS
=$ac_check_lib_save_LIBS
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12122 if test $ac_cv_lib_png_png_get_channels = yes; then
12129 if test "${HAVE_PNG}" = "yes"; then
12131 cat >>confdefs.h
<<\_ACEOF
12138 ### Use -ltiff if available, unless `--with-tiff=no'.
12140 if test "${HAVE_X11}" = "yes"; then
12141 if test "${with_tiff}" != "no"; then
12142 if test "${ac_cv_header_tiffio_h+set}" = set; then
12143 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12145 if test "${ac_cv_header_tiffio_h+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12151 # Is the header compilable?
12152 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12154 cat >conftest.
$ac_ext <<_ACEOF
12157 cat confdefs.h
>>conftest.
$ac_ext
12158 cat >>conftest.
$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 #include <tiffio.h>
12163 rm -f conftest.
$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>conftest.er1
12167 grep -v '^ *+' conftest.er1
>conftest.err
12169 cat conftest.err
>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try
='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_header_compiler
=yes
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.
$ac_ext >&5
12189 ac_header_compiler
=no
12191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 echo "${ECHO_T}$ac_header_compiler" >&6
12195 # Is the header present?
12196 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12197 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12198 cat >conftest.
$ac_ext <<_ACEOF
12201 cat confdefs.h
>>conftest.
$ac_ext
12202 cat >>conftest.
$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <tiffio.h>
12206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12209 grep -v '^ *+' conftest.er1
>conftest.err
12211 cat conftest.err
>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev
/null
; then
12214 if test -s conftest.err
; then
12215 ac_cpp_err
=$ac_c_preproc_warn_flag
12216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12223 if test -z "$ac_cpp_err"; then
12224 ac_header_preproc
=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.
$ac_ext >&5
12229 ac_header_preproc
=no
12231 rm -f conftest.err conftest.
$ac_ext
12232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12233 echo "${ECHO_T}$ac_header_preproc" >&6
12235 # So? What about this header?
12236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12238 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12239 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12241 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12242 ac_header_preproc
=yes
12245 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12246 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12248 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12250 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12252 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12254 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12256 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12259 ## ------------------------------------------ ##
12260 ## Report this to the AC_PACKAGE_NAME lists. ##
12261 ## ------------------------------------------ ##
12264 sed "s/^/$as_me: WARNING: /" >&2
12267 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12268 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12269 if test "${ac_cv_header_tiffio_h+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 ac_cv_header_tiffio_h
=$ac_header_preproc
12274 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12275 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12278 if test $ac_cv_header_tiffio_h = yes; then
12280 # At least one tiff package requires the jpeg library.
12281 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12282 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12283 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12284 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 ac_check_lib_save_LIBS
=$LIBS
12288 LIBS
="-ltiff $tifflibs $LIBS"
12289 cat >conftest.
$ac_ext <<_ACEOF
12292 cat confdefs.h
>>conftest.
$ac_ext
12293 cat >>conftest.
$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12296 /* Override any gcc2 internal prototype to avoid an error. */
12300 /* We use char because int might match the return type of a gcc2
12301 builtin and then its argument prototype would still apply. */
12302 char TIFFGetVersion ();
12311 rm -f conftest.
$ac_objext conftest
$ac_exeext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313 (eval $ac_link) 2>conftest.er1
12315 grep -v '^ *+' conftest.er1
>conftest.err
12317 cat conftest.err
>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try
='test -s conftest$ac_exeext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_lib_tiff_TIFFGetVersion
=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.
$ac_ext >&5
12337 ac_cv_lib_tiff_TIFFGetVersion
=no
12339 rm -f conftest.err conftest.
$ac_objext \
12340 conftest
$ac_exeext conftest.
$ac_ext
12341 LIBS
=$ac_check_lib_save_LIBS
12343 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12344 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12345 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12354 if test "${HAVE_TIFF}" = "yes"; then
12356 cat >>confdefs.h
<<\_ACEOF
12357 #define HAVE_TIFF 1
12363 ### Use -lgif if available, unless `--with-gif=no'.
12365 if test "${HAVE_X11}" = "yes"; then
12366 if test "${with_gif}" != "no"; then
12367 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12368 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12369 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12370 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12374 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12376 # Is the header compilable?
12377 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12378 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12379 cat >conftest.
$ac_ext <<_ACEOF
12382 cat confdefs.h
>>conftest.
$ac_ext
12383 cat >>conftest.
$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 #include <gif_lib.h>
12388 rm -f conftest.
$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12392 grep -v '^ *+' conftest.er1
>conftest.err
12394 cat conftest.err
>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try
='test -s conftest.$ac_objext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_header_compiler
=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.
$ac_ext >&5
12414 ac_header_compiler
=no
12416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12418 echo "${ECHO_T}$ac_header_compiler" >&6
12420 # Is the header present?
12421 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12422 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12423 cat >conftest.
$ac_ext <<_ACEOF
12426 cat confdefs.h
>>conftest.
$ac_ext
12427 cat >>conftest.
$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 #include <gif_lib.h>
12431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12434 grep -v '^ *+' conftest.er1
>conftest.err
12436 cat conftest.err
>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } >/dev
/null
; then
12439 if test -s conftest.err
; then
12440 ac_cpp_err
=$ac_c_preproc_warn_flag
12441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12448 if test -z "$ac_cpp_err"; then
12449 ac_header_preproc
=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.
$ac_ext >&5
12454 ac_header_preproc
=no
12456 rm -f conftest.err conftest.
$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12458 echo "${ECHO_T}$ac_header_preproc" >&6
12460 # So? What about this header?
12461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12464 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12466 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12467 ac_header_preproc
=yes
12470 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12471 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12473 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12475 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12477 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12479 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12480 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12481 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12484 ## ------------------------------------------ ##
12485 ## Report this to the AC_PACKAGE_NAME lists. ##
12486 ## ------------------------------------------ ##
12489 sed "s/^/$as_me: WARNING: /" >&2
12492 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12493 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12494 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 ac_cv_header_gif_lib_h
=$ac_header_preproc
12499 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12500 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12503 if test $ac_cv_header_gif_lib_h = yes; then
12504 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12505 # Earlier versions can crash Emacs.
12506 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12507 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12508 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 ac_check_lib_save_LIBS
=$LIBS
12512 LIBS
="-lungif $LIBS"
12513 cat >conftest.
$ac_ext <<_ACEOF
12516 cat confdefs.h
>>conftest.
$ac_ext
12517 cat >>conftest.
$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 /* Override any gcc2 internal prototype to avoid an error. */
12524 /* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12526 char EGifPutExtensionLast ();
12530 EGifPutExtensionLast ();
12535 rm -f conftest.
$ac_objext conftest
$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1
>conftest.err
12541 cat conftest.err
>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try
='test -s conftest$ac_exeext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.
$ac_ext >&5
12561 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12563 rm -f conftest.err conftest.
$ac_objext \
12564 conftest
$ac_exeext conftest.
$ac_ext
12565 LIBS
=$ac_check_lib_save_LIBS
12567 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12568 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12569 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12578 if test "${HAVE_GIF}" = "yes"; then
12580 cat >>confdefs.h
<<\_ACEOF
12587 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12588 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12589 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12590 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12594 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12596 # Is the header compilable?
12597 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12598 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12599 cat >conftest.
$ac_ext <<_ACEOF
12602 cat confdefs.h
>>conftest.
$ac_ext
12603 cat >>conftest.
$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 $ac_includes_default
12606 #include <malloc/malloc.h>
12608 rm -f conftest.
$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610 (eval $ac_compile) 2>conftest.er1
12612 grep -v '^ *+' conftest.er1
>conftest.err
12614 cat conftest.err
>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try
='test -s conftest.$ac_objext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_header_compiler
=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.
$ac_ext >&5
12634 ac_header_compiler
=no
12636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638 echo "${ECHO_T}$ac_header_compiler" >&6
12640 # Is the header present?
12641 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12642 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12643 cat >conftest.
$ac_ext <<_ACEOF
12646 cat confdefs.h
>>conftest.
$ac_ext
12647 cat >>conftest.
$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #include <malloc/malloc.h>
12651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1
>conftest.err
12656 cat conftest.err
>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev
/null
; then
12659 if test -s conftest.err
; then
12660 ac_cpp_err
=$ac_c_preproc_warn_flag
12661 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12668 if test -z "$ac_cpp_err"; then
12669 ac_header_preproc
=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.
$ac_ext >&5
12674 ac_header_preproc
=no
12676 rm -f conftest.err conftest.
$ac_ext
12677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678 echo "${ECHO_T}$ac_header_preproc" >&6
12680 # So? What about this header?
12681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12683 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12684 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12686 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc
=yes
12690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12691 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12693 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12695 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12697 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12701 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12704 ## ------------------------------------------ ##
12705 ## Report this to the AC_PACKAGE_NAME lists. ##
12706 ## ------------------------------------------ ##
12709 sed "s/^/$as_me: WARNING: /" >&2
12712 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12713 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12714 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12719 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12720 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12723 if test $ac_cv_header_malloc_malloc_h = yes; then
12725 cat >>confdefs.h
<<\_ACEOF
12726 #define HAVE_MALLOC_MALLOC_H 1
12733 ### Use Mac OS X Carbon API to implement GUI.
12734 if test "${HAVE_CARBON}" = "yes"; then
12736 cat >>confdefs.h
<<\_ACEOF
12737 #define HAVE_CARBON 1
12740 ## Specify the install directory
12742 if test "${carbon_appdir_x}" != ""; then
12743 case ${carbon_appdir_x} in
12744 y | ye |
yes) carbon_appdir
=/Applications
;;
12745 * ) carbon_appdir
=${carbon_appdir_x} ;;
12748 # We also have mouse menus.
12751 tmp_CFLAGS
="$CFLAGS"
12752 CFLAGS
="$CFLAGS -framework Carbon"
12753 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12754 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12755 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 cat >conftest.
$ac_ext <<_ACEOF
12761 cat confdefs.h
>>conftest.
$ac_ext
12762 cat >>conftest.
$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12766 #define CancelMenuTracking innocuous_CancelMenuTracking
12768 /* System header to define __stub macros and hopefully few prototypes,
12769 which can conflict with char CancelMenuTracking (); below.
12770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 <limits.h> exists even on freestanding compilers. */
12774 # include <limits.h>
12776 # include <assert.h>
12779 #undef CancelMenuTracking
12781 /* Override any gcc2 internal prototype to avoid an error. */
12786 /* We use char because int might match the return type of a gcc2
12787 builtin and then its argument prototype would still apply. */
12788 char CancelMenuTracking ();
12789 /* The GNU C library defines this for functions which it implements
12790 to always fail with ENOSYS. Some functions are actually named
12791 something starting with __ and the normal name is an alias. */
12792 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12795 char (*f) () = CancelMenuTracking;
12804 return f != CancelMenuTracking;
12809 rm -f conftest.
$ac_objext conftest
$ac_exeext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>conftest.er1
12813 grep -v '^ *+' conftest.er1
>conftest.err
12815 cat conftest.err
>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try
='test -s conftest$ac_exeext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_cv_func_CancelMenuTracking
=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.
$ac_ext >&5
12835 ac_cv_func_CancelMenuTracking
=no
12837 rm -f conftest.err conftest.
$ac_objext \
12838 conftest
$ac_exeext conftest.
$ac_ext
12840 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12841 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12842 if test $ac_cv_func_CancelMenuTracking = yes; then
12848 if test "$have_cmt" = yes; then
12850 cat >>confdefs.h
<<\_ACEOF
12851 #define HAVE_CANCELMENUTRACKING 1
12855 CFLAGS
="$tmp_CFLAGS"
12858 ### Use session management (-lSM -lICE) if available
12860 if test "${HAVE_X11}" = "yes"; then
12861 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12862 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12863 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12864 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12868 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12870 # Is the header compilable?
12871 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12872 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12873 cat >conftest.
$ac_ext <<_ACEOF
12876 cat confdefs.h
>>conftest.
$ac_ext
12877 cat >>conftest.
$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 $ac_includes_default
12880 #include <X11/SM/SMlib.h>
12882 rm -f conftest.
$ac_objext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884 (eval $ac_compile) 2>conftest.er1
12886 grep -v '^ *+' conftest.er1
>conftest.err
12888 cat conftest.err
>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try
='test -s conftest.$ac_objext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_header_compiler
=yes
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.
$ac_ext >&5
12908 ac_header_compiler
=no
12910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12912 echo "${ECHO_T}$ac_header_compiler" >&6
12914 # Is the header present?
12915 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12916 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12917 cat >conftest.
$ac_ext <<_ACEOF
12920 cat confdefs.h
>>conftest.
$ac_ext
12921 cat >>conftest.
$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 #include <X11/SM/SMlib.h>
12925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12926 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12928 grep -v '^ *+' conftest.er1
>conftest.err
12930 cat conftest.err
>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } >/dev
/null
; then
12933 if test -s conftest.err
; then
12934 ac_cpp_err
=$ac_c_preproc_warn_flag
12935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12942 if test -z "$ac_cpp_err"; then
12943 ac_header_preproc
=yes
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.
$ac_ext >&5
12948 ac_header_preproc
=no
12950 rm -f conftest.err conftest.
$ac_ext
12951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12952 echo "${ECHO_T}$ac_header_preproc" >&6
12954 # So? What about this header?
12955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12957 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12958 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12960 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12961 ac_header_preproc
=yes
12964 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12965 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12966 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12967 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12969 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12971 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12973 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12975 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12978 ## ------------------------------------------ ##
12979 ## Report this to the AC_PACKAGE_NAME lists. ##
12980 ## ------------------------------------------ ##
12983 sed "s/^/$as_me: WARNING: /" >&2
12986 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12987 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12988 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12993 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12994 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12997 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12998 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12999 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13000 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_check_lib_save_LIBS
=$LIBS
13004 LIBS
="-lSM -lICE $LIBS"
13005 cat >conftest.
$ac_ext <<_ACEOF
13008 cat confdefs.h
>>conftest.
$ac_ext
13009 cat >>conftest.
$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13012 /* Override any gcc2 internal prototype to avoid an error. */
13016 /* We use char because int might match the return type of a gcc2
13017 builtin and then its argument prototype would still apply. */
13018 char SmcOpenConnection ();
13022 SmcOpenConnection ();
13027 rm -f conftest.
$ac_objext conftest
$ac_exeext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>conftest.er1
13031 grep -v '^ *+' conftest.er1
>conftest.err
13033 cat conftest.err
>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try
='test -s conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_lib_SM_SmcOpenConnection
=yes
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.
$ac_ext >&5
13053 ac_cv_lib_SM_SmcOpenConnection
=no
13055 rm -f conftest.err conftest.
$ac_objext \
13056 conftest
$ac_exeext conftest.
$ac_ext
13057 LIBS
=$ac_check_lib_save_LIBS
13059 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13060 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13061 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13069 if test "${HAVE_X_SM}" = "yes"; then
13071 cat >>confdefs.h
<<\_ACEOF
13072 #define HAVE_X_SM 1
13077 *) LIBS
="-lSM -lICE $LIBS" ;;
13082 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13083 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13084 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13085 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 cat >conftest.
$ac_ext <<_ACEOF
13091 cat confdefs.h
>>conftest.
$ac_ext
13092 cat >>conftest.
$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13103 rm -f conftest.
$ac_objext conftest
$ac_exeext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13105 (eval $ac_link) 2>conftest.er1
13107 grep -v '^ *+' conftest.er1
>conftest.err
13109 cat conftest.err
>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try
='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 emacs_cv_netdb_declares_h_errno
=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.
$ac_ext >&5
13129 emacs_cv_netdb_declares_h_errno
=no
13131 rm -f conftest.err conftest.
$ac_objext \
13132 conftest
$ac_exeext conftest.
$ac_ext
13134 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13135 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13136 if test $emacs_cv_netdb_declares_h_errno = yes; then
13138 cat >>confdefs.h
<<\_ACEOF
13139 #define HAVE_H_ERRNO 1
13144 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13145 # for constant arguments. Useless!
13146 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13147 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13148 if test "${ac_cv_working_alloca_h+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 cat >conftest.
$ac_ext <<_ACEOF
13154 cat confdefs.h
>>conftest.
$ac_ext
13155 cat >>conftest.
$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 #include <alloca.h>
13161 char *p = (char *) alloca (2 * sizeof (int));
13166 rm -f conftest.
$ac_objext conftest
$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168 (eval $ac_link) 2>conftest.er1
13170 grep -v '^ *+' conftest.er1
>conftest.err
13172 cat conftest.err
>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try
='test -s conftest$ac_exeext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_working_alloca_h
=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 ac_cv_working_alloca_h
=no
13194 rm -f conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13197 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13198 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13199 if test $ac_cv_working_alloca_h = yes; then
13201 cat >>confdefs.h
<<\_ACEOF
13202 #define HAVE_ALLOCA_H 1
13207 echo "$as_me:$LINENO: checking for alloca" >&5
13208 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13209 if test "${ac_cv_func_alloca_works+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 cat >conftest.
$ac_ext <<_ACEOF
13215 cat confdefs.h
>>conftest.
$ac_ext
13216 cat >>conftest.
$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 # define alloca __builtin_alloca
13222 # include <malloc.h>
13223 # define alloca _alloca
13226 # include <alloca.h>
13231 # ifndef alloca /* predefined by HP cc +Olibcalls */
13242 char *p = (char *) alloca (1);
13247 rm -f conftest.
$ac_objext conftest
$ac_exeext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13249 (eval $ac_link) 2>conftest.er1
13251 grep -v '^ *+' conftest.er1
>conftest.err
13253 cat conftest.err
>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try
='test -s conftest$ac_exeext'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_cv_func_alloca_works
=yes
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.
$ac_ext >&5
13273 ac_cv_func_alloca_works
=no
13275 rm -f conftest.err conftest.
$ac_objext \
13276 conftest
$ac_exeext conftest.
$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13279 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13281 if test $ac_cv_func_alloca_works = yes; then
13283 cat >>confdefs.h
<<\_ACEOF
13284 #define HAVE_ALLOCA 1
13288 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13289 # that cause trouble. Some versions do not even contain alloca or
13290 # contain a buggy version. If you still want to use their alloca,
13291 # use ar to extract alloca.o from them instead of compiling alloca.c.
13293 ALLOCA
=alloca.
$ac_objext
13295 cat >>confdefs.h
<<\_ACEOF
13300 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13301 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13302 if test "${ac_cv_os_cray+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 cat >conftest.
$ac_ext <<_ACEOF
13308 cat confdefs.h
>>conftest.
$ac_ext
13309 cat >>conftest.
$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #if defined(CRAY) && ! defined(CRAY2)
13318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13319 $EGREP "webecray" >/dev
/null
2>&1; then
13327 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13328 echo "${ECHO_T}$ac_cv_os_cray" >&6
13329 if test $ac_cv_os_cray = yes; then
13330 for ac_func
in _getb67 GETB67 getb67
; do
13331 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13332 echo "$as_me:$LINENO: checking for $ac_func" >&5
13333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13334 if eval "test \"\${$as_ac_var+set}\" = set"; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 cat >conftest.
$ac_ext <<_ACEOF
13340 cat confdefs.h
>>conftest.
$ac_ext
13341 cat >>conftest.
$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13345 #define $ac_func innocuous_$ac_func
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char $ac_func (); below.
13349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13350 <limits.h> exists even on freestanding compilers. */
13353 # include <limits.h>
13355 # include <assert.h>
13360 /* Override any gcc2 internal prototype to avoid an error. */
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13374 char (*f) () = $ac_func;
13383 return f != $ac_func;
13388 rm -f conftest.
$ac_objext conftest
$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>conftest.er1
13392 grep -v '^ *+' conftest.er1
>conftest.err
13394 cat conftest.err
>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try
='test -s conftest$ac_exeext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 eval "$as_ac_var=yes"
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.
$ac_ext >&5
13414 eval "$as_ac_var=no"
13416 rm -f conftest.err conftest.
$ac_objext \
13417 conftest
$ac_exeext conftest.
$ac_ext
13419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13421 if test `eval echo '${'$as_ac_var'}'` = yes; then
13423 cat >>confdefs.h
<<_ACEOF
13424 #define CRAY_STACKSEG_END $ac_func
13433 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13434 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13435 if test "${ac_cv_c_stack_direction+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 if test "$cross_compiling" = yes; then
13439 ac_cv_c_stack_direction
=0
13441 cat >conftest.
$ac_ext <<_ACEOF
13444 cat confdefs.h
>>conftest.
$ac_ext
13445 cat >>conftest.
$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13448 find_stack_direction ()
13450 static char *addr = 0;
13455 return find_stack_direction ();
13458 return (&dummy > addr) ? 1 : -1;
13464 exit (find_stack_direction () < 0);
13467 rm -f conftest
$ac_exeext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469 (eval $ac_link) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && { ac_try
='./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_c_stack_direction
=1
13480 echo "$as_me: program exited with status $ac_status" >&5
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.
$ac_ext >&5
13484 ( exit $ac_status )
13485 ac_cv_c_stack_direction
=-1
13487 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13491 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13493 cat >>confdefs.h
<<_ACEOF
13494 #define STACK_DIRECTION $ac_cv_c_stack_direction
13501 # fmod, logb, and frexp are found in -lm on most systems.
13502 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13504 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13505 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13506 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 ac_check_lib_save_LIBS
=$LIBS
13511 cat >conftest.
$ac_ext <<_ACEOF
13514 cat confdefs.h
>>conftest.
$ac_ext
13515 cat >>conftest.
$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13518 /* Override any gcc2 internal prototype to avoid an error. */
13522 /* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13533 rm -f conftest.
$ac_objext conftest
$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535 (eval $ac_link) 2>conftest.er1
13537 grep -v '^ *+' conftest.er1
>conftest.err
13539 cat conftest.err
>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try
='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_lib_m_sqrt
=yes
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.
$ac_ext >&5
13559 ac_cv_lib_m_sqrt
=no
13561 rm -f conftest.err conftest.
$ac_objext \
13562 conftest
$ac_exeext conftest.
$ac_ext
13563 LIBS
=$ac_check_lib_save_LIBS
13565 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13566 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13567 if test $ac_cv_lib_m_sqrt = yes; then
13568 cat >>confdefs.h
<<_ACEOF
13569 #define HAVE_LIBM 1
13577 # Check for mail-locking functions in a "mail" library. Probably this should
13578 # have the same check as for liblockfile below.
13580 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13581 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13582 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 ac_check_lib_save_LIBS
=$LIBS
13586 LIBS
="-lmail $LIBS"
13587 cat >conftest.
$ac_ext <<_ACEOF
13590 cat confdefs.h
>>conftest.
$ac_ext
13591 cat >>conftest.
$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13594 /* Override any gcc2 internal prototype to avoid an error. */
13598 /* We use char because int might match the return type of a gcc2
13599 builtin and then its argument prototype would still apply. */
13609 rm -f conftest.
$ac_objext conftest
$ac_exeext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13611 (eval $ac_link) 2>conftest.er1
13613 grep -v '^ *+' conftest.er1
>conftest.err
13615 cat conftest.err
>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try
='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_lib_mail_maillock
=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.
$ac_ext >&5
13635 ac_cv_lib_mail_maillock
=no
13637 rm -f conftest.err conftest.
$ac_objext \
13638 conftest
$ac_exeext conftest.
$ac_ext
13639 LIBS
=$ac_check_lib_save_LIBS
13641 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13642 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13643 if test $ac_cv_lib_mail_maillock = yes; then
13644 cat >>confdefs.h
<<_ACEOF
13645 #define HAVE_LIBMAIL 1
13648 LIBS
="-lmail $LIBS"
13653 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13654 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13655 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 ac_check_lib_save_LIBS
=$LIBS
13659 LIBS
="-llockfile $LIBS"
13660 cat >conftest.
$ac_ext <<_ACEOF
13663 cat confdefs.h
>>conftest.
$ac_ext
13664 cat >>conftest.
$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13667 /* Override any gcc2 internal prototype to avoid an error. */
13671 /* We use char because int might match the return type of a gcc2
13672 builtin and then its argument prototype would still apply. */
13682 rm -f conftest.
$ac_objext conftest
$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>conftest.er1
13686 grep -v '^ *+' conftest.er1
>conftest.err
13688 cat conftest.err
>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try
='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_lib_lockfile_maillock
=yes
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.
$ac_ext >&5
13708 ac_cv_lib_lockfile_maillock
=no
13710 rm -f conftest.err conftest.
$ac_objext \
13711 conftest
$ac_exeext conftest.
$ac_ext
13712 LIBS
=$ac_check_lib_save_LIBS
13714 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13715 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13716 if test $ac_cv_lib_lockfile_maillock = yes; then
13717 cat >>confdefs.h
<<_ACEOF
13718 #define HAVE_LIBLOCKFILE 1
13721 LIBS
="-llockfile $LIBS"
13725 # If we have the shared liblockfile, assume we must use it for mail
13726 # locking (e.g. Debian). If we couldn't link against liblockfile
13727 # (no liblockfile.a installed), ensure that we don't need to.
13728 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13729 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13730 set dummy liblockfile.so
; ac_word
=$2
13731 echo "$as_me:$LINENO: checking for $ac_word" >&5
13732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13733 if test "${ac_cv_prog_liblockfile+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 if test -n "$liblockfile"; then
13737 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13740 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13741 for as_dir
in $as_dummy
13744 test -z "$as_dir" && as_dir
=.
13745 for ac_exec_ext
in '' $ac_executable_extensions; do
13746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_prog_liblockfile
="yes"
13748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13757 liblockfile
=$ac_cv_prog_liblockfile
13758 if test -n "$liblockfile"; then
13759 echo "$as_me:$LINENO: result: $liblockfile" >&5
13760 echo "${ECHO_T}$liblockfile" >&6
13762 echo "$as_me:$LINENO: result: no" >&5
13763 echo "${ECHO_T}no" >&6
13766 if test $ac_cv_prog_liblockfile = yes; then
13767 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13768 This probably means that movemail could lose mail.
13769 There may be a \`development' package to install containing liblockfile." >&5
13770 echo "$as_me: error: Shared liblockfile found but can't link against it.
13771 This probably means that movemail could lose mail.
13772 There may be a \`development' package to install containing liblockfile." >&2;}
13773 { (exit 1); exit 1; }; }
13778 for ac_func
in touchlock
13780 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13781 echo "$as_me:$LINENO: checking for $ac_func" >&5
13782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13783 if eval "test \"\${$as_ac_var+set}\" = set"; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 cat >conftest.
$ac_ext <<_ACEOF
13789 cat confdefs.h
>>conftest.
$ac_ext
13790 cat >>conftest.
$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13794 #define $ac_func innocuous_$ac_func
13796 /* System header to define __stub macros and hopefully few prototypes,
13797 which can conflict with char $ac_func (); below.
13798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13799 <limits.h> exists even on freestanding compilers. */
13802 # include <limits.h>
13804 # include <assert.h>
13809 /* Override any gcc2 internal prototype to avoid an error. */
13814 /* We use char because int might match the return type of a gcc2
13815 builtin and then its argument prototype would still apply. */
13817 /* The GNU C library defines this for functions which it implements
13818 to always fail with ENOSYS. Some functions are actually named
13819 something starting with __ and the normal name is an alias. */
13820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13823 char (*f) () = $ac_func;
13832 return f != $ac_func;
13837 rm -f conftest.
$ac_objext conftest
$ac_exeext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839 (eval $ac_link) 2>conftest.er1
13841 grep -v '^ *+' conftest.er1
>conftest.err
13843 cat conftest.err
>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try
='test -s conftest$ac_exeext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 eval "$as_ac_var=yes"
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.
$ac_ext >&5
13863 eval "$as_ac_var=no"
13865 rm -f conftest.err conftest.
$ac_objext \
13866 conftest
$ac_exeext conftest.
$ac_ext
13868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13870 if test `eval echo '${'$as_ac_var'}'` = yes; then
13871 cat >>confdefs.h
<<_ACEOF
13872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13879 for ac_header
in maillock.h
13881 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883 echo "$as_me:$LINENO: checking for $ac_header" >&5
13884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13891 # Is the header compilable?
13892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13894 cat >conftest.
$ac_ext <<_ACEOF
13897 cat confdefs.h
>>conftest.
$ac_ext
13898 cat >>conftest.
$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13901 #include <$ac_header>
13903 rm -f conftest.
$ac_objext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905 (eval $ac_compile) 2>conftest.er1
13907 grep -v '^ *+' conftest.er1
>conftest.err
13909 cat conftest.err
>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
13912 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try
='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_header_compiler
=yes
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.
$ac_ext >&5
13929 ac_header_compiler
=no
13931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13933 echo "${ECHO_T}$ac_header_compiler" >&6
13935 # Is the header present?
13936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13938 cat >conftest.
$ac_ext <<_ACEOF
13941 cat confdefs.h
>>conftest.
$ac_ext
13942 cat >>conftest.
$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 #include <$ac_header>
13946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13947 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13949 grep -v '^ *+' conftest.er1
>conftest.err
13951 cat conftest.err
>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } >/dev
/null
; then
13954 if test -s conftest.err
; then
13955 ac_cpp_err
=$ac_c_preproc_warn_flag
13956 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13963 if test -z "$ac_cpp_err"; then
13964 ac_header_preproc
=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.
$ac_ext >&5
13969 ac_header_preproc
=no
13971 rm -f conftest.err conftest.
$ac_ext
13972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13973 echo "${ECHO_T}$ac_header_preproc" >&6
13975 # So? What about this header?
13976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13982 ac_header_preproc
=yes
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13999 ## ------------------------------------------ ##
14000 ## Report this to the AC_PACKAGE_NAME lists. ##
14001 ## ------------------------------------------ ##
14004 sed "s/^/$as_me: WARNING: /" >&2
14007 echo "$as_me:$LINENO: checking for $ac_header" >&5
14008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 eval "$as_ac_Header=\$ac_header_preproc"
14014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14019 cat >>confdefs.h
<<_ACEOF
14020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14096 for ac_func
in gethostname getdomainname dup2 \
14097 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14098 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14099 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14100 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14101 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14102 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14103 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14104 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14106 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14107 echo "$as_me:$LINENO: checking for $ac_func" >&5
14108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14109 if eval "test \"\${$as_ac_var+set}\" = set"; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 cat >conftest.
$ac_ext <<_ACEOF
14115 cat confdefs.h
>>conftest.
$ac_ext
14116 cat >>conftest.
$ac_ext <<_ACEOF
14117 /* end confdefs.h. */
14118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14120 #define $ac_func innocuous_$ac_func
14122 /* System header to define __stub macros and hopefully few prototypes,
14123 which can conflict with char $ac_func (); below.
14124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14125 <limits.h> exists even on freestanding compilers. */
14128 # include <limits.h>
14130 # include <assert.h>
14135 /* Override any gcc2 internal prototype to avoid an error. */
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14143 /* The GNU C library defines this for functions which it implements
14144 to always fail with ENOSYS. Some functions are actually named
14145 something starting with __ and the normal name is an alias. */
14146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14149 char (*f) () = $ac_func;
14158 return f != $ac_func;
14163 rm -f conftest.
$ac_objext conftest
$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>conftest.er1
14167 grep -v '^ *+' conftest.er1
>conftest.err
14169 cat conftest.err
>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try
='test -s conftest$ac_exeext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 eval "$as_ac_var=yes"
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.
$ac_ext >&5
14189 eval "$as_ac_var=no"
14191 rm -f conftest.err conftest.
$ac_objext \
14192 conftest
$ac_exeext conftest.
$ac_ext
14194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14196 if test `eval echo '${'$as_ac_var'}'` = yes; then
14197 cat >>confdefs.h
<<_ACEOF
14198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14206 for ac_header
in sys
/un.h
14208 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14218 # Is the header compilable?
14219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14221 cat >conftest.
$ac_ext <<_ACEOF
14224 cat confdefs.h
>>conftest.
$ac_ext
14225 cat >>conftest.
$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 $ac_includes_default
14228 #include <$ac_header>
14230 rm -f conftest.
$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14234 grep -v '^ *+' conftest.er1
>conftest.err
14236 cat conftest.err
>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try
='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_header_compiler
=yes
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.
$ac_ext >&5
14256 ac_header_compiler
=no
14258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6
14262 # Is the header present?
14263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14265 cat >conftest.
$ac_ext <<_ACEOF
14268 cat confdefs.h
>>conftest.
$ac_ext
14269 cat >>conftest.
$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <$ac_header>
14273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14276 grep -v '^ *+' conftest.er1
>conftest.err
14278 cat conftest.err
>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev
/null
; then
14281 if test -s conftest.err
; then
14282 ac_cpp_err
=$ac_c_preproc_warn_flag
14283 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14290 if test -z "$ac_cpp_err"; then
14291 ac_header_preproc
=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.
$ac_ext >&5
14296 ac_header_preproc
=no
14298 rm -f conftest.err conftest.
$ac_ext
14299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14300 echo "${ECHO_T}$ac_header_preproc" >&6
14302 # So? What about this header?
14303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14309 ac_header_preproc
=yes
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14326 ## ------------------------------------------ ##
14327 ## Report this to the AC_PACKAGE_NAME lists. ##
14328 ## ------------------------------------------ ##
14331 sed "s/^/$as_me: WARNING: /" >&2
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 eval "$as_ac_Header=\$ac_header_preproc"
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14346 cat >>confdefs.h
<<_ACEOF
14347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 for ac_header
in stdlib.h sys
/time.h unistd.h
14360 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362 echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14370 # Is the header compilable?
14371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373 cat >conftest.
$ac_ext <<_ACEOF
14376 cat confdefs.h
>>conftest.
$ac_ext
14377 cat >>conftest.
$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 #include <$ac_header>
14382 rm -f conftest.
$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14386 grep -v '^ *+' conftest.er1
>conftest.err
14388 cat conftest.err
>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try
='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_header_compiler
=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.
$ac_ext >&5
14408 ac_header_compiler
=no
14410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 echo "${ECHO_T}$ac_header_compiler" >&6
14414 # Is the header present?
14415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14417 cat >conftest.
$ac_ext <<_ACEOF
14420 cat confdefs.h
>>conftest.
$ac_ext
14421 cat >>conftest.
$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <$ac_header>
14425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14426 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14428 grep -v '^ *+' conftest.er1
>conftest.err
14430 cat conftest.err
>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } >/dev
/null
; then
14433 if test -s conftest.err
; then
14434 ac_cpp_err
=$ac_c_preproc_warn_flag
14435 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14442 if test -z "$ac_cpp_err"; then
14443 ac_header_preproc
=yes
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.
$ac_ext >&5
14448 ac_header_preproc
=no
14450 rm -f conftest.err conftest.
$ac_ext
14451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14452 echo "${ECHO_T}$ac_header_preproc" >&6
14454 # So? What about this header?
14455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14461 ac_header_preproc
=yes
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14478 ## ------------------------------------------ ##
14479 ## Report this to the AC_PACKAGE_NAME lists. ##
14480 ## ------------------------------------------ ##
14483 sed "s/^/$as_me: WARNING: /" >&2
14486 echo "$as_me:$LINENO: checking for $ac_header" >&5
14487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 eval "$as_ac_Header=\$ac_header_preproc"
14493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14498 cat >>confdefs.h
<<_ACEOF
14499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14507 for ac_func
in alarm
14509 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14510 echo "$as_me:$LINENO: checking for $ac_func" >&5
14511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14512 if eval "test \"\${$as_ac_var+set}\" = set"; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 cat >conftest.
$ac_ext <<_ACEOF
14518 cat confdefs.h
>>conftest.
$ac_ext
14519 cat >>conftest.
$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14523 #define $ac_func innocuous_$ac_func
14525 /* System header to define __stub macros and hopefully few prototypes,
14526 which can conflict with char $ac_func (); below.
14527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14528 <limits.h> exists even on freestanding compilers. */
14531 # include <limits.h>
14533 # include <assert.h>
14538 /* Override any gcc2 internal prototype to avoid an error. */
14543 /* We use char because int might match the return type of a gcc2
14544 builtin and then its argument prototype would still apply. */
14546 /* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552 char (*f) () = $ac_func;
14561 return f != $ac_func;
14566 rm -f conftest.
$ac_objext conftest
$ac_exeext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14568 (eval $ac_link) 2>conftest.er1
14570 grep -v '^ *+' conftest.er1
>conftest.err
14572 cat conftest.err
>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try
='test -s conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 eval "$as_ac_var=yes"
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.
$ac_ext >&5
14592 eval "$as_ac_var=no"
14594 rm -f conftest.err conftest.
$ac_objext \
14595 conftest
$ac_exeext conftest.
$ac_ext
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14599 if test `eval echo '${'$as_ac_var'}'` = yes; then
14600 cat >>confdefs.h
<<_ACEOF
14601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 echo "$as_me:$LINENO: checking for working mktime" >&5
14608 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14609 if test "${ac_cv_func_working_mktime+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 if test "$cross_compiling" = yes; then
14613 ac_cv_func_working_mktime
=no
14615 cat >conftest.
$ac_ext <<_ACEOF
14618 cat confdefs.h
>>conftest.
$ac_ext
14619 cat >>conftest.
$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 /* Test program from Paul Eggert and Tony Leneis. */
14622 #if TIME_WITH_SYS_TIME
14623 # include <sys/time.h>
14626 # if HAVE_SYS_TIME_H
14627 # include <sys/time.h>
14634 # include <stdlib.h>
14638 # include <unistd.h>
14642 # define alarm(X) /* empty */
14645 /* Work around redefinition to rpl_putenv by other config tests. */
14648 static time_t time_t_max;
14649 static time_t time_t_min;
14651 /* Values we'll use to set the TZ environment variable. */
14652 static char *tz_strings[] = {
14653 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14654 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14656 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14658 /* Fail if mktime fails to convert a date in the spring-forward gap.
14659 Based on a problem report from Andreas Jaeger. */
14661 spring_forward_gap ()
14663 /* glibc (up to about 1998-10-07) failed this test. */
14666 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14667 instead of "TZ=America/Vancouver" in order to detect the bug even
14668 on systems that don't support the Olson extension, or don't have the
14669 full zoneinfo tables installed. */
14670 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14679 if (mktime (&tm) == (time_t)-1)
14688 if ((lt = localtime (&now)) && mktime (lt) != now)
14696 mktime_test1 (now);
14697 mktime_test1 ((time_t) (time_t_max - now));
14698 mktime_test1 ((time_t) (time_t_min + now));
14704 /* Based on code from Ariel Faigon. */
14714 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14724 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14725 now = mktime (&tm);
14726 if (now != (time_t) -1)
14728 struct tm *lt = localtime (&now);
14730 && lt->tm_year == tm.tm_year
14731 && lt->tm_mon == tm.tm_mon
14732 && lt->tm_mday == tm.tm_mday
14733 && lt->tm_hour == tm.tm_hour
14734 && lt->tm_min == tm.tm_min
14735 && lt->tm_sec == tm.tm_sec
14736 && lt->tm_yday == tm.tm_yday
14737 && lt->tm_wday == tm.tm_wday
14738 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14739 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14750 /* This test makes some buggy mktime implementations loop.
14751 Give up after 60 seconds; a mktime slower than that
14752 isn't worth using anyway. */
14755 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14758 if ((time_t) -1 < 0)
14759 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14761 delta = time_t_max / 997; /* a suitable prime number */
14762 for (i = 0; i < N_STRINGS; i++)
14765 putenv (tz_strings[i]);
14767 for (t = 0; t <= time_t_max - delta; t += delta)
14769 mktime_test ((time_t) 1);
14770 mktime_test ((time_t) (60 * 60));
14771 mktime_test ((time_t) (60 * 60 * 24));
14773 for (j = 1; 0 < j; j *= 2)
14775 bigtime_test (j - 1);
14778 spring_forward_gap ();
14782 rm -f conftest
$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784 (eval $ac_link) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_cv_func_working_mktime
=yes
14795 echo "$as_me: program exited with status $ac_status" >&5
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.
$ac_ext >&5
14799 ( exit $ac_status )
14800 ac_cv_func_working_mktime
=no
14802 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14805 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14806 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14807 if test $ac_cv_func_working_mktime = no
; then
14809 "mktime.$ac_objext" | \
14810 *" mktime.$ac_objext" | \
14811 "mktime.$ac_objext "* | \
14812 *" mktime.$ac_objext "* ) ;;
14813 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14818 if test "$ac_cv_func_working_mktime" = no
; then
14820 cat >>confdefs.h
<<\_ACEOF
14821 #define BROKEN_MKTIME 1
14826 ac_have_func
=no
# yes means we've found a way to get the load average.
14828 # Make sure getloadavg.c is where it belongs, at configure-time.
14829 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14830 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14831 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14832 { (exit 1); exit 1; }; }
14836 # Check for getloadavg, but be sure not to touch the cache variable.
14837 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14838 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14839 if test "${ac_cv_func_getloadavg+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 cat >conftest.
$ac_ext <<_ACEOF
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14850 #define getloadavg innocuous_getloadavg
14852 /* System header to define __stub macros and hopefully few prototypes,
14853 which can conflict with char getloadavg (); below.
14854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14855 <limits.h> exists even on freestanding compilers. */
14858 # include <limits.h>
14860 # include <assert.h>
14865 /* Override any gcc2 internal prototype to avoid an error. */
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char getloadavg ();
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14879 char (*f) () = getloadavg;
14888 return f != getloadavg;
14893 rm -f conftest.
$ac_objext conftest
$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895 (eval $ac_link) 2>conftest.er1
14897 grep -v '^ *+' conftest.er1
>conftest.err
14899 cat conftest.err
>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try
='test -s conftest$ac_exeext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_func_getloadavg
=yes
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.
$ac_ext >&5
14919 ac_cv_func_getloadavg
=no
14921 rm -f conftest.err conftest.
$ac_objext \
14922 conftest
$ac_exeext conftest.
$ac_ext
14924 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14925 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14926 if test $ac_cv_func_getloadavg = yes; then
14931 ) && ac_have_func
=yes
14933 # On HPUX9, an unprivileged user can get load averages through this function.
14935 for ac_func
in pstat_getdynamic
14937 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14938 echo "$as_me:$LINENO: checking for $ac_func" >&5
14939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14940 if eval "test \"\${$as_ac_var+set}\" = set"; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 cat >conftest.
$ac_ext <<_ACEOF
14946 cat confdefs.h
>>conftest.
$ac_ext
14947 cat >>conftest.
$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951 #define $ac_func innocuous_$ac_func
14953 /* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char $ac_func (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14959 # include <limits.h>
14961 # include <assert.h>
14966 /* Override any gcc2 internal prototype to avoid an error. */
14971 /* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */
14974 /* The GNU C library defines this for functions which it implements
14975 to always fail with ENOSYS. Some functions are actually named
14976 something starting with __ and the normal name is an alias. */
14977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14980 char (*f) () = $ac_func;
14989 return f != $ac_func;
14994 rm -f conftest.
$ac_objext conftest
$ac_exeext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14996 (eval $ac_link) 2>conftest.er1
14998 grep -v '^ *+' conftest.er1
>conftest.err
15000 cat conftest.err
>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try
='test -s conftest$ac_exeext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 eval "$as_ac_var=yes"
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.
$ac_ext >&5
15020 eval "$as_ac_var=no"
15022 rm -f conftest.err conftest.
$ac_objext \
15023 conftest
$ac_exeext conftest.
$ac_ext
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15027 if test `eval echo '${'$as_ac_var'}'` = yes; then
15028 cat >>confdefs.h
<<_ACEOF
15029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15036 # Solaris has libkstat which does not require root.
15038 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15039 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15040 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 ac_check_lib_save_LIBS
=$LIBS
15044 LIBS
="-lkstat $LIBS"
15045 cat >conftest.
$ac_ext <<_ACEOF
15048 cat confdefs.h
>>conftest.
$ac_ext
15049 cat >>conftest.
$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any gcc2 internal prototype to avoid an error. */
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15058 char kstat_open ();
15067 rm -f conftest.
$ac_objext conftest
$ac_exeext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>conftest.er1
15071 grep -v '^ *+' conftest.er1
>conftest.err
15073 cat conftest.err
>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try
='test -s conftest$ac_exeext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_lib_kstat_kstat_open
=yes
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.
$ac_ext >&5
15093 ac_cv_lib_kstat_kstat_open
=no
15095 rm -f conftest.err conftest.
$ac_objext \
15096 conftest
$ac_exeext conftest.
$ac_ext
15097 LIBS
=$ac_check_lib_save_LIBS
15099 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15100 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15101 if test $ac_cv_lib_kstat_kstat_open = yes; then
15102 cat >>confdefs.h
<<_ACEOF
15103 #define HAVE_LIBKSTAT 1
15106 LIBS
="-lkstat $LIBS"
15110 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15112 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15113 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15114 # to get the right answer into the cache.
15115 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15116 if test $ac_have_func = no
; then
15117 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15118 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15119 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 ac_check_lib_save_LIBS
=$LIBS
15124 cat >conftest.
$ac_ext <<_ACEOF
15127 cat confdefs.h
>>conftest.
$ac_ext
15128 cat >>conftest.
$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15131 /* Override any gcc2 internal prototype to avoid an error. */
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15146 rm -f conftest.
$ac_objext conftest
$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>conftest.er1
15150 grep -v '^ *+' conftest.er1
>conftest.err
15152 cat conftest.err
>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try
='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_lib_elf_elf_begin
=yes
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.
$ac_ext >&5
15172 ac_cv_lib_elf_elf_begin
=no
15174 rm -f conftest.err conftest.
$ac_objext \
15175 conftest
$ac_exeext conftest.
$ac_ext
15176 LIBS
=$ac_check_lib_save_LIBS
15178 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15179 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15180 if test $ac_cv_lib_elf_elf_begin = yes; then
15185 if test $ac_have_func = no
; then
15186 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15187 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15188 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_check_lib_save_LIBS
=$LIBS
15193 cat >conftest.
$ac_ext <<_ACEOF
15196 cat confdefs.h
>>conftest.
$ac_ext
15197 cat >>conftest.
$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15215 rm -f conftest.
$ac_objext conftest
$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15219 grep -v '^ *+' conftest.er1
>conftest.err
15221 cat conftest.err
>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try
='test -s conftest$ac_exeext'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 ac_cv_lib_kvm_kvm_open
=yes
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.
$ac_ext >&5
15241 ac_cv_lib_kvm_kvm_open
=no
15243 rm -f conftest.err conftest.
$ac_objext \
15244 conftest
$ac_exeext conftest.
$ac_ext
15245 LIBS
=$ac_check_lib_save_LIBS
15247 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15248 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15249 if test $ac_cv_lib_kvm_kvm_open = yes; then
15253 # Check for the 4.4BSD definition of getloadavg.
15254 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15255 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15256 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 ac_check_lib_save_LIBS
=$LIBS
15260 LIBS
="-lutil $LIBS"
15261 cat >conftest.
$ac_ext <<_ACEOF
15264 cat confdefs.h
>>conftest.
$ac_ext
15265 cat >>conftest.
$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15268 /* Override any gcc2 internal prototype to avoid an error. */
15272 /* We use char because int might match the return type of a gcc2
15273 builtin and then its argument prototype would still apply. */
15274 char getloadavg ();
15283 rm -f conftest.
$ac_objext conftest
$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>conftest.er1
15287 grep -v '^ *+' conftest.er1
>conftest.err
15289 cat conftest.err
>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try
='test -s conftest$ac_exeext'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_lib_util_getloadavg
=yes
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.
$ac_ext >&5
15309 ac_cv_lib_util_getloadavg
=no
15311 rm -f conftest.err conftest.
$ac_objext \
15312 conftest
$ac_exeext conftest.
$ac_ext
15313 LIBS
=$ac_check_lib_save_LIBS
15315 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15316 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15317 if test $ac_cv_lib_util_getloadavg = yes; then
15318 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15323 if test $ac_have_func = no
; then
15324 # There is a commonly available library for RS/6000 AIX.
15325 # Since it is not a standard part of AIX, it might be installed locally.
15326 ac_getloadavg_LIBS
=$LIBS
15327 LIBS
="-L/usr/local/lib $LIBS"
15328 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15329 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15330 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 ac_check_lib_save_LIBS
=$LIBS
15334 LIBS
="-lgetloadavg $LIBS"
15335 cat >conftest.
$ac_ext <<_ACEOF
15338 cat confdefs.h
>>conftest.
$ac_ext
15339 cat >>conftest.
$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15342 /* Override any gcc2 internal prototype to avoid an error. */
15346 /* We use char because int might match the return type of a gcc2
15347 builtin and then its argument prototype would still apply. */
15348 char getloadavg ();
15357 rm -f conftest.
$ac_objext conftest
$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>conftest.er1
15361 grep -v '^ *+' conftest.er1
>conftest.err
15363 cat conftest.err
>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try
='test -s conftest$ac_exeext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_cv_lib_getloadavg_getloadavg
=yes
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.
$ac_ext >&5
15383 ac_cv_lib_getloadavg_getloadavg
=no
15385 rm -f conftest.err conftest.
$ac_objext \
15386 conftest
$ac_exeext conftest.
$ac_ext
15387 LIBS
=$ac_check_lib_save_LIBS
15389 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15390 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15391 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15392 LIBS
="-lgetloadavg $LIBS"
15394 LIBS
=$ac_getloadavg_LIBS
15399 # Make sure it is really in the library, if we think we found it,
15400 # otherwise set up the replacement function.
15402 for ac_func
in getloadavg
15404 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for $ac_func" >&5
15406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_var+set}\" = set"; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 cat >conftest.
$ac_ext <<_ACEOF
15413 cat confdefs.h
>>conftest.
$ac_ext
15414 cat >>conftest.
$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15418 #define $ac_func innocuous_$ac_func
15420 /* System header to define __stub macros and hopefully few prototypes,
15421 which can conflict with char $ac_func (); below.
15422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15423 <limits.h> exists even on freestanding compilers. */
15426 # include <limits.h>
15428 # include <assert.h>
15433 /* Override any gcc2 internal prototype to avoid an error. */
15438 /* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15441 /* The GNU C library defines this for functions which it implements
15442 to always fail with ENOSYS. Some functions are actually named
15443 something starting with __ and the normal name is an alias. */
15444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 char (*f) () = $ac_func;
15456 return f != $ac_func;
15461 rm -f conftest.
$ac_objext conftest
$ac_exeext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463 (eval $ac_link) 2>conftest.er1
15465 grep -v '^ *+' conftest.er1
>conftest.err
15467 cat conftest.err
>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; } &&
15476 { ac_try
='test -s conftest$ac_exeext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 eval "$as_ac_var=yes"
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.
$ac_ext >&5
15487 eval "$as_ac_var=no"
15489 rm -f conftest.err conftest.
$ac_objext \
15490 conftest
$ac_exeext conftest.
$ac_ext
15492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495 cat >>confdefs.h
<<_ACEOF
15496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15501 "getloadavg.$ac_objext" | \
15502 *" getloadavg.$ac_objext" | \
15503 "getloadavg.$ac_objext "* | \
15504 *" getloadavg.$ac_objext "* ) ;;
15505 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15509 cat >>confdefs.h
<<\_ACEOF
15510 #define C_GETLOADAVG 1
15513 # Figure out what our getloadavg.c needs.
15515 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15516 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15517 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15518 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15522 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15524 # Is the header compilable?
15525 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15526 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15527 cat >conftest.
$ac_ext <<_ACEOF
15530 cat confdefs.h
>>conftest.
$ac_ext
15531 cat >>conftest.
$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15533 $ac_includes_default
15534 #include <sys/dg_sys_info.h>
15536 rm -f conftest.
$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15540 grep -v '^ *+' conftest.er1
>conftest.err
15542 cat conftest.err
>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15551 { ac_try
='test -s conftest.$ac_objext'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_header_compiler
=yes
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.
$ac_ext >&5
15562 ac_header_compiler
=no
15564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15566 echo "${ECHO_T}$ac_header_compiler" >&6
15568 # Is the header present?
15569 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15570 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15571 cat >conftest.
$ac_ext <<_ACEOF
15574 cat confdefs.h
>>conftest.
$ac_ext
15575 cat >>conftest.
$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 #include <sys/dg_sys_info.h>
15579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15580 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15582 grep -v '^ *+' conftest.er1
>conftest.err
15584 cat conftest.err
>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } >/dev
/null
; then
15587 if test -s conftest.err
; then
15588 ac_cpp_err
=$ac_c_preproc_warn_flag
15589 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15596 if test -z "$ac_cpp_err"; then
15597 ac_header_preproc
=yes
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.
$ac_ext >&5
15602 ac_header_preproc
=no
15604 rm -f conftest.err conftest.
$ac_ext
15605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15606 echo "${ECHO_T}$ac_header_preproc" >&6
15608 # So? What about this header?
15609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15612 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15614 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15615 ac_header_preproc
=yes
15618 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15619 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15621 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15623 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15625 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15627 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15629 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15632 ## ------------------------------------------ ##
15633 ## Report this to the AC_PACKAGE_NAME lists. ##
15634 ## ------------------------------------------ ##
15637 sed "s/^/$as_me: WARNING: /" >&2
15640 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15641 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15642 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15647 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15648 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15651 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15654 cat >>confdefs.h
<<\_ACEOF
15659 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15660 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15661 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 ac_check_lib_save_LIBS
=$LIBS
15666 cat >conftest.
$ac_ext <<_ACEOF
15669 cat confdefs.h
>>conftest.
$ac_ext
15670 cat >>conftest.
$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15673 /* Override any gcc2 internal prototype to avoid an error. */
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15679 char dg_sys_info ();
15688 rm -f conftest.
$ac_objext conftest
$ac_exeext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15690 (eval $ac_link) 2>conftest.er1
15692 grep -v '^ *+' conftest.er1
>conftest.err
15694 cat conftest.err
>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try
='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_cv_lib_dgc_dg_sys_info
=yes
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.
$ac_ext >&5
15714 ac_cv_lib_dgc_dg_sys_info
=no
15716 rm -f conftest.err conftest.
$ac_objext \
15717 conftest
$ac_exeext conftest.
$ac_ext
15718 LIBS
=$ac_check_lib_save_LIBS
15720 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15721 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15722 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15723 cat >>confdefs.h
<<_ACEOF
15724 #define HAVE_LIBDGC 1
15735 if test "${ac_cv_header_locale_h+set}" = set; then
15736 echo "$as_me:$LINENO: checking for locale.h" >&5
15737 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15738 if test "${ac_cv_header_locale_h+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15742 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15744 # Is the header compilable?
15745 echo "$as_me:$LINENO: checking locale.h usability" >&5
15746 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15747 cat >conftest.
$ac_ext <<_ACEOF
15750 cat confdefs.h
>>conftest.
$ac_ext
15751 cat >>conftest.
$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <locale.h>
15756 rm -f conftest.
$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15760 grep -v '^ *+' conftest.er1
>conftest.err
15762 cat conftest.err
>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; } &&
15771 { ac_try
='test -s conftest.$ac_objext'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_header_compiler
=yes
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.
$ac_ext >&5
15782 ac_header_compiler
=no
15784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6
15788 # Is the header present?
15789 echo "$as_me:$LINENO: checking locale.h presence" >&5
15790 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15791 cat >conftest.
$ac_ext <<_ACEOF
15794 cat confdefs.h
>>conftest.
$ac_ext
15795 cat >>conftest.
$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <locale.h>
15799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15800 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15802 grep -v '^ *+' conftest.er1
>conftest.err
15804 cat conftest.err
>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } >/dev
/null
; then
15807 if test -s conftest.err
; then
15808 ac_cpp_err
=$ac_c_preproc_warn_flag
15809 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15816 if test -z "$ac_cpp_err"; then
15817 ac_header_preproc
=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.
$ac_ext >&5
15822 ac_header_preproc
=no
15824 rm -f conftest.err conftest.
$ac_ext
15825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15826 echo "${ECHO_T}$ac_header_preproc" >&6
15828 # So? What about this header?
15829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15831 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15832 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15834 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15835 ac_header_preproc
=yes
15838 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15839 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15841 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15843 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15845 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15847 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15849 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15852 ## ------------------------------------------ ##
15853 ## Report this to the AC_PACKAGE_NAME lists. ##
15854 ## ------------------------------------------ ##
15857 sed "s/^/$as_me: WARNING: /" >&2
15860 echo "$as_me:$LINENO: checking for locale.h" >&5
15861 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15862 if test "${ac_cv_header_locale_h+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 ac_cv_header_locale_h
=$ac_header_preproc
15867 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15868 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15874 for ac_func
in setlocale
15876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877 echo "$as_me:$LINENO: checking for $ac_func" >&5
15878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_var+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 cat >conftest.
$ac_ext <<_ACEOF
15885 cat confdefs.h
>>conftest.
$ac_ext
15886 cat >>conftest.
$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15890 #define $ac_func innocuous_$ac_func
15892 /* System header to define __stub macros and hopefully few prototypes,
15893 which can conflict with char $ac_func (); below.
15894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895 <limits.h> exists even on freestanding compilers. */
15898 # include <limits.h>
15900 # include <assert.h>
15905 /* Override any gcc2 internal prototype to avoid an error. */
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15919 char (*f) () = $ac_func;
15928 return f != $ac_func;
15933 rm -f conftest.
$ac_objext conftest
$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15937 grep -v '^ *+' conftest.er1
>conftest.err
15939 cat conftest.err
>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try
='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.
$ac_ext >&5
15959 eval "$as_ac_var=no"
15961 rm -f conftest.err conftest.
$ac_objext \
15962 conftest
$ac_exeext conftest.
$ac_ext
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h
<<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15975 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15976 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15977 # Irix 4.0.5F has the header but not the library.
15978 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15981 cat >>confdefs.h
<<\_ACEOF
15987 if test $ac_have_func = no
; then
15988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15989 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15990 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15991 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15995 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15997 # Is the header compilable?
15998 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15999 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16000 cat >conftest.
$ac_ext <<_ACEOF
16003 cat confdefs.h
>>conftest.
$ac_ext
16004 cat >>conftest.
$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 #include <inq_stats/cpustats.h>
16009 rm -f conftest.
$ac_objext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>conftest.er1
16013 grep -v '^ *+' conftest.er1
>conftest.err
16015 cat conftest.err
>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try
='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_header_compiler
=yes
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.
$ac_ext >&5
16035 ac_header_compiler
=no
16037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16039 echo "${ECHO_T}$ac_header_compiler" >&6
16041 # Is the header present?
16042 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16043 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16044 cat >conftest.
$ac_ext <<_ACEOF
16047 cat confdefs.h
>>conftest.
$ac_ext
16048 cat >>conftest.
$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 #include <inq_stats/cpustats.h>
16052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16053 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16055 grep -v '^ *+' conftest.er1
>conftest.err
16057 cat conftest.err
>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev
/null
; then
16060 if test -s conftest.err
; then
16061 ac_cpp_err
=$ac_c_preproc_warn_flag
16062 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16069 if test -z "$ac_cpp_err"; then
16070 ac_header_preproc
=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.
$ac_ext >&5
16075 ac_header_preproc
=no
16077 rm -f conftest.err conftest.
$ac_ext
16078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6
16081 # So? What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16084 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc
=yes
16091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16105 ## ------------------------------------------ ##
16106 ## Report this to the AC_PACKAGE_NAME lists. ##
16107 ## ------------------------------------------ ##
16110 sed "s/^/$as_me: WARNING: /" >&2
16113 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16114 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16115 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16120 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16121 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16124 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16127 cat >>confdefs.h
<<\_ACEOF
16132 cat >>confdefs.h
<<\_ACEOF
16141 if test $ac_have_func = no
; then
16142 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16143 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16144 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16145 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16149 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16151 # Is the header compilable?
16152 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16153 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16154 cat >conftest.
$ac_ext <<_ACEOF
16157 cat confdefs.h
>>conftest.
$ac_ext
16158 cat >>conftest.
$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 $ac_includes_default
16161 #include <sys/cpustats.h>
16163 rm -f conftest.
$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165 (eval $ac_compile) 2>conftest.er1
16167 grep -v '^ *+' conftest.er1
>conftest.err
16169 cat conftest.err
>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try
='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_header_compiler
=yes
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.
$ac_ext >&5
16189 ac_header_compiler
=no
16191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16193 echo "${ECHO_T}$ac_header_compiler" >&6
16195 # Is the header present?
16196 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16197 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16198 cat >conftest.
$ac_ext <<_ACEOF
16201 cat confdefs.h
>>conftest.
$ac_ext
16202 cat >>conftest.
$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 #include <sys/cpustats.h>
16206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16209 grep -v '^ *+' conftest.er1
>conftest.err
16211 cat conftest.err
>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } >/dev
/null
; then
16214 if test -s conftest.err
; then
16215 ac_cpp_err
=$ac_c_preproc_warn_flag
16216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16223 if test -z "$ac_cpp_err"; then
16224 ac_header_preproc
=yes
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.
$ac_ext >&5
16229 ac_header_preproc
=no
16231 rm -f conftest.err conftest.
$ac_ext
16232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16233 echo "${ECHO_T}$ac_header_preproc" >&6
16235 # So? What about this header?
16236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16238 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16239 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16241 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16242 ac_header_preproc
=yes
16245 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16246 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16247 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16248 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16250 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16252 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16254 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16256 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16259 ## ------------------------------------------ ##
16260 ## Report this to the AC_PACKAGE_NAME lists. ##
16261 ## ------------------------------------------ ##
16264 sed "s/^/$as_me: WARNING: /" >&2
16267 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16268 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16269 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16274 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16275 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16278 if test $ac_cv_header_sys_cpustats_h = yes; then
16279 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16288 if test $ac_have_func = no
; then
16290 for ac_header
in mach
/mach.h
16292 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16294 echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16302 # Is the header compilable?
16303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16305 cat >conftest.
$ac_ext <<_ACEOF
16308 cat confdefs.h
>>conftest.
$ac_ext
16309 cat >>conftest.
$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 $ac_includes_default
16312 #include <$ac_header>
16314 rm -f conftest.
$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>conftest.er1
16318 grep -v '^ *+' conftest.er1
>conftest.err
16320 cat conftest.err
>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try
='test -s conftest.$ac_objext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_header_compiler
=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.
$ac_ext >&5
16340 ac_header_compiler
=no
16342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6
16346 # Is the header present?
16347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16349 cat >conftest.
$ac_ext <<_ACEOF
16352 cat confdefs.h
>>conftest.
$ac_ext
16353 cat >>conftest.
$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 #include <$ac_header>
16357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16360 grep -v '^ *+' conftest.er1
>conftest.err
16362 cat conftest.err
>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev
/null
; then
16365 if test -s conftest.err
; then
16366 ac_cpp_err
=$ac_c_preproc_warn_flag
16367 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16374 if test -z "$ac_cpp_err"; then
16375 ac_header_preproc
=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.
$ac_ext >&5
16380 ac_header_preproc
=no
16382 rm -f conftest.err conftest.
$ac_ext
16383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384 echo "${ECHO_T}$ac_header_preproc" >&6
16386 # So? What about this header?
16387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16393 ac_header_preproc
=yes
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 ## ------------------------------------------ ##
16411 ## Report this to the AC_PACKAGE_NAME lists. ##
16412 ## ------------------------------------------ ##
16415 sed "s/^/$as_me: WARNING: /" >&2
16418 echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 eval "$as_ac_Header=\$ac_header_preproc"
16425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h
<<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16441 for ac_header
in nlist.h
16443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16445 echo "$as_me:$LINENO: checking for $ac_header" >&5
16446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16453 # Is the header compilable?
16454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16456 cat >conftest.
$ac_ext <<_ACEOF
16459 cat confdefs.h
>>conftest.
$ac_ext
16460 cat >>conftest.
$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 $ac_includes_default
16463 #include <$ac_header>
16465 rm -f conftest.
$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16469 grep -v '^ *+' conftest.er1
>conftest.err
16471 cat conftest.err
>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try
='test -s conftest.$ac_objext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_header_compiler
=yes
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.
$ac_ext >&5
16491 ac_header_compiler
=no
16493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16495 echo "${ECHO_T}$ac_header_compiler" >&6
16497 # Is the header present?
16498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16500 cat >conftest.
$ac_ext <<_ACEOF
16503 cat confdefs.h
>>conftest.
$ac_ext
16504 cat >>conftest.
$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 #include <$ac_header>
16508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16509 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16511 grep -v '^ *+' conftest.er1
>conftest.err
16513 cat conftest.err
>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } >/dev
/null
; then
16516 if test -s conftest.err
; then
16517 ac_cpp_err
=$ac_c_preproc_warn_flag
16518 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16525 if test -z "$ac_cpp_err"; then
16526 ac_header_preproc
=yes
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.
$ac_ext >&5
16531 ac_header_preproc
=no
16533 rm -f conftest.err conftest.
$ac_ext
16534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16535 echo "${ECHO_T}$ac_header_preproc" >&6
16537 # So? What about this header?
16538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16544 ac_header_preproc
=yes
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16561 ## ------------------------------------------ ##
16562 ## Report this to the AC_PACKAGE_NAME lists. ##
16563 ## ------------------------------------------ ##
16566 sed "s/^/$as_me: WARNING: /" >&2
16569 echo "$as_me:$LINENO: checking for $ac_header" >&5
16570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 eval "$as_ac_Header=\$ac_header_preproc"
16576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16581 cat >>confdefs.h
<<_ACEOF
16582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16584 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16585 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16586 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.
$ac_ext <<_ACEOF
16592 cat confdefs.h
>>conftest.
$ac_ext
16593 cat >>conftest.
$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16600 static struct nlist ac_aggr;
16601 if (ac_aggr.n_un.n_name)
16607 rm -f conftest.
$ac_objext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609 (eval $ac_compile) 2>conftest.er1
16611 grep -v '^ *+' conftest.er1
>conftest.err
16613 cat conftest.err
>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try
='test -s conftest.$ac_objext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_member_struct_nlist_n_un_n_name
=yes
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.
$ac_ext >&5
16633 cat >conftest.
$ac_ext <<_ACEOF
16636 cat confdefs.h
>>conftest.
$ac_ext
16637 cat >>conftest.
$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16644 static struct nlist ac_aggr;
16645 if (sizeof ac_aggr.n_un.n_name)
16651 rm -f conftest.
$ac_objext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>conftest.er1
16655 grep -v '^ *+' conftest.er1
>conftest.err
16657 cat conftest.err
>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try
='test -s conftest.$ac_objext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_member_struct_nlist_n_un_n_name
=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.
$ac_ext >&5
16677 ac_cv_member_struct_nlist_n_un_n_name
=no
16679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16683 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16684 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16685 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16687 cat >>confdefs.h
<<_ACEOF
16688 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16692 cat >>confdefs.h
<<\_ACEOF
16693 #define NLIST_NAME_UNION 1
16707 # Some definitions of getloadavg require that the program be installed setgid.
16708 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16709 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16710 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 cat >conftest.
$ac_ext <<_ACEOF
16716 cat confdefs.h
>>conftest.
$ac_ext
16717 cat >>conftest.
$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16720 #ifdef LDAV_PRIVILEGED
16721 Yowza Am I SETGID yet
16724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16725 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16726 ac_cv_func_getloadavg_setgid
=yes
16728 ac_cv_func_getloadavg_setgid
=no
16733 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16734 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16735 if test $ac_cv_func_getloadavg_setgid = yes; then
16738 cat >>confdefs.h
<<\_ACEOF
16739 #define GETLOADAVG_PRIVILEGED 1
16746 if test $ac_cv_func_getloadavg_setgid = yes; then
16747 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16748 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16749 if test "${ac_cv_group_kmem+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16753 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16754 # If we got an error (system does not support symlinks), try without -L.
16755 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16756 ac_cv_group_kmem
=`echo $ac_ls_output \
16757 | sed -ne 's/[ ][ ]*/ /g;
16758 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16762 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16763 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16764 KMEM_GROUP
=$ac_cv_group_kmem
16766 if test "x$ac_save_LIBS" = x
; then
16767 GETLOADAVG_LIBS
=$LIBS
16769 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16775 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16776 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16777 if test "${ac_cv_sys_largefile_source+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 ac_cv_sys_largefile_source
=no
16782 cat >conftest.
$ac_ext <<_ACEOF
16785 cat confdefs.h
>>conftest.
$ac_ext
16786 cat >>conftest.
$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16797 rm -f conftest.
$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>conftest.er1
16801 grep -v '^ *+' conftest.er1
>conftest.err
16803 cat conftest.err
>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try
='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.
$ac_ext >&5
16824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16825 cat >conftest.
$ac_ext <<_ACEOF
16828 cat confdefs.h
>>conftest.
$ac_ext
16829 cat >>conftest.
$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #define _LARGEFILE_SOURCE 1
16841 rm -f conftest.
$ac_objext
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16845 grep -v '^ *+' conftest.er1
>conftest.err
16847 cat conftest.err
>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; } &&
16856 { ac_try
='test -s conftest.$ac_objext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_sys_largefile_source
=1; break
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.
$ac_ext >&5
16868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16873 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16874 if test "$ac_cv_sys_largefile_source" != no
; then
16876 cat >>confdefs.h
<<_ACEOF
16877 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16883 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16884 # in glibc 2.1.3, but that breaks too many other things.
16885 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16886 echo "$as_me:$LINENO: checking for fseeko" >&5
16887 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16888 if test "${ac_cv_func_fseeko+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.
$ac_ext <<_ACEOF
16894 cat confdefs.h
>>conftest.
$ac_ext
16895 cat >>conftest.
$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16901 return fseeko && fseeko (stdin, 0, 0);
16906 rm -f conftest.
$ac_objext conftest
$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>conftest.er1
16910 grep -v '^ *+' conftest.er1
>conftest.err
16912 cat conftest.err
>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try
='test -s conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_func_fseeko
=yes
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.
$ac_ext >&5
16932 ac_cv_func_fseeko
=no
16934 rm -f conftest.err conftest.
$ac_objext \
16935 conftest
$ac_exeext conftest.
$ac_ext
16937 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16938 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16939 if test $ac_cv_func_fseeko = yes; then
16941 cat >>confdefs.h
<<\_ACEOF
16942 #define HAVE_FSEEKO 1
16948 # Configure getopt.
16949 # getopt.m4 serial 10
16951 # The getopt module assume you want GNU getopt, with getopt_long etc,
16952 # rather than vanilla POSIX getopt. This means your your code should
16953 # always include <getopt.h> for the getopt prototypes.
16965 # Prerequisites of lib/getopt*.
16972 for ac_header
in getopt.h
16974 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16976 echo "$as_me:$LINENO: checking for $ac_header" >&5
16977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16984 # Is the header compilable?
16985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16987 cat >conftest.
$ac_ext <<_ACEOF
16990 cat confdefs.h
>>conftest.
$ac_ext
16991 cat >>conftest.
$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 $ac_includes_default
16994 #include <$ac_header>
16996 rm -f conftest.
$ac_objext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
17000 grep -v '^ *+' conftest.er1
>conftest.err
17002 cat conftest.err
>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try
='test -s conftest.$ac_objext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_header_compiler
=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.
$ac_ext >&5
17022 ac_header_compiler
=no
17024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026 echo "${ECHO_T}$ac_header_compiler" >&6
17028 # Is the header present?
17029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17031 cat >conftest.
$ac_ext <<_ACEOF
17034 cat confdefs.h
>>conftest.
$ac_ext
17035 cat >>conftest.
$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 #include <$ac_header>
17039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17040 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17042 grep -v '^ *+' conftest.er1
>conftest.err
17044 cat conftest.err
>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } >/dev
/null
; then
17047 if test -s conftest.err
; then
17048 ac_cpp_err
=$ac_c_preproc_warn_flag
17049 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17056 if test -z "$ac_cpp_err"; then
17057 ac_header_preproc
=yes
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.
$ac_ext >&5
17062 ac_header_preproc
=no
17064 rm -f conftest.err conftest.
$ac_ext
17065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17066 echo "${ECHO_T}$ac_header_preproc" >&6
17068 # So? What about this header?
17069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17075 ac_header_preproc
=yes
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17092 ## ------------------------------------------ ##
17093 ## Report this to the AC_PACKAGE_NAME lists. ##
17094 ## ------------------------------------------ ##
17097 sed "s/^/$as_me: WARNING: /" >&2
17100 echo "$as_me:$LINENO: checking for $ac_header" >&5
17101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 eval "$as_ac_Header=\$ac_header_preproc"
17107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17112 cat >>confdefs.h
<<_ACEOF
17113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17122 if test -z "$GETOPT_H"; then
17124 for ac_func
in getopt_long_only
17126 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17127 echo "$as_me:$LINENO: checking for $ac_func" >&5
17128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17129 if eval "test \"\${$as_ac_var+set}\" = set"; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 cat >conftest.
$ac_ext <<_ACEOF
17135 cat confdefs.h
>>conftest.
$ac_ext
17136 cat >>conftest.
$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17140 #define $ac_func innocuous_$ac_func
17142 /* System header to define __stub macros and hopefully few prototypes,
17143 which can conflict with char $ac_func (); below.
17144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17145 <limits.h> exists even on freestanding compilers. */
17148 # include <limits.h>
17150 # include <assert.h>
17155 /* Override any gcc2 internal prototype to avoid an error. */
17160 /* We use char because int might match the return type of a gcc2
17161 builtin and then its argument prototype would still apply. */
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17169 char (*f) () = $ac_func;
17178 return f != $ac_func;
17183 rm -f conftest.
$ac_objext conftest
$ac_exeext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17185 (eval $ac_link) 2>conftest.er1
17187 grep -v '^ *+' conftest.er1
>conftest.err
17189 cat conftest.err
>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try
='test -s conftest$ac_exeext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 eval "$as_ac_var=yes"
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.
$ac_ext >&5
17209 eval "$as_ac_var=no"
17211 rm -f conftest.err conftest.
$ac_objext \
17212 conftest
$ac_exeext conftest.
$ac_ext
17214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17216 if test `eval echo '${'$as_ac_var'}'` = yes; then
17217 cat >>confdefs.h
<<_ACEOF
17218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17228 if test -z "$GETOPT_H"; then
17229 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17230 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17231 if test "${ac_cv_have_decl_optreset+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 cat >conftest.
$ac_ext <<_ACEOF
17237 cat confdefs.h
>>conftest.
$ac_ext
17238 cat >>conftest.
$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 #include <getopt.h>
17246 char *p = (char *) optreset;
17253 rm -f conftest.
$ac_objext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17255 (eval $ac_compile) 2>conftest.er1
17257 grep -v '^ *+' conftest.er1
>conftest.err
17259 cat conftest.err
>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try
='test -s conftest.$ac_objext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_have_decl_optreset
=yes
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.
$ac_ext >&5
17279 ac_cv_have_decl_optreset
=no
17281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17283 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17284 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17285 if test $ac_cv_have_decl_optreset = yes; then
17291 if test -z "$GETOPT_H"; then
17292 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17293 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17294 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 if test "$cross_compiling" = yes; then
17298 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17299 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17300 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 cat >conftest.
$ac_ext <<_ACEOF
17306 cat confdefs.h
>>conftest.
$ac_ext
17307 cat >>conftest.
$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 #include <getopt.h>
17314 #ifndef getopt_clip
17315 char *p = (char *) getopt_clip;
17322 rm -f conftest.
$ac_objext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17326 grep -v '^ *+' conftest.er1
>conftest.err
17328 cat conftest.err
>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try
='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_have_decl_getopt_clip
=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.
$ac_ext >&5
17348 ac_cv_have_decl_getopt_clip
=no
17350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17352 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17353 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17354 if test $ac_cv_have_decl_getopt_clip = yes; then
17355 gl_cv_func_gnu_getopt
=no
17357 gl_cv_func_gnu_getopt
=yes
17361 cat >conftest.
$ac_ext <<_ACEOF
17364 cat confdefs.h
>>conftest.
$ac_ext
17365 cat >>conftest.
$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 #include <getopt.h>
17373 myargv[0] = "conftest";
17376 return getopt (2, myargv, "+a") != '?';
17382 rm -f conftest
$ac_exeext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 gl_cv_func_gnu_getopt
=yes
17395 echo "$as_me: program exited with status $ac_status" >&5
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.
$ac_ext >&5
17399 ( exit $ac_status )
17400 gl_cv_func_gnu_getopt
=no
17402 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17405 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17406 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17407 if test "$gl_cv_func_gnu_getopt" = "no"; then
17414 if test -n "$GETOPT_H"; then
17419 cat >>confdefs.h
<<\_ACEOF
17420 #define __GETOPT_PREFIX rpl_
17426 GETOPTOBJS
='getopt.o getopt1.o'
17433 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17434 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17435 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 # Use it with a single arg.
17439 cat >conftest.
$ac_ext <<_ACEOF
17442 cat confdefs.h
>>conftest.
$ac_ext
17443 cat >>conftest.
$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 $ac_includes_default
17454 rm -f conftest.
$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17458 grep -v '^ *+' conftest.er1
>conftest.err
17460 cat conftest.err
>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try
='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_func_getpgrp_void
=no
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.
$ac_ext >&5
17480 ac_cv_func_getpgrp_void
=yes
17482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17485 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17486 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17487 if test $ac_cv_func_getpgrp_void = yes; then
17489 cat >>confdefs.h
<<\_ACEOF
17490 #define GETPGRP_VOID 1
17497 for ac_func
in strftime
17499 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17500 echo "$as_me:$LINENO: checking for $ac_func" >&5
17501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17502 if eval "test \"\${$as_ac_var+set}\" = set"; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 cat >conftest.
$ac_ext <<_ACEOF
17508 cat confdefs.h
>>conftest.
$ac_ext
17509 cat >>conftest.
$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17513 #define $ac_func innocuous_$ac_func
17515 /* System header to define __stub macros and hopefully few prototypes,
17516 which can conflict with char $ac_func (); below.
17517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17518 <limits.h> exists even on freestanding compilers. */
17521 # include <limits.h>
17523 # include <assert.h>
17528 /* Override any gcc2 internal prototype to avoid an error. */
17533 /* We use char because int might match the return type of a gcc2
17534 builtin and then its argument prototype would still apply. */
17536 /* The GNU C library defines this for functions which it implements
17537 to always fail with ENOSYS. Some functions are actually named
17538 something starting with __ and the normal name is an alias. */
17539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17542 char (*f) () = $ac_func;
17551 return f != $ac_func;
17556 rm -f conftest.
$ac_objext conftest
$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>conftest.er1
17560 grep -v '^ *+' conftest.er1
>conftest.err
17562 cat conftest.err
>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try
='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 eval "$as_ac_var=yes"
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.
$ac_ext >&5
17582 eval "$as_ac_var=no"
17584 rm -f conftest.err conftest.
$ac_objext \
17585 conftest
$ac_exeext conftest.
$ac_ext
17587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17589 if test `eval echo '${'$as_ac_var'}'` = yes; then
17590 cat >>confdefs.h
<<_ACEOF
17591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17595 # strftime is in -lintl on SCO UNIX.
17596 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17597 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17598 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 ac_check_lib_save_LIBS
=$LIBS
17602 LIBS
="-lintl $LIBS"
17603 cat >conftest.
$ac_ext <<_ACEOF
17606 cat confdefs.h
>>conftest.
$ac_ext
17607 cat >>conftest.
$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17610 /* 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. */
17625 rm -f conftest.
$ac_objext conftest
$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17629 grep -v '^ *+' conftest.er1
>conftest.err
17631 cat conftest.err
>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try
='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_lib_intl_strftime
=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.
$ac_ext >&5
17651 ac_cv_lib_intl_strftime
=no
17653 rm -f conftest.err conftest.
$ac_objext \
17654 conftest
$ac_exeext conftest.
$ac_ext
17655 LIBS
=$ac_check_lib_save_LIBS
17657 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17658 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17659 if test $ac_cv_lib_intl_strftime = yes; then
17660 cat >>confdefs.h
<<\_ACEOF
17661 #define HAVE_STRFTIME 1
17664 LIBS
="-lintl $LIBS"
17673 for ac_func
in grantpt
17675 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17676 echo "$as_me:$LINENO: checking for $ac_func" >&5
17677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17678 if eval "test \"\${$as_ac_var+set}\" = set"; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cat >conftest.
$ac_ext <<_ACEOF
17684 cat confdefs.h
>>conftest.
$ac_ext
17685 cat >>conftest.
$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689 #define $ac_func innocuous_$ac_func
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char $ac_func (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
17697 # include <limits.h>
17699 # include <assert.h>
17704 /* Override any gcc2 internal prototype to avoid an error. */
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17712 /* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17718 char (*f) () = $ac_func;
17727 return f != $ac_func;
17732 rm -f conftest.
$ac_objext conftest
$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17736 grep -v '^ *+' conftest.er1
>conftest.err
17738 cat conftest.err
>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try
='test -s conftest$ac_exeext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 eval "$as_ac_var=yes"
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.
$ac_ext >&5
17758 eval "$as_ac_var=no"
17760 rm -f conftest.err conftest.
$ac_objext \
17761 conftest
$ac_exeext conftest.
$ac_ext
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
17766 cat >>confdefs.h
<<_ACEOF
17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17774 # PTY-related GNU extensions.
17776 for ac_func
in getpt
17778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17779 echo "$as_me:$LINENO: checking for $ac_func" >&5
17780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17781 if eval "test \"\${$as_ac_var+set}\" = set"; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 cat >conftest.
$ac_ext <<_ACEOF
17787 cat confdefs.h
>>conftest.
$ac_ext
17788 cat >>conftest.
$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17792 #define $ac_func innocuous_$ac_func
17794 /* System header to define __stub macros and hopefully few prototypes,
17795 which can conflict with char $ac_func (); below.
17796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797 <limits.h> exists even on freestanding compilers. */
17800 # include <limits.h>
17802 # include <assert.h>
17807 /* Override any gcc2 internal prototype to avoid an error. */
17812 /* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17815 /* The GNU C library defines this for functions which it implements
17816 to always fail with ENOSYS. Some functions are actually named
17817 something starting with __ and the normal name is an alias. */
17818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17821 char (*f) () = $ac_func;
17830 return f != $ac_func;
17835 rm -f conftest.
$ac_objext conftest
$ac_exeext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837 (eval $ac_link) 2>conftest.er1
17839 grep -v '^ *+' conftest.er1
>conftest.err
17841 cat conftest.err
>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try
='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.
$ac_ext >&5
17861 eval "$as_ac_var=no"
17863 rm -f conftest.err conftest.
$ac_objext \
17864 conftest
$ac_exeext conftest.
$ac_ext
17866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869 cat >>confdefs.h
<<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17877 # Check this now, so that we will NOT find the above functions in ncurses.
17878 # That is because we have not set up to link ncurses in lib-src.
17879 # It's better to believe a function is not available
17880 # than to expect to find it in ncurses.
17882 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17883 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17884 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 ac_check_lib_save_LIBS
=$LIBS
17888 LIBS
="-lncurses $LIBS"
17889 cat >conftest.
$ac_ext <<_ACEOF
17892 cat confdefs.h
>>conftest.
$ac_ext
17893 cat >>conftest.
$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17896 /* Override any gcc2 internal prototype to avoid an error. */
17900 /* We use char because int might match the return type of a gcc2
17901 builtin and then its argument prototype would still apply. */
17911 rm -f conftest.
$ac_objext conftest
$ac_exeext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17913 (eval $ac_link) 2>conftest.er1
17915 grep -v '^ *+' conftest.er1
>conftest.err
17917 cat conftest.err
>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try
='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_lib_ncurses_tparm
=yes
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.
$ac_ext >&5
17937 ac_cv_lib_ncurses_tparm
=no
17939 rm -f conftest.err conftest.
$ac_objext \
17940 conftest
$ac_exeext conftest.
$ac_ext
17941 LIBS
=$ac_check_lib_save_LIBS
17943 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17944 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17945 if test $ac_cv_lib_ncurses_tparm = yes; then
17946 cat >>confdefs.h
<<_ACEOF
17947 #define HAVE_LIBNCURSES 1
17950 LIBS
="-lncurses $LIBS"
17955 # Do we need the Hesiod library to provide the support routines?
17956 if test "$with_hesiod" = yes ; then
17957 # Don't set $LIBS here -- see comments above.
17959 echo "$as_me:$LINENO: checking for res_send" >&5
17960 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17961 if test "${ac_cv_func_res_send+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 cat >conftest.
$ac_ext <<_ACEOF
17967 cat confdefs.h
>>conftest.
$ac_ext
17968 cat >>conftest.
$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17972 #define res_send innocuous_res_send
17974 /* System header to define __stub macros and hopefully few prototypes,
17975 which can conflict with char res_send (); below.
17976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977 <limits.h> exists even on freestanding compilers. */
17980 # include <limits.h>
17982 # include <assert.h>
17987 /* Override any gcc2 internal prototype to avoid an error. */
17992 /* We use char because int might match the return type of a gcc2
17993 builtin and then its argument prototype would still apply. */
17995 /* The GNU C library defines this for functions which it implements
17996 to always fail with ENOSYS. Some functions are actually named
17997 something starting with __ and the normal name is an alias. */
17998 #if defined (__stub_res_send) || defined (__stub___res_send)
18001 char (*f) () = res_send;
18010 return f != res_send;
18015 rm -f conftest.
$ac_objext conftest
$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017 (eval $ac_link) 2>conftest.er1
18019 grep -v '^ *+' conftest.er1
>conftest.err
18021 cat conftest.err
>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try
='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_func_res_send
=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.
$ac_ext >&5
18041 ac_cv_func_res_send
=no
18043 rm -f conftest.err conftest.
$ac_objext \
18044 conftest
$ac_exeext conftest.
$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18047 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18048 if test $ac_cv_func_res_send = yes; then
18051 echo "$as_me:$LINENO: checking for __res_send" >&5
18052 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18053 if test "${ac_cv_func___res_send+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 cat >conftest.
$ac_ext <<_ACEOF
18059 cat confdefs.h
>>conftest.
$ac_ext
18060 cat >>conftest.
$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064 #define __res_send innocuous___res_send
18066 /* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char __res_send (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18072 # include <limits.h>
18074 # include <assert.h>
18079 /* Override any gcc2 internal prototype to avoid an error. */
18084 /* We use char because int might match the return type of a gcc2
18085 builtin and then its argument prototype would still apply. */
18086 char __res_send ();
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined (__stub___res_send) || defined (__stub_____res_send)
18093 char (*f) () = __res_send;
18102 return f != __res_send;
18107 rm -f conftest.
$ac_objext conftest
$ac_exeext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109 (eval $ac_link) 2>conftest.er1
18111 grep -v '^ *+' conftest.er1
>conftest.err
18113 cat conftest.err
>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try
='test -s conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_func___res_send
=yes
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.
$ac_ext >&5
18133 ac_cv_func___res_send
=no
18135 rm -f conftest.err conftest.
$ac_objext \
18136 conftest
$ac_exeext conftest.
$ac_ext
18138 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18139 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18140 if test $ac_cv_func___res_send = yes; then
18143 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18144 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18145 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_check_lib_save_LIBS
=$LIBS
18149 LIBS
="-lresolv $LIBS"
18150 cat >conftest.
$ac_ext <<_ACEOF
18153 cat confdefs.h
>>conftest.
$ac_ext
18154 cat >>conftest.
$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18157 /* Override any gcc2 internal prototype to avoid an error. */
18161 /* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18172 rm -f conftest.
$ac_objext conftest
$ac_exeext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>conftest.er1
18176 grep -v '^ *+' conftest.er1
>conftest.err
18178 cat conftest.err
>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
18181 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183 (eval $ac_try) 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; } &&
18187 { ac_try
='test -s conftest$ac_exeext'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; }; then
18193 ac_cv_lib_resolv_res_send
=yes
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.
$ac_ext >&5
18198 ac_cv_lib_resolv_res_send
=no
18200 rm -f conftest.err conftest.
$ac_objext \
18201 conftest
$ac_exeext conftest.
$ac_ext
18202 LIBS
=$ac_check_lib_save_LIBS
18204 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18205 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18206 if test $ac_cv_lib_resolv_res_send = yes; then
18209 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18210 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18211 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 ac_check_lib_save_LIBS
=$LIBS
18215 LIBS
="-lresolv $LIBS"
18216 cat >conftest.
$ac_ext <<_ACEOF
18219 cat confdefs.h
>>conftest.
$ac_ext
18220 cat >>conftest.
$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18223 /* Override any gcc2 internal prototype to avoid an error. */
18227 /* We use char because int might match the return type of a gcc2
18228 builtin and then its argument prototype would still apply. */
18229 char __res_send ();
18238 rm -f conftest.
$ac_objext conftest
$ac_exeext
18239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18240 (eval $ac_link) 2>conftest.er1
18242 grep -v '^ *+' conftest.er1
>conftest.err
18244 cat conftest.err
>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try
='test -s conftest$ac_exeext'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 ac_cv_lib_resolv___res_send
=yes
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.
$ac_ext >&5
18264 ac_cv_lib_resolv___res_send
=no
18266 rm -f conftest.err conftest.
$ac_objext \
18267 conftest
$ac_exeext conftest.
$ac_ext
18268 LIBS
=$ac_check_lib_save_LIBS
18270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18272 if test $ac_cv_lib_resolv___res_send = yes; then
18282 if test "$resolv" = yes ; then
18285 cat >>confdefs.h
<<\_ACEOF
18286 #define HAVE_LIBRESOLV 1
18292 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18293 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18294 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 cat >conftest.
$ac_ext <<_ACEOF
18300 cat confdefs.h
>>conftest.
$ac_ext
18301 cat >>conftest.
$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18305 #define hes_getmailhost innocuous_hes_getmailhost
18307 /* System header to define __stub macros and hopefully few prototypes,
18308 which can conflict with char hes_getmailhost (); below.
18309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310 <limits.h> exists even on freestanding compilers. */
18313 # include <limits.h>
18315 # include <assert.h>
18318 #undef hes_getmailhost
18320 /* Override any gcc2 internal prototype to avoid an error. */
18325 /* We use char because int might match the return type of a gcc2
18326 builtin and then its argument prototype would still apply. */
18327 char hes_getmailhost ();
18328 /* The GNU C library defines this for functions which it implements
18329 to always fail with ENOSYS. Some functions are actually named
18330 something starting with __ and the normal name is an alias. */
18331 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18334 char (*f) () = hes_getmailhost;
18343 return f != hes_getmailhost;
18348 rm -f conftest.
$ac_objext conftest
$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>conftest.er1
18352 grep -v '^ *+' conftest.er1
>conftest.err
18354 cat conftest.err
>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try
='test -s conftest$ac_exeext'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_func_hes_getmailhost
=yes
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.
$ac_ext >&5
18374 ac_cv_func_hes_getmailhost
=no
18376 rm -f conftest.err conftest.
$ac_objext \
18377 conftest
$ac_exeext conftest.
$ac_ext
18379 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18380 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18381 if test $ac_cv_func_hes_getmailhost = yes; then
18384 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18385 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18386 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 ac_check_lib_save_LIBS
=$LIBS
18390 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18391 cat >conftest.
$ac_ext <<_ACEOF
18394 cat confdefs.h
>>conftest.
$ac_ext
18395 cat >>conftest.
$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18398 /* Override any gcc2 internal prototype to avoid an error. */
18402 /* We use char because int might match the return type of a gcc2
18403 builtin and then its argument prototype would still apply. */
18404 char hes_getmailhost ();
18408 hes_getmailhost ();
18413 rm -f conftest.
$ac_objext conftest
$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415 (eval $ac_link) 2>conftest.er1
18417 grep -v '^ *+' conftest.er1
>conftest.err
18419 cat conftest.err
>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try
='test -s conftest$ac_exeext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434 ac_cv_lib_hesiod_hes_getmailhost
=yes
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.
$ac_ext >&5
18439 ac_cv_lib_hesiod_hes_getmailhost
=no
18441 rm -f conftest.err conftest.
$ac_objext \
18442 conftest
$ac_exeext conftest.
$ac_ext
18443 LIBS
=$ac_check_lib_save_LIBS
18445 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18446 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18447 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18449 cat >>confdefs.h
<<\_ACEOF
18450 #define HAVE_LIBHESIOD 1
18461 # These tell us which Kerberos-related libraries to use.
18462 if test "${with_kerberos+set}" = set; then
18464 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18465 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18466 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 ac_check_lib_save_LIBS
=$LIBS
18470 LIBS
="-lcom_err $LIBS"
18471 cat >conftest.
$ac_ext <<_ACEOF
18474 cat confdefs.h
>>conftest.
$ac_ext
18475 cat >>conftest.
$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18478 /* Override any gcc2 internal prototype to avoid an error. */
18482 /* We use char because int might match the return type of a gcc2
18483 builtin and then its argument prototype would still apply. */
18493 rm -f conftest.
$ac_objext conftest
$ac_exeext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495 (eval $ac_link) 2>conftest.er1
18497 grep -v '^ *+' conftest.er1
>conftest.err
18499 cat conftest.err
>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try
='test -s conftest$ac_exeext'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_lib_com_err_com_err
=yes
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.
$ac_ext >&5
18519 ac_cv_lib_com_err_com_err
=no
18521 rm -f conftest.err conftest.
$ac_objext \
18522 conftest
$ac_exeext conftest.
$ac_ext
18523 LIBS
=$ac_check_lib_save_LIBS
18525 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18526 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18527 if test $ac_cv_lib_com_err_com_err = yes; then
18528 cat >>confdefs.h
<<_ACEOF
18529 #define HAVE_LIBCOM_ERR 1
18532 LIBS
="-lcom_err $LIBS"
18537 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18538 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18539 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 ac_check_lib_save_LIBS
=$LIBS
18543 LIBS
="-lk5crypto $LIBS"
18544 cat >conftest.
$ac_ext <<_ACEOF
18547 cat confdefs.h
>>conftest.
$ac_ext
18548 cat >>conftest.
$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18551 /* Override any gcc2 internal prototype to avoid an error. */
18555 /* We use char because int might match the return type of a gcc2
18556 builtin and then its argument prototype would still apply. */
18557 char mit_des_cbc_encrypt ();
18561 mit_des_cbc_encrypt ();
18566 rm -f conftest.
$ac_objext conftest
$ac_exeext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18568 (eval $ac_link) 2>conftest.er1
18570 grep -v '^ *+' conftest.er1
>conftest.err
18572 cat conftest.err
>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try
='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.
$ac_ext >&5
18592 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18594 rm -f conftest.err conftest.
$ac_objext \
18595 conftest
$ac_exeext conftest.
$ac_ext
18596 LIBS
=$ac_check_lib_save_LIBS
18598 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18599 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18600 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18601 cat >>confdefs.h
<<_ACEOF
18602 #define HAVE_LIBK5CRYPTO 1
18605 LIBS
="-lk5crypto $LIBS"
18610 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18611 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18612 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 ac_check_lib_save_LIBS
=$LIBS
18616 LIBS
="-lcrypto $LIBS"
18617 cat >conftest.
$ac_ext <<_ACEOF
18620 cat confdefs.h
>>conftest.
$ac_ext
18621 cat >>conftest.
$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18624 /* Override any gcc2 internal prototype to avoid an error. */
18628 /* We use char because int might match the return type of a gcc2
18629 builtin and then its argument prototype would still apply. */
18630 char mit_des_cbc_encrypt ();
18634 mit_des_cbc_encrypt ();
18639 rm -f conftest.
$ac_objext conftest
$ac_exeext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18641 (eval $ac_link) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1
>conftest.err
18645 cat conftest.err
>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try
='test -s conftest$ac_exeext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.
$ac_ext >&5
18665 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18667 rm -f conftest.err conftest.
$ac_objext \
18668 conftest
$ac_exeext conftest.
$ac_ext
18669 LIBS
=$ac_check_lib_save_LIBS
18671 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18672 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18673 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18674 cat >>confdefs.h
<<_ACEOF
18675 #define HAVE_LIBCRYPTO 1
18678 LIBS
="-lcrypto $LIBS"
18683 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18684 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18685 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 ac_check_lib_save_LIBS
=$LIBS
18689 LIBS
="-lkrb5 $LIBS"
18690 cat >conftest.
$ac_ext <<_ACEOF
18693 cat confdefs.h
>>conftest.
$ac_ext
18694 cat >>conftest.
$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18697 /* Override any gcc2 internal prototype to avoid an error. */
18701 /* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703 char krb5_init_context ();
18707 krb5_init_context ();
18712 rm -f conftest.
$ac_objext conftest
$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>conftest.er1
18716 grep -v '^ *+' conftest.er1
>conftest.err
18718 cat conftest.err
>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try
='test -s conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_lib_krb5_krb5_init_context
=yes
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.
$ac_ext >&5
18738 ac_cv_lib_krb5_krb5_init_context
=no
18740 rm -f conftest.err conftest.
$ac_objext \
18741 conftest
$ac_exeext conftest.
$ac_ext
18742 LIBS
=$ac_check_lib_save_LIBS
18744 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18745 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18746 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18747 cat >>confdefs.h
<<_ACEOF
18748 #define HAVE_LIBKRB5 1
18751 LIBS
="-lkrb5 $LIBS"
18755 if test "${with_kerberos5+set}" != set; then
18757 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18758 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18759 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 ac_check_lib_save_LIBS
=$LIBS
18763 LIBS
="-ldes425 $LIBS"
18764 cat >conftest.
$ac_ext <<_ACEOF
18767 cat confdefs.h
>>conftest.
$ac_ext
18768 cat >>conftest.
$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any gcc2 internal prototype to avoid an error. */
18775 /* We use char because int might match the return type of a gcc2
18776 builtin and then its argument prototype would still apply. */
18777 char des_cbc_encrypt ();
18781 des_cbc_encrypt ();
18786 rm -f conftest.
$ac_objext conftest
$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>conftest.er1
18790 grep -v '^ *+' conftest.er1
>conftest.err
18792 cat conftest.err
>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; } &&
18801 { ac_try
='test -s conftest$ac_exeext'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 ac_cv_lib_des425_des_cbc_encrypt
=yes
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.
$ac_ext >&5
18812 ac_cv_lib_des425_des_cbc_encrypt
=no
18814 rm -f conftest.err conftest.
$ac_objext \
18815 conftest
$ac_exeext conftest.
$ac_ext
18816 LIBS
=$ac_check_lib_save_LIBS
18818 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18819 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18820 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18821 cat >>confdefs.h
<<_ACEOF
18822 #define HAVE_LIBDES425 1
18825 LIBS
="-ldes425 $LIBS"
18829 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18830 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18831 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 ac_check_lib_save_LIBS
=$LIBS
18836 cat >conftest.
$ac_ext <<_ACEOF
18839 cat confdefs.h
>>conftest.
$ac_ext
18840 cat >>conftest.
$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 /* Override any gcc2 internal prototype to avoid an error. */
18847 /* We use char because int might match the return type of a gcc2
18848 builtin and then its argument prototype would still apply. */
18849 char des_cbc_encrypt ();
18853 des_cbc_encrypt ();
18858 rm -f conftest.
$ac_objext conftest
$ac_exeext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18860 (eval $ac_link) 2>conftest.er1
18862 grep -v '^ *+' conftest.er1
>conftest.err
18864 cat conftest.err
>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try
='test -s conftest$ac_exeext'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_lib_des_des_cbc_encrypt
=yes
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.
$ac_ext >&5
18884 ac_cv_lib_des_des_cbc_encrypt
=no
18886 rm -f conftest.err conftest.
$ac_objext \
18887 conftest
$ac_exeext conftest.
$ac_ext
18888 LIBS
=$ac_check_lib_save_LIBS
18890 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18891 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18892 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18893 cat >>confdefs.h
<<_ACEOF
18894 #define HAVE_LIBDES 1
18904 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18905 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18906 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 ac_check_lib_save_LIBS
=$LIBS
18910 LIBS
="-lkrb4 $LIBS"
18911 cat >conftest.
$ac_ext <<_ACEOF
18914 cat confdefs.h
>>conftest.
$ac_ext
18915 cat >>conftest.
$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18918 /* Override any gcc2 internal prototype to avoid an error. */
18922 /* We use char because int might match the return type of a gcc2
18923 builtin and then its argument prototype would still apply. */
18924 char krb_get_cred ();
18933 rm -f conftest.
$ac_objext conftest
$ac_exeext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18935 (eval $ac_link) 2>conftest.er1
18937 grep -v '^ *+' conftest.er1
>conftest.err
18939 cat conftest.err
>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try
='test -s conftest$ac_exeext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_cv_lib_krb4_krb_get_cred
=yes
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.
$ac_ext >&5
18959 ac_cv_lib_krb4_krb_get_cred
=no
18961 rm -f conftest.err conftest.
$ac_objext \
18962 conftest
$ac_exeext conftest.
$ac_ext
18963 LIBS
=$ac_check_lib_save_LIBS
18965 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18966 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18967 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18968 cat >>confdefs.h
<<_ACEOF
18969 #define HAVE_LIBKRB4 1
18972 LIBS
="-lkrb4 $LIBS"
18976 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18977 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18978 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 ac_check_lib_save_LIBS
=$LIBS
18983 cat >conftest.
$ac_ext <<_ACEOF
18986 cat confdefs.h
>>conftest.
$ac_ext
18987 cat >>conftest.
$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18990 /* Override any gcc2 internal prototype to avoid an error. */
18994 /* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18996 char krb_get_cred ();
19005 rm -f conftest.
$ac_objext conftest
$ac_exeext
19006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19007 (eval $ac_link) 2>conftest.er1
19009 grep -v '^ *+' conftest.er1
>conftest.err
19011 cat conftest.err
>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try
='test -s conftest$ac_exeext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_krb_krb_get_cred
=yes
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.
$ac_ext >&5
19031 ac_cv_lib_krb_krb_get_cred
=no
19033 rm -f conftest.err conftest.
$ac_objext \
19034 conftest
$ac_exeext conftest.
$ac_ext
19035 LIBS
=$ac_check_lib_save_LIBS
19037 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19038 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19039 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19040 cat >>confdefs.h
<<_ACEOF
19041 #define HAVE_LIBKRB 1
19052 if test "${with_kerberos5+set}" = set; then
19054 for ac_header
in krb5.h
19056 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19058 echo "$as_me:$LINENO: checking for $ac_header" >&5
19059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19066 # Is the header compilable?
19067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19069 cat >conftest.
$ac_ext <<_ACEOF
19072 cat confdefs.h
>>conftest.
$ac_ext
19073 cat >>conftest.
$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 $ac_includes_default
19076 #include <$ac_header>
19078 rm -f conftest.
$ac_objext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19082 grep -v '^ *+' conftest.er1
>conftest.err
19084 cat conftest.err
>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try
='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_header_compiler
=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.
$ac_ext >&5
19104 ac_header_compiler
=no
19106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19108 echo "${ECHO_T}$ac_header_compiler" >&6
19110 # Is the header present?
19111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19113 cat >conftest.
$ac_ext <<_ACEOF
19116 cat confdefs.h
>>conftest.
$ac_ext
19117 cat >>conftest.
$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 #include <$ac_header>
19121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19124 grep -v '^ *+' conftest.er1
>conftest.err
19126 cat conftest.err
>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } >/dev
/null
; then
19129 if test -s conftest.err
; then
19130 ac_cpp_err
=$ac_c_preproc_warn_flag
19131 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19138 if test -z "$ac_cpp_err"; then
19139 ac_header_preproc
=yes
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.
$ac_ext >&5
19144 ac_header_preproc
=no
19146 rm -f conftest.err conftest.
$ac_ext
19147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19148 echo "${ECHO_T}$ac_header_preproc" >&6
19150 # So? What about this header?
19151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19157 ac_header_preproc
=yes
19160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19174 ## ------------------------------------------ ##
19175 ## Report this to the AC_PACKAGE_NAME lists. ##
19176 ## ------------------------------------------ ##
19179 sed "s/^/$as_me: WARNING: /" >&2
19182 echo "$as_me:$LINENO: checking for $ac_header" >&5
19183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 eval "$as_ac_Header=\$ac_header_preproc"
19189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19194 cat >>confdefs.h
<<_ACEOF
19195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19204 for ac_header
in des.h
19206 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19208 echo "$as_me:$LINENO: checking for $ac_header" >&5
19209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19216 # Is the header compilable?
19217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19219 cat >conftest.
$ac_ext <<_ACEOF
19222 cat confdefs.h
>>conftest.
$ac_ext
19223 cat >>conftest.
$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 $ac_includes_default
19226 #include <$ac_header>
19228 rm -f conftest.
$ac_objext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19230 (eval $ac_compile) 2>conftest.er1
19232 grep -v '^ *+' conftest.er1
>conftest.err
19234 cat conftest.err
>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try
='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_header_compiler
=yes
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.
$ac_ext >&5
19254 ac_header_compiler
=no
19256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19258 echo "${ECHO_T}$ac_header_compiler" >&6
19260 # Is the header present?
19261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19263 cat >conftest.
$ac_ext <<_ACEOF
19266 cat confdefs.h
>>conftest.
$ac_ext
19267 cat >>conftest.
$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #include <$ac_header>
19271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19272 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19274 grep -v '^ *+' conftest.er1
>conftest.err
19276 cat conftest.err
>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } >/dev
/null
; then
19279 if test -s conftest.err
; then
19280 ac_cpp_err
=$ac_c_preproc_warn_flag
19281 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19288 if test -z "$ac_cpp_err"; then
19289 ac_header_preproc
=yes
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.
$ac_ext >&5
19294 ac_header_preproc
=no
19296 rm -f conftest.err conftest.
$ac_ext
19297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19298 echo "${ECHO_T}$ac_header_preproc" >&6
19300 # So? What about this header?
19301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19307 ac_header_preproc
=yes
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19324 ## ------------------------------------------ ##
19325 ## Report this to the AC_PACKAGE_NAME lists. ##
19326 ## ------------------------------------------ ##
19329 sed "s/^/$as_me: WARNING: /" >&2
19332 echo "$as_me:$LINENO: checking for $ac_header" >&5
19333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 eval "$as_ac_Header=\$ac_header_preproc"
19339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19344 cat >>confdefs.h
<<_ACEOF
19345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19350 for ac_header
in kerberosIV
/des.h
19352 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19354 echo "$as_me:$LINENO: checking for $ac_header" >&5
19355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19362 # Is the header compilable?
19363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19365 cat >conftest.
$ac_ext <<_ACEOF
19368 cat confdefs.h
>>conftest.
$ac_ext
19369 cat >>conftest.
$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 $ac_includes_default
19372 #include <$ac_header>
19374 rm -f conftest.
$ac_objext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1
>conftest.err
19380 cat conftest.err
>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try
='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_header_compiler
=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.
$ac_ext >&5
19400 ac_header_compiler
=no
19402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19404 echo "${ECHO_T}$ac_header_compiler" >&6
19406 # Is the header present?
19407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19409 cat >conftest.
$ac_ext <<_ACEOF
19412 cat confdefs.h
>>conftest.
$ac_ext
19413 cat >>conftest.
$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 #include <$ac_header>
19417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19418 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
19425 if test -s conftest.err
; then
19426 ac_cpp_err
=$ac_c_preproc_warn_flag
19427 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19434 if test -z "$ac_cpp_err"; then
19435 ac_header_preproc
=yes
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.
$ac_ext >&5
19440 ac_header_preproc
=no
19442 rm -f conftest.err conftest.
$ac_ext
19443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19444 echo "${ECHO_T}$ac_header_preproc" >&6
19446 # So? What about this header?
19447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19453 ac_header_preproc
=yes
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19470 ## ------------------------------------------ ##
19471 ## Report this to the AC_PACKAGE_NAME lists. ##
19472 ## ------------------------------------------ ##
19475 sed "s/^/$as_me: WARNING: /" >&2
19478 echo "$as_me:$LINENO: checking for $ac_header" >&5
19479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 eval "$as_ac_Header=\$ac_header_preproc"
19485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19490 cat >>confdefs.h
<<_ACEOF
19491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19496 for ac_header
in kerberos
/des.h
19498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5
19501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19508 # Is the header compilable?
19509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19511 cat >conftest.
$ac_ext <<_ACEOF
19514 cat confdefs.h
>>conftest.
$ac_ext
19515 cat >>conftest.
$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 $ac_includes_default
19518 #include <$ac_header>
19520 rm -f conftest.
$ac_objext
19521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19522 (eval $ac_compile) 2>conftest.er1
19524 grep -v '^ *+' conftest.er1
>conftest.err
19526 cat conftest.err
>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try
='test -s conftest.$ac_objext'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 ac_header_compiler
=yes
19543 echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.
$ac_ext >&5
19546 ac_header_compiler
=no
19548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19550 echo "${ECHO_T}$ac_header_compiler" >&6
19552 # Is the header present?
19553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19555 cat >conftest.
$ac_ext <<_ACEOF
19558 cat confdefs.h
>>conftest.
$ac_ext
19559 cat >>conftest.
$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 #include <$ac_header>
19563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19566 grep -v '^ *+' conftest.er1
>conftest.err
19568 cat conftest.err
>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } >/dev
/null
; then
19571 if test -s conftest.err
; then
19572 ac_cpp_err
=$ac_c_preproc_warn_flag
19573 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19580 if test -z "$ac_cpp_err"; then
19581 ac_header_preproc
=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.
$ac_ext >&5
19586 ac_header_preproc
=no
19588 rm -f conftest.err conftest.
$ac_ext
19589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19590 echo "${ECHO_T}$ac_header_preproc" >&6
19592 # So? What about this header?
19593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19599 ac_header_preproc
=yes
19602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19616 ## ------------------------------------------ ##
19617 ## Report this to the AC_PACKAGE_NAME lists. ##
19618 ## ------------------------------------------ ##
19621 sed "s/^/$as_me: WARNING: /" >&2
19624 echo "$as_me:$LINENO: checking for $ac_header" >&5
19625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 eval "$as_ac_Header=\$ac_header_preproc"
19631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19636 cat >>confdefs.h
<<_ACEOF
19637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19653 for ac_header
in krb.h
19655 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19657 echo "$as_me:$LINENO: checking for $ac_header" >&5
19658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19665 # Is the header compilable?
19666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19668 cat >conftest.
$ac_ext <<_ACEOF
19671 cat confdefs.h
>>conftest.
$ac_ext
19672 cat >>conftest.
$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 $ac_includes_default
19675 #include <$ac_header>
19677 rm -f conftest.
$ac_objext
19678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19679 (eval $ac_compile) 2>conftest.er1
19681 grep -v '^ *+' conftest.er1
>conftest.err
19683 cat conftest.err
>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try
='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_header_compiler
=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.
$ac_ext >&5
19703 ac_header_compiler
=no
19705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707 echo "${ECHO_T}$ac_header_compiler" >&6
19709 # Is the header present?
19710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19711 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
19720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19723 grep -v '^ *+' conftest.er1
>conftest.err
19725 cat conftest.err
>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } >/dev
/null
; then
19728 if test -s conftest.err
; then
19729 ac_cpp_err
=$ac_c_preproc_warn_flag
19730 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19737 if test -z "$ac_cpp_err"; then
19738 ac_header_preproc
=yes
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.
$ac_ext >&5
19743 ac_header_preproc
=no
19745 rm -f conftest.err conftest.
$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19747 echo "${ECHO_T}$ac_header_preproc" >&6
19749 # So? What about this header?
19750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19756 ac_header_preproc
=yes
19759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19773 ## ------------------------------------------ ##
19774 ## Report this to the AC_PACKAGE_NAME lists. ##
19775 ## ------------------------------------------ ##
19778 sed "s/^/$as_me: WARNING: /" >&2
19781 echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 eval "$as_ac_Header=\$ac_header_preproc"
19788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19793 cat >>confdefs.h
<<_ACEOF
19794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19799 for ac_header
in kerberosIV
/krb.h
19801 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19803 echo "$as_me:$LINENO: checking for $ac_header" >&5
19804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19811 # Is the header compilable?
19812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19814 cat >conftest.
$ac_ext <<_ACEOF
19817 cat confdefs.h
>>conftest.
$ac_ext
19818 cat >>conftest.
$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19821 #include <$ac_header>
19823 rm -f conftest.
$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19827 grep -v '^ *+' conftest.er1
>conftest.err
19829 cat conftest.err
>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try
='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_header_compiler
=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.
$ac_ext >&5
19849 ac_header_compiler
=no
19851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19853 echo "${ECHO_T}$ac_header_compiler" >&6
19855 # Is the header present?
19856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19858 cat >conftest.
$ac_ext <<_ACEOF
19861 cat confdefs.h
>>conftest.
$ac_ext
19862 cat >>conftest.
$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 #include <$ac_header>
19866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19867 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19869 grep -v '^ *+' conftest.er1
>conftest.err
19871 cat conftest.err
>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } >/dev
/null
; then
19874 if test -s conftest.err
; then
19875 ac_cpp_err
=$ac_c_preproc_warn_flag
19876 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19883 if test -z "$ac_cpp_err"; then
19884 ac_header_preproc
=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.
$ac_ext >&5
19889 ac_header_preproc
=no
19891 rm -f conftest.err conftest.
$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19893 echo "${ECHO_T}$ac_header_preproc" >&6
19895 # So? What about this header?
19896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19902 ac_header_preproc
=yes
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19919 ## ------------------------------------------ ##
19920 ## Report this to the AC_PACKAGE_NAME lists. ##
19921 ## ------------------------------------------ ##
19924 sed "s/^/$as_me: WARNING: /" >&2
19927 echo "$as_me:$LINENO: checking for $ac_header" >&5
19928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 eval "$as_ac_Header=\$ac_header_preproc"
19934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19939 cat >>confdefs.h
<<_ACEOF
19940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19945 for ac_header
in kerberos
/krb.h
19947 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19949 echo "$as_me:$LINENO: checking for $ac_header" >&5
19950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19957 # Is the header compilable?
19958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19960 cat >conftest.
$ac_ext <<_ACEOF
19963 cat confdefs.h
>>conftest.
$ac_ext
19964 cat >>conftest.
$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19967 #include <$ac_header>
19969 rm -f conftest.
$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19973 grep -v '^ *+' conftest.er1
>conftest.err
19975 cat conftest.err
>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try
='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_header_compiler
=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.
$ac_ext >&5
19995 ac_header_compiler
=no
19997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19999 echo "${ECHO_T}$ac_header_compiler" >&6
20001 # Is the header present?
20002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20004 cat >conftest.
$ac_ext <<_ACEOF
20007 cat confdefs.h
>>conftest.
$ac_ext
20008 cat >>conftest.
$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <$ac_header>
20012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20015 grep -v '^ *+' conftest.er1
>conftest.err
20017 cat conftest.err
>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } >/dev
/null
; then
20020 if test -s conftest.err
; then
20021 ac_cpp_err
=$ac_c_preproc_warn_flag
20022 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20029 if test -z "$ac_cpp_err"; then
20030 ac_header_preproc
=yes
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.
$ac_ext >&5
20035 ac_header_preproc
=no
20037 rm -f conftest.err conftest.
$ac_ext
20038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20039 echo "${ECHO_T}$ac_header_preproc" >&6
20041 # So? What about this header?
20042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20048 ac_header_preproc
=yes
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20065 ## ------------------------------------------ ##
20066 ## Report this to the AC_PACKAGE_NAME lists. ##
20067 ## ------------------------------------------ ##
20070 sed "s/^/$as_me: WARNING: /" >&2
20073 echo "$as_me:$LINENO: checking for $ac_header" >&5
20074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 eval "$as_ac_Header=\$ac_header_preproc"
20080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20085 cat >>confdefs.h
<<_ACEOF
20086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20103 for ac_header
in com_err.h
20105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20107 echo "$as_me:$LINENO: checking for $ac_header" >&5
20108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20115 # Is the header compilable?
20116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20118 cat >conftest.
$ac_ext <<_ACEOF
20121 cat confdefs.h
>>conftest.
$ac_ext
20122 cat >>conftest.
$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 $ac_includes_default
20125 #include <$ac_header>
20127 rm -f conftest.
$ac_objext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20129 (eval $ac_compile) 2>conftest.er1
20131 grep -v '^ *+' conftest.er1
>conftest.err
20133 cat conftest.err
>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } &&
20136 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; } &&
20142 { ac_try
='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_header_compiler
=yes
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.
$ac_ext >&5
20153 ac_header_compiler
=no
20155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20157 echo "${ECHO_T}$ac_header_compiler" >&6
20159 # Is the header present?
20160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20162 cat >conftest.
$ac_ext <<_ACEOF
20165 cat confdefs.h
>>conftest.
$ac_ext
20166 cat >>conftest.
$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 #include <$ac_header>
20170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20173 grep -v '^ *+' conftest.er1
>conftest.err
20175 cat conftest.err
>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } >/dev
/null
; then
20178 if test -s conftest.err
; then
20179 ac_cpp_err
=$ac_c_preproc_warn_flag
20180 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20187 if test -z "$ac_cpp_err"; then
20188 ac_header_preproc
=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.
$ac_ext >&5
20193 ac_header_preproc
=no
20195 rm -f conftest.err conftest.
$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20197 echo "${ECHO_T}$ac_header_preproc" >&6
20199 # So? What about this header?
20200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20206 ac_header_preproc
=yes
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20223 ## ------------------------------------------ ##
20224 ## Report this to the AC_PACKAGE_NAME lists. ##
20225 ## ------------------------------------------ ##
20228 sed "s/^/$as_me: WARNING: /" >&2
20231 echo "$as_me:$LINENO: checking for $ac_header" >&5
20232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 eval "$as_ac_Header=\$ac_header_preproc"
20238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20243 cat >>confdefs.h
<<_ACEOF
20244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20253 # Solaris requires -lintl if you want strerror (which calls dgettext)
20254 # to return localized messages.
20256 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20257 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20258 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 ac_check_lib_save_LIBS
=$LIBS
20262 LIBS
="-lintl $LIBS"
20263 cat >conftest.
$ac_ext <<_ACEOF
20266 cat confdefs.h
>>conftest.
$ac_ext
20267 cat >>conftest.
$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20270 /* Override any gcc2 internal prototype to avoid an error. */
20274 /* We use char because int might match the return type of a gcc2
20275 builtin and then its argument prototype would still apply. */
20285 rm -f conftest.
$ac_objext conftest
$ac_exeext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20287 (eval $ac_link) 2>conftest.er1
20289 grep -v '^ *+' conftest.er1
>conftest.err
20291 cat conftest.err
>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try
='test -s conftest$ac_exeext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_lib_intl_dgettext
=yes
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.
$ac_ext >&5
20311 ac_cv_lib_intl_dgettext
=no
20313 rm -f conftest.err conftest.
$ac_objext \
20314 conftest
$ac_exeext conftest.
$ac_ext
20315 LIBS
=$ac_check_lib_save_LIBS
20317 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20318 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20319 if test $ac_cv_lib_intl_dgettext = yes; then
20320 cat >>confdefs.h
<<_ACEOF
20321 #define HAVE_LIBINTL 1
20324 LIBS
="-lintl $LIBS"
20329 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20330 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20331 if test "${emacs_cv_localtime_cache+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 if test x
$ac_cv_func_tzset = xyes
; then
20335 if test "$cross_compiling" = yes; then
20336 # If we have tzset, assume the worst when cross-compiling.
20337 emacs_cv_localtime_cache
=yes
20339 cat >conftest.
$ac_ext <<_ACEOF
20342 cat confdefs.h
>>conftest.
$ac_ext
20343 cat >>conftest.
$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20346 extern char **environ;
20350 for (to = from = environ; (*to = *from); from++)
20351 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20354 char TZ_GMT0[] = "TZ=GMT0";
20355 char TZ_PST8[] = "TZ=PST8";
20358 time_t now = time ((time_t *) 0);
20359 int hour_GMT0, hour_unset;
20360 if (putenv (TZ_GMT0) != 0)
20362 hour_GMT0 = localtime (&now)->tm_hour;
20364 hour_unset = localtime (&now)->tm_hour;
20365 if (putenv (TZ_PST8) != 0)
20367 if (localtime (&now)->tm_hour == hour_GMT0)
20370 if (localtime (&now)->tm_hour != hour_unset)
20375 rm -f conftest
$ac_exeext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20377 (eval $ac_link) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 emacs_cv_localtime_cache
=no
20388 echo "$as_me: program exited with status $ac_status" >&5
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.
$ac_ext >&5
20392 ( exit $ac_status )
20393 emacs_cv_localtime_cache
=yes
20395 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20398 # If we lack tzset, report that localtime does not cache TZ,
20399 # since we can't invalidate the cache if we don't have tzset.
20400 emacs_cv_localtime_cache
=no
20403 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20404 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20405 if test $emacs_cv_localtime_cache = yes; then
20407 cat >>confdefs.h
<<\_ACEOF
20408 #define LOCALTIME_CACHE 1
20413 if test "x$HAVE_TIMEVAL" = xyes
; then
20415 for ac_func
in gettimeofday
20417 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20418 echo "$as_me:$LINENO: checking for $ac_func" >&5
20419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20420 if eval "test \"\${$as_ac_var+set}\" = set"; then
20421 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20431 #define $ac_func innocuous_$ac_func
20433 /* System header to define __stub macros and hopefully few prototypes,
20434 which can conflict with char $ac_func (); below.
20435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20436 <limits.h> exists even on freestanding compilers. */
20439 # include <limits.h>
20441 # include <assert.h>
20446 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20454 /* The GNU C library defines this for functions which it implements
20455 to always fail with ENOSYS. Some functions are actually named
20456 something starting with __ and the normal name is an alias. */
20457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20460 char (*f) () = $ac_func;
20469 return f != $ac_func;
20474 rm -f conftest.
$ac_objext conftest
$ac_exeext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20476 (eval $ac_link) 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); } &&
20483 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try
='test -s conftest$ac_exeext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 eval "$as_ac_var=yes"
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.
$ac_ext >&5
20500 eval "$as_ac_var=no"
20502 rm -f conftest.err conftest.
$ac_objext \
20503 conftest
$ac_exeext conftest.
$ac_ext
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20507 if test `eval echo '${'$as_ac_var'}'` = yes; then
20508 cat >>confdefs.h
<<_ACEOF
20509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20515 if test $ac_cv_func_gettimeofday = yes; then
20516 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20517 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20518 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 cat >conftest.
$ac_ext <<_ACEOF
20524 cat confdefs.h
>>conftest.
$ac_ext
20525 cat >>conftest.
$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20528 #ifdef TIME_WITH_SYS_TIME
20529 #include <sys/time.h>
20532 #ifdef HAVE_SYS_TIME_H
20533 #include <sys/time.h>
20541 struct timeval time;
20542 gettimeofday (&time, 0);
20547 rm -f conftest.
$ac_objext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549 (eval $ac_compile) 2>conftest.er1
20551 grep -v '^ *+' conftest.er1
>conftest.err
20553 cat conftest.err
>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } &&
20556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try
='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 emacs_cv_gettimeofday_two_arguments
=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.
$ac_ext >&5
20573 emacs_cv_gettimeofday_two_arguments
=no
20575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20577 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20578 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20579 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20581 cat >>confdefs.h
<<\_ACEOF
20582 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20589 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20590 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 cat >conftest.
$ac_ext <<_ACEOF
20598 cat confdefs.h
>>conftest.
$ac_ext
20599 cat >>conftest.
$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include <sys/types.h>
20602 #include <$ac_cv_struct_tm>
20608 static struct tm ac_aggr;
20609 if (ac_aggr.tm_zone)
20615 rm -f conftest.
$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20619 grep -v '^ *+' conftest.er1
>conftest.err
20621 cat conftest.err
>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try
='test -s conftest.$ac_objext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_member_struct_tm_tm_zone
=yes
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.
$ac_ext >&5
20641 cat >conftest.
$ac_ext <<_ACEOF
20644 cat confdefs.h
>>conftest.
$ac_ext
20645 cat >>conftest.
$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #include <sys/types.h>
20648 #include <$ac_cv_struct_tm>
20654 static struct tm ac_aggr;
20655 if (sizeof ac_aggr.tm_zone)
20661 rm -f conftest.
$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663 (eval $ac_compile) 2>conftest.er1
20665 grep -v '^ *+' conftest.er1
>conftest.err
20667 cat conftest.err
>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; } &&
20676 { ac_try
='test -s conftest.$ac_objext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_cv_member_struct_tm_tm_zone
=yes
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.
$ac_ext >&5
20687 ac_cv_member_struct_tm_tm_zone
=no
20689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20693 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20694 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20695 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20697 cat >>confdefs.h
<<_ACEOF
20698 #define HAVE_STRUCT_TM_TM_ZONE 1
20704 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20706 cat >>confdefs.h
<<\_ACEOF
20707 #define HAVE_TM_ZONE 1
20711 echo "$as_me:$LINENO: checking for tzname" >&5
20712 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20713 if test "${ac_cv_var_tzname+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 cat >conftest.
$ac_ext <<_ACEOF
20719 cat confdefs.h
>>conftest.
$ac_ext
20720 cat >>conftest.
$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20723 #ifndef tzname /* For SGI. */
20724 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20735 rm -f conftest.
$ac_objext conftest
$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737 (eval $ac_link) 2>conftest.er1
20739 grep -v '^ *+' conftest.er1
>conftest.err
20741 cat conftest.err
>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try
='test -s conftest$ac_exeext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_var_tzname
=yes
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.
$ac_ext >&5
20761 ac_cv_var_tzname
=no
20763 rm -f conftest.err conftest.
$ac_objext \
20764 conftest
$ac_exeext conftest.
$ac_ext
20766 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20767 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20768 if test $ac_cv_var_tzname = yes; then
20770 cat >>confdefs.h
<<\_ACEOF
20771 #define HAVE_TZNAME 1
20778 if test "$ac_cv_func_gettimeofday" = yes; then
20779 echo "$as_me:$LINENO: checking for struct timezone" >&5
20780 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20781 if test "${emacs_cv_struct_timezone+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20784 cat >conftest.
$ac_ext <<_ACEOF
20787 cat confdefs.h
>>conftest.
$ac_ext
20788 cat >>conftest.
$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <sys/time.h>
20794 struct timezone tz;
20799 rm -f conftest.
$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801 (eval $ac_compile) 2>conftest.er1
20803 grep -v '^ *+' conftest.er1
>conftest.err
20805 cat conftest.err
>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try
='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 if test "$cross_compiling" = yes; then
20821 emacs_cv_struct_timezone
=yes
20823 cat >conftest.
$ac_ext <<_ACEOF
20826 cat confdefs.h
>>conftest.
$ac_ext
20827 cat >>conftest.
$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20830 #ifdef TIME_WITH_SYS_TIME
20831 #include <sys/time.h>
20834 #ifdef HAVE_SYS_TIME_H
20835 #include <sys/time.h>
20841 struct timeval time;
20842 struct timezone dummy;
20843 exit (gettimeofday (&time, &dummy));
20846 rm -f conftest
$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 emacs_cv_struct_timezone
=yes
20859 echo "$as_me: program exited with status $ac_status" >&5
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.
$ac_ext >&5
20863 ( exit $ac_status )
20864 emacs_cv_struct_timezone
=no
20866 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.
$ac_ext >&5
20872 emacs_cv_struct_timezone
=no
20874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20876 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20877 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20881 echo "$as_me:$LINENO: checking for socket" >&5
20882 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20883 if test "${ac_cv_func_socket+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 cat >conftest.
$ac_ext <<_ACEOF
20889 cat confdefs.h
>>conftest.
$ac_ext
20890 cat >>conftest.
$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20894 #define socket innocuous_socket
20896 /* System header to define __stub macros and hopefully few prototypes,
20897 which can conflict with char socket (); below.
20898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20899 <limits.h> exists even on freestanding compilers. */
20902 # include <limits.h>
20904 # include <assert.h>
20909 /* Override any gcc2 internal prototype to avoid an error. */
20914 /* We use char because int might match the return type of a gcc2
20915 builtin and then its argument prototype would still apply. */
20917 /* The GNU C library defines this for functions which it implements
20918 to always fail with ENOSYS. Some functions are actually named
20919 something starting with __ and the normal name is an alias. */
20920 #if defined (__stub_socket) || defined (__stub___socket)
20923 char (*f) () = socket;
20932 return f != socket;
20937 rm -f conftest.
$ac_objext conftest
$ac_exeext
20938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20939 (eval $ac_link) 2>conftest.er1
20941 grep -v '^ *+' conftest.er1
>conftest.err
20943 cat conftest.err
>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try
='test -s conftest$ac_exeext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_func_socket
=yes
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.
$ac_ext >&5
20963 ac_cv_func_socket
=no
20965 rm -f conftest.err conftest.
$ac_objext \
20966 conftest
$ac_exeext conftest.
$ac_ext
20968 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20969 echo "${ECHO_T}$ac_cv_func_socket" >&6
20970 if test $ac_cv_func_socket = yes; then
20976 if test $ok_so_far = yes; then
20977 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20978 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20979 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20980 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20984 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20986 # Is the header compilable?
20987 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20988 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20989 cat >conftest.
$ac_ext <<_ACEOF
20992 cat confdefs.h
>>conftest.
$ac_ext
20993 cat >>conftest.
$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 #include <netinet/in.h>
20998 rm -f conftest.
$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21002 grep -v '^ *+' conftest.er1
>conftest.err
21004 cat conftest.err
>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try
='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_header_compiler
=yes
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.
$ac_ext >&5
21024 ac_header_compiler
=no
21026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21028 echo "${ECHO_T}$ac_header_compiler" >&6
21030 # Is the header present?
21031 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21032 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21033 cat >conftest.
$ac_ext <<_ACEOF
21036 cat confdefs.h
>>conftest.
$ac_ext
21037 cat >>conftest.
$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <netinet/in.h>
21041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21044 grep -v '^ *+' conftest.er1
>conftest.err
21046 cat conftest.err
>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } >/dev
/null
; then
21049 if test -s conftest.err
; then
21050 ac_cpp_err
=$ac_c_preproc_warn_flag
21051 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21058 if test -z "$ac_cpp_err"; then
21059 ac_header_preproc
=yes
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.
$ac_ext >&5
21064 ac_header_preproc
=no
21066 rm -f conftest.err conftest.
$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21068 echo "${ECHO_T}$ac_header_preproc" >&6
21070 # So? What about this header?
21071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21073 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21074 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21075 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21076 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21077 ac_header_preproc
=yes
21080 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21081 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21083 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21085 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21087 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21089 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21091 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21094 ## ------------------------------------------ ##
21095 ## Report this to the AC_PACKAGE_NAME lists. ##
21096 ## ------------------------------------------ ##
21099 sed "s/^/$as_me: WARNING: /" >&2
21102 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21103 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21104 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 ac_cv_header_netinet_in_h
=$ac_header_preproc
21109 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21110 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21113 if test $ac_cv_header_netinet_in_h = yes; then
21121 if test $ok_so_far = yes; then
21122 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21123 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21124 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21125 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21129 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21131 # Is the header compilable?
21132 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21133 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21134 cat >conftest.
$ac_ext <<_ACEOF
21137 cat confdefs.h
>>conftest.
$ac_ext
21138 cat >>conftest.
$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21140 $ac_includes_default
21141 #include <arpa/inet.h>
21143 rm -f conftest.
$ac_objext
21144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21145 (eval $ac_compile) 2>conftest.er1
21147 grep -v '^ *+' conftest.er1
>conftest.err
21149 cat conftest.err
>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
21152 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try
='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 ac_header_compiler
=yes
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.
$ac_ext >&5
21169 ac_header_compiler
=no
21171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21173 echo "${ECHO_T}$ac_header_compiler" >&6
21175 # Is the header present?
21176 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21177 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21178 cat >conftest.
$ac_ext <<_ACEOF
21181 cat confdefs.h
>>conftest.
$ac_ext
21182 cat >>conftest.
$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <arpa/inet.h>
21186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21187 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21189 grep -v '^ *+' conftest.er1
>conftest.err
21191 cat conftest.err
>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } >/dev
/null
; then
21194 if test -s conftest.err
; then
21195 ac_cpp_err
=$ac_c_preproc_warn_flag
21196 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21203 if test -z "$ac_cpp_err"; then
21204 ac_header_preproc
=yes
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.
$ac_ext >&5
21209 ac_header_preproc
=no
21211 rm -f conftest.err conftest.
$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21213 echo "${ECHO_T}$ac_header_preproc" >&6
21215 # So? What about this header?
21216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21218 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21219 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21221 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21222 ac_header_preproc
=yes
21225 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21226 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21228 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21230 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21232 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21234 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21236 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21239 ## ------------------------------------------ ##
21240 ## Report this to the AC_PACKAGE_NAME lists. ##
21241 ## ------------------------------------------ ##
21244 sed "s/^/$as_me: WARNING: /" >&2
21247 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21248 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21249 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21254 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21255 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21258 if test $ac_cv_header_arpa_inet_h = yes; then
21266 if test $ok_so_far = yes; then
21268 cat >>confdefs.h
<<\_ACEOF
21269 #define HAVE_INET_SOCKETS 1
21275 for ac_header
in sys
/ioctl.h
21277 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21279 echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21287 # Is the header compilable?
21288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21289 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
21297 #include <$ac_header>
21299 rm -f conftest.
$ac_objext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>conftest.er1
21303 grep -v '^ *+' conftest.er1
>conftest.err
21305 cat conftest.err
>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
21320 ac_header_compiler
=yes
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.
$ac_ext >&5
21325 ac_header_compiler
=no
21327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21329 echo "${ECHO_T}$ac_header_compiler" >&6
21331 # Is the header present?
21332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21334 cat >conftest.
$ac_ext <<_ACEOF
21337 cat confdefs.h
>>conftest.
$ac_ext
21338 cat >>conftest.
$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <$ac_header>
21342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21345 grep -v '^ *+' conftest.er1
>conftest.err
21347 cat conftest.err
>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } >/dev
/null
; then
21350 if test -s conftest.err
; then
21351 ac_cpp_err
=$ac_c_preproc_warn_flag
21352 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21359 if test -z "$ac_cpp_err"; then
21360 ac_header_preproc
=yes
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.
$ac_ext >&5
21365 ac_header_preproc
=no
21367 rm -f conftest.err conftest.
$ac_ext
21368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21369 echo "${ECHO_T}$ac_header_preproc" >&6
21371 # So? What about this header?
21372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21378 ac_header_preproc
=yes
21381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21395 ## ------------------------------------------ ##
21396 ## Report this to the AC_PACKAGE_NAME lists. ##
21397 ## ------------------------------------------ ##
21400 sed "s/^/$as_me: WARNING: /" >&2
21403 echo "$as_me:$LINENO: checking for $ac_header" >&5
21404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 eval "$as_ac_Header=\$ac_header_preproc"
21410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415 cat >>confdefs.h
<<_ACEOF
21416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21424 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21426 cat >>confdefs.h
<<\_ACEOF
21427 #define HAVE_AIX_SMT_EXP 1
21432 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21433 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21434 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21435 echo "$as_me:$LINENO: result: yes" >&5
21436 echo "${ECHO_T}yes" >&6
21438 cat >>confdefs.h
<<\_ACEOF
21439 #define HAVE_DEV_PTMX 1
21443 echo "$as_me:$LINENO: result: no" >&5
21444 echo "${ECHO_T}no" >&6
21447 echo "$as_me:$LINENO: checking for pid_t" >&5
21448 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21449 if test "${ac_cv_type_pid_t+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 cat >conftest.
$ac_ext <<_ACEOF
21455 cat confdefs.h
>>conftest.
$ac_ext
21456 cat >>conftest.
$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 $ac_includes_default
21464 if (sizeof (pid_t))
21470 rm -f conftest.
$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1
>conftest.err
21476 cat conftest.err
>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try
='test -s conftest.$ac_objext'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_type_pid_t
=yes
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.
$ac_ext >&5
21496 ac_cv_type_pid_t
=no
21498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21500 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21501 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21502 if test $ac_cv_type_pid_t = yes; then
21506 cat >>confdefs.h
<<_ACEOF
21514 for ac_header
in unistd.h vfork.h
21516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21518 echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21526 # Is the header compilable?
21527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21529 cat >conftest.
$ac_ext <<_ACEOF
21532 cat confdefs.h
>>conftest.
$ac_ext
21533 cat >>conftest.
$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 $ac_includes_default
21536 #include <$ac_header>
21538 rm -f conftest.
$ac_objext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540 (eval $ac_compile) 2>conftest.er1
21542 grep -v '^ *+' conftest.er1
>conftest.err
21544 cat conftest.err
>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; } &&
21553 { ac_try
='test -s conftest.$ac_objext'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ac_header_compiler
=yes
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.
$ac_ext >&5
21564 ac_header_compiler
=no
21566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21568 echo "${ECHO_T}$ac_header_compiler" >&6
21570 # Is the header present?
21571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21573 cat >conftest.
$ac_ext <<_ACEOF
21576 cat confdefs.h
>>conftest.
$ac_ext
21577 cat >>conftest.
$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <$ac_header>
21581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21584 grep -v '^ *+' conftest.er1
>conftest.err
21586 cat conftest.err
>&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } >/dev
/null
; then
21589 if test -s conftest.err
; then
21590 ac_cpp_err
=$ac_c_preproc_warn_flag
21591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21598 if test -z "$ac_cpp_err"; then
21599 ac_header_preproc
=yes
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.
$ac_ext >&5
21604 ac_header_preproc
=no
21606 rm -f conftest.err conftest.
$ac_ext
21607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21608 echo "${ECHO_T}$ac_header_preproc" >&6
21610 # So? What about this header?
21611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21617 ac_header_preproc
=yes
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21634 ## ------------------------------------------ ##
21635 ## Report this to the AC_PACKAGE_NAME lists. ##
21636 ## ------------------------------------------ ##
21639 sed "s/^/$as_me: WARNING: /" >&2
21642 echo "$as_me:$LINENO: checking for $ac_header" >&5
21643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 eval "$as_ac_Header=\$ac_header_preproc"
21649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21654 cat >>confdefs.h
<<_ACEOF
21655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21664 for ac_func
in fork vfork
21666 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21667 echo "$as_me:$LINENO: checking for $ac_func" >&5
21668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21669 if eval "test \"\${$as_ac_var+set}\" = set"; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 cat >conftest.
$ac_ext <<_ACEOF
21675 cat confdefs.h
>>conftest.
$ac_ext
21676 cat >>conftest.
$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21680 #define $ac_func innocuous_$ac_func
21682 /* System header to define __stub macros and hopefully few prototypes,
21683 which can conflict with char $ac_func (); below.
21684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21685 <limits.h> exists even on freestanding compilers. */
21688 # include <limits.h>
21690 # include <assert.h>
21695 /* Override any gcc2 internal prototype to avoid an error. */
21700 /* We use char because int might match the return type of a gcc2
21701 builtin and then its argument prototype would still apply. */
21703 /* The GNU C library defines this for functions which it implements
21704 to always fail with ENOSYS. Some functions are actually named
21705 something starting with __ and the normal name is an alias. */
21706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21709 char (*f) () = $ac_func;
21718 return f != $ac_func;
21723 rm -f conftest.
$ac_objext conftest
$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725 (eval $ac_link) 2>conftest.er1
21727 grep -v '^ *+' conftest.er1
>conftest.err
21729 cat conftest.err
>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try
='test -s conftest$ac_exeext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 eval "$as_ac_var=yes"
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.
$ac_ext >&5
21749 eval "$as_ac_var=no"
21751 rm -f conftest.err conftest.
$ac_objext \
21752 conftest
$ac_exeext conftest.
$ac_ext
21754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21756 if test `eval echo '${'$as_ac_var'}'` = yes; then
21757 cat >>confdefs.h
<<_ACEOF
21758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21764 if test "x$ac_cv_func_fork" = xyes
; then
21765 echo "$as_me:$LINENO: checking for working fork" >&5
21766 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21767 if test "${ac_cv_func_fork_works+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21770 if test "$cross_compiling" = yes; then
21771 ac_cv_func_fork_works
=cross
21773 cat >conftest.
$ac_ext <<_ACEOF
21774 /* By Ruediger Kuhlmann. */
21775 #include <sys/types.h>
21777 # include <unistd.h>
21779 /* Some systems only have a dummy stub for fork() */
21787 rm -f conftest
$ac_exeext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789 (eval $ac_link) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_func_fork_works
=yes
21800 echo "$as_me: program exited with status $ac_status" >&5
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.
$ac_ext >&5
21804 ( exit $ac_status )
21805 ac_cv_func_fork_works
=no
21807 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21810 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21811 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21814 ac_cv_func_fork_works
=$ac_cv_func_fork
21816 if test "x$ac_cv_func_fork_works" = xcross
; then
21818 *-*-amigaos* |
*-*-msdosdjgpp*)
21819 # Override, as these systems have only a dummy fork() stub
21820 ac_cv_func_fork_works
=no
21823 ac_cv_func_fork_works
=yes
21826 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21827 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21829 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21830 if test "x$ac_cv_func_vfork" = xyes
; then
21831 echo "$as_me:$LINENO: checking for working vfork" >&5
21832 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21833 if test "${ac_cv_func_vfork_works+set}" = set; then
21834 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 if test "$cross_compiling" = yes; then
21837 ac_cv_func_vfork_works
=cross
21839 cat >conftest.
$ac_ext <<_ACEOF
21842 cat confdefs.h
>>conftest.
$ac_ext
21843 cat >>conftest.
$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 /* Thanks to Paul Eggert for this test. */
21847 #include <stdlib.h>
21848 #include <sys/types.h>
21849 #include <sys/stat.h>
21850 #include <sys/wait.h>
21852 # include <unistd.h>
21855 # include <vfork.h>
21857 /* On some sparc systems, changes by the child to local and incoming
21858 argument registers are propagated back to the parent. The compiler
21859 is told about this with #include <vfork.h>, but some compilers
21860 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21861 static variable whose address is put into a register that is
21862 clobbered by the vfork. */
21865 sparc_address_test (int arg)
21867 sparc_address_test (arg) int arg;
21870 static pid_t child;
21888 pid_t parent = getpid ();
21891 sparc_address_test (0);
21896 /* Here is another test for sparc vfork register problems. This
21897 test uses lots of local variables, at least as many local
21898 variables as main has allocated so far including compiler
21899 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21900 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21901 reuse the register of parent for one of the local variables,
21902 since it will think that parent can't possibly be used any more
21903 in this routine. Assigning to the local variable will thus
21904 munge parent in the parent process. */
21906 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21907 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21908 /* Convince the compiler that p..p7 are live; otherwise, it might
21909 use the same hardware register for all 8 local variables. */
21910 if (p != p1 || p != p2 || p != p3 || p != p4
21911 || p != p5 || p != p6 || p != p7)
21914 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21915 from child file descriptors. If the child closes a descriptor
21916 before it execs or exits, this munges the parent's descriptor
21917 as well. Test for this by closing stdout in the child. */
21918 _exit(close(fileno(stdout)) != 0);
21923 while (wait(&status) != child)
21926 /* Was there some problem with vforking? */
21929 /* Did the child fail? (This shouldn't happen.) */
21932 /* Did the vfork/compiler bug occur? */
21933 || parent != getpid()
21935 /* Did the file descriptor bug occur? */
21936 || fstat(fileno(stdout), &st) != 0
21941 rm -f conftest
$ac_exeext
21942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_func_vfork_works
=yes
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.
$ac_ext >&5
21958 ( exit $ac_status )
21959 ac_cv_func_vfork_works
=no
21961 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21964 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21965 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21968 if test "x$ac_cv_func_fork_works" = xcross
; then
21969 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21970 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21971 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21974 if test "x$ac_cv_func_vfork_works" = xyes
; then
21976 cat >>confdefs.h
<<\_ACEOF
21977 #define HAVE_WORKING_VFORK 1
21982 cat >>confdefs.h
<<\_ACEOF
21987 if test "x$ac_cv_func_fork_works" = xyes
; then
21989 cat >>confdefs.h
<<\_ACEOF
21990 #define HAVE_WORKING_FORK 1
21996 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21997 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21998 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 cat >conftest.
$ac_ext <<_ACEOF
22004 cat confdefs.h
>>conftest.
$ac_ext
22005 cat >>conftest.
$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 #include <langinfo.h>
22011 char* cs = nl_langinfo(CODESET);
22016 rm -f conftest.
$ac_objext conftest
$ac_exeext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22018 (eval $ac_link) 2>conftest.er1
22020 grep -v '^ *+' conftest.er1
>conftest.err
22022 cat conftest.err
>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } &&
22025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try
='test -s conftest$ac_exeext'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 emacs_cv_langinfo_codeset
=yes
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.
$ac_ext >&5
22042 emacs_cv_langinfo_codeset
=no
22044 rm -f conftest.err conftest.
$ac_objext \
22045 conftest
$ac_exeext conftest.
$ac_ext
22048 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22049 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22050 if test $emacs_cv_langinfo_codeset = yes; then
22052 cat >>confdefs.h
<<\_ACEOF
22053 #define HAVE_LANGINFO_CODESET 1
22058 echo "$as_me:$LINENO: checking for size_t" >&5
22059 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22060 if test "${ac_cv_type_size_t+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 cat >conftest.
$ac_ext <<_ACEOF
22066 cat confdefs.h
>>conftest.
$ac_ext
22067 cat >>conftest.
$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22069 $ac_includes_default
22075 if (sizeof (size_t))
22081 rm -f conftest.
$ac_objext
22082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22083 (eval $ac_compile) 2>conftest.er1
22085 grep -v '^ *+' conftest.er1
>conftest.err
22087 cat conftest.err
>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; } &&
22096 { ac_try
='test -s conftest.$ac_objext'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; }; then
22102 ac_cv_type_size_t
=yes
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.
$ac_ext >&5
22107 ac_cv_type_size_t
=no
22109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22111 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22112 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22113 if test $ac_cv_type_size_t = yes; then
22115 cat >>confdefs.h
<<_ACEOF
22116 #define HAVE_SIZE_T 1
22123 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22124 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22125 if test "${ac_cv_type_mbstate_t+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 cat >conftest.
$ac_ext <<_ACEOF
22131 cat confdefs.h
>>conftest.
$ac_ext
22132 cat >>conftest.
$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 $ac_includes_default
22135 # include <wchar.h>
22139 mbstate_t x; return sizeof x;
22144 rm -f conftest.
$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>conftest.er1
22148 grep -v '^ *+' conftest.er1
>conftest.err
22150 cat conftest.err
>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } &&
22153 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try
='test -s conftest.$ac_objext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 ac_cv_type_mbstate_t
=yes
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.
$ac_ext >&5
22170 ac_cv_type_mbstate_t
=no
22172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22174 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22175 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22176 if test $ac_cv_type_mbstate_t = yes; then
22178 cat >>confdefs.h
<<\_ACEOF
22179 #define HAVE_MBSTATE_T 1
22184 cat >>confdefs.h
<<\_ACEOF
22185 #define mbstate_t int
22190 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22191 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22192 if test "${emacs_cv_c_restrict+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 cat >conftest.
$ac_ext <<_ACEOF
22198 cat confdefs.h
>>conftest.
$ac_ext
22199 cat >>conftest.
$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 void fred (int *restrict x);
22210 rm -f conftest.
$ac_objext
22211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22212 (eval $ac_compile) 2>conftest.er1
22214 grep -v '^ *+' conftest.er1
>conftest.err
22216 cat conftest.err
>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } &&
22219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try
='test -s conftest.$ac_objext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 emacs_cv_c_restrict
=yes
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.
$ac_ext >&5
22236 cat >conftest.
$ac_ext <<_ACEOF
22239 cat confdefs.h
>>conftest.
$ac_ext
22240 cat >>conftest.
$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 void fred (int *__restrict x);
22251 rm -f conftest.
$ac_objext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253 (eval $ac_compile) 2>conftest.er1
22255 grep -v '^ *+' conftest.er1
>conftest.err
22257 cat conftest.err
>&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
22260 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try
='test -s conftest.$ac_objext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 emacs_cv_c_restrict
=__restrict
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.
$ac_ext >&5
22277 emacs_cv_c_restrict
=no
22279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22283 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22284 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22285 case "$emacs_cv_c_restrict" in
22286 yes) emacs_restrict
=restrict
;;
22287 no
) emacs_restrict
="";;
22288 *) emacs_restrict
="$emacs_cv_c_restrict";;
22290 if test "$emacs_restrict" != __restrict
; then
22292 cat >>confdefs.h
<<_ACEOF
22293 #define __restrict $emacs_restrict
22298 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22299 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22300 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 cat >conftest.
$ac_ext <<_ACEOF
22306 cat confdefs.h
>>conftest.
$ac_ext
22307 cat >>conftest.
$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 void fred (int x[__restrict]);
22318 rm -f conftest.
$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>conftest.er1
22322 grep -v '^ *+' conftest.er1
>conftest.err
22324 cat conftest.err
>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try
='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 emacs_cv_c_restrict_arr
=yes
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.
$ac_ext >&5
22344 emacs_cv_c_restrict_arr
=no
22346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22348 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22349 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22350 if test "$emacs_cv_c_restrict_arr" = yes; then
22352 cat >>confdefs.h
<<\_ACEOF
22353 #define __restrict_arr __restrict
22360 # Set up the CFLAGS for real compilation, so we can substitute it.
22361 CFLAGS
="$REAL_CFLAGS"
22362 CPPFLAGS
="$REAL_CPPFLAGS"
22364 #### Find out which version of Emacs this is.
22365 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22366 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22367 if test x
"${version}" = x
; then
22368 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22369 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22370 { (exit 1); exit 1; }; }
22373 ### Specify what sort of things we'll be editing into Makefile and config.h.
22374 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22410 cat >>confdefs.h
<<_ACEOF
22411 #define EMACS_CONFIGURATION "${canonical}"
22415 cat >>confdefs.h
<<_ACEOF
22416 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22420 cat >>confdefs.h
<<_ACEOF
22421 #define config_machfile "${machfile}"
22425 cat >>confdefs.h
<<_ACEOF
22426 #define config_opsysfile "${opsysfile}"
22430 cat >>confdefs.h
<<_ACEOF
22431 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22435 cat >>confdefs.h
<<_ACEOF
22436 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22440 cat >>confdefs.h
<<_ACEOF
22441 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22445 cat >>confdefs.h
<<_ACEOF
22446 #define UNEXEC_SRC ${UNEXEC_SRC}
22450 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22452 cat >>confdefs.h
<<\_ACEOF
22453 #define HAVE_X_WINDOWS 1
22457 if test "${USE_X_TOOLKIT}" != "none" ; then
22459 cat >>confdefs.h
<<\_ACEOF
22460 #define USE_X_TOOLKIT 1
22464 if test "${HAVE_X11}" = "yes" ; then
22466 cat >>confdefs.h
<<\_ACEOF
22471 if test "${HAVE_XFREE386}" = "yes" ; then
22473 cat >>confdefs.h
<<\_ACEOF
22474 #define HAVE_XFREE386 1
22478 if test "${HAVE_MENUS}" = "yes" ; then
22480 cat >>confdefs.h
<<\_ACEOF
22481 #define HAVE_MENUS 1
22485 if test "${GNU_MALLOC}" = "yes" ; then
22487 cat >>confdefs.h
<<\_ACEOF
22488 #define GNU_MALLOC 1
22492 if test "${REL_ALLOC}" = "yes" ; then
22494 cat >>confdefs.h
<<\_ACEOF
22495 #define REL_ALLOC 1
22504 #### Report on what we decided to do.
22505 #### Report GTK as a toolkit, even if it doesn't use Xt.
22506 #### It makes printing result more understandable as using GTK sets
22507 #### toolkit_scroll_bars to yes by default.
22508 if test "${HAVE_GTK}" = "yes"; then
22513 Configured for \`${canonical}'.
22515 Where should the build process find the source code? ${srcdir}
22516 What operating system and machine description files should Emacs use?
22517 \`${opsysfile}' and \`${machfile}'
22518 What compiler should emacs be built with? ${CC} ${CFLAGS}
22519 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22520 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22521 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22522 What window system should Emacs use? ${window_system}
22523 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22525 if test -n "${x_includes}"; then
22526 echo " Where do we find X Windows header files? ${x_includes}"
22528 echo " Where do we find X Windows header files? Standard dirs"
22530 if test -n "${x_libraries}"; then
22531 echo " Where do we find X Windows libraries? ${x_libraries}"
22533 echo " Where do we find X Windows libraries? Standard dirs"
22536 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22537 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22538 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22539 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22540 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22541 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22542 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22545 if test $USE_XASSERTS = yes; then
22546 echo " Compiling with asserts turned on."
22547 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22553 # Remove any trailing slashes in these variables.
22554 test "${prefix}" != NONE
&&
22555 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22556 test "${exec_prefix}" != NONE
&&
22557 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22559 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22560 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22561 ## from Makefile.c can correctly provide the arg `-traditional' to the
22564 cat >conftest.
$ac_ext <<_ACEOF
22567 cat confdefs.h
>>conftest.
$ac_ext
22568 cat >>conftest.
$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22573 $EGREP "yes..yes" >/dev
/null
2>&1; then
22574 CPP_NEED_TRADITIONAL
=no
22576 CPP_NEED_TRADITIONAL
=yes
22581 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"
22582 ac_config_commands
="$ac_config_commands default"
22583 cat >confcache
<<\_ACEOF
22584 # This file is a shell script that caches the results of configure
22585 # tests run on this system so they can be shared between configure
22586 # scripts and configure runs, see configure's option --config-cache.
22587 # It is not useful on other systems. If it contains results you don't
22588 # want to keep, you may remove or edit it.
22590 # config.status only pays attention to the cache file if you give it
22591 # the --recheck option to rerun configure.
22593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22595 # following values.
22599 # The following way of writing the cache mishandles newlines in values,
22600 # but we know of no workaround that is simple, portable, and efficient.
22601 # So, don't put newlines in cache variables' values.
22602 # Ultrix sh set writes to stderr and can't be redirected directly,
22603 # and sets the high bit in the cache file unless we assign to the vars.
22606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22608 # `set' does not quote correctly, so add quotes (double-quote
22609 # substitution turns \\\\ into \\, and sed turns \\ into \).
22612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22615 # `set' quotes correctly as required by POSIX, so do not add quotes.
22617 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22626 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22628 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22629 if test -w $cache_file; then
22630 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22631 cat confcache
>$cache_file
22633 echo "not updating unwritable cache $cache_file"
22638 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22639 # Let make expand exec_prefix.
22640 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22644 # trailing colons and then remove the whole line if VPATH becomes empty
22645 # (actually we leave an empty line to preserve line numbers).
22646 if test "x$srcdir" = x.
; then
22647 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22648 s/:*\$(srcdir):*/:/;
22649 s/:*\${srcdir}:*/:/;
22651 s/^\([^=]*=[ ]*\):*/\1/;
22657 DEFS
=-DHAVE_CONFIG_H
22661 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22662 # 1. Remove the extension, and $U if already installed.
22663 ac_i
=`echo "$ac_i" |
22664 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22666 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22667 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22669 LIBOBJS
=$ac_libobjs
22671 LTLIBOBJS
=$ac_ltlibobjs
22675 : ${CONFIG_STATUS=./config.status}
22676 ac_clean_files_save
=$ac_clean_files
22677 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22678 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22679 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22680 cat >$CONFIG_STATUS <<_ACEOF
22682 # Generated by $as_me.
22683 # Run this file to recreate the current configuration.
22684 # Compiler output produced by configure, useful for debugging
22685 # configure, is in config.log if it exists.
22688 ac_cs_recheck=false
22690 SHELL=\${CONFIG_SHELL-$SHELL}
22693 cat >>$CONFIG_STATUS <<\_ACEOF
22694 ## --------------------- ##
22695 ## M4sh Initialization. ##
22696 ## --------------------- ##
22698 # Be Bourne compatible
22699 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22703 # is contrary to our usage. Disable this feature.
22704 alias -g '${1+"$@"}'='"$@"'
22705 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22708 DUALCASE
=1; export DUALCASE
# for MKS sh
22710 # Support unset when possible.
22711 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22718 # Work around bugs in pre-3.0 UWIN ksh.
22719 $as_unset ENV MAIL MAILPATH
22726 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22727 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22728 LC_TELEPHONE LC_TIME
22730 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22731 eval $as_var=C
; export $as_var
22737 # Required to use basename.
22738 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22744 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22745 as_basename
=basename
22751 # Name of the executable.
22752 as_me
=`$as_basename "$0" ||
22753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22754 X"$0" : 'X\(//\)$' \| \
22755 X"$0" : 'X\(/\)$' \| \
22756 . : '\(.\)' 2>/dev/null ||
22758 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22759 /^X\/\(\/\/\)$/{ s//\1/; q; }
22760 /^X\/\(\/\).*/{ s//\1/; q; }
22764 # PATH needs CR, and LINENO needs CR and PATH.
22765 # Avoid depending upon Character Ranges.
22766 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22767 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22768 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22769 as_cr_digits
='0123456789'
22770 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22772 # The user is always right.
22773 if test "${PATH_SEPARATOR+set}" != set; then
22774 echo "#! /bin/sh" >conf$$.sh
22775 echo "exit 0" >>conf$$.sh
22777 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22786 as_lineno_1
=$LINENO
22787 as_lineno_2
=$LINENO
22788 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22789 test "x$as_lineno_1" != "x$as_lineno_2" &&
22790 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22791 # Find who we are. Look in the path if we contain no path at all
22794 *[\\/]* ) as_myself
=$0 ;;
22795 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22796 for as_dir
in $PATH
22799 test -z "$as_dir" && as_dir
=.
22800 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22805 # We did not find ourselves, most probably we were run as `sh COMMAND'
22806 # in which case we are not to be found in the path.
22807 if test "x$as_myself" = x
; then
22810 if test ! -f "$as_myself"; then
22811 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22812 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22813 { (exit 1); exit 1; }; }
22815 case $CONFIG_SHELL in
22817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22818 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22821 test -z "$as_dir" && as_dir
=.
22822 for as_base
in sh bash ksh sh5
; do
22825 if ("$as_dir/$as_base" -c '
22826 as_lineno_1=$LINENO
22827 as_lineno_2=$LINENO
22828 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22829 test "x$as_lineno_1" != "x$as_lineno_2" &&
22830 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22831 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22832 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22833 CONFIG_SHELL
=$as_dir/$as_base
22834 export CONFIG_SHELL
22835 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22844 # uniformly replaced by the line number. The first 'sed' inserts a
22845 # line-number line before each line; the second 'sed' does the real
22846 # work. The second script uses 'N' to pair each line-number line
22847 # with the numbered line, and appends trailing '-' during
22848 # substitution so that $LINENO is not a special case at line end.
22849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22850 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22851 sed '=' <$as_myself |
22856 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22859 s,^['$as_cr_digits']*\n,,
22860 ' >$as_me.lineno
&&
22861 chmod +x
$as_me.lineno ||
22862 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22863 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22864 { (exit 1); exit 1; }; }
22866 # Don't try to exec as it changes $[0], causing all sort of problems
22867 # (the dirname of $[0] is not the place where we might find the
22868 # original and so on. Autoconf is especially sensible to this).
22870 # Exit status is that of the last command.
22875 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22876 *c
*,-n*) ECHO_N
= ECHO_C
='
22878 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22879 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22882 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22888 rm -f conf$$ conf$$.exe conf$$.
file
22890 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22891 # We could just check for DJGPP; but this test a) works b) is more generic
22892 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22893 if test -f conf$$.exe
; then
22894 # Don't use ln at all; we don't have any links
22899 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22904 rm -f conf$$ conf$$.exe conf$$.
file
22906 if mkdir
-p .
2>/dev
/null
; then
22909 test -d .
/-p && rmdir .
/-p
22913 as_executable_p
="test -f"
22915 # Sed expression to map a string onto a valid CPP name.
22916 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22918 # Sed expression to map a string onto a valid variable name.
22919 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22923 # We need space, tab and new line, in precisely that order.
22933 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22934 # report actual input values of CONFIG_FILES etc. instead of their
22935 # values after options handling. Logging --version etc. is OK.
22939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22940 ## Running $as_me. ##
22945 This file was extended by $as_me, which was
22946 generated by GNU Autoconf 2.59. Invocation command line was
22948 CONFIG_FILES = $CONFIG_FILES
22949 CONFIG_HEADERS = $CONFIG_HEADERS
22950 CONFIG_LINKS = $CONFIG_LINKS
22951 CONFIG_COMMANDS = $CONFIG_COMMANDS
22955 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22959 # Files that config.status was made for.
22960 if test -n "$ac_config_files"; then
22961 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22964 if test -n "$ac_config_headers"; then
22965 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22968 if test -n "$ac_config_links"; then
22969 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22972 if test -n "$ac_config_commands"; then
22973 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22976 cat >>$CONFIG_STATUS <<\_ACEOF
22979 \`$as_me' instantiates files from templates according to the
22980 current configuration.
22982 Usage: $0 [OPTIONS] [FILE]...
22984 -h, --help print this help, then exit
22985 -V, --version print version number, then exit
22986 -q, --quiet do not print progress messages
22987 -d, --debug don't remove temporary files
22988 --recheck update $as_me by reconfiguring in the same conditions
22989 --file=FILE[:TEMPLATE]
22990 instantiate the configuration file FILE
22991 --header=FILE[:TEMPLATE]
22992 instantiate the configuration header FILE
22994 Configuration files:
22997 Configuration headers:
23000 Configuration commands:
23003 Report bugs to <bug-autoconf@gnu.org>."
23006 cat >>$CONFIG_STATUS <<_ACEOF
23009 configured by $0, generated by GNU Autoconf 2.59,
23010 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23012 Copyright (C) 2003 Free Software Foundation, Inc.
23013 This config.status script is free software; the Free Software Foundation
23014 gives unlimited permission to copy, distribute and modify it."
23019 cat >>$CONFIG_STATUS <<\_ACEOF
23020 # If no file are specified by the user, then we need to provide default
23021 # value. By we need to know if files were specified by the user.
23027 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23028 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23036 *) # This is not an option, so the user has probably given explicit
23039 ac_need_defaults
=false
;;
23043 # Handling of the options.
23045 cat >>$CONFIG_STATUS <<\_ACEOF
23046 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23048 --version |
--vers* |
-V )
23049 echo "$ac_cs_version"; exit 0 ;;
23051 # Conflict between --help and --header
23052 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23053 Try \`$0 --help' for more information." >&5
23054 echo "$as_me: error: ambiguous option: $1
23055 Try \`$0 --help' for more information." >&2;}
23056 { (exit 1); exit 1; }; };;
23057 --help |
--hel |
-h )
23058 echo "$ac_cs_usage"; exit 0 ;;
23059 --debug |
--d* |
-d )
23061 --file |
--fil |
--fi |
--f )
23063 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23064 ac_need_defaults
=false
;;
23065 --header |
--heade |
--head |
--hea )
23067 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23068 ac_need_defaults
=false
;;
23069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23070 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23073 # This is an error.
23074 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23075 Try \`$0 --help' for more information." >&5
23076 echo "$as_me: error: unrecognized option: $1
23077 Try \`$0 --help' for more information." >&2;}
23078 { (exit 1); exit 1; }; } ;;
23080 *) ac_config_targets
="$ac_config_targets $1" ;;
23086 ac_configure_extra_args
=
23088 if $ac_cs_silent; then
23090 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23094 cat >>$CONFIG_STATUS <<_ACEOF
23095 if \$ac_cs_recheck; then
23096 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23097 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23102 cat >>$CONFIG_STATUS <<_ACEOF
23104 # INIT-COMMANDS section.
23107 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23113 cat >>$CONFIG_STATUS <<\_ACEOF
23114 for ac_config_target
in $ac_config_targets
23116 case "$ac_config_target" in
23117 # Handling of arguments.
23118 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23119 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23120 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23121 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23122 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23123 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23124 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23125 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23126 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23127 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23128 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23129 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23132 { (exit 1); exit 1; }; };;
23136 # If the user did not use the arguments to specify the items to instantiate,
23137 # then the envvar interface is used. Set only those that are not.
23138 # We use the long form for the default assignment because of an extremely
23139 # bizarre bug on SunOS 4.1.3.
23140 if $ac_need_defaults; then
23141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23143 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23146 # Have a temporary directory for convenience. Make it in the build tree
23147 # simply because there is no reason to put it here, and in addition,
23148 # creating and moving files from /tmp can sometimes cause problems.
23149 # Create a temporary directory, and hook for its removal unless debugging.
23152 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23153 trap '{ (exit 1); exit 1; }' 1 2 13 15
23156 # Create a (secure) tmp directory for tmp files.
23159 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23160 test -n "$tmp" && test -d "$tmp"
23163 tmp
=.
/confstat$$
-$RANDOM
23164 (umask 077 && mkdir
$tmp)
23167 echo "$me: cannot create a temporary directory in ." >&2
23168 { (exit 1); exit 1; }
23173 cat >>$CONFIG_STATUS <<_ACEOF
23176 # CONFIG_FILES section.
23179 # No need to generate the scripts if there are no CONFIG_FILES.
23180 # This happens for instance when ./config.status config.h
23181 if test -n "\$CONFIG_FILES"; then
23182 # Protect against being on the right side of a sed subst in config.status.
23183 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23184 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23185 s,@SHELL@,$SHELL,;t t
23186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23192 s,@exec_prefix@,$exec_prefix,;t t
23193 s,@prefix@,$prefix,;t t
23194 s,@program_transform_name@,$program_transform_name,;t t
23195 s,@bindir@,$bindir,;t t
23196 s,@sbindir@,$sbindir,;t t
23197 s,@libexecdir@,$libexecdir,;t t
23198 s,@datadir@,$datadir,;t t
23199 s,@sysconfdir@,$sysconfdir,;t t
23200 s,@sharedstatedir@,$sharedstatedir,;t t
23201 s,@localstatedir@,$localstatedir,;t t
23202 s,@libdir@,$libdir,;t t
23203 s,@includedir@,$includedir,;t t
23204 s,@oldincludedir@,$oldincludedir,;t t
23205 s,@infodir@,$infodir,;t t
23206 s,@mandir@,$mandir,;t t
23207 s,@build_alias@,$build_alias,;t t
23208 s,@host_alias@,$host_alias,;t t
23209 s,@target_alias@,$target_alias,;t t
23210 s,@DEFS@,$DEFS,;t t
23211 s,@ECHO_C@,$ECHO_C,;t t
23212 s,@ECHO_N@,$ECHO_N,;t t
23213 s,@ECHO_T@,$ECHO_T,;t t
23214 s,@LIBS@,$LIBS,;t t
23215 s,@MAINT@,$MAINT,;t t
23216 s,@build@,$build,;t t
23217 s,@build_cpu@,$build_cpu,;t t
23218 s,@build_vendor@,$build_vendor,;t t
23219 s,@build_os@,$build_os,;t t
23220 s,@host@,$host,;t t
23221 s,@host_cpu@,$host_cpu,;t t
23222 s,@host_vendor@,$host_vendor,;t t
23223 s,@host_os@,$host_os,;t t
23225 s,@CFLAGS@,$CFLAGS,;t t
23226 s,@LDFLAGS@,$LDFLAGS,;t t
23227 s,@CPPFLAGS@,$CPPFLAGS,;t t
23228 s,@ac_ct_CC@,$ac_ct_CC,;t t
23229 s,@EXEEXT@,$EXEEXT,;t t
23230 s,@OBJEXT@,$OBJEXT,;t t
23231 s,@LN_S@,$LN_S,;t t
23233 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23234 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23235 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23236 s,@RANLIB@,$RANLIB,;t t
23237 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23238 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23239 s,@GZIP_PROG@,$GZIP_PROG,;t t
23240 s,@EGREP@,$EGREP,;t t
23241 s,@LIBSOUND@,$LIBSOUND,;t t
23242 s,@SET_MAKE@,$SET_MAKE,;t t
23243 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23244 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23245 s,@GTK_LIBS@,$GTK_LIBS,;t t
23246 s,@ALLOCA@,$ALLOCA,;t t
23247 s,@liblockfile@,$liblockfile,;t t
23248 s,@LIBOBJS@,$LIBOBJS,;t t
23249 s,@NEED_SETGID@,$NEED_SETGID,;t t
23250 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23251 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23252 s,@GETOPT_H@,$GETOPT_H,;t t
23253 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23254 s,@version@,$version,;t t
23255 s,@configuration@,$configuration,;t t
23256 s,@canonical@,$canonical,;t t
23257 s,@srcdir@,$srcdir,;t t
23258 s,@lispdir@,$lispdir,;t t
23259 s,@locallisppath@,$locallisppath,;t t
23260 s,@lisppath@,$lisppath,;t t
23261 s,@x_default_search_path@,$x_default_search_path,;t t
23262 s,@etcdir@,$etcdir,;t t
23263 s,@archlibdir@,$archlibdir,;t t
23264 s,@docdir@,$docdir,;t t
23265 s,@bitmapdir@,$bitmapdir,;t t
23266 s,@gamedir@,$gamedir,;t t
23267 s,@gameuser@,$gameuser,;t t
23268 s,@c_switch_system@,$c_switch_system,;t t
23269 s,@c_switch_machine@,$c_switch_machine,;t t
23270 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23271 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23272 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23273 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23274 s,@machfile@,$machfile,;t t
23275 s,@opsysfile@,$opsysfile,;t t
23276 s,@carbon_appdir@,$carbon_appdir,;t t
23277 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23282 cat >>$CONFIG_STATUS <<\_ACEOF
23283 # Split the substitutions into bite-sized pieces for seds with
23284 # small command number limits, like on Digital OSF/1 and HP-UX.
23285 ac_max_sed_lines
=48
23286 ac_sed_frag
=1 # Number of current file.
23287 ac_beg
=1 # First line for current file.
23288 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23291 while $ac_more_lines; do
23292 if test $ac_beg -gt 1; then
23293 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23295 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23297 if test ! -s $tmp/subs.frag
; then
23298 ac_more_lines
=false
23300 # The purpose of the label and of the branching condition is to
23301 # speed up the sed processing (if there are no `@' at all, there
23302 # is no need to browse any of the substitutions).
23303 # These are the two extra sed commands mentioned above.
23305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23306 if test -z "$ac_sed_cmds"; then
23307 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23309 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23311 ac_sed_frag
=`expr $ac_sed_frag + 1`
23313 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23316 if test -z "$ac_sed_cmds"; then
23319 fi # test -n "$CONFIG_FILES"
23322 cat >>$CONFIG_STATUS <<\_ACEOF
23323 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23326 - |
*:- |
*:-:* ) # input from stdin
23328 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23329 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23330 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23331 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23332 * ) ac_file_in
=$ac_file.
in ;;
23335 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23336 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23338 X"$ac_file" : 'X\(//\)[^/]' \| \
23339 X"$ac_file" : 'X\(//\)$' \| \
23340 X"$ac_file" : 'X\(/\)' \| \
23341 . : '\(.\)' 2>/dev/null ||
23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23345 /^X\(\/\/\)$/{ s//\1/; q; }
23346 /^X\(\/\).*/{ s//\1/; q; }
23348 { if $as_mkdir_p; then
23353 while test ! -d "$as_dir"; do
23354 as_dirs
="$as_dir $as_dirs"
23355 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23357 X"$as_dir" : 'X\(//\)[^/]' \| \
23358 X"$as_dir" : 'X\(//\)$' \| \
23359 X"$as_dir" : 'X\(/\)' \| \
23360 . : '\(.\)' 2>/dev/null ||
23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23364 /^X\(\/\/\)$/{ s//\1/; q; }
23365 /^X\(\/\).*/{ s//\1/; q; }
23368 test ! -n "$as_dirs" || mkdir
$as_dirs
23369 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23370 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23371 { (exit 1); exit 1; }; }; }
23375 if test "$ac_dir" != .
; then
23376 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23377 # A "../" for each directory in $ac_dir_suffix.
23378 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23380 ac_dir_suffix
= ac_top_builddir
=
23384 .
) # No --srcdir option. We are building in place.
23386 if test -z "$ac_top_builddir"; then
23389 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23391 [\\/]* | ?
:[\\/]* ) # Absolute path.
23392 ac_srcdir
=$srcdir$ac_dir_suffix;
23393 ac_top_srcdir
=$srcdir ;;
23394 *) # Relative path.
23395 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23396 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23399 # Do not use `cd foo && pwd` to compute absolute paths, because
23400 # the directories may not exist.
23402 .
) ac_abs_builddir
="$ac_dir";;
23405 .
) ac_abs_builddir
=`pwd`;;
23406 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23407 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23410 case $ac_abs_builddir in
23411 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23413 case ${ac_top_builddir}.
in
23414 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23415 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23416 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23419 case $ac_abs_builddir in
23420 .
) ac_abs_srcdir
=$ac_srcdir;;
23423 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23424 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23425 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23428 case $ac_abs_builddir in
23429 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23431 case $ac_top_srcdir in
23432 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23433 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23434 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23440 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23441 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23444 # Let's still pretend it is `configure' which instantiates (i.e., don't
23445 # use $as_me), people would be surprised to read:
23446 # /* config.h. Generated by config.status. */
23447 if test x
"$ac_file" = x-
; then
23450 configure_input
="$ac_file. "
23452 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23453 sed 's,.*/,,'` by configure."
23455 # First look for the input files in the build tree, otherwise in the
23457 ac_file_inputs
=`IFS=:
23458 for f in $ac_file_in; do
23460 -) echo $tmp/stdin ;;
23462 # Absolute (can't be DOS-style, as IFS=:)
23463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23464 echo "$as_me: error: cannot find input file: $f" >&2;}
23465 { (exit 1); exit 1; }; }
23468 if test -f "$f"; then
23471 elif test -f "$srcdir/$f"; then
23476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23477 echo "$as_me: error: cannot find input file: $f" >&2;}
23478 { (exit 1); exit 1; }; }
23481 done` ||
{ (exit 1); exit 1; }
23483 if test x
"$ac_file" != x-
; then
23484 { echo "$as_me:$LINENO: creating $ac_file" >&5
23485 echo "$as_me: creating $ac_file" >&6;}
23489 cat >>$CONFIG_STATUS <<_ACEOF
23493 cat >>$CONFIG_STATUS <<\_ACEOF
23495 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23496 s
,@configure_input@
,$configure_input,;t t
23497 s
,@srcdir@
,$ac_srcdir,;t t
23498 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23499 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23500 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23501 s
,@builddir@
,$ac_builddir,;t t
23502 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23503 s
,@top_builddir@
,$ac_top_builddir,;t t
23504 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23505 s
,@INSTALL@
,$ac_INSTALL,;t t
23506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23508 if test x"$ac_file" != x-; then
23509 mv $tmp/out $ac_file
23517 cat >>$CONFIG_STATUS <<\_ACEOF
23520 # CONFIG_HEADER section.
23523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23526 # ac_d sets the value in "#define NAME VALUE" lines.
23527 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23528 ac_dB
='[ ].*$,\1#\2'
23531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23532 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23533 ac_uB
='$,\1#\2define\3'
23537 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23540 - |
*:- |
*:-:* ) # input from stdin
23542 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23543 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23544 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23545 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23546 * ) ac_file_in
=$ac_file.
in ;;
23549 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23550 echo "$as_me: creating $ac_file" >&6;}
23552 # First look for the input files in the build tree, otherwise in the
23554 ac_file_inputs
=`IFS=:
23555 for f in $ac_file_in; do
23557 -) echo $tmp/stdin ;;
23559 # Absolute (can't be DOS-style, as IFS=:)
23560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23561 echo "$as_me: error: cannot find input file: $f" >&2;}
23562 { (exit 1); exit 1; }; }
23563 # Do quote $f, to prevent DOS paths from being IFS'd.
23566 if test -f "$f"; then
23569 elif test -f "$srcdir/$f"; then
23574 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23575 echo "$as_me: error: cannot find input file: $f" >&2;}
23576 { (exit 1); exit 1; }; }
23579 done` ||
{ (exit 1); exit 1; }
23580 # Remove the trailing spaces.
23581 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23585 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23586 # `conftest.undefs', that substitutes the proper values into
23587 # config.h.in to produce config.h. The first handles `#define'
23588 # templates, and the second `#undef' templates.
23589 # And first: Protect against being on the right side of a sed subst in
23590 # config.status. Protect against being in an unquoted here document
23591 # in config.status.
23592 rm -f conftest.defines conftest.undefs
23593 # Using a here document instead of a string reduces the quoting nightmare.
23594 # Putting comments in sed scripts is not portable.
23596 # `end' is used to avoid that the second main sed command (meant for
23597 # 0-ary CPP macros) applies to n-ary macro definitions.
23598 # See the Autoconf documentation for `clear'.
23599 cat >confdef2sed.
sed <<\_ACEOF
23604 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23606 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23609 # If some macros were called several times there might be several times
23610 # the same #defines, which is useless. Nevertheless, we may not want to
23611 # sort them, since we want the *last* AC-DEFINE to be honored.
23612 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23613 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23614 rm -f confdef2sed.sed
23616 # This sed command replaces #undef with comments. This is necessary, for
23617 # example, in the case of _POSIX_SOURCE, which is predefined and required
23618 # on some systems where configure will not decide to define it.
23619 cat >>conftest.undefs <<\_ACEOF
23620 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23623 # Break up conftest.defines because some shells have a limit on the size
23624 # of here documents, and old seds have small limits too (100 cmds).
23625 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23626 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23627 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23628 echo ' :' >>$CONFIG_STATUS
23629 rm -f conftest.tail
23630 while grep . conftest.defines >/dev/null
23632 # Write a limited-size here document to $tmp/defines.sed.
23633 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23634 # Speed up: don't consider the non `#define' lines.
23635 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23636 # Work around the forget-to-reset-the-flag bug.
23637 echo 't clr' >>$CONFIG_STATUS
23638 echo ': clr' >>$CONFIG_STATUS
23639 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23641 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23643 mv $tmp/out $tmp/in
23645 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23646 rm -f conftest.defines
23647 mv conftest.
tail conftest.defines
23649 rm -f conftest.defines
23650 echo ' fi # grep' >>$CONFIG_STATUS
23651 echo >>$CONFIG_STATUS
23653 # Break up conftest.undefs because some shells have a limit on the size
23654 # of here documents, and old seds have small limits too (100 cmds).
23655 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23656 rm -f conftest.
tail
23657 while grep . conftest.undefs
>/dev
/null
23659 # Write a limited-size here document to $tmp/undefs.sed.
23660 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23661 # Speed up: don't consider the non
`#undef'
23662 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23663 # Work around the forget-to-reset-the-flag bug.
23664 echo 't clr' >>$CONFIG_STATUS
23665 echo ': clr' >>$CONFIG_STATUS
23666 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23668 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23670 mv $tmp/out $tmp/in
23672 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23673 rm -f conftest.undefs
23674 mv conftest.tail conftest.undefs
23676 rm -f conftest.undefs
23678 cat >>$CONFIG_STATUS <<\_ACEOF
23679 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23680 # use $as_me), people would be surprised to read:
23681 # /* config.h. Generated by config.status. */
23682 if test x
"$ac_file" = x-
; then
23683 echo "/* Generated by configure. */" >$tmp/config.h
23685 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23687 cat $tmp/in >>$tmp/config.h
23689 if test x
"$ac_file" != x-
; then
23690 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23691 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23692 echo "$as_me: $ac_file is unchanged" >&6;}
23694 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23696 X"$ac_file" : 'X\(//\)[^/]' \| \
23697 X"$ac_file" : 'X\(//\)$' \| \
23698 X"$ac_file" : 'X\(/\)' \| \
23699 . : '\(.\)' 2>/dev/null ||
23701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23703 /^X\(\/\/\)$/{ s//\1/; q; }
23704 /^X\(\/\).*/{ s//\1/; q; }
23706 { if $as_mkdir_p; then
23711 while test ! -d "$as_dir"; do
23712 as_dirs
="$as_dir $as_dirs"
23713 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23715 X"$as_dir" : 'X\(//\)[^/]' \| \
23716 X"$as_dir" : 'X\(//\)$' \| \
23717 X"$as_dir" : 'X\(/\)' \| \
23718 . : '\(.\)' 2>/dev/null ||
23720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23722 /^X\(\/\/\)$/{ s//\1/; q; }
23723 /^X\(\/\).*/{ s//\1/; q; }
23726 test ! -n "$as_dirs" || mkdir
$as_dirs
23727 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23729 { (exit 1); exit 1; }; }; }
23732 mv $tmp/config.h
$ac_file
23736 rm -f $tmp/config.h
23740 cat >>$CONFIG_STATUS <<\_ACEOF
23743 # CONFIG_COMMANDS section.
23745 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23746 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23747 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23748 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23749 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23750 X"$ac_dest" : 'X\(//\)[^/]' \| \
23751 X"$ac_dest" : 'X\(//\)$' \| \
23752 X"$ac_dest" : 'X\(/\)' \| \
23753 . : '\(.\)' 2>/dev/null ||
23755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23757 /^X\(\/\/\)$/{ s//\1/; q; }
23758 /^X\(\/\).*/{ s//\1/; q; }
23760 { if $as_mkdir_p; then
23765 while test ! -d "$as_dir"; do
23766 as_dirs
="$as_dir $as_dirs"
23767 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23769 X"$as_dir" : 'X\(//\)[^/]' \| \
23770 X"$as_dir" : 'X\(//\)$' \| \
23771 X"$as_dir" : 'X\(/\)' \| \
23772 . : '\(.\)' 2>/dev/null ||
23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23776 /^X\(\/\/\)$/{ s//\1/; q; }
23777 /^X\(\/\).*/{ s//\1/; q; }
23780 test ! -n "$as_dirs" || mkdir
$as_dirs
23781 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23783 { (exit 1); exit 1; }; }; }
23787 if test "$ac_dir" != .
; then
23788 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23789 # A "../" for each directory in $ac_dir_suffix.
23790 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23792 ac_dir_suffix
= ac_top_builddir
=
23796 .
) # No --srcdir option. We are building in place.
23798 if test -z "$ac_top_builddir"; then
23801 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23803 [\\/]* | ?
:[\\/]* ) # Absolute path.
23804 ac_srcdir
=$srcdir$ac_dir_suffix;
23805 ac_top_srcdir
=$srcdir ;;
23806 *) # Relative path.
23807 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23808 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23811 # Do not use `cd foo && pwd` to compute absolute paths, because
23812 # the directories may not exist.
23814 .
) ac_abs_builddir
="$ac_dir";;
23817 .
) ac_abs_builddir
=`pwd`;;
23818 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23819 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23822 case $ac_abs_builddir in
23823 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23825 case ${ac_top_builddir}.
in
23826 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23827 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23828 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23831 case $ac_abs_builddir in
23832 .
) ac_abs_srcdir
=$ac_srcdir;;
23835 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23836 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23837 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23840 case $ac_abs_builddir in
23841 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23843 case $ac_top_srcdir in
23844 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23845 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23846 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23851 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23852 echo "$as_me: executing $ac_dest commands" >&6;}
23856 ### Make the necessary directories, if they don't exist.
23857 for dir
in etc lisp
; do
23858 test -d ${dir} || mkdir
${dir}
23861 # Build src/Makefile from ${srcdir}/src/Makefile.c
23862 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23863 # This must be done after src/config.h is built, since we rely on that file.
23865 # Now get this: Some word that is part of the ${srcdir} directory name
23866 # or the ${configuration} value might, just might, happen to be an
23867 # identifier like `sun4' or `i386' or something, and be predefined by
23868 # the C preprocessor to some helpful value like 1, or maybe the empty
23869 # string. Needless to say consequent macro substitutions are less
23870 # than conducive to the makefile finding the correct directory.
23871 undefs
="`echo $top_srcdir $configuration $canonical |
23872 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23873 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23876 echo creating src
/epaths.h
23877 ${MAKE-make} epaths-force
23879 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23880 # `..' to `. .' unless invoked with -traditional
23882 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23883 CPPFLAGS
="$CPPFLAGS -traditional"
23886 echo creating lib-src
/Makefile
23888 rm -f junk.c junk1.c junk2.c
23889 sed -e '/start of cpp stuff/q' \
23890 < Makefile.c
> junk1.c
23891 sed -e '1,/start of cpp stuff/d'\
23892 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23893 < Makefile.c
> junk.c
23894 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23895 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23896 cat junk1.c junk2.c
> Makefile.new
23897 rm -f junk.c junk1.c junk2.c
23898 chmod 444 Makefile.new
23899 mv -f Makefile.new Makefile
23902 echo creating src
/Makefile
23904 rm -f junk.c junk1.c junk2.c
23905 sed -e '/start of cpp stuff/q' \
23906 < Makefile.c
> junk1.c
23907 sed -e '1,/start of cpp stuff/d'\
23908 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23909 < Makefile.c
> junk.c
23910 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23911 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23912 cat junk1.c junk2.c
> Makefile.new
23913 rm -f junk.c junk1.c junk2.c
23914 chmod 444 Makefile.new
23915 mv -f Makefile.new Makefile
23918 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23919 echo creating src
/.gdbinit
23920 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23923 # This is how we know whether to re-run configure in certain cases.
23924 touch src
/config.stamp
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23933 { (exit 0); exit 0; }
23935 chmod +x
$CONFIG_STATUS
23936 ac_clean_files
=$ac_clean_files_save
23939 # configure is writing to config.log, and then calls config.status.
23940 # config.status does its own redirection, appending to config.log.
23941 # Unfortunately, on DOS this fails, as config.log is still kept open
23942 # by configure, so config.status won't be able to write to it; its
23943 # output is simply discarded. So we exec the FD to /dev/null,
23944 # effectively closing config.log, so it can be properly (re)opened and
23945 # appended to by config.status. When coming back to configure, we
23946 # need to make the FD available again.
23947 if test "$no_create" != yes; then
23949 ac_config_status_args
=
23950 test "$silent" = yes &&
23951 ac_config_status_args
="$ac_config_status_args --quiet"
23953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23956 # would make configure fail if this is the last instruction.
23957 $ac_cs_success ||
{ (exit 1); exit 1; }