2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003, 2006 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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG 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
2096 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa
*-*-linux-gnu* )
2100 machine
=hp800 opsys
=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2111 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2112 *) machine
=hp800 opsys
=hpux10
;;
2116 machine
=hp800 opsys
=nextstep
2121 machine
=orion opsys
=bsd4-2
2123 clipper-orion-bsd
* )
2124 machine
=orion105 opsys
=bsd4-2
2128 i
[3456]86-ibm-aix1.1
* )
2129 machine
=ibmps2-aix opsys
=usg5-2-2
2131 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2132 machine
=ibmps2-aix opsys
=usg5-3
2135 machine
=ibm370aix opsys
=usg5-3
2138 machine
=ibms390 opsys
=gnu-linux
2140 s390x-
*-linux-gnu* )
2141 machine
=ibms390x opsys
=gnu-linux
2143 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2144 machine
=ibmrs6000 opsys
=aix3-1
2146 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2147 machine
=ibmrs6000 opsys
=aix3-2-5
2149 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2150 machine
=ibmrs6000 opsys
=aix4-1
2152 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2153 machine
=ibmrs6000 opsys
=aix4-2
2155 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2156 machine
=ibmrs6000 opsys
=aix4-2
2158 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2159 machine
=ibmrs6000 opsys
=aix4
2161 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2162 machine
=ibmrs6000 opsys
=aix4-1
2164 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2165 machine
=ibmrs6000 opsys
=aix3-2
2168 machine
=ibmrt opsys
=bsd4-3
2171 machine
=ibmrt opsys
=bsd4-2
2174 machine
=ibmrt opsys
=bsd4-3
2177 machine
=ibmrt opsys
=bsd4-2
2180 machine
=ibmrt opsys
=bsd4-3
2183 machine
=ibmrt opsys
=bsd4-3
2186 machine
=ibmrt-aix opsys
=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2191 machine
=isi-ov opsys
=bsd4-2
2194 machine
=isi-ov opsys
=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i
[3456]86-intsys-sysv* )
2199 machine
=is386 opsys
=usg5-2-2
2203 i
[3456]86-prime-sysv* )
2204 machine
=i386 opsys
=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i
[3456]86-sequent-bsd* )
2209 machine
=symmetry opsys
=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2214 machine
=sequent-ptx opsys
=ptx4
2215 NON_GNU_CPP
=/lib
/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i
[3456]86-sequent-ptx* )
2221 machine
=sequent-ptx opsys
=ptx
2222 NON_GNU_CPP
="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i
[3456]86-ncr-sysv4.3
)
2227 machine
=ncr386 opsys
=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i
[3456]86-ncr-sysv* )
2233 machine
=ncr386 opsys
=usg5-4-2
2236 ## Intel Paragon OSF/1
2238 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2243 machine
=i860 opsys
=usg5-4
2244 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc
*-*-linux-gnu* )
2250 machine
=macppc opsys
=gnu-linux
2253 ## Masscomp machines
2254 m68
*-masscomp-rtu* )
2255 machine
=masscomp opsys
=rtu
2258 ## Megatest machines
2259 m68
*-megatest-bsd* )
2260 machine
=mega68 opsys
=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4
* )
2279 machine
=mips4 opsys
=bsd4-3
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2283 mips-mips-riscos5
* )
2284 machine
=mips4 opsys
=riscos5
2285 NON_GNU_CC
="cc -systype bsd43"
2286 NON_GNU_CPP
="cc -systype bsd43 -E"
2289 machine
=mips opsys
=bsd4-3
2292 machine
=mips opsys
=usg5-2-2
2296 m68
*-next-* | m68k-
*-nextstep* )
2297 machine
=m68k opsys
=nextstep
2300 ## The complete machine from National Semiconductor
2302 machine
=ns32000 opsys
=usg5-2
2306 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2307 machine
=tower32 opsys
=usg5-2-2
2309 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2310 machine
=tower32v3 opsys
=usg5-3
2315 machine
=ews4800 opsys
=ux4800
2318 ## Nixdorf Targon 31
2319 m68
*-nixdorf-sysv* )
2320 machine
=targon31 opsys
=usg5-2-2
2325 machine
=nu opsys
=usg5-2
2330 machine
=plexus opsys
=usg5-2
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd
* )
2337 machine
=pyramid opsys
=bsd4-2
2341 ns32k-sequent-bsd4.2
* )
2342 machine
=sequent opsys
=bsd4-2
2344 ns32k-sequent-bsd4.3
* )
2345 machine
=sequent opsys
=bsd4-3
2349 mips-siemens-sysv
* | mips-sni-sysv
*)
2350 machine
=mips-siemens opsys
=usg5-4
2351 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2352 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2358 machine
=irist opsys
=iris3-5
2360 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2361 machine
=irist opsys
=iris3-6
2365 machine
=iris4d opsys
=irix3-3
2368 machine
=iris4d opsys
=irix4-0
2371 machine
=iris4d opsys
=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2379 machine
=iris4d opsys
=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS
=-32
2386 mips-sgi-irix5.
[01]* )
2387 machine
=iris4d opsys
=irix5-0
2389 mips-sgi-irix5
* | mips-sgi-irix
* )
2390 machine
=iris4d opsys
=irix5-2
2395 machine
=news opsys
=bsd4-2
2398 machine
=news opsys
=bsd4-3
2400 m68
*-sony-newsos3* | m68
*-sony-news3*)
2401 machine
=news opsys
=bsd4-3
2403 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2404 machine
=news-risc opsys
=bsd4-3
2406 mips-sony-newsos6
* )
2407 machine
=news-r6 opsys
=newsos6
2410 machine
=news-risc opsys
=newsos5
2415 machine
=stride opsys
=usg5-2
2419 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2420 machine
=sparc opsys
=gnu-linux
2423 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2424 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2425 | rs6000-
*-solaris2*)
2426 case "${canonical}" in
2427 m68
*-sunos1* ) machine
=sun1
;;
2428 m68
*-sunos2* ) machine
=sun2
;;
2429 m68
* ) machine
=sun3
;;
2430 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2431 i
[3456]86-*-* ) machine
=intel386
;;
2432 powerpcle
* ) machine
=powerpcle
;;
2433 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2434 sparc
* ) machine
=sparc
;;
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2440 *-sunos4.0
* ) opsys
=sunos4-0
;;
2441 *-sunos4.1.
[3-9]*noshare
)
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2445 NON_GNU_CPP
=/usr
/lib
/cpp
2446 NON_GCC_TEST_OPTIONS
=-Bstatic
2447 GCC_TEST_OPTIONS
=-static
2449 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2451 NON_GNU_CPP
=/usr
/lib
/cpp
2453 *-sunos4* |
*-sunos )
2455 NON_GCC_TEST_OPTIONS
=-Bstatic
2456 GCC_TEST_OPTIONS
=-static
2458 *-sunos5.3
* |
*-solaris2.3
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.4
* |
*-solaris2.4
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.5
* |
*-solaris2.5
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.6
* |
*-solaris2.6
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5* |
*-solaris* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* |
*-sunos5* )
2486 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2496 machine
=sparc opsys
=nextstep
2500 m68
*-tadpole-sysv* )
2501 machine
=tad68k opsys
=usg5-3
2505 tahoe-tahoe-bsd4.2
* )
2506 machine
=tahoe opsys
=bsd4-2
2508 tahoe-tahoe-bsd4.3
* )
2509 machine
=tahoe opsys
=bsd4-3
2512 ## Tandem Integrity S2
2514 machine
=tandem-s2 opsys
=usg5-3
2518 m88k-tektronix-sysv3
* )
2519 machine
=tekxd88 opsys
=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd
* )
2524 machine
=ns16000 opsys
=bsd4-2
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68
*-tektronix-bsd* )
2529 machine
=tek4300 opsys
=bsd4-3
2533 ## We seem to have lost the machine-description file titan.h!
2535 machine
=titan opsys
=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68
*-unisys-uniplus* )
2540 machine
=ustation opsystem
=unipl5-2
2546 case "${canonical}" in
2547 *-bsd4.1
* ) opsys
=bsd4-1
;;
2548 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2549 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2550 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2551 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2552 *-vms* ) opsys
=vms
;;
2558 ns16k-whitechapel-
* )
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2566 machine
=wicat opsys
=usg5-2
2571 machine
=ia64 opsys
=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2577 case "${canonical}" in
2578 *-cygwin ) opsys
=cygwin
;;
2579 *-darwin* ) opsys
=darwin
2580 CPP
="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2583 *-isc2.2
* ) opsys
=isc2-2
;;
2584 *-isc4.0
* ) opsys
=isc4-0
;;
2585 *-isc4.
* ) opsys
=isc4-1
2586 GCC_TEST_OPTIONS
=-posix
2587 NON_GCC_TEST_OPTIONS
=-Xp
2589 *-isc* ) opsys
=isc3-0
;;
2590 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2591 *-esix* ) opsys
=esix
;;
2592 *-xenix* ) opsys
=xenix
;;
2593 *-linux-gnu* ) opsys
=gnu-linux
;;
2594 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2595 *-sco3.2v5
* ) opsys
=sco5
2596 NON_GNU_CPP
=/lib
/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS
=" "
2601 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2604 *-386bsd* ) opsys
=386bsd
;;
2605 *-nextstep* ) opsys
=nextstep
;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2610 ## m68k Linux-based GNU system
2612 machine
=m68k opsys
=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2617 machine
=mips opsys
=gnu-linux
2621 sparc-fujitsu-sysv4
* )
2622 machine
=sparc opsys
=uxpds
2623 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2628 f301-fujitsu-uxpv4.1
)
2629 machine
=f301 opsys
=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin
* )
2634 machine
=powermac opsys
=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP
="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw
/include
&& test -d /sw
/lib
; then
2639 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2640 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-
*-linux-gnu* )
2647 machine
=amdx86-64 opsys
=gnu-linux
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2661 if test x
"${opsys}" = x
; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys
=gnu
;;
2664 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2665 *-bsd4.2
) opsys
=bsd4-2
;;
2666 *-bsd4.3
) opsys
=bsd4-3
;;
2667 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2668 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2669 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2670 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2671 *-sysv4.2uw
* ) opsys
=unixware
;;
2672 *-sysv5uw* ) opsys
=unixware
;;
2673 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2674 *-sysv4.1
* |
*-sysvr4.1
* )
2675 NON_GNU_CPP
=/usr
/lib
/cpp
2677 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2678 if [ x
$NON_GNU_CPP = x
]; then
2679 if [ -f /usr
/ccs
/lib
/cpp
]; then
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 NON_GNU_CPP
=/lib
/cpp
2686 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile
="m/${machine}.h"
2704 opsysfile
="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified
=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS
="$CFLAGS"
2714 "yes" ) CC
="gcc" GCC
=yes ;;
2715 "no" ) : ${CC=cc} ;;
2719 ac_cpp
='$CPP $CPPFLAGS'
2720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC
="$CC" # Let the user override the test.
2734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir
=.
2739 for ac_exec_ext
in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc
; ac_word
=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir
=.
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC
="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC
="$CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc
; ac_word
=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC
="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc
; ac_word
=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC
="$CC" # Let the user override the test.
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected
=yes
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy
$ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC
="$CC" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2979 if test -z "$CC"; then
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy
$ac_prog; ac_word
=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC
="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler
=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save
=$ac_clean_files
3069 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3088 # b.out is created by i960 compilers.
3089 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3091 test -f "$ac_file" ||
continue
3093 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3096 # This is the source file.
3099 # We found the default executable, but exeext='' is most
3103 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext
=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try
='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 if test "$cross_compiling" = maybe
; then
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3160 ac_clean_files
=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 for ac_file
in conftest.exe conftest conftest.
*; do
3180 test -f "$ac_file" ||
continue
3182 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3183 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest
$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.
$ac_ext
3202 EXEEXT
=$ac_cv_exeext
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3233 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.
$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT
=$ac_cv_objext
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >conftest.
$ac_ext <<_ACEOF
3262 cat confdefs.h
>>conftest.
$ac_ext
3263 cat >>conftest.
$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try
='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try
='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.
$ac_ext >&5
3306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3307 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS
=${CFLAGS+set}
3314 ac_save_CFLAGS
=$CFLAGS
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS
=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3378 if test "$GCC" = yes; then
3384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 ac_cv_prog_cc_stdc
=no
3391 cat >conftest.
$ac_ext <<_ACEOF
3394 cat confdefs.h
>>conftest.
$ac_ext
3395 cat >>conftest.
$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3415 s = g (p, va_arg (v,int));
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std1 is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std1. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 # Don't try gcc -ansi; that turns off useful extensions and
3444 # breaks some systems' header files.
3445 # AIX -qlanglvl=ansi
3446 # Ultrix and OSF/1 -std1
3447 # HP-UX 10.20 and later -Ae
3448 # HP-UX older versions -Aa -D_HPUX_SOURCE
3449 # SVR4 -Xc -D__EXTENSIONS__
3450 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC
="$ac_save_CC $ac_arg"
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_prog_cc_stdc
=$ac_arg
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.
$ac_ext >&5
3482 rm -f conftest.err conftest.
$ac_objext
3484 rm -f conftest.
$ac_ext conftest.
$ac_objext
3489 case "x$ac_cv_prog_cc_stdc" in
3491 echo "$as_me:$LINENO: result: none needed" >&5
3492 echo "${ECHO_T}none needed" >&6 ;;
3494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3499 # Some people use a C++ compiler to compile C. Since we use `exit',
3500 # in C++ we need to declare it. In case someone uses the same compiler
3501 # for both compiling C and C++ we need to have the C++ compiler decide
3502 # the declaration of exit, since it's the most demanding environment.
3503 cat >conftest.
$ac_ext <<_ACEOF
3508 rm -f conftest.
$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try
='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 for ac_declaration
in \
3532 'extern "C" void std::exit (int) throw (); using std::exit;' \
3533 'extern "C" void std::exit (int); using std::exit;' \
3534 'extern "C" void exit (int) throw ();' \
3535 'extern "C" void exit (int);' \
3538 cat >conftest.
$ac_ext <<_ACEOF
3541 cat confdefs.h
>>conftest.
$ac_ext
3542 cat >>conftest.
$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3554 rm -f conftest.
$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try
='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.
$ac_ext >&5
3583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 rm -f conftest.
$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try
='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try
='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3630 if test -n "$ac_declaration"; then
3631 echo '#ifdef __cplusplus' >>confdefs.h
3632 echo $ac_declaration >>confdefs.h
3633 echo '#endif' >>confdefs.h
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 ac_cpp
='$CPP $CPPFLAGS'
3644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3649 # On Suns, sometimes $CPP names a directory.
3650 if test -n "$CPP" && test -d "$CPP"; then
3654 #### Some systems specify a CPP to use unless we are using GCC.
3655 #### Now that we know whether we are using GCC, we can decide whether
3656 #### to use that one.
3657 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3662 #### Some systems specify a CC to use unless we are using GCC.
3663 #### Now that we know whether we are using GCC, we can decide whether
3664 #### to use that one.
3665 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3666 test x
$cc_specified != xyes
3671 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3673 CC
="$CC $GCC_TEST_OPTIONS"
3676 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3678 CC
="$CC $NON_GCC_TEST_OPTIONS"
3683 ac_cpp
='$CPP $CPPFLAGS'
3684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3687 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3693 if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 # Double quotes because CPP needs to be expanded
3698 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3701 for ac_c_preproc_warn_flag
in '' yes
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3716 # include <limits.h>
3718 # include <assert.h>
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3725 grep -v '^ *+' conftest.er1
>conftest.err
3727 cat conftest.err
>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev
/null
; then
3730 if test -s conftest.err
; then
3731 ac_cpp_err
=$ac_c_preproc_warn_flag
3732 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3739 if test -z "$ac_cpp_err"; then
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.
$ac_ext >&5
3745 # Broken: fails on valid input.
3748 rm -f conftest.err conftest.
$ac_ext
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.
$ac_ext <<_ACEOF
3755 cat confdefs.h
>>conftest.
$ac_ext
3756 cat >>conftest.
$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3763 grep -v '^ *+' conftest.er1
>conftest.err
3765 cat conftest.err
>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev
/null
; then
3768 if test -s conftest.err
; then
3769 ac_cpp_err
=$ac_c_preproc_warn_flag
3770 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3777 if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.
$ac_ext >&5
3784 # Passes both tests.
3788 rm -f conftest.err conftest.
$ac_ext
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.
$ac_ext
3793 if $ac_preproc_ok; then
3805 echo "$as_me:$LINENO: result: $CPP" >&5
3806 echo "${ECHO_T}$CPP" >&6
3808 for ac_c_preproc_warn_flag
in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.
$ac_ext <<_ACEOF
3819 cat confdefs.h
>>conftest.
$ac_ext
3820 cat >>conftest.
$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 # include <limits.h>
3825 # include <assert.h>
3829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3832 grep -v '^ *+' conftest.er1
>conftest.err
3834 cat conftest.err
>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev
/null
; then
3837 if test -s conftest.err
; then
3838 ac_cpp_err
=$ac_c_preproc_warn_flag
3839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3846 if test -z "$ac_cpp_err"; then
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.
$ac_ext >&5
3852 # Broken: fails on valid input.
3855 rm -f conftest.err conftest.
$ac_ext
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <ac_nonexistent.h>
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3870 grep -v '^ *+' conftest.er1
>conftest.err
3872 cat conftest.err
>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev
/null
; then
3875 if test -s conftest.err
; then
3876 ac_cpp_err
=$ac_c_preproc_warn_flag
3877 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3884 if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.
$ac_ext >&5
3891 # Passes both tests.
3895 rm -f conftest.err conftest.
$ac_ext
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.err conftest.
$ac_ext
3900 if $ac_preproc_ok; then
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&5
3905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3911 ac_cpp
='$CPP $CPPFLAGS'
3912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3923 then ac_cv_prog_egrep
='grep -E'
3924 else ac_cv_prog_egrep
='egrep'
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP
=$ac_cv_prog_egrep
3933 echo "$as_me:$LINENO: checking for AIX" >&5
3934 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3935 cat >conftest.
$ac_ext <<_ACEOF
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev
/null
2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h
<<\_ACEOF
3951 #define _ALL_SOURCE 1
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3962 cat >>confdefs.h
<<\_ACEOF
3963 #define _GNU_SOURCE 1
3968 ### Use -Wno-pointer-sign if the compiler supports it
3969 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3970 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3971 SAVE_CFLAGS
="$CFLAGS"
3972 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3988 rm -f conftest.
$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1
>conftest.err
3994 cat conftest.err
>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try
='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try
='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.
$ac_ext >&5
4017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4018 if test $has_option = yes; then
4019 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4021 echo "$as_me:$LINENO: result: $has_option" >&5
4022 echo "${ECHO_T}$has_option" >&6
4023 CFLAGS
="$SAVE_CFLAGS"
4027 #### Some other nice autoconf tests.
4029 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4030 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4032 if test "$LN_S" = "ln -s"; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6
4036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4037 echo "${ECHO_T}no, using $LN_S" >&6
4041 ac_cpp
='$CPP $CPPFLAGS'
4042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4047 # On Suns, sometimes $CPP names a directory.
4048 if test -n "$CPP" && test -d "$CPP"; then
4051 if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 # Double quotes because CPP needs to be expanded
4056 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4059 for ac_c_preproc_warn_flag
in '' yes
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.
$ac_ext <<_ACEOF
4070 cat confdefs.h
>>conftest.
$ac_ext
4071 cat >>conftest.
$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 # include <limits.h>
4076 # include <assert.h>
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1
>conftest.err
4085 cat conftest.err
>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev
/null
; then
4088 if test -s conftest.err
; then
4089 ac_cpp_err
=$ac_c_preproc_warn_flag
4090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4097 if test -z "$ac_cpp_err"; then
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.
$ac_ext >&5
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.
$ac_ext
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4121 grep -v '^ *+' conftest.er1
>conftest.err
4123 cat conftest.err
>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev
/null
; then
4126 if test -s conftest.err
; then
4127 ac_cpp_err
=$ac_c_preproc_warn_flag
4128 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4135 if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 # Passes both tests.
4146 rm -f conftest.err conftest.
$ac_ext
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.
$ac_ext
4151 if $ac_preproc_ok; then
4163 echo "$as_me:$LINENO: result: $CPP" >&5
4164 echo "${ECHO_T}$CPP" >&6
4166 for ac_c_preproc_warn_flag
in '' yes
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.
$ac_ext <<_ACEOF
4177 cat confdefs.h
>>conftest.
$ac_ext
4178 cat >>conftest.
$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4181 # include <limits.h>
4183 # include <assert.h>
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1
>conftest.err
4192 cat conftest.err
>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev
/null
; then
4195 if test -s conftest.err
; then
4196 ac_cpp_err
=$ac_c_preproc_warn_flag
4197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4204 if test -z "$ac_cpp_err"; then
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4210 # Broken: fails on valid input.
4213 rm -f conftest.err conftest.
$ac_ext
4215 # OK, works on sane cases. Now check whether non-existent headers
4216 # can be detected and how.
4217 cat >conftest.
$ac_ext <<_ACEOF
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1
>conftest.err
4230 cat conftest.err
>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev
/null
; then
4233 if test -s conftest.err
; then
4234 ac_cpp_err
=$ac_c_preproc_warn_flag
4235 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4242 if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4249 # Passes both tests.
4253 rm -f conftest.err conftest.
$ac_ext
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.
$ac_ext
4258 if $ac_preproc_ok; then
4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
4269 ac_cpp
='$CPP $CPPFLAGS'
4270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4274 # Find a good install program. We prefer a C program (faster),
4275 # so one script is as good as another. But avoid the broken or
4276 # incompatible versions:
4277 # SysV /etc/install, /usr/sbin/install
4278 # SunOS /usr/etc/install
4279 # IRIX /sbin/install
4281 # AmigaOS /C/install, which installs bootblocks on floppy discs
4282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4285 # OS/2's system install, which has a completely different semantic
4286 # ./install, which can be erroneously created by make from ./install.sh.
4287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4289 if test -z "$INSTALL"; then
4290 if test "${ac_cv_path_install+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 # Account for people who put trailing slashes in PATH elements.
4300 .
/ | .
// |
/cC
/* | \
4301 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4302 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4305 # OSF1 and SCO ODT 3.0 have their own names for install.
4306 # Don't use installbsd from OSF since it installs stuff as root
4308 for ac_prog
in ginstall scoinst
install; do
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4311 if test $ac_prog = install &&
4312 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4313 # AIX install. It has an incompatible calling convention.
4315 elif test $ac_prog = install &&
4316 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4317 # program-specific install script used by HP pwplus--don't use.
4320 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL
=$ac_cv_path_install
4335 # As a last resort, use the slow shell script. We don't cache a
4336 # path for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the path is relative.
4339 INSTALL
=$ac_install_sh
4342 echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4351 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4353 if test "x$RANLIB" = x
; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4356 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_RANLIB+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 if test -n "$RANLIB"; then
4363 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir
=.
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 RANLIB
=$ac_cv_prog_RANLIB
4382 if test -n "$RANLIB"; then
4383 echo "$as_me:$LINENO: result: $RANLIB" >&5
4384 echo "${ECHO_T}$RANLIB" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$ac_cv_prog_RANLIB"; then
4392 ac_ct_RANLIB
=$RANLIB
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394 set dummy ranlib
; ac_word
=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$ac_ct_RANLIB"; then
4401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4421 if test -n "$ac_ct_RANLIB"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4429 RANLIB
=$ac_ct_RANLIB
4431 RANLIB
="$ac_cv_prog_RANLIB"
4435 # Extract the first word of "install-info", so it can be a program name with args.
4436 set dummy install-info
; ac_word
=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 case $INSTALL_INFO in
4444 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4466 if test -n "$INSTALL_INFO"; then
4467 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4468 echo "${ECHO_T}$INSTALL_INFO" >&6
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4474 # Extract the first word of "install-info", so it can be a program name with args.
4475 set dummy install-info
; ac_word
=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 case $INSTALL_INFO in
4483 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4487 for as_dir
in /usr
/sbin
4490 test -z "$as_dir" && as_dir
=.
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4505 if test -n "$INSTALL_INFO"; then
4506 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4507 echo "${ECHO_T}$INSTALL_INFO" >&6
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4513 # Extract the first word of "install-info", so it can be a program name with args.
4514 set dummy install-info
; ac_word
=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 case $INSTALL_INFO in
4522 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir
=.
4530 for ac_exec_ext
in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4543 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4545 if test -n "$INSTALL_INFO"; then
4546 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4547 echo "${ECHO_T}$INSTALL_INFO" >&6
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 # Extract the first word of "gzip", so it can be a program name with args.
4554 set dummy
gzip; ac_word
=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4584 if test -n "$GZIP_PROG"; then
4585 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4586 echo "${ECHO_T}$GZIP_PROG" >&6
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4594 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4596 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4599 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4601 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4605 late_LDFLAGS
=$LDFLAGS
4606 if test "$GCC" = yes; then
4607 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4609 LDFLAGS
="$LDFLAGS -znocombreloc"
4612 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4613 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 rm -f conftest.
$ac_objext conftest
$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4621 grep -v '^ *+' conftest.er1
>conftest.err
4623 cat conftest.err
>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try
='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try
='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4645 LDFLAGS
=$late_LDFLAGS
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4649 rm -f conftest.err conftest.
$ac_objext \
4650 conftest
$ac_exeext conftest.
$ac_ext
4652 #### Extract some information from the operating system and machine files.
4654 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4655 - which libraries the lib-src programs will want, and
4656 - whether the GNU malloc routines are usable..." >&5
4657 echo "$as_me: checking the machine- and system-dependent files to find out
4658 - which libraries the lib-src programs will want, and
4659 - whether the GNU malloc routines are usable..." >&6;}
4661 ### First figure out CFLAGS (which we use for running the compiler here)
4662 ### and REAL_CFLAGS (which we use for real compilation).
4663 ### The two are the same except on a few systems, where they are made
4664 ### different to work around various lossages. For example,
4665 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4666 ### as implying static linking.
4668 ### If the CFLAGS env var is specified, we use that value
4669 ### instead of the default.
4671 ### It's not important that this name contain the PID; you can't run
4672 ### two configures in the same directory and have anything work
4674 tempcname
="conftest.c"
4677 #include "'${srcdir}'/src/'${opsysfile}'"
4678 #include "'${srcdir}'/src/'${machfile}'"
4679 #ifndef LIBS_MACHINE
4680 #define LIBS_MACHINE
4685 #ifndef C_SWITCH_SYSTEM
4686 #define C_SWITCH_SYSTEM
4688 #ifndef C_SWITCH_MACHINE
4689 #define C_SWITCH_MACHINE
4691 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4692 configure___ c_switch_system=C_SWITCH_SYSTEM
4693 configure___ c_switch_machine=C_SWITCH_MACHINE
4696 #define LIB_X11_LIB -lX11
4699 #ifndef LIBX11_MACHINE
4700 #define LIBX11_MACHINE
4703 #ifndef LIBX11_SYSTEM
4704 #define LIBX11_SYSTEM
4706 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4709 configure___ unexec=UNEXEC
4711 configure___ unexec=unexec.o
4714 #ifdef SYSTEM_MALLOC
4715 configure___ system_malloc=yes
4717 configure___ system_malloc=no
4720 #ifdef USE_MMAP_FOR_BUFFERS
4721 configure___ use_mmap_for_buffers=yes
4723 configure___ use_mmap_for_buffers=no
4726 #ifndef C_DEBUG_SWITCH
4727 #define C_DEBUG_SWITCH -g
4730 #ifndef C_OPTIMIZE_SWITCH
4732 #define C_OPTIMIZE_SWITCH -O2
4734 #define C_OPTIMIZE_SWITCH -O
4738 #ifndef C_WARNINGS_SWITCH
4739 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4742 #ifndef LD_SWITCH_MACHINE
4743 #define LD_SWITCH_MACHINE
4746 #ifndef LD_SWITCH_SYSTEM
4747 #define LD_SWITCH_SYSTEM
4750 #ifndef LD_SWITCH_X_SITE_AUX
4751 #define LD_SWITCH_X_SITE_AUX
4754 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4755 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4757 #ifdef THIS_IS_CONFIGURE
4759 /* Get the CFLAGS for tests in configure. */
4761 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4763 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4766 #else /* not THIS_IS_CONFIGURE */
4768 /* Get the CFLAGS for real compilation. */
4770 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4772 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4775 #endif /* not THIS_IS_CONFIGURE */
4778 # The value of CPP is a quoted variable reference, so we need to do this
4779 # to get its actual value...
4780 CPP
=`eval "echo $CPP"`
4781 eval `${CPP} -Isrc ${tempcname} \
4782 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783 if test "x$SPECIFIED_CFLAGS" = x
; then
4784 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4785 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 REAL_CFLAGS
="$CFLAGS"
4791 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4793 ### Make sure subsequent tests use flags consistent with the build flags.
4795 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4796 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4798 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4803 # Check whether --enable-largefile or --disable-largefile was given.
4804 if test "${enable_largefile+set}" = set; then
4805 enableval
="$enable_largefile"
4808 if test "$enable_largefile" != no
; then
4810 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4811 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4812 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_cv_sys_largefile_CC
=no
4816 if test "$GCC" != yes; then
4819 # IRIX 6.2 and later do not support large files by default,
4820 # so use the C compiler's -n32 option if that helps.
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 /* Check that off_t can represent 2**63 - 1 correctly.
4829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4830 since some C++ compilers masquerading as C compilers
4831 incorrectly reject 9223372036854775807. */
4832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4834 && LARGE_OFF_T % 2147483647 == 1)
4844 rm -f conftest.
$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try
='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try
='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.
$ac_ext >&5
4872 rm -f conftest.err conftest.
$ac_objext
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"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try
='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_sys_largefile_CC
=' -n32'; break
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.
$ac_ext >&5
4902 rm -f conftest.err conftest.
$ac_objext
4906 rm -f conftest.
$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4910 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4911 if test "$ac_cv_sys_largefile_CC" != no
; then
4912 CC
=$CC$ac_cv_sys_largefile_CC
4915 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4916 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4917 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 ac_cv_sys_file_offset_bits
=no
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1
>conftest.err
4951 cat conftest.err
>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try
='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.
$ac_ext >&5
4973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 cat >conftest.
$ac_ext <<_ACEOF
4977 cat confdefs.h
>>conftest.
$ac_ext
4978 cat >>conftest.
$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #define _FILE_OFFSET_BITS 64
4981 #include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_sys_file_offset_bits
=64; break
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5030 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5031 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5032 if test "$ac_cv_sys_file_offset_bits" != no
; then
5034 cat >>confdefs.h
<<_ACEOF
5035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5040 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5042 if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_cv_sys_large_files
=no
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 cat confdefs.h
>>conftest.
$ac_ext
5051 cat >>conftest.
$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5070 rm -f conftest.
$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1
>conftest.err
5076 cat conftest.err
>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try
='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.
$ac_ext >&5
5098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 cat >conftest.
$ac_ext <<_ACEOF
5102 cat confdefs.h
>>conftest.
$ac_ext
5103 cat >>conftest.
$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #define _LARGE_FILES 1
5106 #include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5123 rm -f conftest.
$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1
>conftest.err
5129 cat conftest.err
>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try
='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try
='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_sys_large_files
=1; break
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.
$ac_ext >&5
5151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5156 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5157 if test "$ac_cv_sys_large_files" != no
; then
5159 cat >>confdefs.h
<<_ACEOF
5160 #define _LARGE_FILES $ac_cv_sys_large_files
5168 if test "${with_sound}" != "no"; then
5169 # Sound support for GNU/Linux and the free BSDs.
5170 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5171 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5172 if test "${ac_cv_header_stdc+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 cat >conftest.
$ac_ext <<_ACEOF
5178 cat confdefs.h
>>conftest.
$ac_ext
5179 cat >>conftest.
$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5194 rm -f conftest.
$ac_objext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>conftest.er1
5198 grep -v '^ *+' conftest.er1
>conftest.err
5200 cat conftest.err
>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try
='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try
='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_header_stdc
=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.
$ac_ext >&5
5221 ac_cv_header_stdc
=no
5223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5225 if test $ac_cv_header_stdc = yes; then
5226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5227 cat >conftest.
$ac_ext <<_ACEOF
5230 cat confdefs.h
>>conftest.
$ac_ext
5231 cat >>conftest.
$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5237 $EGREP "memchr" >/dev
/null
2>&1; then
5240 ac_cv_header_stdc
=no
5246 if test $ac_cv_header_stdc = yes; then
5247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5248 cat >conftest.
$ac_ext <<_ACEOF
5251 cat confdefs.h
>>conftest.
$ac_ext
5252 cat >>conftest.
$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "free" >/dev
/null
2>&1; then
5261 ac_cv_header_stdc
=no
5267 if test $ac_cv_header_stdc = yes; then
5268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5269 if test "$cross_compiling" = yes; then
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 #if ((' ' & 0x0FF) == 0x020)
5280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5283 # define ISLOWER(c) \
5284 (('a' <= (c) && (c) <= 'i') \
5285 || ('j' <= (c) && (c) <= 'r') \
5286 || ('s' <= (c) && (c) <= 'z'))
5287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5295 for (i = 0; i < 256; i++)
5296 if (XOR (islower (i), ISLOWER (i))
5297 || toupper (i) != TOUPPER (i))
5302 rm -f conftest
$ac_exeext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5315 echo "$as_me: program exited with status $ac_status" >&5
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.
$ac_ext >&5
5320 ac_cv_header_stdc
=no
5322 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5327 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5328 if test $ac_cv_header_stdc = yes; then
5330 cat >>confdefs.h
<<\_ACEOF
5331 #define STDC_HEADERS 1
5336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5346 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5347 inttypes.h stdint.h unistd.h
5349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 cat >conftest.
$ac_ext <<_ACEOF
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 $ac_includes_default
5363 #include <$ac_header>
5365 rm -f conftest.
$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try
='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try
='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 eval "$as_ac_Header=yes"
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.
$ac_ext >&5
5392 eval "$as_ac_Header=no"
5394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5399 cat >>confdefs.h
<<_ACEOF
5400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5411 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5413 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5423 # Is the header compilable?
5424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5426 cat >conftest.
$ac_ext <<_ACEOF
5429 cat confdefs.h
>>conftest.
$ac_ext
5430 cat >>conftest.
$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5433 #include <$ac_header>
5435 rm -f conftest.
$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1
>conftest.err
5441 cat conftest.err
>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try
='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try
='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_header_compiler
=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.
$ac_ext >&5
5462 ac_header_compiler
=no
5464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466 echo "${ECHO_T}$ac_header_compiler" >&6
5468 # Is the header present?
5469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5471 cat >conftest.
$ac_ext <<_ACEOF
5474 cat confdefs.h
>>conftest.
$ac_ext
5475 cat >>conftest.
$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <$ac_header>
5479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5482 grep -v '^ *+' conftest.er1
>conftest.err
5484 cat conftest.err
>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev
/null
; then
5487 if test -s conftest.err
; then
5488 ac_cpp_err
=$ac_c_preproc_warn_flag
5489 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5496 if test -z "$ac_cpp_err"; then
5497 ac_header_preproc
=yes
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.
$ac_ext >&5
5502 ac_header_preproc
=no
5504 rm -f conftest.err conftest.
$ac_ext
5505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5506 echo "${ECHO_T}$ac_header_preproc" >&6
5508 # So? What about this header?
5509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5515 ac_header_preproc
=yes
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5532 ## ------------------------------------------ ##
5533 ## Report this to the AC_PACKAGE_NAME lists. ##
5534 ## ------------------------------------------ ##
5537 sed "s/^/$as_me: WARNING: /" >&2
5540 echo "$as_me:$LINENO: checking for $ac_header" >&5
5541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 eval "$as_ac_Header=\$ac_header_preproc"
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h
<<_ACEOF
5553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 # Emulation library used on NetBSD.
5561 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5562 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5563 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 ac_check_lib_save_LIBS
=$LIBS
5567 LIBS
="-lossaudio $LIBS"
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5575 /* Override any gcc2 internal prototype to avoid an error. */
5579 /* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5590 rm -f conftest.
$ac_objext conftest
$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>conftest.er1
5594 grep -v '^ *+' conftest.er1
>conftest.err
5596 cat conftest.err
>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try
='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try
='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_lib_ossaudio__oss_ioctl
=yes
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.
$ac_ext >&5
5617 ac_cv_lib_ossaudio__oss_ioctl
=no
5619 rm -f conftest.err conftest.
$ac_objext \
5620 conftest
$ac_exeext conftest.
$ac_ext
5621 LIBS
=$ac_check_lib_save_LIBS
5623 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5624 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5625 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5659 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5660 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5661 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5662 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5665 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667 echo "$as_me:$LINENO: checking for $ac_header" >&5
5668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5675 # Is the header compilable?
5676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5678 cat >conftest.
$ac_ext <<_ACEOF
5681 cat confdefs.h
>>conftest.
$ac_ext
5682 cat >>conftest.
$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 #include <$ac_header>
5687 rm -f conftest.
$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try
='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try
='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_header_compiler
=yes
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.
$ac_ext >&5
5714 ac_header_compiler
=no
5716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5718 echo "${ECHO_T}$ac_header_compiler" >&6
5720 # Is the header present?
5721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5723 cat >conftest.
$ac_ext <<_ACEOF
5726 cat confdefs.h
>>conftest.
$ac_ext
5727 cat >>conftest.
$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <$ac_header>
5731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5732 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1
>conftest.err
5736 cat conftest.err
>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } >/dev
/null
; then
5739 if test -s conftest.err
; then
5740 ac_cpp_err
=$ac_c_preproc_warn_flag
5741 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5748 if test -z "$ac_cpp_err"; then
5749 ac_header_preproc
=yes
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.
$ac_ext >&5
5754 ac_header_preproc
=no
5756 rm -f conftest.err conftest.
$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5758 echo "${ECHO_T}$ac_header_preproc" >&6
5760 # So? What about this header?
5761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5767 ac_header_preproc
=yes
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5784 ## ------------------------------------------ ##
5785 ## Report this to the AC_PACKAGE_NAME lists. ##
5786 ## ------------------------------------------ ##
5789 sed "s/^/$as_me: WARNING: /" >&2
5792 echo "$as_me:$LINENO: checking for $ac_header" >&5
5793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 eval "$as_ac_Header=\$ac_header_preproc"
5799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5804 cat >>confdefs.h
<<_ACEOF
5805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5814 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5815 cat >conftest.
$ac_ext <<_ACEOF
5818 cat confdefs.h
>>conftest.
$ac_ext
5819 cat >>conftest.
$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <sys/personality.h>
5825 personality (PER_LINUX32)
5830 rm -f conftest.
$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>conftest.er1
5834 grep -v '^ *+' conftest.er1
>conftest.err
5836 cat conftest.err
>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try
='test -z "$ac_c_werror_flag"
5840 || test ! -s conftest.err'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try
='test -s conftest.$ac_objext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 emacs_cv_personality_linux32
=yes
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.
$ac_ext >&5
5857 emacs_cv_personality_linux32
=no
5859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5861 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5863 if test $emacs_cv_personality_linux32 = yes; then
5865 cat >>confdefs.h
<<\_ACEOF
5866 #define HAVE_PERSONALITY_LINUX32 1
5872 for ac_header
in term.h
5874 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5875 echo "$as_me:$LINENO: checking for $ac_header" >&5
5876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <$ac_header>
5888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5891 grep -v '^ *+' conftest.er1
>conftest.err
5893 cat conftest.err
>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev
/null
; then
5896 if test -s conftest.err
; then
5897 ac_cpp_err
=$ac_c_preproc_warn_flag
5898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5905 if test -z "$ac_cpp_err"; then
5906 eval "$as_ac_Header=yes"
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.
$ac_ext >&5
5911 eval "$as_ac_Header=no"
5913 rm -f conftest.err conftest.
$ac_ext
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5918 cat >>confdefs.h
<<_ACEOF
5919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5928 if test "${ac_cv_header_stdc+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 cat >conftest.
$ac_ext <<_ACEOF
5934 cat confdefs.h
>>conftest.
$ac_ext
5935 cat >>conftest.
$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5950 rm -f conftest.
$ac_objext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5954 grep -v '^ *+' conftest.er1
>conftest.err
5956 cat conftest.err
>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try
='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_header_stdc
=yes
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.
$ac_ext >&5
5977 ac_cv_header_stdc
=no
5979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5981 if test $ac_cv_header_stdc = yes; then
5982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "memchr" >/dev
/null
2>&1; then
5996 ac_cv_header_stdc
=no
6002 if test $ac_cv_header_stdc = yes; then
6003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6004 cat >conftest.
$ac_ext <<_ACEOF
6007 cat confdefs.h
>>conftest.
$ac_ext
6008 cat >>conftest.
$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "free" >/dev
/null
2>&1; then
6017 ac_cv_header_stdc
=no
6023 if test $ac_cv_header_stdc = yes; then
6024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6025 if test "$cross_compiling" = yes; then
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 #if ((' ' & 0x0FF) == 0x020)
6036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6039 # define ISLOWER(c) \
6040 (('a' <= (c) && (c) <= 'i') \
6041 || ('j' <= (c) && (c) <= 'r') \
6042 || ('s' <= (c) && (c) <= 'z'))
6043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6051 for (i = 0; i < 256; i++)
6052 if (XOR (islower (i), ISLOWER (i))
6053 || toupper (i) != TOUPPER (i))
6058 rm -f conftest
$ac_exeext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6060 (eval $ac_link) 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6071 echo "$as_me: program exited with status $ac_status" >&5
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6076 ac_cv_header_stdc
=no
6078 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6084 if test $ac_cv_header_stdc = yes; then
6086 cat >>confdefs.h
<<\_ACEOF
6087 #define STDC_HEADERS 1
6092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6094 if test "${ac_cv_header_time+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 cat >conftest.
$ac_ext <<_ACEOF
6100 cat confdefs.h
>>conftest.
$ac_ext
6101 cat >>conftest.
$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 #include <sys/types.h>
6104 #include <sys/time.h>
6110 if ((struct tm *) 0)
6116 rm -f conftest.
$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1
>conftest.err
6122 cat conftest.err
>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try
='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try
='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_header_time
=yes
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.
$ac_ext >&5
6143 ac_cv_header_time
=no
6145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6148 echo "${ECHO_T}$ac_cv_header_time" >&6
6149 if test $ac_cv_header_time = yes; then
6151 cat >>confdefs.h
<<\_ACEOF
6152 #define TIME_WITH_SYS_TIME 1
6157 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6158 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6159 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.
$ac_ext <<_ACEOF
6165 cat confdefs.h
>>conftest.
$ac_ext
6166 cat >>conftest.
$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6173 char *p = (char *) sys_siglist;
6180 rm -f conftest.
$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1
>conftest.err
6186 cat conftest.err
>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try
='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try
='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_have_decl_sys_siglist
=yes
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.
$ac_ext >&5
6207 ac_cv_have_decl_sys_siglist
=no
6209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6211 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6212 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6213 if test $ac_cv_have_decl_sys_siglist = yes; then
6215 cat >>confdefs.h
<<_ACEOF
6216 #define HAVE_DECL_SYS_SIGLIST 1
6221 cat >>confdefs.h
<<_ACEOF
6222 #define HAVE_DECL_SYS_SIGLIST 0
6229 if test $ac_cv_have_decl_sys_siglist != yes; then
6230 # For Tru64, at least:
6231 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6232 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6233 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 cat >conftest.
$ac_ext <<_ACEOF
6239 cat confdefs.h
>>conftest.
$ac_ext
6240 cat >>conftest.
$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6246 #ifndef __sys_siglist
6247 char *p = (char *) __sys_siglist;
6254 rm -f conftest.
$ac_objext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>conftest.er1
6258 grep -v '^ *+' conftest.er1
>conftest.err
6260 cat conftest.err
>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try
='test -z "$ac_c_werror_flag"
6264 || test ! -s conftest.err'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; } &&
6270 { ac_try
='test -s conftest.$ac_objext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_have_decl___sys_siglist
=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.
$ac_ext >&5
6281 ac_cv_have_decl___sys_siglist
=no
6283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6286 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6287 if test $ac_cv_have_decl___sys_siglist = yes; then
6289 cat >>confdefs.h
<<_ACEOF
6290 #define HAVE_DECL___SYS_SIGLIST 1
6295 cat >>confdefs.h
<<_ACEOF
6296 #define HAVE_DECL___SYS_SIGLIST 0
6303 if test $ac_cv_have_decl___sys_siglist = yes; then
6305 cat >>confdefs.h
<<\_ACEOF
6306 #define sys_siglist __sys_siglist
6311 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6312 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 cat >conftest.
$ac_ext <<_ACEOF
6319 cat confdefs.h
>>conftest.
$ac_ext
6320 cat >>conftest.
$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <sys/types.h>
6323 #include <sys/wait.h>
6325 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6328 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6341 rm -f conftest.
$ac_objext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1
>conftest.err
6347 cat conftest.err
>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try
='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try
='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_header_sys_wait_h
=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.
$ac_ext >&5
6368 ac_cv_header_sys_wait_h
=no
6370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6373 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6374 if test $ac_cv_header_sys_wait_h = yes; then
6376 cat >>confdefs.h
<<\_ACEOF
6377 #define HAVE_SYS_WAIT_H 1
6383 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6384 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6385 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 cat >conftest.
$ac_ext <<_ACEOF
6391 cat confdefs.h
>>conftest.
$ac_ext
6392 cat >>conftest.
$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #ifdef TIME_WITH_SYS_TIME
6395 #include <sys/time.h>
6398 #ifdef HAVE_SYS_TIME_H
6399 #include <sys/time.h>
6410 static struct utimbuf x; x.actime = x.modtime;
6415 rm -f conftest.
$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1
>conftest.err
6421 cat conftest.err
>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try
='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try
='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 emacs_cv_struct_utimbuf
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 emacs_cv_struct_utimbuf
=no
6444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6446 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6447 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6448 if test $emacs_cv_struct_utimbuf = yes; then
6450 cat >>confdefs.h
<<\_ACEOF
6451 #define HAVE_STRUCT_UTIMBUF 1
6456 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6457 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6458 if test "${ac_cv_type_signal+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.
$ac_ext <<_ACEOF
6464 cat confdefs.h
>>conftest.
$ac_ext
6465 cat >>conftest.
$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6473 extern "C" void (*signal (int, void (*)(int)))(int);
6475 void (*signal ()) ();
6486 rm -f conftest.
$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>conftest.er1
6490 grep -v '^ *+' conftest.er1
>conftest.err
6492 cat conftest.err
>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try
='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try
='test -s conftest.$ac_objext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_type_signal
=void
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6513 ac_cv_type_signal
=int
6515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6517 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6518 echo "${ECHO_T}$ac_cv_type_signal" >&6
6520 cat >>confdefs.h
<<_ACEOF
6521 #define RETSIGTYPE $ac_cv_type_signal
6526 echo "$as_me:$LINENO: checking for speed_t" >&5
6527 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6528 if test "${emacs_cv_speed_t+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #include <termios.h>
6546 rm -f conftest.
$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6550 grep -v '^ *+' conftest.er1
>conftest.err
6552 cat conftest.err
>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try
='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try
='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 emacs_cv_speed_t
=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.
$ac_ext >&5
6575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6577 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6578 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6579 if test $emacs_cv_speed_t = yes; then
6581 cat >>confdefs.h
<<\_ACEOF
6582 #define HAVE_SPEED_T 1
6587 echo "$as_me:$LINENO: checking for struct timeval" >&5
6588 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6589 if test "${emacs_cv_struct_timeval+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 cat >conftest.
$ac_ext <<_ACEOF
6595 cat confdefs.h
>>conftest.
$ac_ext
6596 cat >>conftest.
$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #ifdef TIME_WITH_SYS_TIME
6599 #include <sys/time.h>
6602 #ifdef HAVE_SYS_TIME_H
6603 #include <sys/time.h>
6611 static struct timeval x; x.tv_sec = x.tv_usec;
6616 rm -f conftest.
$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1
>conftest.err
6622 cat conftest.err
>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try
='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try
='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 emacs_cv_struct_timeval
=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6643 emacs_cv_struct_timeval
=no
6645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6647 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6648 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6649 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6650 if test $emacs_cv_struct_timeval = yes; then
6652 cat >>confdefs.h
<<\_ACEOF
6653 #define HAVE_TIMEVAL 1
6658 echo "$as_me:$LINENO: checking for struct exception" >&5
6659 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6660 if test "${emacs_cv_struct_exception+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 cat >conftest.
$ac_ext <<_ACEOF
6666 cat confdefs.h
>>conftest.
$ac_ext
6667 cat >>conftest.
$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6673 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6678 rm -f conftest.
$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>conftest.er1
6682 grep -v '^ *+' conftest.er1
>conftest.err
6684 cat conftest.err
>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try
='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try
='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 emacs_cv_struct_exception
=yes
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6705 emacs_cv_struct_exception
=no
6707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6709 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6710 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6711 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6712 if test $emacs_cv_struct_exception != yes; then
6714 cat >>confdefs.h
<<\_ACEOF
6715 #define NO_MATHERR 1
6721 for ac_header
in sys
/socket.h
6723 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725 echo "$as_me:$LINENO: checking for $ac_header" >&5
6726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6733 # Is the header compilable?
6734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6736 cat >conftest.
$ac_ext <<_ACEOF
6739 cat confdefs.h
>>conftest.
$ac_ext
6740 cat >>conftest.
$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 #include <$ac_header>
6745 rm -f conftest.
$ac_objext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>conftest.er1
6749 grep -v '^ *+' conftest.er1
>conftest.err
6751 cat conftest.err
>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try
='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try
='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_header_compiler
=yes
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.
$ac_ext >&5
6772 ac_header_compiler
=no
6774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6776 echo "${ECHO_T}$ac_header_compiler" >&6
6778 # Is the header present?
6779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6781 cat >conftest.
$ac_ext <<_ACEOF
6784 cat confdefs.h
>>conftest.
$ac_ext
6785 cat >>conftest.
$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <$ac_header>
6789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1
>conftest.err
6794 cat conftest.err
>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } >/dev
/null
; then
6797 if test -s conftest.err
; then
6798 ac_cpp_err
=$ac_c_preproc_warn_flag
6799 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6806 if test -z "$ac_cpp_err"; then
6807 ac_header_preproc
=yes
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.
$ac_ext >&5
6812 ac_header_preproc
=no
6814 rm -f conftest.err conftest.
$ac_ext
6815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6816 echo "${ECHO_T}$ac_header_preproc" >&6
6818 # So? What about this header?
6819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6825 ac_header_preproc
=yes
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6842 ## ------------------------------------------ ##
6843 ## Report this to the AC_PACKAGE_NAME lists. ##
6844 ## ------------------------------------------ ##
6847 sed "s/^/$as_me: WARNING: /" >&2
6850 echo "$as_me:$LINENO: checking for $ac_header" >&5
6851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 eval "$as_ac_Header=\$ac_header_preproc"
6857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6862 cat >>confdefs.h
<<_ACEOF
6863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6871 for ac_header
in net
/if.h
6873 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6874 echo "$as_me:$LINENO: checking for $ac_header" >&5
6875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 cat >conftest.
$ac_ext <<_ACEOF
6882 cat confdefs.h
>>conftest.
$ac_ext
6883 cat >>conftest.
$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6886 #if HAVE_SYS_SOCKET_H
6887 #include <sys/socket.h>
6890 #include <$ac_header>
6892 rm -f conftest.
$ac_objext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>conftest.er1
6896 grep -v '^ *+' conftest.er1
>conftest.err
6898 cat conftest.err
>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try
='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try
='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 eval "$as_ac_Header=yes"
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.
$ac_ext >&5
6919 eval "$as_ac_Header=no"
6921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6926 cat >>confdefs.h
<<_ACEOF
6927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6935 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6936 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6937 if test "${ac_cv_struct_tm+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 cat >conftest.
$ac_ext <<_ACEOF
6943 cat confdefs.h
>>conftest.
$ac_ext
6944 cat >>conftest.
$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 #include <sys/types.h>
6952 struct tm *tp; tp->tm_sec;
6957 rm -f conftest.
$ac_objext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>conftest.er1
6961 grep -v '^ *+' conftest.er1
>conftest.err
6963 cat conftest.err
>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try
='test -z "$ac_c_werror_flag"
6967 || test ! -s conftest.err'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; } &&
6973 { ac_try
='test -s conftest.$ac_objext'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6979 ac_cv_struct_tm
=time.h
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.
$ac_ext >&5
6984 ac_cv_struct_tm
=sys
/time.h
6986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6988 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6989 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6990 if test $ac_cv_struct_tm = sys
/time.h
; then
6992 cat >>confdefs.h
<<\_ACEOF
6993 #define TM_IN_SYS_TIME 1
6998 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6999 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7000 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 cat >conftest.
$ac_ext <<_ACEOF
7006 cat confdefs.h
>>conftest.
$ac_ext
7007 cat >>conftest.
$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 #include <sys/types.h>
7010 #include <$ac_cv_struct_tm>
7016 static struct tm ac_aggr;
7017 if (ac_aggr.tm_zone)
7023 rm -f conftest.
$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1
>conftest.err
7029 cat conftest.err
>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try
='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try
='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_cv_member_struct_tm_tm_zone
=yes
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.
$ac_ext >&5
7050 cat >conftest.
$ac_ext <<_ACEOF
7053 cat confdefs.h
>>conftest.
$ac_ext
7054 cat >>conftest.
$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7057 #include <$ac_cv_struct_tm>
7063 static struct tm ac_aggr;
7064 if (sizeof ac_aggr.tm_zone)
7070 rm -f conftest.
$ac_objext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>conftest.er1
7074 grep -v '^ *+' conftest.er1
>conftest.err
7076 cat conftest.err
>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try
='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try
='test -s conftest.$ac_objext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_cv_member_struct_tm_tm_zone
=yes
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.
$ac_ext >&5
7097 ac_cv_member_struct_tm_tm_zone
=no
7099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7104 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7105 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7107 cat >>confdefs.h
<<_ACEOF
7108 #define HAVE_STRUCT_TM_TM_ZONE 1
7114 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7116 cat >>confdefs.h
<<\_ACEOF
7117 #define HAVE_TM_ZONE 1
7121 echo "$as_me:$LINENO: checking for tzname" >&5
7122 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7123 if test "${ac_cv_var_tzname+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 cat >conftest.
$ac_ext <<_ACEOF
7129 cat confdefs.h
>>conftest.
$ac_ext
7130 cat >>conftest.
$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7133 #ifndef tzname /* For SGI. */
7134 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7145 rm -f conftest.
$ac_objext conftest
$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>conftest.er1
7149 grep -v '^ *+' conftest.er1
>conftest.err
7151 cat conftest.err
>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try
='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try
='test -s conftest$ac_exeext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_var_tzname
=yes
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.
$ac_ext >&5
7174 rm -f conftest.err conftest.
$ac_objext \
7175 conftest
$ac_exeext conftest.
$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7178 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7179 if test $ac_cv_var_tzname = yes; then
7181 cat >>confdefs.h
<<\_ACEOF
7182 #define HAVE_TZNAME 1
7188 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7189 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7190 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 cat >conftest.
$ac_ext <<_ACEOF
7196 cat confdefs.h
>>conftest.
$ac_ext
7197 cat >>conftest.
$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7204 static struct tm ac_aggr;
7205 if (ac_aggr.tm_gmtoff)
7211 rm -f conftest.
$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1
>conftest.err
7217 cat conftest.err
>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try
='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try
='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_member_struct_tm_tm_gmtoff
=yes
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7238 cat >conftest.
$ac_ext <<_ACEOF
7241 cat confdefs.h
>>conftest.
$ac_ext
7242 cat >>conftest.
$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7249 static struct tm ac_aggr;
7250 if (sizeof ac_aggr.tm_gmtoff)
7256 rm -f conftest.
$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try
='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_cv_member_struct_tm_tm_gmtoff
=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 ac_cv_member_struct_tm_tm_gmtoff
=no
7285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7289 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7290 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7291 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7293 cat >>confdefs.h
<<\_ACEOF
7294 #define HAVE_TM_GMTOFF 1
7299 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7300 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7301 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 cat >conftest.
$ac_ext <<_ACEOF
7307 cat confdefs.h
>>conftest.
$ac_ext
7308 cat >>conftest.
$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7311 #if HAVE_SYS_SOCKET_H
7312 #include <sys/socket.h>
7321 static struct ifreq ac_aggr;
7322 if (ac_aggr.ifr_flags)
7328 rm -f conftest.
$ac_objext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>conftest.er1
7332 grep -v '^ *+' conftest.er1
>conftest.err
7334 cat conftest.err
>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try
='test -z "$ac_c_werror_flag"
7338 || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try
='test -s conftest.$ac_objext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_member_struct_ifreq_ifr_flags
=yes
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.
$ac_ext >&5
7355 cat >conftest.
$ac_ext <<_ACEOF
7358 cat confdefs.h
>>conftest.
$ac_ext
7359 cat >>conftest.
$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 $ac_includes_default
7362 #if HAVE_SYS_SOCKET_H
7363 #include <sys/socket.h>
7372 static struct ifreq ac_aggr;
7373 if (sizeof ac_aggr.ifr_flags)
7379 rm -f conftest.
$ac_objext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>conftest.er1
7383 grep -v '^ *+' conftest.er1
>conftest.err
7385 cat conftest.err
>&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try
='test -z "$ac_c_werror_flag"
7389 || test ! -s conftest.err'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; } &&
7395 { ac_try
='test -s conftest.$ac_objext'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 ac_cv_member_struct_ifreq_ifr_flags
=yes
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.
$ac_ext >&5
7406 ac_cv_member_struct_ifreq_ifr_flags
=no
7408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7413 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7414 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7416 cat >>confdefs.h
<<_ACEOF
7417 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7422 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7423 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7424 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 cat >conftest.
$ac_ext <<_ACEOF
7430 cat confdefs.h
>>conftest.
$ac_ext
7431 cat >>conftest.
$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 $ac_includes_default
7434 #if HAVE_SYS_SOCKET_H
7435 #include <sys/socket.h>
7444 static struct ifreq ac_aggr;
7445 if (ac_aggr.ifr_hwaddr)
7451 rm -f conftest.
$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>conftest.er1
7455 grep -v '^ *+' conftest.er1
>conftest.err
7457 cat conftest.err
>&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try
='test -z "$ac_c_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try
='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.
$ac_ext >&5
7478 cat >conftest.
$ac_ext <<_ACEOF
7481 cat confdefs.h
>>conftest.
$ac_ext
7482 cat >>conftest.
$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 $ac_includes_default
7485 #if HAVE_SYS_SOCKET_H
7486 #include <sys/socket.h>
7495 static struct ifreq ac_aggr;
7496 if (sizeof ac_aggr.ifr_hwaddr)
7502 rm -f conftest.
$ac_objext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7504 (eval $ac_compile) 2>conftest.er1
7506 grep -v '^ *+' conftest.er1
>conftest.err
7508 cat conftest.err
>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
7511 { ac_try
='test -z "$ac_c_werror_flag"
7512 || test ! -s conftest.err'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; } &&
7518 { ac_try
='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.
$ac_ext >&5
7529 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7535 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7536 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7537 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7539 cat >>confdefs.h
<<_ACEOF
7540 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7545 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7546 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7547 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.
$ac_ext <<_ACEOF
7553 cat confdefs.h
>>conftest.
$ac_ext
7554 cat >>conftest.
$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 $ac_includes_default
7557 #if HAVE_SYS_SOCKET_H
7558 #include <sys/socket.h>
7567 static struct ifreq ac_aggr;
7568 if (ac_aggr.ifr_netmask)
7574 rm -f conftest.
$ac_objext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>conftest.er1
7578 grep -v '^ *+' conftest.er1
>conftest.err
7580 cat conftest.err
>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try
='test -z "$ac_c_werror_flag"
7584 || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try
='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.
$ac_ext >&5
7601 cat >conftest.
$ac_ext <<_ACEOF
7604 cat confdefs.h
>>conftest.
$ac_ext
7605 cat >>conftest.
$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 #if HAVE_SYS_SOCKET_H
7609 #include <sys/socket.h>
7618 static struct ifreq ac_aggr;
7619 if (sizeof ac_aggr.ifr_netmask)
7625 rm -f conftest.
$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7629 grep -v '^ *+' conftest.er1
>conftest.err
7631 cat conftest.err
>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try
='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try
='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.
$ac_ext >&5
7652 ac_cv_member_struct_ifreq_ifr_netmask
=no
7654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7658 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7659 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7660 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7662 cat >>confdefs.h
<<_ACEOF
7663 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7668 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7669 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7670 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 cat >conftest.
$ac_ext <<_ACEOF
7676 cat confdefs.h
>>conftest.
$ac_ext
7677 cat >>conftest.
$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7690 static struct ifreq ac_aggr;
7691 if (ac_aggr.ifr_broadaddr)
7697 rm -f conftest.
$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7701 grep -v '^ *+' conftest.er1
>conftest.err
7703 cat conftest.err
>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try
='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try
='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.
$ac_ext >&5
7724 cat >conftest.
$ac_ext <<_ACEOF
7727 cat confdefs.h
>>conftest.
$ac_ext
7728 cat >>conftest.
$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 $ac_includes_default
7731 #if HAVE_SYS_SOCKET_H
7732 #include <sys/socket.h>
7741 static struct ifreq ac_aggr;
7742 if (sizeof ac_aggr.ifr_broadaddr)
7748 rm -f conftest.
$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
7752 grep -v '^ *+' conftest.er1
>conftest.err
7754 cat conftest.err
>&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try
='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try
='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.
$ac_ext >&5
7775 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7782 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7783 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7785 cat >>confdefs.h
<<_ACEOF
7786 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7791 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7792 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7793 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.
$ac_ext <<_ACEOF
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 $ac_includes_default
7803 #if HAVE_SYS_SOCKET_H
7804 #include <sys/socket.h>
7813 static struct ifreq ac_aggr;
7814 if (ac_aggr.ifr_addr)
7820 rm -f conftest.
$ac_objext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1
>conftest.err
7826 cat conftest.err
>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try
='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try
='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_member_struct_ifreq_ifr_addr
=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.
$ac_ext >&5
7847 cat >conftest.
$ac_ext <<_ACEOF
7850 cat confdefs.h
>>conftest.
$ac_ext
7851 cat >>conftest.
$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 $ac_includes_default
7854 #if HAVE_SYS_SOCKET_H
7855 #include <sys/socket.h>
7864 static struct ifreq ac_aggr;
7865 if (sizeof ac_aggr.ifr_addr)
7871 rm -f conftest.
$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7875 grep -v '^ *+' conftest.er1
>conftest.err
7877 cat conftest.err
>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try
='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try
='test -s conftest.$ac_objext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_member_struct_ifreq_ifr_addr
=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.
$ac_ext >&5
7898 ac_cv_member_struct_ifreq_ifr_addr
=no
7900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7905 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7906 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7908 cat >>confdefs.h
<<_ACEOF
7909 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7917 echo "$as_me:$LINENO: checking for function prototypes" >&5
7918 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7919 if test "$ac_cv_prog_cc_stdc" != no
; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921 echo "${ECHO_T}yes" >&6
7923 cat >>confdefs.h
<<\_ACEOF
7924 #define PROTOTYPES 1
7928 cat >>confdefs.h
<<\_ACEOF
7929 #define __PROTOTYPES 1
7933 echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7937 echo "$as_me:$LINENO: checking for working volatile" >&5
7938 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7939 if test "${ac_cv_c_volatile+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 cat >conftest.
$ac_ext <<_ACEOF
7945 cat confdefs.h
>>conftest.
$ac_ext
7946 cat >>conftest.
$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7959 rm -f conftest.
$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7963 grep -v '^ *+' conftest.er1
>conftest.err
7965 cat conftest.err
>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try
='test -z "$ac_c_werror_flag"
7969 || test ! -s conftest.err'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try
='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_c_volatile
=yes
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.
$ac_ext >&5
7988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7991 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7992 if test $ac_cv_c_volatile = no
; then
7994 cat >>confdefs.h
<<\_ACEOF
8000 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8002 if test "${ac_cv_c_const+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 cat >conftest.
$ac_ext <<_ACEOF
8008 cat confdefs.h
>>conftest.
$ac_ext
8009 cat >>conftest.
$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8015 /* FIXME: Include the comments suggested by Paul. */
8017 /* Ultrix mips cc rejects this. */
8018 typedef int charset[2];
8020 /* SunOS 4.1.1 cc rejects this. */
8021 char const *const *ccp;
8023 /* NEC SVR4.0.2 mips cc rejects this. */
8024 struct point {int x, y;};
8025 static struct point const zero = {0,0};
8026 /* AIX XL C 1.02.0.0 rejects this.
8027 It does not let you subtract one const X* pointer from another in
8028 an arm of an if-expression whose if-part is not a constant
8030 const char *g = "string";
8031 ccp = &g + (g ? g-g : 0);
8032 /* HPUX 7.0 cc rejects these. */
8035 ccp = (char const *const *) p;
8036 { /* SCO 3.2v4 cc rejects this. */
8038 char const *s = 0 ? (char *) 0 : (char const *) 0;
8042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8044 const int *foo = &x[0];
8047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8048 typedef const int *iptr;
8052 { /* AIX XL C 1.02.0.0 rejects this saying
8053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8054 struct s { int j; const int *ap[3]; };
8055 struct s *b; b->j = 5;
8057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8066 rm -f conftest.
$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8070 grep -v '^ *+' conftest.er1
>conftest.err
8072 cat conftest.err
>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try
='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try
='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.
$ac_ext >&5
8095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8098 echo "${ECHO_T}$ac_cv_c_const" >&6
8099 if test $ac_cv_c_const = no
; then
8101 cat >>confdefs.h
<<\_ACEOF
8107 echo "$as_me:$LINENO: checking for void * support" >&5
8108 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8109 if test "${emacs_cv_void_star+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 cat >conftest.
$ac_ext <<_ACEOF
8115 cat confdefs.h
>>conftest.
$ac_ext
8116 cat >>conftest.
$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8127 rm -f conftest.
$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8131 grep -v '^ *+' conftest.er1
>conftest.err
8133 cat conftest.err
>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try
='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try
='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 emacs_cv_void_star
=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.
$ac_ext >&5
8154 emacs_cv_void_star
=no
8156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8158 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8159 echo "${ECHO_T}$emacs_cv_void_star" >&6
8160 if test $emacs_cv_void_star = yes; then
8161 cat >>confdefs.h
<<\_ACEOF
8162 #define POINTER_TYPE void
8166 cat >>confdefs.h
<<\_ACEOF
8167 #define POINTER_TYPE char
8176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8178 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 cat >conftest.
make <<\_ACEOF
8184 @
echo 'ac_maketemp="$(MAKE)"'
8186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8188 if test -n "$ac_maketemp"; then
8189 eval ac_cv_prog_make_
${ac_make}_set
=yes
8191 eval ac_cv_prog_make_
${ac_make}_set
=no
8195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8202 SET_MAKE
="MAKE=${MAKE-make}"
8206 echo "$as_me:$LINENO: checking for long file names" >&5
8207 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8208 if test "${ac_cv_sys_long_file_names+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 ac_cv_sys_long_file_names
=yes
8212 # Test for long file names in all the places we know might matter:
8213 # . the current directory, where building will happen
8214 # $prefix/lib where we will be installing things
8215 # $exec_prefix/lib likewise
8216 # eval it to expand exec_prefix.
8217 # $TMPDIR if set, where it might want to write temporary files
8218 # if $TMPDIR is not set:
8219 # /tmp where it might want to write temporary files
8222 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8225 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8227 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8228 test -d $ac_dir ||
continue
8229 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8230 ac_xdir
=$ac_dir/cf$$
8231 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8232 ac_tf1
=$ac_xdir/conftest9012345
8233 ac_tf2
=$ac_xdir/conftest9012346
8234 (echo 1 >$ac_tf1) 2>/dev
/null
8235 (echo 2 >$ac_tf2) 2>/dev
/null
8236 ac_val
=`cat $ac_tf1 2>/dev/null`
8237 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8238 ac_cv_sys_long_file_names
=no
8239 rm -rf $ac_xdir 2>/dev
/null
8242 rm -rf $ac_xdir 2>/dev
/null
8245 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8246 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8247 if test $ac_cv_sys_long_file_names = yes; then
8249 cat >>confdefs.h
<<\_ACEOF
8250 #define HAVE_LONG_FILE_NAMES 1
8256 #### Choose a window system.
8258 echo "$as_me:$LINENO: checking for X" >&5
8259 echo $ECHO_N "checking for X... $ECHO_C" >&6
8262 # Check whether --with-x or --without-x was given.
8263 if test "${with_x+set}" = set; then
8267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8268 if test "x$with_x" = xno
; then
8269 # The user explicitly disabled X.
8272 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8273 # Both variables are already set.
8276 if test "${ac_cv_have_x+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 # One or both of the vars are not set, and there is no cached value.
8280 ac_x_includes
=no ac_x_libraries
=no
8282 if mkdir conftest.dir
; then
8284 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8285 cat >Imakefile
<<'_ACEOF'
8287 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8289 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8291 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8292 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8293 for ac_extension
in a so sl
; do
8294 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8295 test -f $ac_im_libdir/libX11.
$ac_extension; then
8296 ac_im_usrlibdir
=$ac_im_libdir; break
8299 # Screen out bogus values from the imake configuration. They are
8300 # bogus both because they are the default anyway, and because
8301 # using them would break gcc on systems where it needs fixed includes.
8302 case $ac_im_incroot in
8304 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8306 case $ac_im_usrlibdir in
8308 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8315 # Standard set of common directories for X headers.
8316 # Check X11 before X11Rn because it is often a symlink to the current release.
8328 /usr/local/X11/include
8329 /usr/local/X11R6/include
8330 /usr/local/X11R5/include
8331 /usr/local/X11R4/include
8333 /usr/local/include/X11
8334 /usr/local/include/X11R6
8335 /usr/local/include/X11R5
8336 /usr/local/include/X11R4
8340 /usr/XFree86/include/X11
8344 /usr/unsupported/include
8346 /usr/local/x11r5/include
8347 /usr/lpp/Xamples/include
8349 /usr/openwin/include
8350 /usr/openwin/share/include'
8352 if test "$ac_x_includes" = no
; then
8353 # Guess where to find include files, by looking for Intrinsic.h.
8354 # First, try using that file with no special directory specified.
8355 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 #include <X11/Intrinsic.h>
8363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8364 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1
>conftest.err
8368 cat conftest.err
>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } >/dev
/null
; then
8371 if test -s conftest.err
; then
8372 ac_cpp_err
=$ac_c_preproc_warn_flag
8373 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8380 if test -z "$ac_cpp_err"; then
8381 # We can compile using X headers with no special include directory.
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.
$ac_ext >&5
8387 for ac_dir
in $ac_x_header_dirs; do
8388 if test -r "$ac_dir/X11/Intrinsic.h"; then
8389 ac_x_includes
=$ac_dir
8394 rm -f conftest.err conftest.
$ac_ext
8395 fi # $ac_x_includes = no
8397 if test "$ac_x_libraries" = no
; then
8398 # Check for the libraries.
8399 # See if we find them without any special options.
8400 # Don't add to $LIBS permanently.
8403 cat >conftest.
$ac_ext <<_ACEOF
8406 cat confdefs.h
>>conftest.
$ac_ext
8407 cat >>conftest.
$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 #include <X11/Intrinsic.h>
8418 rm -f conftest.
$ac_objext conftest
$ac_exeext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>conftest.er1
8422 grep -v '^ *+' conftest.er1
>conftest.err
8424 cat conftest.err
>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try
='test -z "$ac_c_werror_flag"
8428 || test ! -s conftest.err'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; } &&
8434 { ac_try
='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8441 # We can link X programs with no special library path.
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.
$ac_ext >&5
8448 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8450 # Don't even attempt the hair of trying to link an X program!
8451 for ac_extension
in a so sl
; do
8452 if test -r $ac_dir/libXt.
$ac_extension; then
8453 ac_x_libraries
=$ac_dir
8459 rm -f conftest.err conftest.
$ac_objext \
8460 conftest
$ac_exeext conftest.
$ac_ext
8461 fi # $ac_x_libraries = no
8463 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8464 # Didn't find X anywhere. Cache the known absence of X.
8465 ac_cv_have_x
="have_x=no"
8467 # Record where we found X for the cache.
8468 ac_cv_have_x
="have_x=yes \
8469 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8474 eval "$ac_cv_have_x"
8477 if test "$have_x" != yes; then
8478 echo "$as_me:$LINENO: result: $have_x" >&5
8479 echo "${ECHO_T}$have_x" >&6
8482 # If each of the values was on the command line, it overrides each guess.
8483 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8484 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8485 # Update the cache value to reflect the command line values.
8486 ac_cv_have_x
="have_x=yes \
8487 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8488 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8489 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8492 if test "$no_x" = yes; then
8498 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8499 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8500 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8501 x_default_search_path
=""
8502 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8504 ${x_library}/X11/%L/%T/%N%C%S:\
8505 ${x_library}/X11/%l/%T/%N%C%S:\
8506 ${x_library}/X11/%T/%N%C%S:\
8507 ${x_library}/X11/%L/%T/%N%S:\
8508 ${x_library}/X11/%l/%T/%N%S:\
8509 ${x_library}/X11/%T/%N%S"
8510 if test x
"${x_default_search_path}" = x
; then
8511 x_default_search_path
=${x_search_path}
8513 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8517 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8518 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8521 if test x
"${x_includes}" = x
; then
8522 bitmapdir
=/usr
/include
/X11
/bitmaps
8524 # accumulate include directories that have X11 bitmap subdirectories
8526 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8527 if test -d "${bmd}/X11/bitmaps"; then
8528 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8530 if test -d "${bmd}/bitmaps"; then
8531 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8534 if test ${bmd_acc} != "dummyval"; then
8535 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8540 if test "${with_carbon}" != no
; then
8541 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8542 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8543 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8544 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8548 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8550 # Is the header compilable?
8551 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8552 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8553 cat >conftest.
$ac_ext <<_ACEOF
8556 cat confdefs.h
>>conftest.
$ac_ext
8557 cat >>conftest.
$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #include <Carbon/Carbon.h>
8562 rm -f conftest.
$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564 (eval $ac_compile) 2>conftest.er1
8566 grep -v '^ *+' conftest.er1
>conftest.err
8568 cat conftest.err
>&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try
='test -z "$ac_c_werror_flag"
8572 || test ! -s conftest.err'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try
='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_header_compiler
=yes
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.
$ac_ext >&5
8589 ac_header_compiler
=no
8591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8593 echo "${ECHO_T}$ac_header_compiler" >&6
8595 # Is the header present?
8596 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8597 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8598 cat >conftest.
$ac_ext <<_ACEOF
8601 cat confdefs.h
>>conftest.
$ac_ext
8602 cat >>conftest.
$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 #include <Carbon/Carbon.h>
8606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8609 grep -v '^ *+' conftest.er1
>conftest.err
8611 cat conftest.err
>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev
/null
; then
8614 if test -s conftest.err
; then
8615 ac_cpp_err
=$ac_c_preproc_warn_flag
8616 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8623 if test -z "$ac_cpp_err"; then
8624 ac_header_preproc
=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.
$ac_ext >&5
8629 ac_header_preproc
=no
8631 rm -f conftest.err conftest.
$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8633 echo "${ECHO_T}$ac_header_preproc" >&6
8635 # So? What about this header?
8636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8638 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8639 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8641 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8642 ac_header_preproc
=yes
8645 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8646 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8648 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8650 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8652 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8654 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8656 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8659 ## ------------------------------------------ ##
8660 ## Report this to the AC_PACKAGE_NAME lists. ##
8661 ## ------------------------------------------ ##
8664 sed "s/^/$as_me: WARNING: /" >&2
8667 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8668 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8669 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8674 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8675 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8678 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8684 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8685 if test "${with_carbon+set}" != set \
8686 && test "${carbon_appdir_x+set}" != set; then
8690 if test "${HAVE_CARBON}" = yes; then
8694 case "${window_system}" in
8698 case "${with_x_toolkit}" in
8699 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8700 motif
) USE_X_TOOLKIT
=MOTIF
;;
8702 USE_X_TOOLKIT
=none
;;
8703 no
) USE_X_TOOLKIT
=none
;;
8704 * ) USE_X_TOOLKIT
=maybe
;;
8714 ### If we're using X11, we should use the X menu package.
8717 yes ) HAVE_MENUS
=yes ;;
8720 if test "${opsys}" = "hpux9"; then
8721 case "${x_libraries}" in
8723 opsysfile
="s/hpux9-x11r4.h"
8728 if test "${opsys}" = "hpux9shr"; then
8729 case "${x_libraries}" in
8731 opsysfile
="s/hpux9shxr4.h"
8736 ### Compute the unexec source name from the object name.
8737 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8739 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8740 # Assume not, until told otherwise.
8743 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8744 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8745 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 cat >conftest.
$ac_ext <<_ACEOF
8751 cat confdefs.h
>>conftest.
$ac_ext
8752 cat >>conftest.
$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8756 #define malloc_get_state innocuous_malloc_get_state
8758 /* System header to define __stub macros and hopefully few prototypes,
8759 which can conflict with char malloc_get_state (); below.
8760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8761 <limits.h> exists even on freestanding compilers. */
8764 # include <limits.h>
8766 # include <assert.h>
8769 #undef malloc_get_state
8771 /* Override any gcc2 internal prototype to avoid an error. */
8776 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8778 char malloc_get_state ();
8779 /* The GNU C library defines this for functions which it implements
8780 to always fail with ENOSYS. Some functions are actually named
8781 something starting with __ and the normal name is an alias. */
8782 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8785 char (*f) () = malloc_get_state;
8794 return f != malloc_get_state;
8799 rm -f conftest.
$ac_objext conftest
$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1
>conftest.err
8805 cat conftest.err
>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try
='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try
='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_func_malloc_get_state
=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.
$ac_ext >&5
8826 ac_cv_func_malloc_get_state
=no
8828 rm -f conftest.err conftest.
$ac_objext \
8829 conftest
$ac_exeext conftest.
$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8832 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8833 if test $ac_cv_func_malloc_get_state = yes; then
8839 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8840 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8841 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 cat >conftest.
$ac_ext <<_ACEOF
8847 cat confdefs.h
>>conftest.
$ac_ext
8848 cat >>conftest.
$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8852 #define malloc_set_state innocuous_malloc_set_state
8854 /* System header to define __stub macros and hopefully few prototypes,
8855 which can conflict with char malloc_set_state (); below.
8856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8857 <limits.h> exists even on freestanding compilers. */
8860 # include <limits.h>
8862 # include <assert.h>
8865 #undef malloc_set_state
8867 /* Override any gcc2 internal prototype to avoid an error. */
8872 /* We use char because int might match the return type of a gcc2
8873 builtin and then its argument prototype would still apply. */
8874 char malloc_set_state ();
8875 /* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8881 char (*f) () = malloc_set_state;
8890 return f != malloc_set_state;
8895 rm -f conftest.
$ac_objext conftest
$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>conftest.er1
8899 grep -v '^ *+' conftest.er1
>conftest.err
8901 cat conftest.err
>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try
='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try
='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_func_malloc_set_state
=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.
$ac_ext >&5
8922 ac_cv_func_malloc_set_state
=no
8924 rm -f conftest.err conftest.
$ac_objext \
8925 conftest
$ac_exeext conftest.
$ac_ext
8927 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8928 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8929 if test $ac_cv_func_malloc_set_state = yes; then
8935 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8936 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8937 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 extern void (* __after_morecore_hook)();
8950 __after_morecore_hook = 0
8955 rm -f conftest.
$ac_objext conftest
$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
8959 grep -v '^ *+' conftest.er1
>conftest.err
8961 cat conftest.err
>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try
='test -z "$ac_c_werror_flag"
8965 || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try
='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 emacs_cv_var___after_morecore_hook
=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.
$ac_ext >&5
8982 emacs_cv_var___after_morecore_hook
=no
8984 rm -f conftest.err conftest.
$ac_objext \
8985 conftest
$ac_exeext conftest.
$ac_ext
8987 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8988 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8989 if test $emacs_cv_var___after_morecore_hook = no
; then
8992 if test "${system_malloc}" = "yes"; then
8995 (The GNU allocators don't work with this system configuration.)"
8997 if test "$doug_lea_malloc" = "yes" ; then
8998 if test "$GNU_MALLOC" = yes ; then
9000 (Using Doug Lea's new malloc from the GNU C Library.)"
9003 cat >>confdefs.h
<<\_ACEOF
9004 #define DOUG_LEA_MALLOC 1
9009 if test x
"${REL_ALLOC}" = x
; then
9010 REL_ALLOC
=${GNU_MALLOC}
9016 for ac_header
in stdlib.h unistd.h
9018 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo "$as_me:$LINENO: checking for $ac_header" >&5
9021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028 # Is the header compilable?
9029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9031 cat >conftest.
$ac_ext <<_ACEOF
9034 cat confdefs.h
>>conftest.
$ac_ext
9035 cat >>conftest.
$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9038 #include <$ac_header>
9040 rm -f conftest.
$ac_objext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 2>conftest.er1
9044 grep -v '^ *+' conftest.er1
>conftest.err
9046 cat conftest.err
>&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try
='test -z "$ac_c_werror_flag"
9050 || test ! -s conftest.err'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; } &&
9056 { ac_try
='test -s conftest.$ac_objext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_header_compiler
=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.
$ac_ext >&5
9067 ac_header_compiler
=no
9069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9071 echo "${ECHO_T}$ac_header_compiler" >&6
9073 # Is the header present?
9074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9076 cat >conftest.
$ac_ext <<_ACEOF
9079 cat confdefs.h
>>conftest.
$ac_ext
9080 cat >>conftest.
$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 #include <$ac_header>
9084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9087 grep -v '^ *+' conftest.er1
>conftest.err
9089 cat conftest.err
>&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } >/dev
/null
; then
9092 if test -s conftest.err
; then
9093 ac_cpp_err
=$ac_c_preproc_warn_flag
9094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9101 if test -z "$ac_cpp_err"; then
9102 ac_header_preproc
=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.
$ac_ext >&5
9107 ac_header_preproc
=no
9109 rm -f conftest.err conftest.
$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111 echo "${ECHO_T}$ac_header_preproc" >&6
9113 # So? What about this header?
9114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120 ac_header_preproc
=yes
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9137 ## ------------------------------------------ ##
9138 ## Report this to the AC_PACKAGE_NAME lists. ##
9139 ## ------------------------------------------ ##
9142 sed "s/^/$as_me: WARNING: /" >&2
9145 echo "$as_me:$LINENO: checking for $ac_header" >&5
9146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 eval "$as_ac_Header=\$ac_header_preproc"
9152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157 cat >>confdefs.h
<<_ACEOF
9158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 for ac_func
in getpagesize
9168 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9169 echo "$as_me:$LINENO: checking for $ac_func" >&5
9170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_var+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 cat >conftest.
$ac_ext <<_ACEOF
9177 cat confdefs.h
>>conftest.
$ac_ext
9178 cat >>conftest.
$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9182 #define $ac_func innocuous_$ac_func
9184 /* System header to define __stub macros and hopefully few prototypes,
9185 which can conflict with char $ac_func (); below.
9186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9187 <limits.h> exists even on freestanding compilers. */
9190 # include <limits.h>
9192 # include <assert.h>
9197 /* Override any gcc2 internal prototype to avoid an error. */
9202 /* We use char because int might match the return type of a gcc2
9203 builtin and then its argument prototype would still apply. */
9205 /* The GNU C library defines this for functions which it implements
9206 to always fail with ENOSYS. Some functions are actually named
9207 something starting with __ and the normal name is an alias. */
9208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9211 char (*f) () = $ac_func;
9220 return f != $ac_func;
9225 rm -f conftest.
$ac_objext conftest
$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>conftest.er1
9229 grep -v '^ *+' conftest.er1
>conftest.err
9231 cat conftest.err
>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try
='test -z "$ac_c_werror_flag"
9235 || test ! -s conftest.err'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try
='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 eval "$as_ac_var=yes"
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 eval "$as_ac_var=no"
9254 rm -f conftest.err conftest.
$ac_objext \
9255 conftest
$ac_exeext conftest.
$ac_ext
9257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9259 if test `eval echo '${'$as_ac_var'}'` = yes; then
9260 cat >>confdefs.h
<<_ACEOF
9261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9267 echo "$as_me:$LINENO: checking for working mmap" >&5
9268 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9269 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 if test "$cross_compiling" = yes; then
9273 ac_cv_func_mmap_fixed_mapped
=no
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9282 /* malloc might have been renamed as rpl_malloc. */
9285 /* Thanks to Mike Haertel and Jim Avera for this test.
9286 Here is a matrix of mmap possibilities:
9287 mmap private not fixed
9288 mmap private fixed at somewhere currently unmapped
9289 mmap private fixed at somewhere already mapped
9290 mmap shared not fixed
9291 mmap shared fixed at somewhere currently unmapped
9292 mmap shared fixed at somewhere already mapped
9293 For private mappings, we should verify that changes cannot be read()
9294 back from the file, nor mmap's back from the file at a different
9295 address. (There have been systems where private was not correctly
9296 implemented like the infamous i386 svr4.0, and systems where the
9297 VM page cache was not coherent with the file system buffer cache
9298 like early versions of FreeBSD and possibly contemporary NetBSD.)
9299 For shared mappings, we should conversely verify that changes get
9300 propagated back to all the places they're supposed to be.
9302 Grep wants private fixed already mapped.
9303 The main things grep needs to know about mmap are:
9304 * does it exist and is it safe to write into the mmap'd area
9305 * how to use it (BSD variants) */
9308 #include <sys/mman.h>
9310 #if !STDC_HEADERS && !HAVE_STDLIB_H
9314 /* This mess was copied from the GNU getpagesize.h. */
9315 #if !HAVE_GETPAGESIZE
9316 /* Assume that all systems that can run configure have sys/param.h. */
9317 # if !HAVE_SYS_PARAM_H
9318 # define HAVE_SYS_PARAM_H 1
9321 # ifdef _SC_PAGESIZE
9322 # define getpagesize() sysconf(_SC_PAGESIZE)
9323 # else /* no _SC_PAGESIZE */
9324 # if HAVE_SYS_PARAM_H
9325 # include <sys/param.h>
9326 # ifdef EXEC_PAGESIZE
9327 # define getpagesize() EXEC_PAGESIZE
9328 # else /* no EXEC_PAGESIZE */
9330 # define getpagesize() NBPG * CLSIZE
9333 # endif /* no CLSIZE */
9334 # else /* no NBPG */
9336 # define getpagesize() NBPC
9337 # else /* no NBPC */
9339 # define getpagesize() PAGESIZE
9340 # endif /* PAGESIZE */
9341 # endif /* no NBPC */
9342 # endif /* no NBPG */
9343 # endif /* no EXEC_PAGESIZE */
9344 # else /* no HAVE_SYS_PARAM_H */
9345 # define getpagesize() 8192 /* punt totally */
9346 # endif /* no HAVE_SYS_PARAM_H */
9347 # endif /* no _SC_PAGESIZE */
9349 #endif /* no HAVE_GETPAGESIZE */
9354 char *data, *data2, *data3;
9358 pagesize = getpagesize ();
9360 /* First, make a file with some known garbage in it. */
9361 data = (char *) malloc (pagesize);
9364 for (i = 0; i < pagesize; ++i)
9365 *(data + i) = rand ();
9367 fd = creat ("conftest.mmap", 0600);
9370 if (write (fd, data, pagesize) != pagesize)
9374 /* Next, try to mmap the file at a fixed address which already has
9375 something else allocated at it. If we can, also make sure that
9376 we see the same garbage. */
9377 fd = open ("conftest.mmap", O_RDWR);
9380 data2 = (char *) malloc (2 * pagesize);
9383 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9384 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9385 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9387 for (i = 0; i < pagesize; ++i)
9388 if (*(data + i) != *(data2 + i))
9391 /* Finally, make sure that changes to the mapped area do not
9392 percolate back to the file as seen by read(). (This is a bug on
9393 some variants of i386 svr4.0.) */
9394 for (i = 0; i < pagesize; ++i)
9395 *(data2 + i) = *(data2 + i) + 1;
9396 data3 = (char *) malloc (pagesize);
9399 if (read (fd, data3, pagesize) != pagesize)
9401 for (i = 0; i < pagesize; ++i)
9402 if (*(data + i) != *(data3 + i))
9408 rm -f conftest
$ac_exeext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_func_mmap_fixed_mapped
=yes
9421 echo "$as_me: program exited with status $ac_status" >&5
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.
$ac_ext >&5
9426 ac_cv_func_mmap_fixed_mapped
=no
9428 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9432 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9433 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9435 cat >>confdefs.h
<<\_ACEOF
9442 if test $use_mmap_for_buffers = yes; then
9446 LIBS
="$libsrc_libs $LIBS"
9449 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9450 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9451 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 ac_check_lib_save_LIBS
=$LIBS
9456 cat >conftest.
$ac_ext <<_ACEOF
9459 cat confdefs.h
>>conftest.
$ac_ext
9460 cat >>conftest.
$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9463 /* Override any gcc2 internal prototype to avoid an error. */
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9478 rm -f conftest.
$ac_objext conftest
$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try
='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try
='test -s conftest$ac_exeext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_cv_lib_dnet_dnet_ntoa
=yes
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.
$ac_ext >&5
9505 ac_cv_lib_dnet_dnet_ntoa
=no
9507 rm -f conftest.err conftest.
$ac_objext \
9508 conftest
$ac_exeext conftest.
$ac_ext
9509 LIBS
=$ac_check_lib_save_LIBS
9511 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9512 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9513 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9514 cat >>confdefs.h
<<_ACEOF
9515 #define HAVE_LIBDNET 1
9523 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9524 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9525 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 ac_check_lib_save_LIBS
=$LIBS
9530 cat >conftest.
$ac_ext <<_ACEOF
9533 cat confdefs.h
>>conftest.
$ac_ext
9534 cat >>conftest.
$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9546 rm -f conftest.
$ac_objext conftest
$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9550 grep -v '^ *+' conftest.er1
>conftest.err
9552 cat conftest.err
>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try
='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_lib_Xbsd_main
=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.
$ac_ext >&5
9573 ac_cv_lib_Xbsd_main
=no
9575 rm -f conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9577 LIBS
=$ac_check_lib_save_LIBS
9579 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9580 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9581 if test $ac_cv_lib_Xbsd_main = yes; then
9582 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9587 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9588 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9589 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 ac_check_lib_save_LIBS
=$LIBS
9593 LIBS
="-lpthreads $LIBS"
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9616 rm -f conftest.
$ac_objext conftest
$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>conftest.er1
9620 grep -v '^ *+' conftest.er1
>conftest.err
9622 cat conftest.err
>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try
='test -z "$ac_c_werror_flag"
9626 || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try
='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_pthreads_cma_open
=yes
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.
$ac_ext >&5
9643 ac_cv_lib_pthreads_cma_open
=no
9645 rm -f conftest.err conftest.
$ac_objext \
9646 conftest
$ac_exeext conftest.
$ac_ext
9647 LIBS
=$ac_check_lib_save_LIBS
9649 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9650 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9651 if test $ac_cv_lib_pthreads_cma_open = yes; then
9652 cat >>confdefs.h
<<_ACEOF
9653 #define HAVE_LIBPTHREADS 1
9656 LIBS
="-lpthreads $LIBS"
9661 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9662 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9663 if test -d /usr
/X386
/include
; then
9665 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9669 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9670 echo "${ECHO_T}$HAVE_XFREE386" >&6
9675 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9676 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9677 if test "${gdb_cv_bigtoc+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9683 *) gdb_cv_bigtoc
=-bbigtoc ;;
9686 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9687 cat >conftest.
$ac_ext <<_ACEOF
9690 cat confdefs.h
>>conftest.
$ac_ext
9691 cat >>conftest.
$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9702 rm -f conftest.
$ac_objext conftest
$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9706 grep -v '^ *+' conftest.er1
>conftest.err
9708 cat conftest.err
>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try
='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try
='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9726 echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.
$ac_ext >&5
9731 rm -f conftest.err conftest.
$ac_objext \
9732 conftest
$ac_exeext conftest.
$ac_ext
9735 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9736 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9740 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9741 # used for the tests that follow. We set them back to REAL_CFLAGS and
9742 # REAL_CPPFLAGS later on.
9744 REAL_CPPFLAGS
="$CPPFLAGS"
9746 if test "${HAVE_X11}" = "yes"; then
9747 DEFS
="$C_SWITCH_X_SITE $DEFS"
9748 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9750 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9751 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9753 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9754 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9755 # but it's more convenient here to set LD_RUN_PATH
9756 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9757 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9758 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9762 if test "${opsys}" = "gnu-linux"; then
9763 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9764 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9765 cat >conftest.
$ac_ext <<_ACEOF
9768 cat confdefs.h
>>conftest.
$ac_ext
9769 cat >>conftest.
$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9775 XOpenDisplay ("foo");
9780 rm -f conftest.
$ac_objext conftest
$ac_exeext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>conftest.er1
9784 grep -v '^ *+' conftest.er1
>conftest.err
9786 cat conftest.err
>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try
='test -z "$ac_c_werror_flag"
9790 || 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 xlinux_first_failure
=no
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.
$ac_ext >&5
9807 xlinux_first_failure
=yes
9809 rm -f conftest.err conftest.
$ac_objext \
9810 conftest
$ac_exeext conftest.
$ac_ext
9811 if test "${xlinux_first_failure}" = "yes"; then
9812 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9813 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9814 OLD_CPPFLAGS
="$CPPFLAGS"
9816 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9817 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9818 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9819 LIBS
="$LIBS -b i486-linuxaout"
9820 cat >conftest.
$ac_ext <<_ACEOF
9823 cat confdefs.h
>>conftest.
$ac_ext
9824 cat >>conftest.
$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9830 XOpenDisplay ("foo");
9835 rm -f conftest.
$ac_objext conftest
$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>conftest.er1
9839 grep -v '^ *+' conftest.er1
>conftest.err
9841 cat conftest.err
>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try
='test -z "$ac_c_werror_flag"
9845 || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try
='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 xlinux_second_failure
=no
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.
$ac_ext >&5
9862 xlinux_second_failure
=yes
9864 rm -f conftest.err conftest.
$ac_objext \
9865 conftest
$ac_exeext conftest.
$ac_ext
9866 if test "${xlinux_second_failure}" = "yes"; then
9867 # If we get the same failure with -b, there is no use adding -b.
9868 # So take it out. This plays safe.
9869 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9870 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9871 CPPFLAGS
="$OLD_CPPFLAGS"
9873 echo "$as_me:$LINENO: result: no" >&5
9874 echo "${ECHO_T}no" >&6
9876 echo "$as_me:$LINENO: result: yes" >&5
9877 echo "${ECHO_T}yes" >&6
9880 echo "$as_me:$LINENO: result: no" >&5
9881 echo "${ECHO_T}no" >&6
9885 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9886 # header files included from there.
9887 echo "$as_me:$LINENO: checking for Xkb" >&5
9888 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9889 cat >conftest.
$ac_ext <<_ACEOF
9892 cat confdefs.h
>>conftest.
$ac_ext
9893 cat >>conftest.
$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 #include <X11/Xlib.h>
9896 #include <X11/XKBlib.h>
9900 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9905 rm -f conftest.
$ac_objext conftest
$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1
>conftest.err
9911 cat conftest.err
>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try
='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try
='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.
$ac_ext >&5
9934 rm -f conftest.err conftest.
$ac_objext \
9935 conftest
$ac_exeext conftest.
$ac_ext
9936 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9937 echo "${ECHO_T}$emacs_xkb" >&6
9938 if test $emacs_xkb = yes; then
9940 cat >>confdefs.h
<<\_ACEOF
9941 #define HAVE_XKBGETKEYBOARD 1
9950 for ac_func
in XrmSetDatabase XScreenResourceString \
9951 XScreenNumberOfScreen XSetWMProtocols
9953 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9954 echo "$as_me:$LINENO: checking for $ac_func" >&5
9955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9956 if eval "test \"\${$as_ac_var+set}\" = set"; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 cat >conftest.
$ac_ext <<_ACEOF
9962 cat confdefs.h
>>conftest.
$ac_ext
9963 cat >>conftest.
$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9967 #define $ac_func innocuous_$ac_func
9969 /* System header to define __stub macros and hopefully few prototypes,
9970 which can conflict with char $ac_func (); below.
9971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972 <limits.h> exists even on freestanding compilers. */
9975 # include <limits.h>
9977 # include <assert.h>
9982 /* Override any gcc2 internal prototype to avoid an error. */
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9990 /* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
9993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996 char (*f) () = $ac_func;
10005 return f != $ac_func;
10010 rm -f conftest.
$ac_objext conftest
$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>conftest.er1
10014 grep -v '^ *+' conftest.er1
>conftest.err
10016 cat conftest.err
>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try
='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try
='test -s conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 eval "$as_ac_var=yes"
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 eval "$as_ac_var=no"
10039 rm -f conftest.err conftest.
$ac_objext \
10040 conftest
$ac_exeext conftest.
$ac_ext
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10044 if test `eval echo '${'$as_ac_var'}'` = yes; then
10045 cat >>confdefs.h
<<_ACEOF
10046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 if test "${window_system}" = "x11"; then
10055 echo "$as_me:$LINENO: checking X11 version 6" >&5
10056 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10057 if test "${emacs_cv_x11_version_6+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 cat >conftest.
$ac_ext <<_ACEOF
10063 cat confdefs.h
>>conftest.
$ac_ext
10064 cat >>conftest.
$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <X11/Xlib.h>
10070 #if XlibSpecificationRelease < 6
10078 rm -f conftest.
$ac_objext conftest
$ac_exeext
10079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080 (eval $ac_link) 2>conftest.er1
10082 grep -v '^ *+' conftest.er1
>conftest.err
10084 cat conftest.err
>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try
='test -z "$ac_c_werror_flag"
10088 || test ! -s conftest.err'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try
='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 emacs_cv_x11_version_6
=yes
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.
$ac_ext >&5
10105 emacs_cv_x11_version_6
=no
10107 rm -f conftest.err conftest.
$ac_objext \
10108 conftest
$ac_exeext conftest.
$ac_ext
10111 if test $emacs_cv_x11_version_6 = yes; then
10112 echo "$as_me:$LINENO: result: 6 or newer" >&5
10113 echo "${ECHO_T}6 or newer" >&6
10115 cat >>confdefs.h
<<\_ACEOF
10116 #define HAVE_X11R6 1
10120 echo "$as_me:$LINENO: result: before 6" >&5
10121 echo "${ECHO_T}before 6" >&6
10125 if test "${window_system}" = "x11"; then
10126 echo "$as_me:$LINENO: checking X11 version 5" >&5
10127 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10128 if test "${emacs_cv_x11_version_5+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 cat >conftest.
$ac_ext <<_ACEOF
10134 cat confdefs.h
>>conftest.
$ac_ext
10135 cat >>conftest.
$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10137 #include <X11/Xlib.h>
10141 #if XlibSpecificationRelease < 5
10149 rm -f conftest.
$ac_objext conftest
$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>conftest.er1
10153 grep -v '^ *+' conftest.er1
>conftest.err
10155 cat conftest.err
>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try
='test -z "$ac_c_werror_flag"
10159 || test ! -s conftest.err'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try
='test -s conftest$ac_exeext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 emacs_cv_x11_version_5
=yes
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.
$ac_ext >&5
10176 emacs_cv_x11_version_5
=no
10178 rm -f conftest.err conftest.
$ac_objext \
10179 conftest
$ac_exeext conftest.
$ac_ext
10182 if test $emacs_cv_x11_version_5 = yes; then
10183 echo "$as_me:$LINENO: result: 5 or newer" >&5
10184 echo "${ECHO_T}5 or newer" >&6
10187 cat >>confdefs.h
<<\_ACEOF
10188 #define HAVE_X11R5 1
10193 echo "$as_me:$LINENO: result: before 5" >&5
10194 echo "${ECHO_T}before 5" >&6
10201 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10202 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10203 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10204 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10205 { (exit 1); exit 1; }; };
10209 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10211 if test "X${with_pkg_config_prog}" != X
; then
10212 PKG_CONFIG
="${with_pkg_config_prog}"
10217 if test -z "$PKG_CONFIG"; then
10218 # Extract the first word of "pkg-config", so it can be a program name with args.
10219 set dummy pkg-config
; ac_word
=$2
10220 echo "$as_me:$LINENO: checking for $ac_word" >&5
10221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 case $PKG_CONFIG in
10227 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10231 for as_dir
in $PATH
10234 test -z "$as_dir" && as_dir
=.
10235 for ac_exec_ext
in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10248 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10250 if test -n "$PKG_CONFIG"; then
10251 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10252 echo "${ECHO_T}$PKG_CONFIG" >&6
10254 echo "$as_me:$LINENO: result: no" >&5
10255 echo "${ECHO_T}no" >&6
10260 if test "$PKG_CONFIG" = "no" ; then
10261 echo "*** The pkg-config script could not be found. Make sure it is"
10262 echo "*** in your path, or give the full path to pkg-config with"
10263 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10264 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10266 PKG_CONFIG_MIN_VERSION
=0.9.0
10267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10268 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10269 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10271 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10272 echo "$as_me:$LINENO: result: yes" >&5
10273 echo "${ECHO_T}yes" >&6
10276 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10277 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10278 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10279 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10280 echo "${ECHO_T}$GTK_CFLAGS" >&6
10282 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10283 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10284 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10285 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10286 echo "${ECHO_T}$GTK_LIBS" >&6
10290 ## If we have a custom action on failure, don't print errors, but
10291 ## do set a variable so people can do so.
10292 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10293 echo $GTK_PKG_ERRORS
10299 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10300 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10304 if test $succeeded = yes; then
10307 { { 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
10308 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;}
10309 { (exit 1); exit 1; }; }
10314 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10315 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10316 LIBS
="$GTK_LIBS $LIBS"
10319 cat >>confdefs.h
<<\_ACEOF
10325 if test "$with_toolkit_scroll_bars" != no
; then
10326 with_toolkit_scroll_bars
=yes
10329 HAVE_GTK_MULTIDISPLAY
=no
10331 for ac_func
in gdk_display_open
10333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10334 echo "$as_me:$LINENO: checking for $ac_func" >&5
10335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10336 if eval "test \"\${$as_ac_var+set}\" = set"; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.
$ac_ext <<_ACEOF
10342 cat confdefs.h
>>conftest.
$ac_ext
10343 cat >>conftest.
$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10347 #define $ac_func innocuous_$ac_func
10349 /* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char $ac_func (); below.
10351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10352 <limits.h> exists even on freestanding compilers. */
10355 # include <limits.h>
10357 # include <assert.h>
10362 /* Override any gcc2 internal prototype to avoid an error. */
10367 /* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10370 /* The GNU C library defines this for functions which it implements
10371 to always fail with ENOSYS. Some functions are actually named
10372 something starting with __ and the normal name is an alias. */
10373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10376 char (*f) () = $ac_func;
10385 return f != $ac_func;
10390 rm -f conftest.
$ac_objext conftest
$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10394 grep -v '^ *+' conftest.er1
>conftest.err
10396 cat conftest.err
>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try
='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try
='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 eval "$as_ac_var=yes"
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.
$ac_ext >&5
10417 eval "$as_ac_var=no"
10419 rm -f conftest.err conftest.
$ac_objext \
10420 conftest
$ac_exeext conftest.
$ac_ext
10422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10424 if test `eval echo '${'$as_ac_var'}'` = yes; then
10425 cat >>confdefs.h
<<_ACEOF
10426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10428 HAVE_GTK_MULTIDISPLAY
=yes
10432 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10434 cat >>confdefs.h
<<\_ACEOF
10435 #define HAVE_GTK_MULTIDISPLAY 1
10439 HAVE_GTK_FILE_SELECTION
=no
10441 for ac_func
in gtk_file_selection_new
10443 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10444 echo "$as_me:$LINENO: checking for $ac_func" >&5
10445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10446 if eval "test \"\${$as_ac_var+set}\" = set"; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 cat >conftest.
$ac_ext <<_ACEOF
10452 cat confdefs.h
>>conftest.
$ac_ext
10453 cat >>conftest.
$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10457 #define $ac_func innocuous_$ac_func
10459 /* System header to define __stub macros and hopefully few prototypes,
10460 which can conflict with char $ac_func (); below.
10461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10462 <limits.h> exists even on freestanding compilers. */
10465 # include <limits.h>
10467 # include <assert.h>
10472 /* Override any gcc2 internal prototype to avoid an error. */
10477 /* We use char because int might match the return type of a gcc2
10478 builtin and then its argument prototype would still apply. */
10480 /* The GNU C library defines this for functions which it implements
10481 to always fail with ENOSYS. Some functions are actually named
10482 something starting with __ and the normal name is an alias. */
10483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10486 char (*f) () = $ac_func;
10495 return f != $ac_func;
10500 rm -f conftest.
$ac_objext conftest
$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>conftest.er1
10504 grep -v '^ *+' conftest.er1
>conftest.err
10506 cat conftest.err
>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try
='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try
='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 eval "$as_ac_var=yes"
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.
$ac_ext >&5
10527 eval "$as_ac_var=no"
10529 rm -f conftest.err conftest.
$ac_objext \
10530 conftest
$ac_exeext conftest.
$ac_ext
10532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10534 if test `eval echo '${'$as_ac_var'}'` = yes; then
10535 cat >>confdefs.h
<<_ACEOF
10536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10538 HAVE_GTK_FILE_SELECTION
=yes
10543 HAVE_GTK_FILE_CHOOSER
=no
10545 for ac_func
in gtk_file_chooser_dialog_new
10547 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10548 echo "$as_me:$LINENO: checking for $ac_func" >&5
10549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_var+set}\" = set"; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 cat >conftest.
$ac_ext <<_ACEOF
10556 cat confdefs.h
>>conftest.
$ac_ext
10557 cat >>conftest.
$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10561 #define $ac_func innocuous_$ac_func
10563 /* System header to define __stub macros and hopefully few prototypes,
10564 which can conflict with char $ac_func (); below.
10565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566 <limits.h> exists even on freestanding compilers. */
10569 # include <limits.h>
10571 # include <assert.h>
10576 /* Override any gcc2 internal prototype to avoid an error. */
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10584 /* The GNU C library defines this for functions which it implements
10585 to always fail with ENOSYS. Some functions are actually named
10586 something starting with __ and the normal name is an alias. */
10587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10590 char (*f) () = $ac_func;
10599 return f != $ac_func;
10604 rm -f conftest.
$ac_objext conftest
$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>conftest.er1
10608 grep -v '^ *+' conftest.er1
>conftest.err
10610 cat conftest.err
>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try
='test -z "$ac_c_werror_flag"
10614 || test ! -s conftest.err'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try
='test -s conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 eval "$as_ac_var=yes"
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.
$ac_ext >&5
10631 eval "$as_ac_var=no"
10633 rm -f conftest.err conftest.
$ac_objext \
10634 conftest
$ac_exeext conftest.
$ac_ext
10636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10638 if test `eval echo '${'$as_ac_var'}'` = yes; then
10639 cat >>confdefs.h
<<_ACEOF
10640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10642 HAVE_GTK_FILE_CHOOSER
=yes
10647 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10648 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10650 cat >>confdefs.h
<<\_ACEOF
10651 #define HAVE_GTK_FILE_BOTH 1
10656 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10657 HAVE_GTK_AND_PTHREAD
=no
10659 for ac_header
in pthread.h
10661 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10663 echo "$as_me:$LINENO: checking for $ac_header" >&5
10664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10671 # Is the header compilable?
10672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10674 cat >conftest.
$ac_ext <<_ACEOF
10677 cat confdefs.h
>>conftest.
$ac_ext
10678 cat >>conftest.
$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10681 #include <$ac_header>
10683 rm -f conftest.
$ac_objext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>conftest.er1
10687 grep -v '^ *+' conftest.er1
>conftest.err
10689 cat conftest.err
>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try
='test -z "$ac_c_werror_flag"
10693 || test ! -s conftest.err'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try
='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_header_compiler
=yes
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.
$ac_ext >&5
10710 ac_header_compiler
=no
10712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10714 echo "${ECHO_T}$ac_header_compiler" >&6
10716 # Is the header present?
10717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10719 cat >conftest.
$ac_ext <<_ACEOF
10722 cat confdefs.h
>>conftest.
$ac_ext
10723 cat >>conftest.
$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 #include <$ac_header>
10727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1
>conftest.err
10732 cat conftest.err
>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } >/dev
/null
; then
10735 if test -s conftest.err
; then
10736 ac_cpp_err
=$ac_c_preproc_warn_flag
10737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10744 if test -z "$ac_cpp_err"; then
10745 ac_header_preproc
=yes
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.
$ac_ext >&5
10750 ac_header_preproc
=no
10752 rm -f conftest.err conftest.
$ac_ext
10753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10754 echo "${ECHO_T}$ac_header_preproc" >&6
10756 # So? What about this header?
10757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10763 ac_header_preproc
=yes
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10780 ## ------------------------------------------ ##
10781 ## Report this to the AC_PACKAGE_NAME lists. ##
10782 ## ------------------------------------------ ##
10785 sed "s/^/$as_me: WARNING: /" >&2
10788 echo "$as_me:$LINENO: checking for $ac_header" >&5
10789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 eval "$as_ac_Header=\$ac_header_preproc"
10795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10800 cat >>confdefs.h
<<_ACEOF
10801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10808 if test "$ac_cv_header_pthread_h"; then
10809 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10810 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10811 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 ac_check_lib_save_LIBS
=$LIBS
10815 LIBS
="-lpthread $LIBS"
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10823 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10829 char pthread_self ();
10838 rm -f conftest.
$ac_objext conftest
$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>conftest.er1
10842 grep -v '^ *+' conftest.er1
>conftest.err
10844 cat conftest.err
>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try
='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try
='test -s conftest$ac_exeext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_lib_pthread_pthread_self
=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.
$ac_ext >&5
10865 ac_cv_lib_pthread_pthread_self
=no
10867 rm -f conftest.err conftest.
$ac_objext \
10868 conftest
$ac_exeext conftest.
$ac_ext
10869 LIBS
=$ac_check_lib_save_LIBS
10871 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10872 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10873 if test $ac_cv_lib_pthread_pthread_self = yes; then
10874 HAVE_GTK_AND_PTHREAD
=yes
10878 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10879 GTK_LIBS
="$GTK_LIBS -lpthread"
10881 cat >>confdefs.h
<<\_ACEOF
10882 #define HAVE_GTK_AND_PTHREAD 1
10889 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10890 if test x
"${HAVE_X11R5}" = xyes
; then
10891 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10892 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10893 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 cat >conftest.
$ac_ext <<_ACEOF
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10903 #include <X11/Intrinsic.h>
10904 #include <X11/Xaw/Simple.h>
10913 rm -f conftest.
$ac_objext conftest
$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 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"
10923 || test ! -s conftest.err'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try
='test -s conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 emacs_cv_x11_version_5_with_xaw
=yes
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.
$ac_ext >&5
10940 emacs_cv_x11_version_5_with_xaw
=no
10942 rm -f conftest.err conftest.
$ac_objext \
10943 conftest
$ac_exeext conftest.
$ac_ext
10946 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10947 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10948 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10949 USE_X_TOOLKIT
=LUCID
10951 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10952 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10960 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10962 if test "${USE_X_TOOLKIT}" != "none"; then
10963 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10964 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10965 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 cat >conftest.
$ac_ext <<_ACEOF
10971 cat confdefs.h
>>conftest.
$ac_ext
10972 cat >>conftest.
$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 #include <X11/Intrinsic.h>
10978 #if XtSpecificationRelease < 6
10986 rm -f conftest.
$ac_objext conftest
$ac_exeext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>conftest.er1
10990 grep -v '^ *+' conftest.er1
>conftest.err
10992 cat conftest.err
>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try
='test -z "$ac_c_werror_flag"
10996 || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try
='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 emacs_cv_x11_toolkit_version_6
=yes
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.
$ac_ext >&5
11013 emacs_cv_x11_toolkit_version_6
=no
11015 rm -f conftest.err conftest.
$ac_objext \
11016 conftest
$ac_exeext conftest.
$ac_ext
11019 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11020 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11021 echo "$as_me:$LINENO: result: 6 or newer" >&5
11022 echo "${ECHO_T}6 or newer" >&6
11024 cat >>confdefs.h
<<\_ACEOF
11025 #define HAVE_X11XTR6 1
11029 echo "$as_me:$LINENO: result: before 6" >&5
11030 echo "${ECHO_T}before 6" >&6
11034 if test x
$HAVE_X11XTR6 = xyes
; then
11035 LIBS
="-lXt -lSM -lICE $LIBS"
11040 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11041 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11042 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 ac_check_lib_save_LIBS
=$LIBS
11047 cat >conftest.
$ac_ext <<_ACEOF
11050 cat confdefs.h
>>conftest.
$ac_ext
11051 cat >>conftest.
$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 /* Override any gcc2 internal prototype to avoid an error. */
11058 /* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11060 char XmuConvertStandardSelection ();
11064 XmuConvertStandardSelection ();
11069 rm -f conftest.
$ac_objext conftest
$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1
>conftest.err
11075 cat conftest.err
>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try
='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try
='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.
$ac_ext >&5
11096 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11098 rm -f conftest.err conftest.
$ac_objext \
11099 conftest
$ac_exeext conftest.
$ac_ext
11100 LIBS
=$ac_check_lib_save_LIBS
11102 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11103 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11104 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11105 cat >>confdefs.h
<<_ACEOF
11106 #define HAVE_LIBXMU 1
11113 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11116 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11117 if test "${HAVE_X11}" = "yes"; then
11118 if test "${USE_X_TOOLKIT}" != "none"; then
11120 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11121 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11122 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 ac_check_lib_save_LIBS
=$LIBS
11126 LIBS
="-lXext $LIBS"
11127 cat >conftest.
$ac_ext <<_ACEOF
11130 cat confdefs.h
>>conftest.
$ac_ext
11131 cat >>conftest.
$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11134 /* Override any gcc2 internal prototype to avoid an error. */
11138 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11140 char XShapeQueryExtension ();
11144 XShapeQueryExtension ();
11149 rm -f conftest.
$ac_objext conftest
$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1
>conftest.err
11155 cat conftest.err
>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try
='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try
='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.
$ac_ext >&5
11176 ac_cv_lib_Xext_XShapeQueryExtension
=no
11178 rm -f conftest.err conftest.
$ac_objext \
11179 conftest
$ac_exeext conftest.
$ac_ext
11180 LIBS
=$ac_check_lib_save_LIBS
11182 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11183 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11184 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11185 cat >>confdefs.h
<<_ACEOF
11186 #define HAVE_LIBXEXT 1
11189 LIBS
="-lXext $LIBS"
11196 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11197 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11198 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11199 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 cat >conftest.
$ac_ext <<_ACEOF
11205 cat confdefs.h
>>conftest.
$ac_ext
11206 cat >>conftest.
$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11212 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11215 Motif version prior to 2.1.
11221 rm -f conftest.
$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1
>conftest.err
11227 cat conftest.err
>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try
='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try
='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 emacs_cv_motif_version_2_1
=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.
$ac_ext >&5
11248 emacs_cv_motif_version_2_1
=no
11250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11252 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11253 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11254 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11255 if test $emacs_cv_motif_version_2_1 = yes; then
11258 cat >>confdefs.h
<<\_ACEOF
11259 #define HAVE_MOTIF_2_1 1
11262 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11263 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11264 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 ac_check_lib_save_LIBS
=$LIBS
11269 cat >conftest.
$ac_ext <<_ACEOF
11272 cat confdefs.h
>>conftest.
$ac_ext
11273 cat >>conftest.
$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11276 /* Override any gcc2 internal prototype to avoid an error. */
11280 /* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11282 char XpCreateContext ();
11286 XpCreateContext ();
11291 rm -f conftest.
$ac_objext conftest
$ac_exeext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11295 grep -v '^ *+' conftest.er1
>conftest.err
11297 cat conftest.err
>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try
='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try
='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_Xp_XpCreateContext
=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.
$ac_ext >&5
11318 ac_cv_lib_Xp_XpCreateContext
=no
11320 rm -f conftest.err conftest.
$ac_objext \
11321 conftest
$ac_exeext conftest.
$ac_ext
11322 LIBS
=$ac_check_lib_save_LIBS
11324 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11325 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11326 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11330 if test ${HAVE_LIBXP} = yes; then
11332 cat >>confdefs.h
<<\_ACEOF
11333 #define HAVE_LIBXP 1
11338 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11339 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11340 if test "${emacs_cv_lesstif+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 # We put this in CFLAGS temporarily to precede other -I options
11344 # that might be in CFLAGS temporarily.
11345 # We put this in CPPFLAGS where it precedes the other -I options.
11346 OLD_CPPFLAGS
=$CPPFLAGS
11348 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11349 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11350 cat >conftest.
$ac_ext <<_ACEOF
11353 cat confdefs.h
>>conftest.
$ac_ext
11354 cat >>conftest.
$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11365 rm -f conftest.
$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>conftest.er1
11369 grep -v '^ *+' conftest.er1
>conftest.err
11371 cat conftest.err
>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try
='test -z "$ac_c_werror_flag"
11375 || test ! -s conftest.err'
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); }; } &&
11381 { ac_try
='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 emacs_cv_lesstif
=yes
11389 echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.
$ac_ext >&5
11392 emacs_cv_lesstif
=no
11394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11396 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11397 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11398 if test $emacs_cv_lesstif = yes; then
11399 # Make sure this -I option remains in CPPFLAGS after it is set
11400 # back to REAL_CPPFLAGS.
11401 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11402 # have those other -I options anyway. Ultimately, having this
11403 # directory ultimately in CPPFLAGS will be enough.
11404 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11405 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11408 CPPFLAGS
=$OLD_CPPFLAGS
11413 ### Is -lXaw3d available?
11415 if test "${HAVE_X11}" = "yes"; then
11416 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11417 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11418 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11419 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 cat >conftest.
$ac_ext <<_ACEOF
11425 cat confdefs.h
>>conftest.
$ac_ext
11426 cat >>conftest.
$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 #include <X11/Xaw3d/Scrollbar.h>
11430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11433 grep -v '^ *+' conftest.er1
>conftest.err
11435 cat conftest.err
>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev
/null
; then
11438 if test -s conftest.err
; then
11439 ac_cpp_err
=$ac_c_preproc_warn_flag
11440 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11447 if test -z "$ac_cpp_err"; then
11448 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11455 rm -f conftest.err conftest.
$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11458 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11459 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11460 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11461 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11462 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 ac_check_lib_save_LIBS
=$LIBS
11466 LIBS
="-lXaw3d $LIBS"
11467 cat >conftest.
$ac_ext <<_ACEOF
11470 cat confdefs.h
>>conftest.
$ac_ext
11471 cat >>conftest.
$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11474 /* Override any gcc2 internal prototype to avoid an error. */
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11480 char XawScrollbarSetThumb ();
11484 XawScrollbarSetThumb ();
11489 rm -f conftest.
$ac_objext conftest
$ac_exeext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try
='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.
$ac_ext >&5
11516 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11518 rm -f conftest.err conftest.
$ac_objext \
11519 conftest
$ac_exeext conftest.
$ac_ext
11520 LIBS
=$ac_check_lib_save_LIBS
11522 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11523 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11524 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11531 if test "${HAVE_XAW3D}" = "yes"; then
11533 cat >>confdefs.h
<<\_ACEOF
11534 #define HAVE_XAW3D 1
11543 USE_TOOLKIT_SCROLL_BARS
=no
11544 if test "${with_toolkit_scroll_bars}" != "no"; then
11545 if test "${USE_X_TOOLKIT}" != "none"; then
11546 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11547 cat >>confdefs.h
<<\_ACEOF
11548 #define USE_TOOLKIT_SCROLL_BARS 1
11552 USE_TOOLKIT_SCROLL_BARS
=yes
11553 elif test "${HAVE_XAW3D}" = "yes"; then
11554 cat >>confdefs.h
<<\_ACEOF
11555 #define USE_TOOLKIT_SCROLL_BARS 1
11558 USE_TOOLKIT_SCROLL_BARS
=yes
11560 elif test "${HAVE_GTK}" = "yes"; then
11561 cat >>confdefs.h
<<\_ACEOF
11562 #define USE_TOOLKIT_SCROLL_BARS 1
11565 USE_TOOLKIT_SCROLL_BARS
=yes
11566 elif test "${HAVE_CARBON}" = "yes"; then
11567 cat >>confdefs.h
<<\_ACEOF
11568 #define USE_TOOLKIT_SCROLL_BARS 1
11571 USE_TOOLKIT_SCROLL_BARS
=yes
11575 cat >conftest.
$ac_ext <<_ACEOF
11578 cat confdefs.h
>>conftest.
$ac_ext
11579 cat >>conftest.
$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 #include <X11/Xlib.h>
11583 #include <X11/Xresource.h>
11592 rm -f conftest.
$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11596 grep -v '^ *+' conftest.er1
>conftest.err
11598 cat conftest.err
>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try
='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try
='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11616 cat >>confdefs.h
<<\_ACEOF
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.
$ac_ext >&5
11626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11629 if test "${with_xim}" != "no"; then
11631 cat >>confdefs.h
<<\_ACEOF
11638 if test "${HAVE_XIM}" != "no"; then
11639 late_CFLAGS
=$CFLAGS
11640 if test "$GCC" = yes; then
11641 CFLAGS
="$CFLAGS --pedantic-errors"
11643 cat >conftest.
$ac_ext <<_ACEOF
11646 cat confdefs.h
>>conftest.
$ac_ext
11647 cat >>conftest.
$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11650 #include <X11/Xlib.h>
11651 #include <X11/Xresource.h>
11660 XPointer *client_data;
11662 /* If we're not using GCC, it's probably not XFree86, and this is
11663 probably right, but we can't use something like --pedantic-errors. */
11664 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11665 char*, XIMProc, XPointer*);
11667 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11673 rm -f conftest.
$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11677 grep -v '^ *+' conftest.er1
>conftest.err
11679 cat conftest.err
>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try
='test -z "$ac_c_werror_flag"
11683 || test ! -s conftest.err'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try
='test -s conftest.$ac_objext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 emacs_cv_arg6_star
=yes
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.
$ac_ext >&5
11701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11703 if test "$emacs_cv_arg6_star" = yes; then
11704 cat >>confdefs.h
<<\_ACEOF
11705 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11709 cat >>confdefs.h
<<\_ACEOF
11710 #define XRegisterIMInstantiateCallback_arg6 XPointer
11714 CFLAGS
=$late_CFLAGS
11717 ### Use -lXpm if available, unless `--with-xpm=no'.
11719 if test "${HAVE_X11}" = "yes"; then
11720 if test "${with_xpm}" != "no"; then
11721 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11722 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11723 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11724 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11728 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11730 # Is the header compilable?
11731 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11732 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11733 cat >conftest.
$ac_ext <<_ACEOF
11736 cat confdefs.h
>>conftest.
$ac_ext
11737 cat >>conftest.
$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11740 #include <X11/xpm.h>
11742 rm -f conftest.
$ac_objext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744 (eval $ac_compile) 2>conftest.er1
11746 grep -v '^ *+' conftest.er1
>conftest.err
11748 cat conftest.err
>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try
='test -z "$ac_c_werror_flag"
11752 || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try
='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_header_compiler
=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.
$ac_ext >&5
11769 ac_header_compiler
=no
11771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773 echo "${ECHO_T}$ac_header_compiler" >&6
11775 # Is the header present?
11776 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11777 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11778 cat >conftest.
$ac_ext <<_ACEOF
11781 cat confdefs.h
>>conftest.
$ac_ext
11782 cat >>conftest.
$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 #include <X11/xpm.h>
11786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11787 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11789 grep -v '^ *+' conftest.er1
>conftest.err
11791 cat conftest.err
>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } >/dev
/null
; then
11794 if test -s conftest.err
; then
11795 ac_cpp_err
=$ac_c_preproc_warn_flag
11796 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11803 if test -z "$ac_cpp_err"; then
11804 ac_header_preproc
=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.
$ac_ext >&5
11809 ac_header_preproc
=no
11811 rm -f conftest.err conftest.
$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11813 echo "${ECHO_T}$ac_header_preproc" >&6
11815 # So? What about this header?
11816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11818 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11819 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11821 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11822 ac_header_preproc
=yes
11825 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11826 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11828 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11830 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11832 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11834 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11836 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11839 ## ------------------------------------------ ##
11840 ## Report this to the AC_PACKAGE_NAME lists. ##
11841 ## ------------------------------------------ ##
11844 sed "s/^/$as_me: WARNING: /" >&2
11847 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11848 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11849 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11854 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11855 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11858 if test $ac_cv_header_X11_xpm_h = yes; then
11859 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11860 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11861 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_check_lib_save_LIBS
=$LIBS
11865 LIBS
="-lXpm -lX11 $LIBS"
11866 cat >conftest.
$ac_ext <<_ACEOF
11869 cat confdefs.h
>>conftest.
$ac_ext
11870 cat >>conftest.
$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any gcc2 internal prototype to avoid an error. */
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879 char XpmReadFileToPixmap ();
11883 XpmReadFileToPixmap ();
11888 rm -f conftest.
$ac_objext conftest
$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>conftest.er1
11892 grep -v '^ *+' conftest.er1
>conftest.err
11894 cat conftest.err
>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try
='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try
='test -s conftest$ac_exeext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.
$ac_ext >&5
11915 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11917 rm -f conftest.err conftest.
$ac_objext \
11918 conftest
$ac_exeext conftest.
$ac_ext
11919 LIBS
=$ac_check_lib_save_LIBS
11921 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11922 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11923 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11930 if test "${HAVE_XPM}" = "yes"; then
11931 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11932 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11933 cat >conftest.
$ac_ext <<_ACEOF
11936 cat confdefs.h
>>conftest.
$ac_ext
11937 cat >>conftest.
$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 #include "X11/xpm.h"
11940 #ifndef XpmReturnAllocPixels
11941 no_return_alloc_pixels
11945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11954 if test "${HAVE_XPM}" = "yes"; then
11955 echo "$as_me:$LINENO: result: yes" >&5
11956 echo "${ECHO_T}yes" >&6
11958 echo "$as_me:$LINENO: result: no" >&5
11959 echo "${ECHO_T}no" >&6
11964 if test "${HAVE_XPM}" = "yes"; then
11966 cat >>confdefs.h
<<\_ACEOF
11973 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11975 if test "${HAVE_X11}" = "yes"; then
11976 if test "${with_jpeg}" != "no"; then
11977 if test "${ac_cv_header_jerror_h+set}" = set; then
11978 echo "$as_me:$LINENO: checking for jerror.h" >&5
11979 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11980 if test "${ac_cv_header_jerror_h+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11984 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11986 # Is the header compilable?
11987 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11988 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11989 cat >conftest.
$ac_ext <<_ACEOF
11992 cat confdefs.h
>>conftest.
$ac_ext
11993 cat >>conftest.
$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 #include <jerror.h>
11998 rm -f conftest.
$ac_objext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>conftest.er1
12002 grep -v '^ *+' conftest.er1
>conftest.err
12004 cat conftest.err
>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try
='test -z "$ac_c_werror_flag"
12008 || test ! -s conftest.err'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try
='test -s conftest.$ac_objext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_header_compiler
=yes
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.
$ac_ext >&5
12025 ac_header_compiler
=no
12027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029 echo "${ECHO_T}$ac_header_compiler" >&6
12031 # Is the header present?
12032 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12033 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12034 cat >conftest.
$ac_ext <<_ACEOF
12037 cat confdefs.h
>>conftest.
$ac_ext
12038 cat >>conftest.
$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <jerror.h>
12042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12043 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12045 grep -v '^ *+' conftest.er1
>conftest.err
12047 cat conftest.err
>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } >/dev
/null
; then
12050 if test -s conftest.err
; then
12051 ac_cpp_err
=$ac_c_preproc_warn_flag
12052 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12059 if test -z "$ac_cpp_err"; then
12060 ac_header_preproc
=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.
$ac_ext >&5
12065 ac_header_preproc
=no
12067 rm -f conftest.err conftest.
$ac_ext
12068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12069 echo "${ECHO_T}$ac_header_preproc" >&6
12071 # So? What about this header?
12072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12074 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12075 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12076 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12077 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12078 ac_header_preproc
=yes
12081 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12082 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12084 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12086 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12088 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12090 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12092 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12095 ## ------------------------------------------ ##
12096 ## Report this to the AC_PACKAGE_NAME lists. ##
12097 ## ------------------------------------------ ##
12100 sed "s/^/$as_me: WARNING: /" >&2
12103 echo "$as_me:$LINENO: checking for jerror.h" >&5
12104 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12105 if test "${ac_cv_header_jerror_h+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 ac_cv_header_jerror_h
=$ac_header_preproc
12110 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12111 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12114 if test $ac_cv_header_jerror_h = yes; then
12115 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12116 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12117 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_check_lib_save_LIBS
=$LIBS
12121 LIBS
="-ljpeg $LIBS"
12122 cat >conftest.
$ac_ext <<_ACEOF
12125 cat confdefs.h
>>conftest.
$ac_ext
12126 cat >>conftest.
$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char jpeg_destroy_compress ();
12139 jpeg_destroy_compress ();
12144 rm -f conftest.
$ac_objext conftest
$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12148 grep -v '^ *+' conftest.er1
>conftest.err
12150 cat conftest.err
>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try
='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try
='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.
$ac_ext >&5
12171 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12173 rm -f conftest.err conftest.
$ac_objext \
12174 conftest
$ac_exeext conftest.
$ac_ext
12175 LIBS
=$ac_check_lib_save_LIBS
12177 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12178 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12179 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12189 if test "${HAVE_JPEG}" = "yes"; then
12190 cat >>confdefs.h
<<\_ACEOF
12191 #define HAVE_JPEG 1
12194 cat >conftest.
$ac_ext <<_ACEOF
12197 cat confdefs.h
>>conftest.
$ac_ext
12198 cat >>conftest.
$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 #include <jpeglib.h>
12201 version=JPEG_LIB_VERSION
12204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12205 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12206 cat >>confdefs.h
<<\_ACEOF
12207 #define HAVE_JPEG 1
12211 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12212 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12220 ### Use -lpng if available, unless `--with-png=no'.
12222 if test "${HAVE_X11}" = "yes"; then
12223 if test "${with_png}" != "no"; then
12224 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12225 # in /usr/include/libpng.
12228 for ac_header
in png.h libpng
/png.h
12230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo "$as_me:$LINENO: checking for $ac_header" >&5
12233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12240 # Is the header compilable?
12241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12243 cat >conftest.
$ac_ext <<_ACEOF
12246 cat confdefs.h
>>conftest.
$ac_ext
12247 cat >>conftest.
$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 $ac_includes_default
12250 #include <$ac_header>
12252 rm -f conftest.
$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12256 grep -v '^ *+' conftest.er1
>conftest.err
12258 cat conftest.err
>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try
='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try
='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_header_compiler
=yes
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.
$ac_ext >&5
12279 ac_header_compiler
=no
12281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12283 echo "${ECHO_T}$ac_header_compiler" >&6
12285 # Is the header present?
12286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12288 cat >conftest.
$ac_ext <<_ACEOF
12291 cat confdefs.h
>>conftest.
$ac_ext
12292 cat >>conftest.
$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 #include <$ac_header>
12296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12299 grep -v '^ *+' conftest.er1
>conftest.err
12301 cat conftest.err
>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } >/dev
/null
; then
12304 if test -s conftest.err
; then
12305 ac_cpp_err
=$ac_c_preproc_warn_flag
12306 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12313 if test -z "$ac_cpp_err"; then
12314 ac_header_preproc
=yes
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.
$ac_ext >&5
12319 ac_header_preproc
=no
12321 rm -f conftest.err conftest.
$ac_ext
12322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12323 echo "${ECHO_T}$ac_header_preproc" >&6
12325 # So? What about this header?
12326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12332 ac_header_preproc
=yes
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12349 ## ------------------------------------------ ##
12350 ## Report this to the AC_PACKAGE_NAME lists. ##
12351 ## ------------------------------------------ ##
12354 sed "s/^/$as_me: WARNING: /" >&2
12357 echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 eval "$as_ac_Header=\$ac_header_preproc"
12364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12369 cat >>confdefs.h
<<_ACEOF
12370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12377 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12378 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12379 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12380 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_check_lib_save_LIBS
=$LIBS
12384 LIBS
="-lpng -lz -lm $LIBS"
12385 cat >conftest.
$ac_ext <<_ACEOF
12388 cat confdefs.h
>>conftest.
$ac_ext
12389 cat >>conftest.
$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12392 /* Override any gcc2 internal prototype to avoid an error. */
12396 /* We use char because int might match the return type of a gcc2
12397 builtin and then its argument prototype would still apply. */
12398 char png_get_channels ();
12402 png_get_channels ();
12407 rm -f conftest.
$ac_objext conftest
$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1
>conftest.err
12413 cat conftest.err
>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try
='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try
='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_lib_png_png_get_channels
=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.
$ac_ext >&5
12434 ac_cv_lib_png_png_get_channels
=no
12436 rm -f conftest.err conftest.
$ac_objext \
12437 conftest
$ac_exeext conftest.
$ac_ext
12438 LIBS
=$ac_check_lib_save_LIBS
12440 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12441 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12442 if test $ac_cv_lib_png_png_get_channels = yes; then
12449 if test "${HAVE_PNG}" = "yes"; then
12451 cat >>confdefs.h
<<\_ACEOF
12458 ### Use -ltiff if available, unless `--with-tiff=no'.
12460 if test "${HAVE_X11}" = "yes"; then
12461 if test "${with_tiff}" != "no"; then
12462 if test "${ac_cv_header_tiffio_h+set}" = set; then
12463 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12464 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12465 if test "${ac_cv_header_tiffio_h+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12469 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12471 # Is the header compilable?
12472 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12473 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12474 cat >conftest.
$ac_ext <<_ACEOF
12477 cat confdefs.h
>>conftest.
$ac_ext
12478 cat >>conftest.
$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12481 #include <tiffio.h>
12483 rm -f conftest.
$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12487 grep -v '^ *+' conftest.er1
>conftest.err
12489 cat conftest.err
>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try
='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try
='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_header_compiler
=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.
$ac_ext >&5
12510 ac_header_compiler
=no
12512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514 echo "${ECHO_T}$ac_header_compiler" >&6
12516 # Is the header present?
12517 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12518 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12519 cat >conftest.
$ac_ext <<_ACEOF
12522 cat confdefs.h
>>conftest.
$ac_ext
12523 cat >>conftest.
$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <tiffio.h>
12527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12530 grep -v '^ *+' conftest.er1
>conftest.err
12532 cat conftest.err
>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } >/dev
/null
; then
12535 if test -s conftest.err
; then
12536 ac_cpp_err
=$ac_c_preproc_warn_flag
12537 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12544 if test -z "$ac_cpp_err"; then
12545 ac_header_preproc
=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.
$ac_ext >&5
12550 ac_header_preproc
=no
12552 rm -f conftest.err conftest.
$ac_ext
12553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12554 echo "${ECHO_T}$ac_header_preproc" >&6
12556 # So? What about this header?
12557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12559 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12560 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12562 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12563 ac_header_preproc
=yes
12566 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12567 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12569 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12571 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12573 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12575 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12577 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12580 ## ------------------------------------------ ##
12581 ## Report this to the AC_PACKAGE_NAME lists. ##
12582 ## ------------------------------------------ ##
12585 sed "s/^/$as_me: WARNING: /" >&2
12588 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12589 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12590 if test "${ac_cv_header_tiffio_h+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 ac_cv_header_tiffio_h
=$ac_header_preproc
12595 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12596 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12599 if test $ac_cv_header_tiffio_h = yes; then
12601 # At least one tiff package requires the jpeg library.
12602 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12603 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12604 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12605 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 ac_check_lib_save_LIBS
=$LIBS
12609 LIBS
="-ltiff $tifflibs $LIBS"
12610 cat >conftest.
$ac_ext <<_ACEOF
12613 cat confdefs.h
>>conftest.
$ac_ext
12614 cat >>conftest.
$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12617 /* Override any gcc2 internal prototype to avoid an error. */
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623 char TIFFGetVersion ();
12632 rm -f conftest.
$ac_objext conftest
$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>conftest.er1
12636 grep -v '^ *+' conftest.er1
>conftest.err
12638 cat conftest.err
>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try
='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try
='test -s conftest$ac_exeext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_lib_tiff_TIFFGetVersion
=yes
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12659 ac_cv_lib_tiff_TIFFGetVersion
=no
12661 rm -f conftest.err conftest.
$ac_objext \
12662 conftest
$ac_exeext conftest.
$ac_ext
12663 LIBS
=$ac_check_lib_save_LIBS
12665 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12666 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12667 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12676 if test "${HAVE_TIFF}" = "yes"; then
12678 cat >>confdefs.h
<<\_ACEOF
12679 #define HAVE_TIFF 1
12685 ### Use -lgif if available, unless `--with-gif=no'.
12687 if test "${HAVE_X11}" = "yes"; then
12688 if test "${with_gif}" != "no"; then
12689 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12690 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12691 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12692 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12696 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12698 # Is the header compilable?
12699 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12700 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12701 cat >conftest.
$ac_ext <<_ACEOF
12704 cat confdefs.h
>>conftest.
$ac_ext
12705 cat >>conftest.
$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 #include <gif_lib.h>
12710 rm -f conftest.
$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12714 grep -v '^ *+' conftest.er1
>conftest.err
12716 cat conftest.err
>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try
='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try
='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_header_compiler
=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.
$ac_ext >&5
12737 ac_header_compiler
=no
12739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12741 echo "${ECHO_T}$ac_header_compiler" >&6
12743 # Is the header present?
12744 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12745 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12746 cat >conftest.
$ac_ext <<_ACEOF
12749 cat confdefs.h
>>conftest.
$ac_ext
12750 cat >>conftest.
$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 #include <gif_lib.h>
12754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12757 grep -v '^ *+' conftest.er1
>conftest.err
12759 cat conftest.err
>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } >/dev
/null
; then
12762 if test -s conftest.err
; then
12763 ac_cpp_err
=$ac_c_preproc_warn_flag
12764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12771 if test -z "$ac_cpp_err"; then
12772 ac_header_preproc
=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.
$ac_ext >&5
12777 ac_header_preproc
=no
12779 rm -f conftest.err conftest.
$ac_ext
12780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12781 echo "${ECHO_T}$ac_header_preproc" >&6
12783 # So? What about this header?
12784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12786 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12787 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12789 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12790 ac_header_preproc
=yes
12793 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12794 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12796 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12798 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12800 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12802 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12804 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12807 ## ------------------------------------------ ##
12808 ## Report this to the AC_PACKAGE_NAME lists. ##
12809 ## ------------------------------------------ ##
12812 sed "s/^/$as_me: WARNING: /" >&2
12815 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12816 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12817 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 ac_cv_header_gif_lib_h
=$ac_header_preproc
12822 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12823 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12826 if test $ac_cv_header_gif_lib_h = yes; then
12827 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12828 # Earlier versions can crash Emacs.
12829 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12830 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12831 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 ac_check_lib_save_LIBS
=$LIBS
12835 LIBS
="-lungif $LIBS"
12836 cat >conftest.
$ac_ext <<_ACEOF
12839 cat confdefs.h
>>conftest.
$ac_ext
12840 cat >>conftest.
$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12843 /* Override any gcc2 internal prototype to avoid an error. */
12847 /* We use char because int might match the return type of a gcc2
12848 builtin and then its argument prototype would still apply. */
12849 char EGifPutExtensionLast ();
12853 EGifPutExtensionLast ();
12858 rm -f conftest.
$ac_objext conftest
$ac_exeext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12860 (eval $ac_link) 2>conftest.er1
12862 grep -v '^ *+' conftest.er1
>conftest.err
12864 cat conftest.err
>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try
='test -z "$ac_c_werror_flag"
12868 || test ! -s conftest.err'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try
='test -s conftest$ac_exeext'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.
$ac_ext >&5
12885 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12887 rm -f conftest.err conftest.
$ac_objext \
12888 conftest
$ac_exeext conftest.
$ac_ext
12889 LIBS
=$ac_check_lib_save_LIBS
12891 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12892 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12893 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12902 if test "${HAVE_GIF}" = "yes"; then
12904 cat >>confdefs.h
<<\_ACEOF
12911 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12912 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12913 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12914 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12918 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12920 # Is the header compilable?
12921 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12922 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12923 cat >conftest.
$ac_ext <<_ACEOF
12926 cat confdefs.h
>>conftest.
$ac_ext
12927 cat >>conftest.
$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 $ac_includes_default
12930 #include <malloc/malloc.h>
12932 rm -f conftest.
$ac_objext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12936 grep -v '^ *+' conftest.er1
>conftest.err
12938 cat conftest.err
>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try
='test -z "$ac_c_werror_flag"
12942 || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try
='test -s conftest.$ac_objext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_header_compiler
=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.
$ac_ext >&5
12959 ac_header_compiler
=no
12961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12963 echo "${ECHO_T}$ac_header_compiler" >&6
12965 # Is the header present?
12966 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12967 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12968 cat >conftest.
$ac_ext <<_ACEOF
12971 cat confdefs.h
>>conftest.
$ac_ext
12972 cat >>conftest.
$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 #include <malloc/malloc.h>
12976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12979 grep -v '^ *+' conftest.er1
>conftest.err
12981 cat conftest.err
>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev
/null
; then
12984 if test -s conftest.err
; then
12985 ac_cpp_err
=$ac_c_preproc_warn_flag
12986 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12993 if test -z "$ac_cpp_err"; then
12994 ac_header_preproc
=yes
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.
$ac_ext >&5
12999 ac_header_preproc
=no
13001 rm -f conftest.err conftest.
$ac_ext
13002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13003 echo "${ECHO_T}$ac_header_preproc" >&6
13005 # So? What about this header?
13006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13008 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13009 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13011 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13012 ac_header_preproc
=yes
13015 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13016 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13018 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13020 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13022 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13024 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13026 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13029 ## ------------------------------------------ ##
13030 ## Report this to the AC_PACKAGE_NAME lists. ##
13031 ## ------------------------------------------ ##
13034 sed "s/^/$as_me: WARNING: /" >&2
13037 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13038 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13039 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13044 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13045 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13048 if test $ac_cv_header_malloc_malloc_h = yes; then
13050 cat >>confdefs.h
<<\_ACEOF
13051 #define HAVE_MALLOC_MALLOC_H 1
13058 ### Use Mac OS X Carbon API to implement GUI.
13059 if test "${HAVE_CARBON}" = "yes"; then
13061 cat >>confdefs.h
<<\_ACEOF
13062 #define HAVE_CARBON 1
13065 ## Specify the install directory
13067 if test "${carbon_appdir_x}" != ""; then
13068 case ${carbon_appdir_x} in
13069 y | ye |
yes) carbon_appdir
=/Applications
;;
13070 * ) carbon_appdir
=${carbon_appdir_x} ;;
13073 # We also have mouse menus.
13076 tmp_CFLAGS
="$CFLAGS"
13077 CFLAGS
="$CFLAGS -framework Carbon"
13078 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13079 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13080 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 cat >conftest.
$ac_ext <<_ACEOF
13086 cat confdefs.h
>>conftest.
$ac_ext
13087 cat >>conftest.
$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13091 #define CancelMenuTracking innocuous_CancelMenuTracking
13093 /* System header to define __stub macros and hopefully few prototypes,
13094 which can conflict with char CancelMenuTracking (); below.
13095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13096 <limits.h> exists even on freestanding compilers. */
13099 # include <limits.h>
13101 # include <assert.h>
13104 #undef CancelMenuTracking
13106 /* Override any gcc2 internal prototype to avoid an error. */
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char CancelMenuTracking ();
13114 /* The GNU C library defines this for functions which it implements
13115 to always fail with ENOSYS. Some functions are actually named
13116 something starting with __ and the normal name is an alias. */
13117 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13120 char (*f) () = CancelMenuTracking;
13129 return f != CancelMenuTracking;
13134 rm -f conftest.
$ac_objext conftest
$ac_exeext
13135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13136 (eval $ac_link) 2>conftest.er1
13138 grep -v '^ *+' conftest.er1
>conftest.err
13140 cat conftest.err
>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try
='test -z "$ac_c_werror_flag"
13144 || test ! -s conftest.err'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try
='test -s conftest$ac_exeext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_func_CancelMenuTracking
=yes
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.
$ac_ext >&5
13161 ac_cv_func_CancelMenuTracking
=no
13163 rm -f conftest.err conftest.
$ac_objext \
13164 conftest
$ac_exeext conftest.
$ac_ext
13166 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13167 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13168 if test $ac_cv_func_CancelMenuTracking = yes; then
13174 if test "$have_cmt" = yes; then
13176 cat >>confdefs.h
<<\_ACEOF
13177 #define HAVE_CANCELMENUTRACKING 1
13181 CFLAGS
="$tmp_CFLAGS"
13184 ### Use session management (-lSM -lICE) if available
13186 if test "${HAVE_X11}" = "yes"; then
13187 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13188 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13189 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13190 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13194 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13196 # Is the header compilable?
13197 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13198 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13199 cat >conftest.
$ac_ext <<_ACEOF
13202 cat confdefs.h
>>conftest.
$ac_ext
13203 cat >>conftest.
$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 $ac_includes_default
13206 #include <X11/SM/SMlib.h>
13208 rm -f conftest.
$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13212 grep -v '^ *+' conftest.er1
>conftest.err
13214 cat conftest.err
>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try
='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try
='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_header_compiler
=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.
$ac_ext >&5
13235 ac_header_compiler
=no
13237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13239 echo "${ECHO_T}$ac_header_compiler" >&6
13241 # Is the header present?
13242 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13243 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13244 cat >conftest.
$ac_ext <<_ACEOF
13247 cat confdefs.h
>>conftest.
$ac_ext
13248 cat >>conftest.
$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 #include <X11/SM/SMlib.h>
13252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13255 grep -v '^ *+' conftest.er1
>conftest.err
13257 cat conftest.err
>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } >/dev
/null
; then
13260 if test -s conftest.err
; then
13261 ac_cpp_err
=$ac_c_preproc_warn_flag
13262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13269 if test -z "$ac_cpp_err"; then
13270 ac_header_preproc
=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.
$ac_ext >&5
13275 ac_header_preproc
=no
13277 rm -f conftest.err conftest.
$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13279 echo "${ECHO_T}$ac_header_preproc" >&6
13281 # So? What about this header?
13282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13284 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13285 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13287 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13288 ac_header_preproc
=yes
13291 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13292 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13294 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13296 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13298 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13299 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13300 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13301 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13302 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13305 ## ------------------------------------------ ##
13306 ## Report this to the AC_PACKAGE_NAME lists. ##
13307 ## ------------------------------------------ ##
13310 sed "s/^/$as_me: WARNING: /" >&2
13313 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13314 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13315 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13320 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13321 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13324 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13325 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13326 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13327 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 ac_check_lib_save_LIBS
=$LIBS
13331 LIBS
="-lSM -lICE $LIBS"
13332 cat >conftest.
$ac_ext <<_ACEOF
13335 cat confdefs.h
>>conftest.
$ac_ext
13336 cat >>conftest.
$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13339 /* Override any gcc2 internal prototype to avoid an error. */
13343 /* We use char because int might match the return type of a gcc2
13344 builtin and then its argument prototype would still apply. */
13345 char SmcOpenConnection ();
13349 SmcOpenConnection ();
13354 rm -f conftest.
$ac_objext conftest
$ac_exeext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13356 (eval $ac_link) 2>conftest.er1
13358 grep -v '^ *+' conftest.er1
>conftest.err
13360 cat conftest.err
>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try
='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try
='test -s conftest$ac_exeext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_lib_SM_SmcOpenConnection
=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.
$ac_ext >&5
13381 ac_cv_lib_SM_SmcOpenConnection
=no
13383 rm -f conftest.err conftest.
$ac_objext \
13384 conftest
$ac_exeext conftest.
$ac_ext
13385 LIBS
=$ac_check_lib_save_LIBS
13387 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13388 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13389 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13397 if test "${HAVE_X_SM}" = "yes"; then
13399 cat >>confdefs.h
<<\_ACEOF
13400 #define HAVE_X_SM 1
13405 *) LIBS
="-lSM -lICE $LIBS" ;;
13410 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13411 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13412 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13413 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 cat >conftest.
$ac_ext <<_ACEOF
13419 cat confdefs.h
>>conftest.
$ac_ext
13420 cat >>conftest.
$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13431 rm -f conftest.
$ac_objext conftest
$ac_exeext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433 (eval $ac_link) 2>conftest.er1
13435 grep -v '^ *+' conftest.er1
>conftest.err
13437 cat conftest.err
>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try
='test -z "$ac_c_werror_flag"
13441 || test ! -s conftest.err'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try
='test -s conftest$ac_exeext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 emacs_cv_netdb_declares_h_errno
=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.
$ac_ext >&5
13458 emacs_cv_netdb_declares_h_errno
=no
13460 rm -f conftest.err conftest.
$ac_objext \
13461 conftest
$ac_exeext conftest.
$ac_ext
13463 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13464 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13465 if test $emacs_cv_netdb_declares_h_errno = yes; then
13467 cat >>confdefs.h
<<\_ACEOF
13468 #define HAVE_H_ERRNO 1
13473 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13474 # for constant arguments. Useless!
13475 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13476 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13477 if test "${ac_cv_working_alloca_h+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 cat >conftest.
$ac_ext <<_ACEOF
13483 cat confdefs.h
>>conftest.
$ac_ext
13484 cat >>conftest.
$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 #include <alloca.h>
13490 char *p = (char *) alloca (2 * sizeof (int));
13495 rm -f conftest.
$ac_objext conftest
$ac_exeext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13497 (eval $ac_link) 2>conftest.er1
13499 grep -v '^ *+' conftest.er1
>conftest.err
13501 cat conftest.err
>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try
='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try
='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_working_alloca_h
=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.
$ac_ext >&5
13522 ac_cv_working_alloca_h
=no
13524 rm -f conftest.err conftest.
$ac_objext \
13525 conftest
$ac_exeext conftest.
$ac_ext
13527 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13528 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13529 if test $ac_cv_working_alloca_h = yes; then
13531 cat >>confdefs.h
<<\_ACEOF
13532 #define HAVE_ALLOCA_H 1
13537 echo "$as_me:$LINENO: checking for alloca" >&5
13538 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13539 if test "${ac_cv_func_alloca_works+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 cat >conftest.
$ac_ext <<_ACEOF
13545 cat confdefs.h
>>conftest.
$ac_ext
13546 cat >>conftest.
$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13549 # define alloca __builtin_alloca
13552 # include <malloc.h>
13553 # define alloca _alloca
13556 # include <alloca.h>
13561 # ifndef alloca /* predefined by HP cc +Olibcalls */
13572 char *p = (char *) alloca (1);
13577 rm -f conftest.
$ac_objext conftest
$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>conftest.er1
13581 grep -v '^ *+' conftest.er1
>conftest.err
13583 cat conftest.err
>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try
='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try
='test -s conftest$ac_exeext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_cv_func_alloca_works
=yes
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.
$ac_ext >&5
13604 ac_cv_func_alloca_works
=no
13606 rm -f conftest.err conftest.
$ac_objext \
13607 conftest
$ac_exeext conftest.
$ac_ext
13609 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13610 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13612 if test $ac_cv_func_alloca_works = yes; then
13614 cat >>confdefs.h
<<\_ACEOF
13615 #define HAVE_ALLOCA 1
13619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13620 # that cause trouble. Some versions do not even contain alloca or
13621 # contain a buggy version. If you still want to use their alloca,
13622 # use ar to extract alloca.o from them instead of compiling alloca.c.
13624 ALLOCA
=alloca.
$ac_objext
13626 cat >>confdefs.h
<<\_ACEOF
13631 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13632 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13633 if test "${ac_cv_os_cray+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 cat >conftest.
$ac_ext <<_ACEOF
13639 cat confdefs.h
>>conftest.
$ac_ext
13640 cat >>conftest.
$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #if defined(CRAY) && ! defined(CRAY2)
13649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13650 $EGREP "webecray" >/dev
/null
2>&1; then
13658 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13659 echo "${ECHO_T}$ac_cv_os_cray" >&6
13660 if test $ac_cv_os_cray = yes; then
13661 for ac_func
in _getb67 GETB67 getb67
; do
13662 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13663 echo "$as_me:$LINENO: checking for $ac_func" >&5
13664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_var+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 cat >conftest.
$ac_ext <<_ACEOF
13671 cat confdefs.h
>>conftest.
$ac_ext
13672 cat >>conftest.
$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13676 #define $ac_func innocuous_$ac_func
13678 /* System header to define __stub macros and hopefully few prototypes,
13679 which can conflict with char $ac_func (); below.
13680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681 <limits.h> exists even on freestanding compilers. */
13684 # include <limits.h>
13686 # include <assert.h>
13691 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13699 /* The GNU C library defines this for functions which it implements
13700 to always fail with ENOSYS. Some functions are actually named
13701 something starting with __ and the normal name is an alias. */
13702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13705 char (*f) () = $ac_func;
13714 return f != $ac_func;
13719 rm -f conftest.
$ac_objext conftest
$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>conftest.er1
13723 grep -v '^ *+' conftest.er1
>conftest.err
13725 cat conftest.err
>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try
='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try
='test -s conftest$ac_exeext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 eval "$as_ac_var=yes"
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.
$ac_ext >&5
13746 eval "$as_ac_var=no"
13748 rm -f conftest.err conftest.
$ac_objext \
13749 conftest
$ac_exeext conftest.
$ac_ext
13751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13753 if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h
<<_ACEOF
13756 #define CRAY_STACKSEG_END $ac_func
13765 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13766 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13767 if test "${ac_cv_c_stack_direction+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 if test "$cross_compiling" = yes; then
13771 ac_cv_c_stack_direction
=0
13773 cat >conftest.
$ac_ext <<_ACEOF
13776 cat confdefs.h
>>conftest.
$ac_ext
13777 cat >>conftest.
$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13780 find_stack_direction ()
13782 static char *addr = 0;
13787 return find_stack_direction ();
13790 return (&dummy > addr) ? 1 : -1;
13796 exit (find_stack_direction () < 0);
13799 rm -f conftest
$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_c_stack_direction
=1
13812 echo "$as_me: program exited with status $ac_status" >&5
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.
$ac_ext >&5
13816 ( exit $ac_status )
13817 ac_cv_c_stack_direction
=-1
13819 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13822 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13823 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13825 cat >>confdefs.h
<<_ACEOF
13826 #define STACK_DIRECTION $ac_cv_c_stack_direction
13833 # fmod, logb, and frexp are found in -lm on most systems.
13834 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13836 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13837 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13838 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 ac_check_lib_save_LIBS
=$LIBS
13843 cat >conftest.
$ac_ext <<_ACEOF
13846 cat confdefs.h
>>conftest.
$ac_ext
13847 cat >>conftest.
$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any gcc2 internal prototype to avoid an error. */
13854 /* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13865 rm -f conftest.
$ac_objext conftest
$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>conftest.er1
13869 grep -v '^ *+' conftest.er1
>conftest.err
13871 cat conftest.err
>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try
='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try
='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_lib_m_sqrt
=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.
$ac_ext >&5
13892 ac_cv_lib_m_sqrt
=no
13894 rm -f conftest.err conftest.
$ac_objext \
13895 conftest
$ac_exeext conftest.
$ac_ext
13896 LIBS
=$ac_check_lib_save_LIBS
13898 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13899 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13900 if test $ac_cv_lib_m_sqrt = yes; then
13901 cat >>confdefs.h
<<_ACEOF
13902 #define HAVE_LIBM 1
13910 # Check for mail-locking functions in a "mail" library. Probably this should
13911 # have the same check as for liblockfile below.
13913 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13914 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13915 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 ac_check_lib_save_LIBS
=$LIBS
13919 LIBS
="-lmail $LIBS"
13920 cat >conftest.
$ac_ext <<_ACEOF
13923 cat confdefs.h
>>conftest.
$ac_ext
13924 cat >>conftest.
$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13927 /* Override any gcc2 internal prototype to avoid an error. */
13931 /* We use char because int might match the return type of a gcc2
13932 builtin and then its argument prototype would still apply. */
13942 rm -f conftest.
$ac_objext conftest
$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>conftest.er1
13946 grep -v '^ *+' conftest.er1
>conftest.err
13948 cat conftest.err
>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try
='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try
='test -s conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_lib_mail_maillock
=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.
$ac_ext >&5
13969 ac_cv_lib_mail_maillock
=no
13971 rm -f conftest.err conftest.
$ac_objext \
13972 conftest
$ac_exeext conftest.
$ac_ext
13973 LIBS
=$ac_check_lib_save_LIBS
13975 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13976 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13977 if test $ac_cv_lib_mail_maillock = yes; then
13978 cat >>confdefs.h
<<_ACEOF
13979 #define HAVE_LIBMAIL 1
13982 LIBS
="-lmail $LIBS"
13987 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13988 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13989 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 ac_check_lib_save_LIBS
=$LIBS
13993 LIBS
="-llockfile $LIBS"
13994 cat >conftest.
$ac_ext <<_ACEOF
13997 cat confdefs.h
>>conftest.
$ac_ext
13998 cat >>conftest.
$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14001 /* Override any gcc2 internal prototype to avoid an error. */
14005 /* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14016 rm -f conftest.
$ac_objext conftest
$ac_exeext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>conftest.er1
14020 grep -v '^ *+' conftest.er1
>conftest.err
14022 cat conftest.err
>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try
='test -z "$ac_c_werror_flag"
14026 || test ! -s conftest.err'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try
='test -s conftest$ac_exeext'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_cv_lib_lockfile_maillock
=yes
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.
$ac_ext >&5
14043 ac_cv_lib_lockfile_maillock
=no
14045 rm -f conftest.err conftest.
$ac_objext \
14046 conftest
$ac_exeext conftest.
$ac_ext
14047 LIBS
=$ac_check_lib_save_LIBS
14049 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14050 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14051 if test $ac_cv_lib_lockfile_maillock = yes; then
14052 cat >>confdefs.h
<<_ACEOF
14053 #define HAVE_LIBLOCKFILE 1
14056 LIBS
="-llockfile $LIBS"
14060 # If we have the shared liblockfile, assume we must use it for mail
14061 # locking (e.g. Debian). If we couldn't link against liblockfile
14062 # (no liblockfile.a installed), ensure that we don't need to.
14063 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14064 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14065 set dummy liblockfile.so
; ac_word
=$2
14066 echo "$as_me:$LINENO: checking for $ac_word" >&5
14067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14068 if test "${ac_cv_prog_liblockfile+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 if test -n "$liblockfile"; then
14072 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14075 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14076 for as_dir
in $as_dummy
14079 test -z "$as_dir" && as_dir
=.
14080 for ac_exec_ext
in '' $ac_executable_extensions; do
14081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14082 ac_cv_prog_liblockfile
="yes"
14083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14092 liblockfile
=$ac_cv_prog_liblockfile
14093 if test -n "$liblockfile"; then
14094 echo "$as_me:$LINENO: result: $liblockfile" >&5
14095 echo "${ECHO_T}$liblockfile" >&6
14097 echo "$as_me:$LINENO: result: no" >&5
14098 echo "${ECHO_T}no" >&6
14101 if test $ac_cv_prog_liblockfile = yes; then
14102 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14103 This probably means that movemail could lose mail.
14104 There may be a \`development' package to install containing liblockfile." >&5
14105 echo "$as_me: error: Shared liblockfile found but can't link against it.
14106 This probably means that movemail could lose mail.
14107 There may be a \`development' package to install containing liblockfile." >&2;}
14108 { (exit 1); exit 1; }; }
14113 for ac_func
in touchlock
14115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14116 echo "$as_me:$LINENO: checking for $ac_func" >&5
14117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_var+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 cat >conftest.
$ac_ext <<_ACEOF
14124 cat confdefs.h
>>conftest.
$ac_ext
14125 cat >>conftest.
$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14129 #define $ac_func innocuous_$ac_func
14131 /* System header to define __stub macros and hopefully few prototypes,
14132 which can conflict with char $ac_func (); below.
14133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14134 <limits.h> exists even on freestanding compilers. */
14137 # include <limits.h>
14139 # include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14149 /* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14152 /* The GNU C library defines this for functions which it implements
14153 to always fail with ENOSYS. Some functions are actually named
14154 something starting with __ and the normal name is an alias. */
14155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14158 char (*f) () = $ac_func;
14167 return f != $ac_func;
14172 rm -f conftest.
$ac_objext conftest
$ac_exeext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14174 (eval $ac_link) 2>conftest.er1
14176 grep -v '^ *+' conftest.er1
>conftest.err
14178 cat conftest.err
>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try
='test -z "$ac_c_werror_flag"
14182 || test ! -s conftest.err'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try
='test -s conftest$ac_exeext'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 eval "$as_ac_var=yes"
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.
$ac_ext >&5
14199 eval "$as_ac_var=no"
14201 rm -f conftest.err conftest.
$ac_objext \
14202 conftest
$ac_exeext conftest.
$ac_ext
14204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14206 if test `eval echo '${'$as_ac_var'}'` = yes; then
14207 cat >>confdefs.h
<<_ACEOF
14208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 for ac_header
in maillock.h
14217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.
$ac_ext <<_ACEOF
14233 cat confdefs.h
>>conftest.
$ac_ext
14234 cat >>conftest.
$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <$ac_header>
14239 rm -f conftest.
$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14243 grep -v '^ *+' conftest.er1
>conftest.err
14245 cat conftest.err
>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try
='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try
='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler
=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.
$ac_ext >&5
14266 ac_header_compiler
=no
14268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.
$ac_ext <<_ACEOF
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <$ac_header>
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1
>conftest.err
14288 cat conftest.err
>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev
/null
; then
14291 if test -s conftest.err
; then
14292 ac_cpp_err
=$ac_c_preproc_warn_flag
14293 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14300 if test -z "$ac_cpp_err"; then
14301 ac_header_preproc
=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.
$ac_ext >&5
14306 ac_header_preproc
=no
14308 rm -f conftest.err conftest.
$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc
=yes
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## ------------------------------------------ ##
14337 ## Report this to the AC_PACKAGE_NAME lists. ##
14338 ## ------------------------------------------ ##
14341 sed "s/^/$as_me: WARNING: /" >&2
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 eval "$as_ac_Header=\$ac_header_preproc"
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h
<<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14433 for ac_func
in gethostname getdomainname dup2 \
14434 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14435 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14436 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14437 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14438 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14439 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14440 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14441 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14443 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14446 if eval "test \"\${$as_ac_var+set}\" = set"; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 cat >conftest.
$ac_ext <<_ACEOF
14452 cat confdefs.h
>>conftest.
$ac_ext
14453 cat >>conftest.
$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457 #define $ac_func innocuous_$ac_func
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14465 # include <limits.h>
14467 # include <assert.h>
14472 /* Override any gcc2 internal prototype to avoid an error. */
14477 /* We use char because int might match the return type of a gcc2
14478 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14486 char (*f) () = $ac_func;
14495 return f != $ac_func;
14500 rm -f conftest.
$ac_objext conftest
$ac_exeext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>conftest.er1
14504 grep -v '^ *+' conftest.er1
>conftest.err
14506 cat conftest.err
>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try
='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try
='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 eval "$as_ac_var=yes"
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.
$ac_ext >&5
14527 eval "$as_ac_var=no"
14529 rm -f conftest.err conftest.
$ac_objext \
14530 conftest
$ac_exeext conftest.
$ac_ext
14532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534 if test `eval echo '${'$as_ac_var'}'` = yes; then
14535 cat >>confdefs.h
<<_ACEOF
14536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14544 for ac_header
in sys
/un.h
14546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14548 echo "$as_me:$LINENO: checking for $ac_header" >&5
14549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14556 # Is the header compilable?
14557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14559 cat >conftest.
$ac_ext <<_ACEOF
14562 cat confdefs.h
>>conftest.
$ac_ext
14563 cat >>conftest.
$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 $ac_includes_default
14566 #include <$ac_header>
14568 rm -f conftest.
$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14572 grep -v '^ *+' conftest.er1
>conftest.err
14574 cat conftest.err
>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try
='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try
='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_header_compiler
=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.
$ac_ext >&5
14595 ac_header_compiler
=no
14597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14599 echo "${ECHO_T}$ac_header_compiler" >&6
14601 # Is the header present?
14602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14604 cat >conftest.
$ac_ext <<_ACEOF
14607 cat confdefs.h
>>conftest.
$ac_ext
14608 cat >>conftest.
$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #include <$ac_header>
14612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14613 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14615 grep -v '^ *+' conftest.er1
>conftest.err
14617 cat conftest.err
>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } >/dev
/null
; then
14620 if test -s conftest.err
; then
14621 ac_cpp_err
=$ac_c_preproc_warn_flag
14622 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14629 if test -z "$ac_cpp_err"; then
14630 ac_header_preproc
=yes
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.
$ac_ext >&5
14635 ac_header_preproc
=no
14637 rm -f conftest.err conftest.
$ac_ext
14638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14639 echo "${ECHO_T}$ac_header_preproc" >&6
14641 # So? What about this header?
14642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14648 ac_header_preproc
=yes
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14665 ## ------------------------------------------ ##
14666 ## Report this to the AC_PACKAGE_NAME lists. ##
14667 ## ------------------------------------------ ##
14670 sed "s/^/$as_me: WARNING: /" >&2
14673 echo "$as_me:$LINENO: checking for $ac_header" >&5
14674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 eval "$as_ac_Header=\$ac_header_preproc"
14680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14685 cat >>confdefs.h
<<_ACEOF
14686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14697 for ac_header
in stdlib.h sys
/time.h unistd.h
14699 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14701 echo "$as_me:$LINENO: checking for $ac_header" >&5
14702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14709 # Is the header compilable?
14710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14712 cat >conftest.
$ac_ext <<_ACEOF
14715 cat confdefs.h
>>conftest.
$ac_ext
14716 cat >>conftest.
$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14718 $ac_includes_default
14719 #include <$ac_header>
14721 rm -f conftest.
$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14725 grep -v '^ *+' conftest.er1
>conftest.err
14727 cat conftest.err
>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try
='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try
='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_header_compiler
=yes
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.
$ac_ext >&5
14748 ac_header_compiler
=no
14750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752 echo "${ECHO_T}$ac_header_compiler" >&6
14754 # Is the header present?
14755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14757 cat >conftest.
$ac_ext <<_ACEOF
14760 cat confdefs.h
>>conftest.
$ac_ext
14761 cat >>conftest.
$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <$ac_header>
14765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14768 grep -v '^ *+' conftest.er1
>conftest.err
14770 cat conftest.err
>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } >/dev
/null
; then
14773 if test -s conftest.err
; then
14774 ac_cpp_err
=$ac_c_preproc_warn_flag
14775 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14782 if test -z "$ac_cpp_err"; then
14783 ac_header_preproc
=yes
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.
$ac_ext >&5
14788 ac_header_preproc
=no
14790 rm -f conftest.err conftest.
$ac_ext
14791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14792 echo "${ECHO_T}$ac_header_preproc" >&6
14794 # So? What about this header?
14795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14801 ac_header_preproc
=yes
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14818 ## ------------------------------------------ ##
14819 ## Report this to the AC_PACKAGE_NAME lists. ##
14820 ## ------------------------------------------ ##
14823 sed "s/^/$as_me: WARNING: /" >&2
14826 echo "$as_me:$LINENO: checking for $ac_header" >&5
14827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 eval "$as_ac_Header=\$ac_header_preproc"
14833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14838 cat >>confdefs.h
<<_ACEOF
14839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14847 for ac_func
in alarm
14849 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14850 echo "$as_me:$LINENO: checking for $ac_func" >&5
14851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14852 if eval "test \"\${$as_ac_var+set}\" = set"; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 cat >conftest.
$ac_ext <<_ACEOF
14858 cat confdefs.h
>>conftest.
$ac_ext
14859 cat >>conftest.
$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14863 #define $ac_func innocuous_$ac_func
14865 /* System header to define __stub macros and hopefully few prototypes,
14866 which can conflict with char $ac_func (); below.
14867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14868 <limits.h> exists even on freestanding compilers. */
14871 # include <limits.h>
14873 # include <assert.h>
14878 /* Override any gcc2 internal prototype to avoid an error. */
14883 /* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14886 /* The GNU C library defines this for functions which it implements
14887 to always fail with ENOSYS. Some functions are actually named
14888 something starting with __ and the normal name is an alias. */
14889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14892 char (*f) () = $ac_func;
14901 return f != $ac_func;
14906 rm -f conftest.
$ac_objext conftest
$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>conftest.er1
14910 grep -v '^ *+' conftest.er1
>conftest.err
14912 cat conftest.err
>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try
='test -z "$ac_c_werror_flag"
14916 || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try
='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 eval "$as_ac_var=yes"
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.
$ac_ext >&5
14933 eval "$as_ac_var=no"
14935 rm -f conftest.err conftest.
$ac_objext \
14936 conftest
$ac_exeext conftest.
$ac_ext
14938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14940 if test `eval echo '${'$as_ac_var'}'` = yes; then
14941 cat >>confdefs.h
<<_ACEOF
14942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14948 echo "$as_me:$LINENO: checking for working mktime" >&5
14949 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14950 if test "${ac_cv_func_working_mktime+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 if test "$cross_compiling" = yes; then
14954 ac_cv_func_working_mktime
=no
14956 cat >conftest.
$ac_ext <<_ACEOF
14959 cat confdefs.h
>>conftest.
$ac_ext
14960 cat >>conftest.
$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14962 /* Test program from Paul Eggert and Tony Leneis. */
14963 #if TIME_WITH_SYS_TIME
14964 # include <sys/time.h>
14967 # if HAVE_SYS_TIME_H
14968 # include <sys/time.h>
14975 # include <stdlib.h>
14979 # include <unistd.h>
14983 # define alarm(X) /* empty */
14986 /* Work around redefinition to rpl_putenv by other config tests. */
14989 static time_t time_t_max;
14990 static time_t time_t_min;
14992 /* Values we'll use to set the TZ environment variable. */
14993 static char *tz_strings[] = {
14994 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14995 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14997 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14999 /* Fail if mktime fails to convert a date in the spring-forward gap.
15000 Based on a problem report from Andreas Jaeger. */
15002 spring_forward_gap ()
15004 /* glibc (up to about 1998-10-07) failed this test. */
15007 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15008 instead of "TZ=America/Vancouver" in order to detect the bug even
15009 on systems that don't support the Olson extension, or don't have the
15010 full zoneinfo tables installed. */
15011 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15020 if (mktime (&tm) == (time_t)-1)
15029 if ((lt = localtime (&now)) && mktime (lt) != now)
15037 mktime_test1 (now);
15038 mktime_test1 ((time_t) (time_t_max - now));
15039 mktime_test1 ((time_t) (time_t_min + now));
15045 /* Based on code from Ariel Faigon. */
15055 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15065 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15066 now = mktime (&tm);
15067 if (now != (time_t) -1)
15069 struct tm *lt = localtime (&now);
15071 && lt->tm_year == tm.tm_year
15072 && lt->tm_mon == tm.tm_mon
15073 && lt->tm_mday == tm.tm_mday
15074 && lt->tm_hour == tm.tm_hour
15075 && lt->tm_min == tm.tm_min
15076 && lt->tm_sec == tm.tm_sec
15077 && lt->tm_yday == tm.tm_yday
15078 && lt->tm_wday == tm.tm_wday
15079 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15080 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15091 /* This test makes some buggy mktime implementations loop.
15092 Give up after 60 seconds; a mktime slower than that
15093 isn't worth using anyway. */
15096 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15099 if ((time_t) -1 < 0)
15100 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15102 delta = time_t_max / 997; /* a suitable prime number */
15103 for (i = 0; i < N_STRINGS; i++)
15106 putenv (tz_strings[i]);
15108 for (t = 0; t <= time_t_max - delta; t += delta)
15110 mktime_test ((time_t) 1);
15111 mktime_test ((time_t) (60 * 60));
15112 mktime_test ((time_t) (60 * 60 * 24));
15114 for (j = 1; 0 < j; j *= 2)
15116 bigtime_test (j - 1);
15119 spring_forward_gap ();
15123 rm -f conftest
$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_func_working_mktime
=yes
15136 echo "$as_me: program exited with status $ac_status" >&5
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.
$ac_ext >&5
15140 ( exit $ac_status )
15141 ac_cv_func_working_mktime
=no
15143 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15146 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15147 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15148 if test $ac_cv_func_working_mktime = no
; then
15150 "mktime.$ac_objext" | \
15151 *" mktime.$ac_objext" | \
15152 "mktime.$ac_objext "* | \
15153 *" mktime.$ac_objext "* ) ;;
15154 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15159 if test "$ac_cv_func_working_mktime" = no
; then
15161 cat >>confdefs.h
<<\_ACEOF
15162 #define BROKEN_MKTIME 1
15167 ac_have_func
=no
# yes means we've found a way to get the load average.
15169 # Make sure getloadavg.c is where it belongs, at configure-time.
15170 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15171 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15172 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15173 { (exit 1); exit 1; }; }
15177 # Check for getloadavg, but be sure not to touch the cache variable.
15178 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15179 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15180 if test "${ac_cv_func_getloadavg+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 cat >conftest.
$ac_ext <<_ACEOF
15186 cat confdefs.h
>>conftest.
$ac_ext
15187 cat >>conftest.
$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15191 #define getloadavg innocuous_getloadavg
15193 /* System header to define __stub macros and hopefully few prototypes,
15194 which can conflict with char getloadavg (); below.
15195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196 <limits.h> exists even on freestanding compilers. */
15199 # include <limits.h>
15201 # include <assert.h>
15206 /* Override any gcc2 internal prototype to avoid an error. */
15211 /* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213 char getloadavg ();
15214 /* The GNU C library defines this for functions which it implements
15215 to always fail with ENOSYS. Some functions are actually named
15216 something starting with __ and the normal name is an alias. */
15217 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15220 char (*f) () = getloadavg;
15229 return f != getloadavg;
15234 rm -f conftest.
$ac_objext conftest
$ac_exeext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15236 (eval $ac_link) 2>conftest.er1
15238 grep -v '^ *+' conftest.er1
>conftest.err
15240 cat conftest.err
>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try
='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try
='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_cv_func_getloadavg
=yes
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.
$ac_ext >&5
15261 ac_cv_func_getloadavg
=no
15263 rm -f conftest.err conftest.
$ac_objext \
15264 conftest
$ac_exeext conftest.
$ac_ext
15266 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15267 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15268 if test $ac_cv_func_getloadavg = yes; then
15273 ) && ac_have_func
=yes
15275 # On HPUX9, an unprivileged user can get load averages through this function.
15277 for ac_func
in pstat_getdynamic
15279 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15280 echo "$as_me:$LINENO: checking for $ac_func" >&5
15281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15282 if eval "test \"\${$as_ac_var+set}\" = set"; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 cat >conftest.
$ac_ext <<_ACEOF
15288 cat confdefs.h
>>conftest.
$ac_ext
15289 cat >>conftest.
$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15293 #define $ac_func innocuous_$ac_func
15295 /* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func (); below.
15297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15298 <limits.h> exists even on freestanding compilers. */
15301 # include <limits.h>
15303 # include <assert.h>
15308 /* Override any gcc2 internal prototype to avoid an error. */
15313 /* We use char because int might match the return type of a gcc2
15314 builtin and then its argument prototype would still apply. */
15316 /* The GNU C library defines this for functions which it implements
15317 to always fail with ENOSYS. Some functions are actually named
15318 something starting with __ and the normal name is an alias. */
15319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 char (*f) () = $ac_func;
15331 return f != $ac_func;
15336 rm -f conftest.
$ac_objext conftest
$ac_exeext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338 (eval $ac_link) 2>conftest.er1
15340 grep -v '^ *+' conftest.er1
>conftest.err
15342 cat conftest.err
>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try
='test -z "$ac_c_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try
='test -s conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 eval "$as_ac_var=yes"
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.
$ac_ext >&5
15363 eval "$as_ac_var=no"
15365 rm -f conftest.err conftest.
$ac_objext \
15366 conftest
$ac_exeext conftest.
$ac_ext
15368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15370 if test `eval echo '${'$as_ac_var'}'` = yes; then
15371 cat >>confdefs.h
<<_ACEOF
15372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15379 # Solaris has libkstat which does not require root.
15381 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15382 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15383 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 ac_check_lib_save_LIBS
=$LIBS
15387 LIBS
="-lkstat $LIBS"
15388 cat >conftest.
$ac_ext <<_ACEOF
15391 cat confdefs.h
>>conftest.
$ac_ext
15392 cat >>conftest.
$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15395 /* Override any gcc2 internal prototype to avoid an error. */
15399 /* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15401 char kstat_open ();
15410 rm -f conftest.
$ac_objext conftest
$ac_exeext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>conftest.er1
15414 grep -v '^ *+' conftest.er1
>conftest.err
15416 cat conftest.err
>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try
='test -z "$ac_c_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try
='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_lib_kstat_kstat_open
=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.
$ac_ext >&5
15437 ac_cv_lib_kstat_kstat_open
=no
15439 rm -f conftest.err conftest.
$ac_objext \
15440 conftest
$ac_exeext conftest.
$ac_ext
15441 LIBS
=$ac_check_lib_save_LIBS
15443 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15444 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15445 if test $ac_cv_lib_kstat_kstat_open = yes; then
15446 cat >>confdefs.h
<<_ACEOF
15447 #define HAVE_LIBKSTAT 1
15450 LIBS
="-lkstat $LIBS"
15454 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15456 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15457 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15458 # to get the right answer into the cache.
15459 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15460 if test $ac_have_func = no
; then
15461 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15462 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15463 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 ac_check_lib_save_LIBS
=$LIBS
15468 cat >conftest.
$ac_ext <<_ACEOF
15471 cat confdefs.h
>>conftest.
$ac_ext
15472 cat >>conftest.
$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15475 /* Override any gcc2 internal prototype to avoid an error. */
15479 /* We use char because int might match the return type of a gcc2
15480 builtin and then its argument prototype would still apply. */
15490 rm -f conftest.
$ac_objext conftest
$ac_exeext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15492 (eval $ac_link) 2>conftest.er1
15494 grep -v '^ *+' conftest.er1
>conftest.err
15496 cat conftest.err
>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try
='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try
='test -s conftest$ac_exeext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_cv_lib_elf_elf_begin
=yes
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.
$ac_ext >&5
15517 ac_cv_lib_elf_elf_begin
=no
15519 rm -f conftest.err conftest.
$ac_objext \
15520 conftest
$ac_exeext conftest.
$ac_ext
15521 LIBS
=$ac_check_lib_save_LIBS
15523 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15524 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15525 if test $ac_cv_lib_elf_elf_begin = yes; then
15530 if test $ac_have_func = no
; then
15531 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15532 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15533 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 ac_check_lib_save_LIBS
=$LIBS
15538 cat >conftest.
$ac_ext <<_ACEOF
15541 cat confdefs.h
>>conftest.
$ac_ext
15542 cat >>conftest.
$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15545 /* Override any gcc2 internal prototype to avoid an error. */
15549 /* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15560 rm -f conftest.
$ac_objext conftest
$ac_exeext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>conftest.er1
15564 grep -v '^ *+' conftest.er1
>conftest.err
15566 cat conftest.err
>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try
='test -z "$ac_c_werror_flag"
15570 || test ! -s conftest.err'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; } &&
15576 { ac_try
='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 ac_cv_lib_kvm_kvm_open
=yes
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.
$ac_ext >&5
15587 ac_cv_lib_kvm_kvm_open
=no
15589 rm -f conftest.err conftest.
$ac_objext \
15590 conftest
$ac_exeext conftest.
$ac_ext
15591 LIBS
=$ac_check_lib_save_LIBS
15593 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15594 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15595 if test $ac_cv_lib_kvm_kvm_open = yes; then
15599 # Check for the 4.4BSD definition of getloadavg.
15600 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15601 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15602 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 ac_check_lib_save_LIBS
=$LIBS
15606 LIBS
="-lutil $LIBS"
15607 cat >conftest.
$ac_ext <<_ACEOF
15610 cat confdefs.h
>>conftest.
$ac_ext
15611 cat >>conftest.
$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15614 /* Override any gcc2 internal prototype to avoid an error. */
15618 /* We use char because int might match the return type of a gcc2
15619 builtin and then its argument prototype would still apply. */
15620 char getloadavg ();
15629 rm -f conftest.
$ac_objext conftest
$ac_exeext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>conftest.er1
15633 grep -v '^ *+' conftest.er1
>conftest.err
15635 cat conftest.err
>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try
='test -z "$ac_c_werror_flag"
15639 || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try
='test -s conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_cv_lib_util_getloadavg
=yes
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.
$ac_ext >&5
15656 ac_cv_lib_util_getloadavg
=no
15658 rm -f conftest.err conftest.
$ac_objext \
15659 conftest
$ac_exeext conftest.
$ac_ext
15660 LIBS
=$ac_check_lib_save_LIBS
15662 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15663 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15664 if test $ac_cv_lib_util_getloadavg = yes; then
15665 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15670 if test $ac_have_func = no
; then
15671 # There is a commonly available library for RS/6000 AIX.
15672 # Since it is not a standard part of AIX, it might be installed locally.
15673 ac_getloadavg_LIBS
=$LIBS
15674 LIBS
="-L/usr/local/lib $LIBS"
15675 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15676 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15677 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 ac_check_lib_save_LIBS
=$LIBS
15681 LIBS
="-lgetloadavg $LIBS"
15682 cat >conftest.
$ac_ext <<_ACEOF
15685 cat confdefs.h
>>conftest.
$ac_ext
15686 cat >>conftest.
$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15689 /* Override any gcc2 internal prototype to avoid an error. */
15693 /* We use char because int might match the return type of a gcc2
15694 builtin and then its argument prototype would still apply. */
15695 char getloadavg ();
15704 rm -f conftest.
$ac_objext conftest
$ac_exeext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15706 (eval $ac_link) 2>conftest.er1
15708 grep -v '^ *+' conftest.er1
>conftest.err
15710 cat conftest.err
>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try
='test -z "$ac_c_werror_flag"
15714 || test ! -s conftest.err'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } &&
15720 { ac_try
='test -s conftest$ac_exeext'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_lib_getloadavg_getloadavg
=yes
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.
$ac_ext >&5
15731 ac_cv_lib_getloadavg_getloadavg
=no
15733 rm -f conftest.err conftest.
$ac_objext \
15734 conftest
$ac_exeext conftest.
$ac_ext
15735 LIBS
=$ac_check_lib_save_LIBS
15737 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15738 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15739 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15740 LIBS
="-lgetloadavg $LIBS"
15742 LIBS
=$ac_getloadavg_LIBS
15747 # Make sure it is really in the library, if we think we found it,
15748 # otherwise set up the replacement function.
15750 for ac_func
in getloadavg
15752 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15753 echo "$as_me:$LINENO: checking for $ac_func" >&5
15754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15755 if eval "test \"\${$as_ac_var+set}\" = set"; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 cat >conftest.
$ac_ext <<_ACEOF
15761 cat confdefs.h
>>conftest.
$ac_ext
15762 cat >>conftest.
$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15766 #define $ac_func innocuous_$ac_func
15768 /* System header to define __stub macros and hopefully few prototypes,
15769 which can conflict with char $ac_func (); below.
15770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771 <limits.h> exists even on freestanding compilers. */
15774 # include <limits.h>
15776 # include <assert.h>
15781 /* Override any gcc2 internal prototype to avoid an error. */
15786 /* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15789 /* The GNU C library defines this for functions which it implements
15790 to always fail with ENOSYS. Some functions are actually named
15791 something starting with __ and the normal name is an alias. */
15792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15795 char (*f) () = $ac_func;
15804 return f != $ac_func;
15809 rm -f conftest.
$ac_objext conftest
$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>conftest.er1
15813 grep -v '^ *+' conftest.er1
>conftest.err
15815 cat conftest.err
>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try
='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try
='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 eval "$as_ac_var=yes"
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.
$ac_ext >&5
15836 eval "$as_ac_var=no"
15838 rm -f conftest.err conftest.
$ac_objext \
15839 conftest
$ac_exeext conftest.
$ac_ext
15841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15843 if test `eval echo '${'$as_ac_var'}'` = yes; then
15844 cat >>confdefs.h
<<_ACEOF
15845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15850 "getloadavg.$ac_objext" | \
15851 *" getloadavg.$ac_objext" | \
15852 "getloadavg.$ac_objext "* | \
15853 *" getloadavg.$ac_objext "* ) ;;
15854 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15858 cat >>confdefs.h
<<\_ACEOF
15859 #define C_GETLOADAVG 1
15862 # Figure out what our getloadavg.c needs.
15864 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15865 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15866 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15867 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15871 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15873 # Is the header compilable?
15874 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15875 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15876 cat >conftest.
$ac_ext <<_ACEOF
15879 cat confdefs.h
>>conftest.
$ac_ext
15880 cat >>conftest.
$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <sys/dg_sys_info.h>
15885 rm -f conftest.
$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1
>conftest.err
15891 cat conftest.err
>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try
='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try
='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler
=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.
$ac_ext >&5
15912 ac_header_compiler
=no
15914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15920 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15921 cat >conftest.
$ac_ext <<_ACEOF
15924 cat confdefs.h
>>conftest.
$ac_ext
15925 cat >>conftest.
$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 #include <sys/dg_sys_info.h>
15929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15932 grep -v '^ *+' conftest.er1
>conftest.err
15934 cat conftest.err
>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev
/null
; then
15937 if test -s conftest.err
; then
15938 ac_cpp_err
=$ac_c_preproc_warn_flag
15939 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc
=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 ac_header_preproc
=no
15954 rm -f conftest.err conftest.
$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15961 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15964 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15965 ac_header_preproc
=yes
15968 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15969 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15971 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15973 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15975 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15979 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15982 ## ------------------------------------------ ##
15983 ## Report this to the AC_PACKAGE_NAME lists. ##
15984 ## ------------------------------------------ ##
15987 sed "s/^/$as_me: WARNING: /" >&2
15990 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15991 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15992 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15997 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15998 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16001 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16004 cat >>confdefs.h
<<\_ACEOF
16009 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16010 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16011 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 ac_check_lib_save_LIBS
=$LIBS
16016 cat >conftest.
$ac_ext <<_ACEOF
16019 cat confdefs.h
>>conftest.
$ac_ext
16020 cat >>conftest.
$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16023 /* Override any gcc2 internal prototype to avoid an error. */
16027 /* We use char because int might match the return type of a gcc2
16028 builtin and then its argument prototype would still apply. */
16029 char dg_sys_info ();
16038 rm -f conftest.
$ac_objext conftest
$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16042 grep -v '^ *+' conftest.er1
>conftest.err
16044 cat conftest.err
>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try
='test -z "$ac_c_werror_flag"
16048 || test ! -s conftest.err'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try
='test -s conftest$ac_exeext'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; }; then
16060 ac_cv_lib_dgc_dg_sys_info
=yes
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.
$ac_ext >&5
16065 ac_cv_lib_dgc_dg_sys_info
=no
16067 rm -f conftest.err conftest.
$ac_objext \
16068 conftest
$ac_exeext conftest.
$ac_ext
16069 LIBS
=$ac_check_lib_save_LIBS
16071 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16072 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16073 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16074 cat >>confdefs.h
<<_ACEOF
16075 #define HAVE_LIBDGC 1
16086 if test "${ac_cv_header_locale_h+set}" = set; then
16087 echo "$as_me:$LINENO: checking for locale.h" >&5
16088 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16089 if test "${ac_cv_header_locale_h+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16093 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16095 # Is the header compilable?
16096 echo "$as_me:$LINENO: checking locale.h usability" >&5
16097 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16098 cat >conftest.
$ac_ext <<_ACEOF
16101 cat confdefs.h
>>conftest.
$ac_ext
16102 cat >>conftest.
$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 $ac_includes_default
16105 #include <locale.h>
16107 rm -f conftest.
$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16111 grep -v '^ *+' conftest.er1
>conftest.err
16113 cat conftest.err
>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try
='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try
='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_header_compiler
=yes
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.
$ac_ext >&5
16134 ac_header_compiler
=no
16136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16138 echo "${ECHO_T}$ac_header_compiler" >&6
16140 # Is the header present?
16141 echo "$as_me:$LINENO: checking locale.h presence" >&5
16142 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16143 cat >conftest.
$ac_ext <<_ACEOF
16146 cat confdefs.h
>>conftest.
$ac_ext
16147 cat >>conftest.
$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 #include <locale.h>
16151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16152 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16154 grep -v '^ *+' conftest.er1
>conftest.err
16156 cat conftest.err
>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } >/dev
/null
; then
16159 if test -s conftest.err
; then
16160 ac_cpp_err
=$ac_c_preproc_warn_flag
16161 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16168 if test -z "$ac_cpp_err"; then
16169 ac_header_preproc
=yes
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.
$ac_ext >&5
16174 ac_header_preproc
=no
16176 rm -f conftest.err conftest.
$ac_ext
16177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16178 echo "${ECHO_T}$ac_header_preproc" >&6
16180 # So? What about this header?
16181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16183 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16184 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16186 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16187 ac_header_preproc
=yes
16190 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16191 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16193 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16195 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16197 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16199 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16201 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16204 ## ------------------------------------------ ##
16205 ## Report this to the AC_PACKAGE_NAME lists. ##
16206 ## ------------------------------------------ ##
16209 sed "s/^/$as_me: WARNING: /" >&2
16212 echo "$as_me:$LINENO: checking for locale.h" >&5
16213 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16214 if test "${ac_cv_header_locale_h+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 ac_cv_header_locale_h
=$ac_header_preproc
16219 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16220 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16226 for ac_func
in setlocale
16228 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16229 echo "$as_me:$LINENO: checking for $ac_func" >&5
16230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16231 if eval "test \"\${$as_ac_var+set}\" = set"; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 cat >conftest.
$ac_ext <<_ACEOF
16237 cat confdefs.h
>>conftest.
$ac_ext
16238 cat >>conftest.
$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16242 #define $ac_func innocuous_$ac_func
16244 /* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char $ac_func (); below.
16246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16247 <limits.h> exists even on freestanding compilers. */
16250 # include <limits.h>
16252 # include <assert.h>
16257 /* Override any gcc2 internal prototype to avoid an error. */
16262 /* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16265 /* The GNU C library defines this for functions which it implements
16266 to always fail with ENOSYS. Some functions are actually named
16267 something starting with __ and the normal name is an alias. */
16268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16271 char (*f) () = $ac_func;
16280 return f != $ac_func;
16285 rm -f conftest.
$ac_objext conftest
$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1
>conftest.err
16291 cat conftest.err
>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try
='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try
='test -s conftest$ac_exeext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 eval "$as_ac_var=yes"
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.
$ac_ext >&5
16312 eval "$as_ac_var=no"
16314 rm -f conftest.err conftest.
$ac_objext \
16315 conftest
$ac_exeext conftest.
$ac_ext
16317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16319 if test `eval echo '${'$as_ac_var'}'` = yes; then
16320 cat >>confdefs.h
<<_ACEOF
16321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16328 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16329 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16330 # Irix 4.0.5F has the header but not the library.
16331 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16334 cat >>confdefs.h
<<\_ACEOF
16340 if test $ac_have_func = no
; then
16341 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16342 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16343 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16344 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16348 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16350 # Is the header compilable?
16351 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16352 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16353 cat >conftest.
$ac_ext <<_ACEOF
16356 cat confdefs.h
>>conftest.
$ac_ext
16357 cat >>conftest.
$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 $ac_includes_default
16360 #include <inq_stats/cpustats.h>
16362 rm -f conftest.
$ac_objext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16364 (eval $ac_compile) 2>conftest.er1
16366 grep -v '^ *+' conftest.er1
>conftest.err
16368 cat conftest.err
>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try
='test -z "$ac_c_werror_flag"
16372 || test ! -s conftest.err'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try
='test -s conftest.$ac_objext'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 ac_header_compiler
=yes
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.
$ac_ext >&5
16389 ac_header_compiler
=no
16391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16393 echo "${ECHO_T}$ac_header_compiler" >&6
16395 # Is the header present?
16396 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16397 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16398 cat >conftest.
$ac_ext <<_ACEOF
16401 cat confdefs.h
>>conftest.
$ac_ext
16402 cat >>conftest.
$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <inq_stats/cpustats.h>
16406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16407 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16409 grep -v '^ *+' conftest.er1
>conftest.err
16411 cat conftest.err
>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev
/null
; then
16414 if test -s conftest.err
; then
16415 ac_cpp_err
=$ac_c_preproc_warn_flag
16416 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16423 if test -z "$ac_cpp_err"; then
16424 ac_header_preproc
=yes
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.
$ac_ext >&5
16429 ac_header_preproc
=no
16431 rm -f conftest.err conftest.
$ac_ext
16432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16433 echo "${ECHO_T}$ac_header_preproc" >&6
16435 # So? What about this header?
16436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16439 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16441 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16442 ac_header_preproc
=yes
16445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16446 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16448 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16450 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16452 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16454 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16456 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16459 ## ------------------------------------------ ##
16460 ## Report this to the AC_PACKAGE_NAME lists. ##
16461 ## ------------------------------------------ ##
16464 sed "s/^/$as_me: WARNING: /" >&2
16467 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16468 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16469 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16474 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16475 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16478 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16481 cat >>confdefs.h
<<\_ACEOF
16486 cat >>confdefs.h
<<\_ACEOF
16495 if test $ac_have_func = no
; then
16496 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16497 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16498 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16499 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16503 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16505 # Is the header compilable?
16506 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16507 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16508 cat >conftest.
$ac_ext <<_ACEOF
16511 cat confdefs.h
>>conftest.
$ac_ext
16512 cat >>conftest.
$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 $ac_includes_default
16515 #include <sys/cpustats.h>
16517 rm -f conftest.
$ac_objext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16521 grep -v '^ *+' conftest.er1
>conftest.err
16523 cat conftest.err
>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try
='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try
='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_header_compiler
=yes
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.
$ac_ext >&5
16544 ac_header_compiler
=no
16546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16548 echo "${ECHO_T}$ac_header_compiler" >&6
16550 # Is the header present?
16551 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16552 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16553 cat >conftest.
$ac_ext <<_ACEOF
16556 cat confdefs.h
>>conftest.
$ac_ext
16557 cat >>conftest.
$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 #include <sys/cpustats.h>
16561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16562 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16564 grep -v '^ *+' conftest.er1
>conftest.err
16566 cat conftest.err
>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } >/dev
/null
; then
16569 if test -s conftest.err
; then
16570 ac_cpp_err
=$ac_c_preproc_warn_flag
16571 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16578 if test -z "$ac_cpp_err"; then
16579 ac_header_preproc
=yes
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.
$ac_ext >&5
16584 ac_header_preproc
=no
16586 rm -f conftest.err conftest.
$ac_ext
16587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16588 echo "${ECHO_T}$ac_header_preproc" >&6
16590 # So? What about this header?
16591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16593 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16594 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16596 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16597 ac_header_preproc
=yes
16600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16601 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16603 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16605 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16607 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16609 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16611 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16614 ## ------------------------------------------ ##
16615 ## Report this to the AC_PACKAGE_NAME lists. ##
16616 ## ------------------------------------------ ##
16619 sed "s/^/$as_me: WARNING: /" >&2
16622 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16623 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16624 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16629 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16630 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16633 if test $ac_cv_header_sys_cpustats_h = yes; then
16634 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16643 if test $ac_have_func = no
; then
16645 for ac_header
in mach
/mach.h
16647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649 echo "$as_me:$LINENO: checking for $ac_header" >&5
16650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16657 # Is the header compilable?
16658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16660 cat >conftest.
$ac_ext <<_ACEOF
16663 cat confdefs.h
>>conftest.
$ac_ext
16664 cat >>conftest.
$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 $ac_includes_default
16667 #include <$ac_header>
16669 rm -f conftest.
$ac_objext
16670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16671 (eval $ac_compile) 2>conftest.er1
16673 grep -v '^ *+' conftest.er1
>conftest.err
16675 cat conftest.err
>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try
='test -z "$ac_c_werror_flag"
16679 || test ! -s conftest.err'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try
='test -s conftest.$ac_objext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_header_compiler
=yes
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.
$ac_ext >&5
16696 ac_header_compiler
=no
16698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16700 echo "${ECHO_T}$ac_header_compiler" >&6
16702 # Is the header present?
16703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16705 cat >conftest.
$ac_ext <<_ACEOF
16708 cat confdefs.h
>>conftest.
$ac_ext
16709 cat >>conftest.
$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 #include <$ac_header>
16713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16716 grep -v '^ *+' conftest.er1
>conftest.err
16718 cat conftest.err
>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } >/dev
/null
; then
16721 if test -s conftest.err
; then
16722 ac_cpp_err
=$ac_c_preproc_warn_flag
16723 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16730 if test -z "$ac_cpp_err"; then
16731 ac_header_preproc
=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.
$ac_ext >&5
16736 ac_header_preproc
=no
16738 rm -f conftest.err conftest.
$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16740 echo "${ECHO_T}$ac_header_preproc" >&6
16742 # So? What about this header?
16743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16749 ac_header_preproc
=yes
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16766 ## ------------------------------------------ ##
16767 ## Report this to the AC_PACKAGE_NAME lists. ##
16768 ## ------------------------------------------ ##
16771 sed "s/^/$as_me: WARNING: /" >&2
16774 echo "$as_me:$LINENO: checking for $ac_header" >&5
16775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 eval "$as_ac_Header=\$ac_header_preproc"
16781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16786 cat >>confdefs.h
<<_ACEOF
16787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16797 for ac_header
in nlist.h
16799 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801 echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16809 # Is the header compilable?
16810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16812 cat >conftest.
$ac_ext <<_ACEOF
16815 cat confdefs.h
>>conftest.
$ac_ext
16816 cat >>conftest.
$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16819 #include <$ac_header>
16821 rm -f conftest.
$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823 (eval $ac_compile) 2>conftest.er1
16825 grep -v '^ *+' conftest.er1
>conftest.err
16827 cat conftest.err
>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try
='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try
='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler
=yes
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.
$ac_ext >&5
16848 ac_header_compiler
=no
16850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16852 echo "${ECHO_T}$ac_header_compiler" >&6
16854 # Is the header present?
16855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16857 cat >conftest.
$ac_ext <<_ACEOF
16860 cat confdefs.h
>>conftest.
$ac_ext
16861 cat >>conftest.
$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 #include <$ac_header>
16865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16866 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16868 grep -v '^ *+' conftest.er1
>conftest.err
16870 cat conftest.err
>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev
/null
; then
16873 if test -s conftest.err
; then
16874 ac_cpp_err
=$ac_c_preproc_warn_flag
16875 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16882 if test -z "$ac_cpp_err"; then
16883 ac_header_preproc
=yes
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.
$ac_ext >&5
16888 ac_header_preproc
=no
16890 rm -f conftest.err conftest.
$ac_ext
16891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16892 echo "${ECHO_T}$ac_header_preproc" >&6
16894 # So? What about this header?
16895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16901 ac_header_preproc
=yes
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16918 ## ------------------------------------------ ##
16919 ## Report this to the AC_PACKAGE_NAME lists. ##
16920 ## ------------------------------------------ ##
16923 sed "s/^/$as_me: WARNING: /" >&2
16926 echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 eval "$as_ac_Header=\$ac_header_preproc"
16933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h
<<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16941 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16942 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16943 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 cat >conftest.
$ac_ext <<_ACEOF
16949 cat confdefs.h
>>conftest.
$ac_ext
16950 cat >>conftest.
$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16957 static struct nlist ac_aggr;
16958 if (ac_aggr.n_un.n_name)
16964 rm -f conftest.
$ac_objext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16966 (eval $ac_compile) 2>conftest.er1
16968 grep -v '^ *+' conftest.er1
>conftest.err
16970 cat conftest.err
>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try
='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try
='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_member_struct_nlist_n_un_n_name
=yes
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.
$ac_ext >&5
16991 cat >conftest.
$ac_ext <<_ACEOF
16994 cat confdefs.h
>>conftest.
$ac_ext
16995 cat >>conftest.
$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
17002 static struct nlist ac_aggr;
17003 if (sizeof ac_aggr.n_un.n_name)
17009 rm -f conftest.
$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011 (eval $ac_compile) 2>conftest.er1
17013 grep -v '^ *+' conftest.er1
>conftest.err
17015 cat conftest.err
>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try
='test -z "$ac_c_werror_flag"
17019 || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try
='test -s conftest.$ac_objext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_member_struct_nlist_n_un_n_name
=yes
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.
$ac_ext >&5
17036 ac_cv_member_struct_nlist_n_un_n_name
=no
17038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17043 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17044 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17046 cat >>confdefs.h
<<_ACEOF
17047 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17051 cat >>confdefs.h
<<\_ACEOF
17052 #define NLIST_NAME_UNION 1
17066 # Some definitions of getloadavg require that the program be installed setgid.
17067 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17068 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17069 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 cat >conftest.
$ac_ext <<_ACEOF
17075 cat confdefs.h
>>conftest.
$ac_ext
17076 cat >>conftest.
$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17079 #ifdef LDAV_PRIVILEGED
17080 Yowza Am I SETGID yet
17083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17084 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17085 ac_cv_func_getloadavg_setgid
=yes
17087 ac_cv_func_getloadavg_setgid
=no
17092 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17093 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17094 if test $ac_cv_func_getloadavg_setgid = yes; then
17097 cat >>confdefs.h
<<\_ACEOF
17098 #define GETLOADAVG_PRIVILEGED 1
17105 if test $ac_cv_func_getloadavg_setgid = yes; then
17106 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17107 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17108 if test "${ac_cv_group_kmem+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17112 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17113 # If we got an error (system does not support symlinks), try without -L.
17114 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17115 ac_cv_group_kmem
=`echo $ac_ls_output \
17116 | sed -ne 's/[ ][ ]*/ /g;
17117 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17121 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17122 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17123 KMEM_GROUP
=$ac_cv_group_kmem
17125 if test "x$ac_save_LIBS" = x
; then
17126 GETLOADAVG_LIBS
=$LIBS
17128 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17134 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17135 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17136 if test "${ac_cv_sys_largefile_source+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 ac_cv_sys_largefile_source
=no
17141 cat >conftest.
$ac_ext <<_ACEOF
17144 cat confdefs.h
>>conftest.
$ac_ext
17145 cat >>conftest.
$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17156 rm -f conftest.
$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1
>conftest.err
17162 cat conftest.err
>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try
='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try
='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.
$ac_ext >&5
17184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #define _LARGEFILE_SOURCE 1
17201 rm -f conftest.
$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1
>conftest.err
17207 cat conftest.err
>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try
='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try
='test -s conftest.$ac_objext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_sys_largefile_source
=1; break
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17234 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17235 if test "$ac_cv_sys_largefile_source" != no
; then
17237 cat >>confdefs.h
<<_ACEOF
17238 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17244 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17245 # in glibc 2.1.3, but that breaks too many other things.
17246 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17247 echo "$as_me:$LINENO: checking for fseeko" >&5
17248 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17249 if test "${ac_cv_func_fseeko+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 cat >conftest.
$ac_ext <<_ACEOF
17255 cat confdefs.h
>>conftest.
$ac_ext
17256 cat >>conftest.
$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17262 return fseeko && fseeko (stdin, 0, 0);
17267 rm -f conftest.
$ac_objext conftest
$ac_exeext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>conftest.er1
17271 grep -v '^ *+' conftest.er1
>conftest.err
17273 cat conftest.err
>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try
='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try
='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_func_fseeko
=yes
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.
$ac_ext >&5
17294 ac_cv_func_fseeko
=no
17296 rm -f conftest.err conftest.
$ac_objext \
17297 conftest
$ac_exeext conftest.
$ac_ext
17299 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17300 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17301 if test $ac_cv_func_fseeko = yes; then
17303 cat >>confdefs.h
<<\_ACEOF
17304 #define HAVE_FSEEKO 1
17310 # Configure getopt.
17311 # getopt.m4 serial 10
17313 # The getopt module assume you want GNU getopt, with getopt_long etc,
17314 # rather than vanilla POSIX getopt. This means your your code should
17315 # always include <getopt.h> for the getopt prototypes.
17327 # Prerequisites of lib/getopt*.
17334 for ac_header
in getopt.h
17336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338 echo "$as_me:$LINENO: checking for $ac_header" >&5
17339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17346 # Is the header compilable?
17347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17349 cat >conftest.
$ac_ext <<_ACEOF
17352 cat confdefs.h
>>conftest.
$ac_ext
17353 cat >>conftest.
$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 $ac_includes_default
17356 #include <$ac_header>
17358 rm -f conftest.
$ac_objext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>conftest.er1
17362 grep -v '^ *+' conftest.er1
>conftest.err
17364 cat conftest.err
>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try
='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try
='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_header_compiler
=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.
$ac_ext >&5
17385 ac_header_compiler
=no
17387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17389 echo "${ECHO_T}$ac_header_compiler" >&6
17391 # Is the header present?
17392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17394 cat >conftest.
$ac_ext <<_ACEOF
17397 cat confdefs.h
>>conftest.
$ac_ext
17398 cat >>conftest.
$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 #include <$ac_header>
17402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17405 grep -v '^ *+' conftest.er1
>conftest.err
17407 cat conftest.err
>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } >/dev
/null
; then
17410 if test -s conftest.err
; then
17411 ac_cpp_err
=$ac_c_preproc_warn_flag
17412 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17419 if test -z "$ac_cpp_err"; then
17420 ac_header_preproc
=yes
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.
$ac_ext >&5
17425 ac_header_preproc
=no
17427 rm -f conftest.err conftest.
$ac_ext
17428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17429 echo "${ECHO_T}$ac_header_preproc" >&6
17431 # So? What about this header?
17432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17438 ac_header_preproc
=yes
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17455 ## ------------------------------------------ ##
17456 ## Report this to the AC_PACKAGE_NAME lists. ##
17457 ## ------------------------------------------ ##
17460 sed "s/^/$as_me: WARNING: /" >&2
17463 echo "$as_me:$LINENO: checking for $ac_header" >&5
17464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 eval "$as_ac_Header=\$ac_header_preproc"
17470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17475 cat >>confdefs.h
<<_ACEOF
17476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17485 if test -z "$GETOPT_H"; then
17487 for ac_func
in getopt_long_only
17489 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17490 echo "$as_me:$LINENO: checking for $ac_func" >&5
17491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17492 if eval "test \"\${$as_ac_var+set}\" = set"; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 cat >conftest.
$ac_ext <<_ACEOF
17498 cat confdefs.h
>>conftest.
$ac_ext
17499 cat >>conftest.
$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17503 #define $ac_func innocuous_$ac_func
17505 /* System header to define __stub macros and hopefully few prototypes,
17506 which can conflict with char $ac_func (); below.
17507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17508 <limits.h> exists even on freestanding compilers. */
17511 # include <limits.h>
17513 # include <assert.h>
17518 /* Override any gcc2 internal prototype to avoid an error. */
17523 /* We use char because int might match the return type of a gcc2
17524 builtin and then its argument prototype would still apply. */
17526 /* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17532 char (*f) () = $ac_func;
17541 return f != $ac_func;
17546 rm -f conftest.
$ac_objext conftest
$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17550 grep -v '^ *+' conftest.er1
>conftest.err
17552 cat conftest.err
>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try
='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try
='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.
$ac_ext >&5
17573 eval "$as_ac_var=no"
17575 rm -f conftest.err conftest.
$ac_objext \
17576 conftest
$ac_exeext conftest.
$ac_ext
17578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17580 if test `eval echo '${'$as_ac_var'}'` = yes; then
17581 cat >>confdefs.h
<<_ACEOF
17582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 if test -z "$GETOPT_H"; then
17593 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17594 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17595 if test "${ac_cv_have_decl_optreset+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 cat >conftest.
$ac_ext <<_ACEOF
17601 cat confdefs.h
>>conftest.
$ac_ext
17602 cat >>conftest.
$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 #include <getopt.h>
17610 char *p = (char *) optreset;
17617 rm -f conftest.
$ac_objext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17619 (eval $ac_compile) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1
>conftest.err
17623 cat conftest.err
>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try
='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try
='test -s conftest.$ac_objext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_have_decl_optreset
=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.
$ac_ext >&5
17644 ac_cv_have_decl_optreset
=no
17646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17648 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17649 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17650 if test $ac_cv_have_decl_optreset = yes; then
17656 if test -z "$GETOPT_H"; then
17657 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17658 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17659 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 if test "$cross_compiling" = yes; then
17663 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17664 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17665 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 cat >conftest.
$ac_ext <<_ACEOF
17671 cat confdefs.h
>>conftest.
$ac_ext
17672 cat >>conftest.
$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 #include <getopt.h>
17679 #ifndef getopt_clip
17680 char *p = (char *) getopt_clip;
17687 rm -f conftest.
$ac_objext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>conftest.er1
17691 grep -v '^ *+' conftest.er1
>conftest.err
17693 cat conftest.err
>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try
='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try
='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_have_decl_getopt_clip
=yes
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.
$ac_ext >&5
17714 ac_cv_have_decl_getopt_clip
=no
17716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17719 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17720 if test $ac_cv_have_decl_getopt_clip = yes; then
17721 gl_cv_func_gnu_getopt
=no
17723 gl_cv_func_gnu_getopt
=yes
17727 cat >conftest.
$ac_ext <<_ACEOF
17730 cat confdefs.h
>>conftest.
$ac_ext
17731 cat >>conftest.
$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <getopt.h>
17739 myargv[0] = "conftest";
17742 return getopt (2, myargv, "+a") != '?';
17748 rm -f conftest
$ac_exeext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 gl_cv_func_gnu_getopt
=yes
17761 echo "$as_me: program exited with status $ac_status" >&5
17762 echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.
$ac_ext >&5
17765 ( exit $ac_status )
17766 gl_cv_func_gnu_getopt
=no
17768 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17771 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17772 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17773 if test "$gl_cv_func_gnu_getopt" = "no"; then
17780 if test -n "$GETOPT_H"; then
17785 cat >>confdefs.h
<<\_ACEOF
17786 #define __GETOPT_PREFIX rpl_
17792 GETOPTOBJS
='getopt.o getopt1.o'
17799 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17800 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17801 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 # Use it with a single arg.
17805 cat >conftest.
$ac_ext <<_ACEOF
17808 cat confdefs.h
>>conftest.
$ac_ext
17809 cat >>conftest.
$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17820 rm -f conftest.
$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17824 grep -v '^ *+' conftest.er1
>conftest.err
17826 cat conftest.err
>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try
='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try
='test -s conftest.$ac_objext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_func_getpgrp_void
=no
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.
$ac_ext >&5
17847 ac_cv_func_getpgrp_void
=yes
17849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17852 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17853 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17854 if test $ac_cv_func_getpgrp_void = yes; then
17856 cat >>confdefs.h
<<\_ACEOF
17857 #define GETPGRP_VOID 1
17864 for ac_func
in strftime
17866 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17867 echo "$as_me:$LINENO: checking for $ac_func" >&5
17868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17869 if eval "test \"\${$as_ac_var+set}\" = set"; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 cat >conftest.
$ac_ext <<_ACEOF
17875 cat confdefs.h
>>conftest.
$ac_ext
17876 cat >>conftest.
$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17880 #define $ac_func innocuous_$ac_func
17882 /* System header to define __stub macros and hopefully few prototypes,
17883 which can conflict with char $ac_func (); below.
17884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17885 <limits.h> exists even on freestanding compilers. */
17888 # include <limits.h>
17890 # include <assert.h>
17895 /* 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. */
17903 /* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17909 char (*f) () = $ac_func;
17918 return f != $ac_func;
17923 rm -f conftest.
$ac_objext conftest
$ac_exeext
17924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17925 (eval $ac_link) 2>conftest.er1
17927 grep -v '^ *+' conftest.er1
>conftest.err
17929 cat conftest.err
>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try
='test -z "$ac_c_werror_flag"
17933 || test ! -s conftest.err'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; } &&
17939 { ac_try
='test -s conftest$ac_exeext'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 eval "$as_ac_var=yes"
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.
$ac_ext >&5
17950 eval "$as_ac_var=no"
17952 rm -f conftest.err conftest.
$ac_objext \
17953 conftest
$ac_exeext conftest.
$ac_ext
17955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17957 if test `eval echo '${'$as_ac_var'}'` = yes; then
17958 cat >>confdefs.h
<<_ACEOF
17959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17963 # strftime is in -lintl on SCO UNIX.
17964 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17965 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17966 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 ac_check_lib_save_LIBS
=$LIBS
17970 LIBS
="-lintl $LIBS"
17971 cat >conftest.
$ac_ext <<_ACEOF
17974 cat confdefs.h
>>conftest.
$ac_ext
17975 cat >>conftest.
$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17978 /* Override any gcc2 internal prototype to avoid an error. */
17982 /* We use char because int might match the return type of a gcc2
17983 builtin and then its argument prototype would still apply. */
17993 rm -f conftest.
$ac_objext conftest
$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1
>conftest.err
17999 cat conftest.err
>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try
='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try
='test -s conftest$ac_exeext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ac_cv_lib_intl_strftime
=yes
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.
$ac_ext >&5
18020 ac_cv_lib_intl_strftime
=no
18022 rm -f conftest.err conftest.
$ac_objext \
18023 conftest
$ac_exeext conftest.
$ac_ext
18024 LIBS
=$ac_check_lib_save_LIBS
18026 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18027 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18028 if test $ac_cv_lib_intl_strftime = yes; then
18029 cat >>confdefs.h
<<\_ACEOF
18030 #define HAVE_STRFTIME 1
18033 LIBS
="-lintl $LIBS"
18042 for ac_func
in grantpt
18044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18045 echo "$as_me:$LINENO: checking for $ac_func" >&5
18046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18047 if eval "test \"\${$as_ac_var+set}\" = set"; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 cat >conftest.
$ac_ext <<_ACEOF
18053 cat confdefs.h
>>conftest.
$ac_ext
18054 cat >>conftest.
$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18058 #define $ac_func innocuous_$ac_func
18060 /* System header to define __stub macros and hopefully few prototypes,
18061 which can conflict with char $ac_func (); below.
18062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18063 <limits.h> exists even on freestanding compilers. */
18066 # include <limits.h>
18068 # include <assert.h>
18073 /* Override any gcc2 internal prototype to avoid an error. */
18078 /* We use char because int might match the return type of a gcc2
18079 builtin and then its argument prototype would still apply. */
18081 /* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18087 char (*f) () = $ac_func;
18096 return f != $ac_func;
18101 rm -f conftest.
$ac_objext conftest
$ac_exeext
18102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18103 (eval $ac_link) 2>conftest.er1
18105 grep -v '^ *+' conftest.er1
>conftest.err
18107 cat conftest.err
>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try
='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try
='test -s conftest$ac_exeext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 eval "$as_ac_var=yes"
18125 echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.
$ac_ext >&5
18128 eval "$as_ac_var=no"
18130 rm -f conftest.err conftest.
$ac_objext \
18131 conftest
$ac_exeext conftest.
$ac_ext
18133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18135 if test `eval echo '${'$as_ac_var'}'` = yes; then
18136 cat >>confdefs.h
<<_ACEOF
18137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18144 # PTY-related GNU extensions.
18146 for ac_func
in getpt
18148 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149 echo "$as_me:$LINENO: checking for $ac_func" >&5
18150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18151 if eval "test \"\${$as_ac_var+set}\" = set"; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 cat >conftest.
$ac_ext <<_ACEOF
18157 cat confdefs.h
>>conftest.
$ac_ext
18158 cat >>conftest.
$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162 #define $ac_func innocuous_$ac_func
18164 /* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char $ac_func (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18170 # include <limits.h>
18172 # include <assert.h>
18177 /* Override any gcc2 internal prototype to avoid an error. */
18182 /* We use char because int might match the return type of a gcc2
18183 builtin and then its argument prototype would still apply. */
18185 /* The GNU C library defines this for functions which it implements
18186 to always fail with ENOSYS. Some functions are actually named
18187 something starting with __ and the normal name is an alias. */
18188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18191 char (*f) () = $ac_func;
18200 return f != $ac_func;
18205 rm -f conftest.
$ac_objext conftest
$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>conftest.er1
18209 grep -v '^ *+' conftest.er1
>conftest.err
18211 cat conftest.err
>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 { ac_try
='test -z "$ac_c_werror_flag"
18215 || test ! -s conftest.err'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try
='test -s conftest$ac_exeext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 eval "$as_ac_var=yes"
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.
$ac_ext >&5
18232 eval "$as_ac_var=no"
18234 rm -f conftest.err conftest.
$ac_objext \
18235 conftest
$ac_exeext conftest.
$ac_ext
18237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18239 if test `eval echo '${'$as_ac_var'}'` = yes; then
18240 cat >>confdefs.h
<<_ACEOF
18241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18248 # Check this now, so that we will NOT find the above functions in ncurses.
18249 # That is because we have not set up to link ncurses in lib-src.
18250 # It's better to believe a function is not available
18251 # than to expect to find it in ncurses.
18253 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18254 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18255 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 ac_check_lib_save_LIBS
=$LIBS
18259 LIBS
="-lncurses $LIBS"
18260 cat >conftest.
$ac_ext <<_ACEOF
18263 cat confdefs.h
>>conftest.
$ac_ext
18264 cat >>conftest.
$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18267 /* Override any gcc2 internal prototype to avoid an error. */
18271 /* We use char because int might match the return type of a gcc2
18272 builtin and then its argument prototype would still apply. */
18282 rm -f conftest.
$ac_objext conftest
$ac_exeext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284 (eval $ac_link) 2>conftest.er1
18286 grep -v '^ *+' conftest.er1
>conftest.err
18288 cat conftest.err
>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try
='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try
='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_ncurses_tparm
=yes
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.
$ac_ext >&5
18309 ac_cv_lib_ncurses_tparm
=no
18311 rm -f conftest.err conftest.
$ac_objext \
18312 conftest
$ac_exeext conftest.
$ac_ext
18313 LIBS
=$ac_check_lib_save_LIBS
18315 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18316 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18317 if test $ac_cv_lib_ncurses_tparm = yes; then
18318 cat >>confdefs.h
<<_ACEOF
18319 #define HAVE_LIBNCURSES 1
18322 LIBS
="-lncurses $LIBS"
18327 # Do we need the Hesiod library to provide the support routines?
18328 if test "$with_hesiod" = yes ; then
18329 # Don't set $LIBS here -- see comments above.
18331 echo "$as_me:$LINENO: checking for res_send" >&5
18332 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18333 if test "${ac_cv_func_res_send+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 cat >conftest.
$ac_ext <<_ACEOF
18339 cat confdefs.h
>>conftest.
$ac_ext
18340 cat >>conftest.
$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18342 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18344 #define res_send innocuous_res_send
18346 /* System header to define __stub macros and hopefully few prototypes,
18347 which can conflict with char res_send (); below.
18348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18349 <limits.h> exists even on freestanding compilers. */
18352 # include <limits.h>
18354 # include <assert.h>
18359 /* Override any gcc2 internal prototype to avoid an error. */
18364 /* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18367 /* The GNU C library defines this for functions which it implements
18368 to always fail with ENOSYS. Some functions are actually named
18369 something starting with __ and the normal name is an alias. */
18370 #if defined (__stub_res_send) || defined (__stub___res_send)
18373 char (*f) () = res_send;
18382 return f != res_send;
18387 rm -f conftest.
$ac_objext conftest
$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1
>conftest.err
18393 cat conftest.err
>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try
='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try
='test -s conftest$ac_exeext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_cv_func_res_send
=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.
$ac_ext >&5
18414 ac_cv_func_res_send
=no
18416 rm -f conftest.err conftest.
$ac_objext \
18417 conftest
$ac_exeext conftest.
$ac_ext
18419 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18420 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18421 if test $ac_cv_func_res_send = yes; then
18424 echo "$as_me:$LINENO: checking for __res_send" >&5
18425 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18426 if test "${ac_cv_func___res_send+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.
$ac_ext <<_ACEOF
18432 cat confdefs.h
>>conftest.
$ac_ext
18433 cat >>conftest.
$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437 #define __res_send innocuous___res_send
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char __res_send (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18445 # include <limits.h>
18447 # include <assert.h>
18452 /* Override any gcc2 internal prototype to avoid an error. */
18457 /* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18459 char __res_send ();
18460 /* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463 #if defined (__stub___res_send) || defined (__stub_____res_send)
18466 char (*f) () = __res_send;
18475 return f != __res_send;
18480 rm -f conftest.
$ac_objext conftest
$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482 (eval $ac_link) 2>conftest.er1
18484 grep -v '^ *+' conftest.er1
>conftest.err
18486 cat conftest.err
>&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try
='test -z "$ac_c_werror_flag"
18490 || test ! -s conftest.err'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try
='test -s conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_func___res_send
=yes
18504 echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.
$ac_ext >&5
18507 ac_cv_func___res_send
=no
18509 rm -f conftest.err conftest.
$ac_objext \
18510 conftest
$ac_exeext conftest.
$ac_ext
18512 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18513 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18514 if test $ac_cv_func___res_send = yes; then
18517 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18518 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18519 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 ac_check_lib_save_LIBS
=$LIBS
18523 LIBS
="-lresolv $LIBS"
18524 cat >conftest.
$ac_ext <<_ACEOF
18527 cat confdefs.h
>>conftest.
$ac_ext
18528 cat >>conftest.
$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18531 /* Override any gcc2 internal prototype to avoid an error. */
18535 /* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18546 rm -f conftest.
$ac_objext conftest
$ac_exeext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>conftest.er1
18550 grep -v '^ *+' conftest.er1
>conftest.err
18552 cat conftest.err
>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try
='test -z "$ac_c_werror_flag"
18556 || test ! -s conftest.err'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try
='test -s conftest$ac_exeext'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_lib_resolv_res_send
=yes
18570 echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.
$ac_ext >&5
18573 ac_cv_lib_resolv_res_send
=no
18575 rm -f conftest.err conftest.
$ac_objext \
18576 conftest
$ac_exeext conftest.
$ac_ext
18577 LIBS
=$ac_check_lib_save_LIBS
18579 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18580 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18581 if test $ac_cv_lib_resolv_res_send = yes; then
18584 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18585 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18586 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_check_lib_save_LIBS
=$LIBS
18590 LIBS
="-lresolv $LIBS"
18591 cat >conftest.
$ac_ext <<_ACEOF
18594 cat confdefs.h
>>conftest.
$ac_ext
18595 cat >>conftest.
$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 /* Override any gcc2 internal prototype to avoid an error. */
18602 /* We use char because int might match the return type of a gcc2
18603 builtin and then its argument prototype would still apply. */
18604 char __res_send ();
18613 rm -f conftest.
$ac_objext conftest
$ac_exeext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>conftest.er1
18617 grep -v '^ *+' conftest.er1
>conftest.err
18619 cat conftest.err
>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try
='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try
='test -s conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_lib_resolv___res_send
=yes
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.
$ac_ext >&5
18640 ac_cv_lib_resolv___res_send
=no
18642 rm -f conftest.err conftest.
$ac_objext \
18643 conftest
$ac_exeext conftest.
$ac_ext
18644 LIBS
=$ac_check_lib_save_LIBS
18646 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18647 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18648 if test $ac_cv_lib_resolv___res_send = yes; then
18658 if test "$resolv" = yes ; then
18661 cat >>confdefs.h
<<\_ACEOF
18662 #define HAVE_LIBRESOLV 1
18668 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18669 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18670 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 cat >conftest.
$ac_ext <<_ACEOF
18676 cat confdefs.h
>>conftest.
$ac_ext
18677 cat >>conftest.
$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18681 #define hes_getmailhost innocuous_hes_getmailhost
18683 /* System header to define __stub macros and hopefully few prototypes,
18684 which can conflict with char hes_getmailhost (); below.
18685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18686 <limits.h> exists even on freestanding compilers. */
18689 # include <limits.h>
18691 # include <assert.h>
18694 #undef hes_getmailhost
18696 /* 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 hes_getmailhost ();
18704 /* The GNU C library defines this for functions which it implements
18705 to always fail with ENOSYS. Some functions are actually named
18706 something starting with __ and the normal name is an alias. */
18707 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18710 char (*f) () = hes_getmailhost;
18719 return f != hes_getmailhost;
18724 rm -f conftest.
$ac_objext conftest
$ac_exeext
18725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18726 (eval $ac_link) 2>conftest.er1
18728 grep -v '^ *+' conftest.er1
>conftest.err
18730 cat conftest.err
>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try
='test -z "$ac_c_werror_flag"
18734 || test ! -s conftest.err'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try
='test -s conftest$ac_exeext'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_func_hes_getmailhost
=yes
18748 echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.
$ac_ext >&5
18751 ac_cv_func_hes_getmailhost
=no
18753 rm -f conftest.err conftest.
$ac_objext \
18754 conftest
$ac_exeext conftest.
$ac_ext
18756 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18757 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18758 if test $ac_cv_func_hes_getmailhost = yes; then
18761 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18762 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18763 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 ac_check_lib_save_LIBS
=$LIBS
18767 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18768 cat >conftest.
$ac_ext <<_ACEOF
18771 cat confdefs.h
>>conftest.
$ac_ext
18772 cat >>conftest.
$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18775 /* Override any gcc2 internal prototype to avoid an error. */
18779 /* We use char because int might match the return type of a gcc2
18780 builtin and then its argument prototype would still apply. */
18781 char hes_getmailhost ();
18785 hes_getmailhost ();
18790 rm -f conftest.
$ac_objext conftest
$ac_exeext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18792 (eval $ac_link) 2>conftest.er1
18794 grep -v '^ *+' conftest.er1
>conftest.err
18796 cat conftest.err
>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try
='test -z "$ac_c_werror_flag"
18800 || test ! -s conftest.err'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try
='test -s conftest$ac_exeext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_hesiod_hes_getmailhost
=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.
$ac_ext >&5
18817 ac_cv_lib_hesiod_hes_getmailhost
=no
18819 rm -f conftest.err conftest.
$ac_objext \
18820 conftest
$ac_exeext conftest.
$ac_ext
18821 LIBS
=$ac_check_lib_save_LIBS
18823 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18824 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18825 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18827 cat >>confdefs.h
<<\_ACEOF
18828 #define HAVE_LIBHESIOD 1
18839 # These tell us which Kerberos-related libraries to use.
18840 if test "${with_kerberos+set}" = set; then
18842 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18843 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18844 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 ac_check_lib_save_LIBS
=$LIBS
18848 LIBS
="-lcom_err $LIBS"
18849 cat >conftest.
$ac_ext <<_ACEOF
18852 cat confdefs.h
>>conftest.
$ac_ext
18853 cat >>conftest.
$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 /* Override any gcc2 internal prototype to avoid an error. */
18860 /* We use char because int might match the return type of a gcc2
18861 builtin and then its argument prototype would still apply. */
18871 rm -f conftest.
$ac_objext conftest
$ac_exeext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18873 (eval $ac_link) 2>conftest.er1
18875 grep -v '^ *+' conftest.er1
>conftest.err
18877 cat conftest.err
>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
18880 { ac_try
='test -z "$ac_c_werror_flag"
18881 || test ! -s conftest.err'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try
='test -s conftest$ac_exeext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_cv_lib_com_err_com_err
=yes
18895 echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.
$ac_ext >&5
18898 ac_cv_lib_com_err_com_err
=no
18900 rm -f conftest.err conftest.
$ac_objext \
18901 conftest
$ac_exeext conftest.
$ac_ext
18902 LIBS
=$ac_check_lib_save_LIBS
18904 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18905 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18906 if test $ac_cv_lib_com_err_com_err = yes; then
18907 cat >>confdefs.h
<<_ACEOF
18908 #define HAVE_LIBCOM_ERR 1
18911 LIBS
="-lcom_err $LIBS"
18916 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18917 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18918 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 ac_check_lib_save_LIBS
=$LIBS
18922 LIBS
="-lk5crypto $LIBS"
18923 cat >conftest.
$ac_ext <<_ACEOF
18926 cat confdefs.h
>>conftest.
$ac_ext
18927 cat >>conftest.
$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any gcc2 internal prototype to avoid an error. */
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936 char mit_des_cbc_encrypt ();
18940 mit_des_cbc_encrypt ();
18945 rm -f conftest.
$ac_objext conftest
$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18949 grep -v '^ *+' conftest.er1
>conftest.err
18951 cat conftest.err
>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try
='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try
='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.
$ac_ext >&5
18972 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18974 rm -f conftest.err conftest.
$ac_objext \
18975 conftest
$ac_exeext conftest.
$ac_ext
18976 LIBS
=$ac_check_lib_save_LIBS
18978 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18979 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18980 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18981 cat >>confdefs.h
<<_ACEOF
18982 #define HAVE_LIBK5CRYPTO 1
18985 LIBS
="-lk5crypto $LIBS"
18990 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18991 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18992 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 ac_check_lib_save_LIBS
=$LIBS
18996 LIBS
="-lcrypto $LIBS"
18997 cat >conftest.
$ac_ext <<_ACEOF
19000 cat confdefs.h
>>conftest.
$ac_ext
19001 cat >>conftest.
$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19004 /* Override any gcc2 internal prototype to avoid an error. */
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19010 char mit_des_cbc_encrypt ();
19014 mit_des_cbc_encrypt ();
19019 rm -f conftest.
$ac_objext conftest
$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1
>conftest.err
19025 cat conftest.err
>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try
='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try
='test -s conftest$ac_exeext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.
$ac_ext >&5
19046 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19048 rm -f conftest.err conftest.
$ac_objext \
19049 conftest
$ac_exeext conftest.
$ac_ext
19050 LIBS
=$ac_check_lib_save_LIBS
19052 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19053 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19054 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19055 cat >>confdefs.h
<<_ACEOF
19056 #define HAVE_LIBCRYPTO 1
19059 LIBS
="-lcrypto $LIBS"
19064 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19065 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19066 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 ac_check_lib_save_LIBS
=$LIBS
19070 LIBS
="-lkrb5 $LIBS"
19071 cat >conftest.
$ac_ext <<_ACEOF
19074 cat confdefs.h
>>conftest.
$ac_ext
19075 cat >>conftest.
$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19078 /* Override any gcc2 internal prototype to avoid an error. */
19082 /* We use char because int might match the return type of a gcc2
19083 builtin and then its argument prototype would still apply. */
19084 char krb5_init_context ();
19088 krb5_init_context ();
19093 rm -f conftest.
$ac_objext conftest
$ac_exeext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095 (eval $ac_link) 2>conftest.er1
19097 grep -v '^ *+' conftest.er1
>conftest.err
19099 cat conftest.err
>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } &&
19102 { ac_try
='test -z "$ac_c_werror_flag"
19103 || test ! -s conftest.err'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try
='test -s conftest$ac_exeext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_lib_krb5_krb5_init_context
=yes
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.
$ac_ext >&5
19120 ac_cv_lib_krb5_krb5_init_context
=no
19122 rm -f conftest.err conftest.
$ac_objext \
19123 conftest
$ac_exeext conftest.
$ac_ext
19124 LIBS
=$ac_check_lib_save_LIBS
19126 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19127 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19128 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19129 cat >>confdefs.h
<<_ACEOF
19130 #define HAVE_LIBKRB5 1
19133 LIBS
="-lkrb5 $LIBS"
19137 if test "${with_kerberos5+set}" != set; then
19139 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19140 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19141 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 ac_check_lib_save_LIBS
=$LIBS
19145 LIBS
="-ldes425 $LIBS"
19146 cat >conftest.
$ac_ext <<_ACEOF
19149 cat confdefs.h
>>conftest.
$ac_ext
19150 cat >>conftest.
$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19153 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19159 char des_cbc_encrypt ();
19163 des_cbc_encrypt ();
19168 rm -f conftest.
$ac_objext conftest
$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1
>conftest.err
19174 cat conftest.err
>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try
='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try
='test -s conftest$ac_exeext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_lib_des425_des_cbc_encrypt
=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.
$ac_ext >&5
19195 ac_cv_lib_des425_des_cbc_encrypt
=no
19197 rm -f conftest.err conftest.
$ac_objext \
19198 conftest
$ac_exeext conftest.
$ac_ext
19199 LIBS
=$ac_check_lib_save_LIBS
19201 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19202 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19203 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19204 cat >>confdefs.h
<<_ACEOF
19205 #define HAVE_LIBDES425 1
19208 LIBS
="-ldes425 $LIBS"
19212 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19213 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19214 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 ac_check_lib_save_LIBS
=$LIBS
19219 cat >conftest.
$ac_ext <<_ACEOF
19222 cat confdefs.h
>>conftest.
$ac_ext
19223 cat >>conftest.
$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19226 /* Override any gcc2 internal prototype to avoid an error. */
19230 /* We use char because int might match the return type of a gcc2
19231 builtin and then its argument prototype would still apply. */
19232 char des_cbc_encrypt ();
19236 des_cbc_encrypt ();
19241 rm -f conftest.
$ac_objext conftest
$ac_exeext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243 (eval $ac_link) 2>conftest.er1
19245 grep -v '^ *+' conftest.er1
>conftest.err
19247 cat conftest.err
>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try
='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try
='test -s conftest$ac_exeext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_lib_des_des_cbc_encrypt
=yes
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.
$ac_ext >&5
19268 ac_cv_lib_des_des_cbc_encrypt
=no
19270 rm -f conftest.err conftest.
$ac_objext \
19271 conftest
$ac_exeext conftest.
$ac_ext
19272 LIBS
=$ac_check_lib_save_LIBS
19274 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19275 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19276 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19277 cat >>confdefs.h
<<_ACEOF
19278 #define HAVE_LIBDES 1
19288 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19289 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19290 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 ac_check_lib_save_LIBS
=$LIBS
19294 LIBS
="-lkrb4 $LIBS"
19295 cat >conftest.
$ac_ext <<_ACEOF
19298 cat confdefs.h
>>conftest.
$ac_ext
19299 cat >>conftest.
$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19302 /* Override any gcc2 internal prototype to avoid an error. */
19306 /* We use char because int might match the return type of a gcc2
19307 builtin and then its argument prototype would still apply. */
19308 char krb_get_cred ();
19317 rm -f conftest.
$ac_objext conftest
$ac_exeext
19318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19319 (eval $ac_link) 2>conftest.er1
19321 grep -v '^ *+' conftest.er1
>conftest.err
19323 cat conftest.err
>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try
='test -z "$ac_c_werror_flag"
19327 || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try
='test -s conftest$ac_exeext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 ac_cv_lib_krb4_krb_get_cred
=yes
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.
$ac_ext >&5
19344 ac_cv_lib_krb4_krb_get_cred
=no
19346 rm -f conftest.err conftest.
$ac_objext \
19347 conftest
$ac_exeext conftest.
$ac_ext
19348 LIBS
=$ac_check_lib_save_LIBS
19350 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19351 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19352 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19353 cat >>confdefs.h
<<_ACEOF
19354 #define HAVE_LIBKRB4 1
19357 LIBS
="-lkrb4 $LIBS"
19361 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19362 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19363 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 ac_check_lib_save_LIBS
=$LIBS
19368 cat >conftest.
$ac_ext <<_ACEOF
19371 cat confdefs.h
>>conftest.
$ac_ext
19372 cat >>conftest.
$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19375 /* Override any gcc2 internal prototype to avoid an error. */
19379 /* We use char because int might match the return type of a gcc2
19380 builtin and then its argument prototype would still apply. */
19381 char krb_get_cred ();
19390 rm -f conftest.
$ac_objext conftest
$ac_exeext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19392 (eval $ac_link) 2>conftest.er1
19394 grep -v '^ *+' conftest.er1
>conftest.err
19396 cat conftest.err
>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try
='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try
='test -s conftest$ac_exeext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_cv_lib_krb_krb_get_cred
=yes
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.
$ac_ext >&5
19417 ac_cv_lib_krb_krb_get_cred
=no
19419 rm -f conftest.err conftest.
$ac_objext \
19420 conftest
$ac_exeext conftest.
$ac_ext
19421 LIBS
=$ac_check_lib_save_LIBS
19423 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19424 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19425 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19426 cat >>confdefs.h
<<_ACEOF
19427 #define HAVE_LIBKRB 1
19438 if test "${with_kerberos5+set}" = set; then
19440 for ac_header
in krb5.h
19442 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19444 echo "$as_me:$LINENO: checking for $ac_header" >&5
19445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19452 # Is the header compilable?
19453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19455 cat >conftest.
$ac_ext <<_ACEOF
19458 cat confdefs.h
>>conftest.
$ac_ext
19459 cat >>conftest.
$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 $ac_includes_default
19462 #include <$ac_header>
19464 rm -f conftest.
$ac_objext
19465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>conftest.er1
19468 grep -v '^ *+' conftest.er1
>conftest.err
19470 cat conftest.err
>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try
='test -z "$ac_c_werror_flag"
19474 || test ! -s conftest.err'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try
='test -s conftest.$ac_objext'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_header_compiler
=yes
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.
$ac_ext >&5
19491 ac_header_compiler
=no
19493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19495 echo "${ECHO_T}$ac_header_compiler" >&6
19497 # Is the header present?
19498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19500 cat >conftest.
$ac_ext <<_ACEOF
19503 cat confdefs.h
>>conftest.
$ac_ext
19504 cat >>conftest.
$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 #include <$ac_header>
19508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19509 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19511 grep -v '^ *+' conftest.er1
>conftest.err
19513 cat conftest.err
>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } >/dev
/null
; then
19516 if test -s conftest.err
; then
19517 ac_cpp_err
=$ac_c_preproc_warn_flag
19518 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19525 if test -z "$ac_cpp_err"; then
19526 ac_header_preproc
=yes
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.
$ac_ext >&5
19531 ac_header_preproc
=no
19533 rm -f conftest.err conftest.
$ac_ext
19534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19535 echo "${ECHO_T}$ac_header_preproc" >&6
19537 # So? What about this header?
19538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19544 ac_header_preproc
=yes
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19561 ## ------------------------------------------ ##
19562 ## Report this to the AC_PACKAGE_NAME lists. ##
19563 ## ------------------------------------------ ##
19566 sed "s/^/$as_me: WARNING: /" >&2
19569 echo "$as_me:$LINENO: checking for $ac_header" >&5
19570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 eval "$as_ac_Header=\$ac_header_preproc"
19576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19581 cat >>confdefs.h
<<_ACEOF
19582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19591 for ac_header
in des.h
19593 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19603 # Is the header compilable?
19604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606 cat >conftest.
$ac_ext <<_ACEOF
19609 cat confdefs.h
>>conftest.
$ac_ext
19610 cat >>conftest.
$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 $ac_includes_default
19613 #include <$ac_header>
19615 rm -f conftest.
$ac_objext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
19619 grep -v '^ *+' conftest.er1
>conftest.err
19621 cat conftest.err
>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try
='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try
='test -s conftest.$ac_objext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_header_compiler
=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.
$ac_ext >&5
19642 ac_header_compiler
=no
19644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19646 echo "${ECHO_T}$ac_header_compiler" >&6
19648 # Is the header present?
19649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19651 cat >conftest.
$ac_ext <<_ACEOF
19654 cat confdefs.h
>>conftest.
$ac_ext
19655 cat >>conftest.
$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 #include <$ac_header>
19659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19662 grep -v '^ *+' conftest.er1
>conftest.err
19664 cat conftest.err
>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev
/null
; then
19667 if test -s conftest.err
; then
19668 ac_cpp_err
=$ac_c_preproc_warn_flag
19669 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19676 if test -z "$ac_cpp_err"; then
19677 ac_header_preproc
=yes
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.
$ac_ext >&5
19682 ac_header_preproc
=no
19684 rm -f conftest.err conftest.
$ac_ext
19685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19686 echo "${ECHO_T}$ac_header_preproc" >&6
19688 # So? What about this header?
19689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19695 ac_header_preproc
=yes
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19712 ## ------------------------------------------ ##
19713 ## Report this to the AC_PACKAGE_NAME lists. ##
19714 ## ------------------------------------------ ##
19717 sed "s/^/$as_me: WARNING: /" >&2
19720 echo "$as_me:$LINENO: checking for $ac_header" >&5
19721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 eval "$as_ac_Header=\$ac_header_preproc"
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732 cat >>confdefs.h
<<_ACEOF
19733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19738 for ac_header
in kerberosIV
/des.h
19740 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19742 echo "$as_me:$LINENO: checking for $ac_header" >&5
19743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19750 # Is the header compilable?
19751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19753 cat >conftest.
$ac_ext <<_ACEOF
19756 cat confdefs.h
>>conftest.
$ac_ext
19757 cat >>conftest.
$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19759 $ac_includes_default
19760 #include <$ac_header>
19762 rm -f conftest.
$ac_objext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19766 grep -v '^ *+' conftest.er1
>conftest.err
19768 cat conftest.err
>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try
='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try
='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_header_compiler
=yes
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.
$ac_ext >&5
19789 ac_header_compiler
=no
19791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19793 echo "${ECHO_T}$ac_header_compiler" >&6
19795 # Is the header present?
19796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19798 cat >conftest.
$ac_ext <<_ACEOF
19801 cat confdefs.h
>>conftest.
$ac_ext
19802 cat >>conftest.
$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 #include <$ac_header>
19806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19809 grep -v '^ *+' conftest.er1
>conftest.err
19811 cat conftest.err
>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } >/dev
/null
; then
19814 if test -s conftest.err
; then
19815 ac_cpp_err
=$ac_c_preproc_warn_flag
19816 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19823 if test -z "$ac_cpp_err"; then
19824 ac_header_preproc
=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.
$ac_ext >&5
19829 ac_header_preproc
=no
19831 rm -f conftest.err conftest.
$ac_ext
19832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833 echo "${ECHO_T}$ac_header_preproc" >&6
19835 # So? What about this header?
19836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19842 ac_header_preproc
=yes
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19859 ## ------------------------------------------ ##
19860 ## Report this to the AC_PACKAGE_NAME lists. ##
19861 ## ------------------------------------------ ##
19864 sed "s/^/$as_me: WARNING: /" >&2
19867 echo "$as_me:$LINENO: checking for $ac_header" >&5
19868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 eval "$as_ac_Header=\$ac_header_preproc"
19874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19879 cat >>confdefs.h
<<_ACEOF
19880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19885 for ac_header
in kerberos
/des.h
19887 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19889 echo "$as_me:$LINENO: checking for $ac_header" >&5
19890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19897 # Is the header compilable?
19898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19900 cat >conftest.
$ac_ext <<_ACEOF
19903 cat confdefs.h
>>conftest.
$ac_ext
19904 cat >>conftest.
$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19906 $ac_includes_default
19907 #include <$ac_header>
19909 rm -f conftest.
$ac_objext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19911 (eval $ac_compile) 2>conftest.er1
19913 grep -v '^ *+' conftest.er1
>conftest.err
19915 cat conftest.err
>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try
='test -z "$ac_c_werror_flag"
19919 || test ! -s conftest.err'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try
='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_header_compiler
=yes
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.
$ac_ext >&5
19936 ac_header_compiler
=no
19938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19940 echo "${ECHO_T}$ac_header_compiler" >&6
19942 # Is the header present?
19943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19945 cat >conftest.
$ac_ext <<_ACEOF
19948 cat confdefs.h
>>conftest.
$ac_ext
19949 cat >>conftest.
$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 #include <$ac_header>
19953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19956 grep -v '^ *+' conftest.er1
>conftest.err
19958 cat conftest.err
>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } >/dev
/null
; then
19961 if test -s conftest.err
; then
19962 ac_cpp_err
=$ac_c_preproc_warn_flag
19963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19970 if test -z "$ac_cpp_err"; then
19971 ac_header_preproc
=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.
$ac_ext >&5
19976 ac_header_preproc
=no
19978 rm -f conftest.err conftest.
$ac_ext
19979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19980 echo "${ECHO_T}$ac_header_preproc" >&6
19982 # So? What about this header?
19983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19989 ac_header_preproc
=yes
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20006 ## ------------------------------------------ ##
20007 ## Report this to the AC_PACKAGE_NAME lists. ##
20008 ## ------------------------------------------ ##
20011 sed "s/^/$as_me: WARNING: /" >&2
20014 echo "$as_me:$LINENO: checking for $ac_header" >&5
20015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 eval "$as_ac_Header=\$ac_header_preproc"
20021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20026 cat >>confdefs.h
<<_ACEOF
20027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20043 for ac_header
in krb.h
20045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20047 echo "$as_me:$LINENO: checking for $ac_header" >&5
20048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 # Is the header compilable?
20056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20058 cat >conftest.
$ac_ext <<_ACEOF
20061 cat confdefs.h
>>conftest.
$ac_ext
20062 cat >>conftest.
$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20065 #include <$ac_header>
20067 rm -f conftest.
$ac_objext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20071 grep -v '^ *+' conftest.er1
>conftest.err
20073 cat conftest.err
>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try
='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try
='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler
=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.
$ac_ext >&5
20094 ac_header_compiler
=no
20096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6
20100 # Is the header present?
20101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20103 cat >conftest.
$ac_ext <<_ACEOF
20106 cat confdefs.h
>>conftest.
$ac_ext
20107 cat >>conftest.
$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20114 grep -v '^ *+' conftest.er1
>conftest.err
20116 cat conftest.err
>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev
/null
; then
20119 if test -s conftest.err
; then
20120 ac_cpp_err
=$ac_c_preproc_warn_flag
20121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20128 if test -z "$ac_cpp_err"; then
20129 ac_header_preproc
=yes
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.
$ac_ext >&5
20134 ac_header_preproc
=no
20136 rm -f conftest.err conftest.
$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 echo "${ECHO_T}$ac_header_preproc" >&6
20140 # So? What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc
=yes
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20164 ## ------------------------------------------ ##
20165 ## Report this to the AC_PACKAGE_NAME lists. ##
20166 ## ------------------------------------------ ##
20169 sed "s/^/$as_me: WARNING: /" >&2
20172 echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 eval "$as_ac_Header=\$ac_header_preproc"
20179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20184 cat >>confdefs.h
<<_ACEOF
20185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190 for ac_header
in kerberosIV
/krb.h
20192 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20194 echo "$as_me:$LINENO: checking for $ac_header" >&5
20195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20202 # Is the header compilable?
20203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20205 cat >conftest.
$ac_ext <<_ACEOF
20208 cat confdefs.h
>>conftest.
$ac_ext
20209 cat >>conftest.
$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 $ac_includes_default
20212 #include <$ac_header>
20214 rm -f conftest.
$ac_objext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216 (eval $ac_compile) 2>conftest.er1
20218 grep -v '^ *+' conftest.er1
>conftest.err
20220 cat conftest.err
>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try
='test -z "$ac_c_werror_flag"
20224 || test ! -s conftest.err'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try
='test -s conftest.$ac_objext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_header_compiler
=yes
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.
$ac_ext >&5
20241 ac_header_compiler
=no
20243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20245 echo "${ECHO_T}$ac_header_compiler" >&6
20247 # Is the header present?
20248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20250 cat >conftest.
$ac_ext <<_ACEOF
20253 cat confdefs.h
>>conftest.
$ac_ext
20254 cat >>conftest.
$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 #include <$ac_header>
20258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20259 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20261 grep -v '^ *+' conftest.er1
>conftest.err
20263 cat conftest.err
>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } >/dev
/null
; then
20266 if test -s conftest.err
; then
20267 ac_cpp_err
=$ac_c_preproc_warn_flag
20268 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20275 if test -z "$ac_cpp_err"; then
20276 ac_header_preproc
=yes
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.
$ac_ext >&5
20281 ac_header_preproc
=no
20283 rm -f conftest.err conftest.
$ac_ext
20284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20285 echo "${ECHO_T}$ac_header_preproc" >&6
20287 # So? What about this header?
20288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20294 ac_header_preproc
=yes
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20311 ## ------------------------------------------ ##
20312 ## Report this to the AC_PACKAGE_NAME lists. ##
20313 ## ------------------------------------------ ##
20316 sed "s/^/$as_me: WARNING: /" >&2
20319 echo "$as_me:$LINENO: checking for $ac_header" >&5
20320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 eval "$as_ac_Header=\$ac_header_preproc"
20326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20331 cat >>confdefs.h
<<_ACEOF
20332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20337 for ac_header
in kerberos
/krb.h
20339 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341 echo "$as_me:$LINENO: checking for $ac_header" >&5
20342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20349 # Is the header compilable?
20350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20352 cat >conftest.
$ac_ext <<_ACEOF
20355 cat confdefs.h
>>conftest.
$ac_ext
20356 cat >>conftest.
$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 $ac_includes_default
20359 #include <$ac_header>
20361 rm -f conftest.
$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20365 grep -v '^ *+' conftest.er1
>conftest.err
20367 cat conftest.err
>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try
='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try
='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_header_compiler
=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.
$ac_ext >&5
20388 ac_header_compiler
=no
20390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20392 echo "${ECHO_T}$ac_header_compiler" >&6
20394 # Is the header present?
20395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20397 cat >conftest.
$ac_ext <<_ACEOF
20400 cat confdefs.h
>>conftest.
$ac_ext
20401 cat >>conftest.
$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 #include <$ac_header>
20405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20406 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20408 grep -v '^ *+' conftest.er1
>conftest.err
20410 cat conftest.err
>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } >/dev
/null
; then
20413 if test -s conftest.err
; then
20414 ac_cpp_err
=$ac_c_preproc_warn_flag
20415 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20422 if test -z "$ac_cpp_err"; then
20423 ac_header_preproc
=yes
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.
$ac_ext >&5
20428 ac_header_preproc
=no
20430 rm -f conftest.err conftest.
$ac_ext
20431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 echo "${ECHO_T}$ac_header_preproc" >&6
20434 # So? What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20441 ac_header_preproc
=yes
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20458 ## ------------------------------------------ ##
20459 ## Report this to the AC_PACKAGE_NAME lists. ##
20460 ## ------------------------------------------ ##
20463 sed "s/^/$as_me: WARNING: /" >&2
20466 echo "$as_me:$LINENO: checking for $ac_header" >&5
20467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 eval "$as_ac_Header=\$ac_header_preproc"
20473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20478 cat >>confdefs.h
<<_ACEOF
20479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20496 for ac_header
in com_err.h
20498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20508 # Is the header compilable?
20509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20511 cat >conftest.
$ac_ext <<_ACEOF
20514 cat confdefs.h
>>conftest.
$ac_ext
20515 cat >>conftest.
$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 $ac_includes_default
20518 #include <$ac_header>
20520 rm -f conftest.
$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1
>conftest.err
20526 cat conftest.err
>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try
='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try
='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_header_compiler
=yes
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.
$ac_ext >&5
20547 ac_header_compiler
=no
20549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6
20553 # Is the header present?
20554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20556 cat >conftest.
$ac_ext <<_ACEOF
20559 cat confdefs.h
>>conftest.
$ac_ext
20560 cat >>conftest.
$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <$ac_header>
20564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20565 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20567 grep -v '^ *+' conftest.er1
>conftest.err
20569 cat conftest.err
>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } >/dev
/null
; then
20572 if test -s conftest.err
; then
20573 ac_cpp_err
=$ac_c_preproc_warn_flag
20574 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20581 if test -z "$ac_cpp_err"; then
20582 ac_header_preproc
=yes
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.
$ac_ext >&5
20587 ac_header_preproc
=no
20589 rm -f conftest.err conftest.
$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591 echo "${ECHO_T}$ac_header_preproc" >&6
20593 # So? What about this header?
20594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20600 ac_header_preproc
=yes
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20617 ## ------------------------------------------ ##
20618 ## Report this to the AC_PACKAGE_NAME lists. ##
20619 ## ------------------------------------------ ##
20622 sed "s/^/$as_me: WARNING: /" >&2
20625 echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 eval "$as_ac_Header=\$ac_header_preproc"
20632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20637 cat >>confdefs.h
<<_ACEOF
20638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20647 # Solaris requires -lintl if you want strerror (which calls dgettext)
20648 # to return localized messages.
20650 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20651 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20652 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 ac_check_lib_save_LIBS
=$LIBS
20656 LIBS
="-lintl $LIBS"
20657 cat >conftest.
$ac_ext <<_ACEOF
20660 cat confdefs.h
>>conftest.
$ac_ext
20661 cat >>conftest.
$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20664 /* Override any gcc2 internal prototype to avoid an error. */
20668 /* We use char because int might match the return type of a gcc2
20669 builtin and then its argument prototype would still apply. */
20679 rm -f conftest.
$ac_objext conftest
$ac_exeext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20681 (eval $ac_link) 2>conftest.er1
20683 grep -v '^ *+' conftest.er1
>conftest.err
20685 cat conftest.err
>&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try
='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try
='test -s conftest$ac_exeext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_lib_intl_dgettext
=yes
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.
$ac_ext >&5
20706 ac_cv_lib_intl_dgettext
=no
20708 rm -f conftest.err conftest.
$ac_objext \
20709 conftest
$ac_exeext conftest.
$ac_ext
20710 LIBS
=$ac_check_lib_save_LIBS
20712 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20713 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20714 if test $ac_cv_lib_intl_dgettext = yes; then
20715 cat >>confdefs.h
<<_ACEOF
20716 #define HAVE_LIBINTL 1
20719 LIBS
="-lintl $LIBS"
20724 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20725 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20726 if test "${emacs_cv_localtime_cache+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 if test x
$ac_cv_func_tzset = xyes
; then
20730 if test "$cross_compiling" = yes; then
20731 # If we have tzset, assume the worst when cross-compiling.
20732 emacs_cv_localtime_cache
=yes
20734 cat >conftest.
$ac_ext <<_ACEOF
20737 cat confdefs.h
>>conftest.
$ac_ext
20738 cat >>conftest.
$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20741 extern char **environ;
20745 for (to = from = environ; (*to = *from); from++)
20746 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20749 char TZ_GMT0[] = "TZ=GMT0";
20750 char TZ_PST8[] = "TZ=PST8";
20753 time_t now = time ((time_t *) 0);
20754 int hour_GMT0, hour_unset;
20755 if (putenv (TZ_GMT0) != 0)
20757 hour_GMT0 = localtime (&now)->tm_hour;
20759 hour_unset = localtime (&now)->tm_hour;
20760 if (putenv (TZ_PST8) != 0)
20762 if (localtime (&now)->tm_hour == hour_GMT0)
20765 if (localtime (&now)->tm_hour != hour_unset)
20770 rm -f conftest
$ac_exeext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20772 (eval $ac_link) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 emacs_cv_localtime_cache
=no
20783 echo "$as_me: program exited with status $ac_status" >&5
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.
$ac_ext >&5
20787 ( exit $ac_status )
20788 emacs_cv_localtime_cache
=yes
20790 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20793 # If we lack tzset, report that localtime does not cache TZ,
20794 # since we can't invalidate the cache if we don't have tzset.
20795 emacs_cv_localtime_cache
=no
20798 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20799 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20800 if test $emacs_cv_localtime_cache = yes; then
20802 cat >>confdefs.h
<<\_ACEOF
20803 #define LOCALTIME_CACHE 1
20808 if test "x$HAVE_TIMEVAL" = xyes
; then
20810 for ac_func
in gettimeofday
20812 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20813 echo "$as_me:$LINENO: checking for $ac_func" >&5
20814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20815 if eval "test \"\${$as_ac_var+set}\" = set"; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 cat >conftest.
$ac_ext <<_ACEOF
20821 cat confdefs.h
>>conftest.
$ac_ext
20822 cat >>conftest.
$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20826 #define $ac_func innocuous_$ac_func
20828 /* System header to define __stub macros and hopefully few prototypes,
20829 which can conflict with char $ac_func (); below.
20830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20831 <limits.h> exists even on freestanding compilers. */
20834 # include <limits.h>
20836 # include <assert.h>
20841 /* Override any gcc2 internal prototype to avoid an error. */
20846 /* We use char because int might match the return type of a gcc2
20847 builtin and then its argument prototype would still apply. */
20849 /* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20855 char (*f) () = $ac_func;
20864 return f != $ac_func;
20869 rm -f conftest.
$ac_objext conftest
$ac_exeext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871 (eval $ac_link) 2>conftest.er1
20873 grep -v '^ *+' conftest.er1
>conftest.err
20875 cat conftest.err
>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try
='test -z "$ac_c_werror_flag"
20879 || test ! -s conftest.err'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try
='test -s conftest$ac_exeext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 eval "$as_ac_var=yes"
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.
$ac_ext >&5
20896 eval "$as_ac_var=no"
20898 rm -f conftest.err conftest.
$ac_objext \
20899 conftest
$ac_exeext conftest.
$ac_ext
20901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20903 if test `eval echo '${'$as_ac_var'}'` = yes; then
20904 cat >>confdefs.h
<<_ACEOF
20905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20911 if test $ac_cv_func_gettimeofday = yes; then
20912 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20913 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20914 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 cat >conftest.
$ac_ext <<_ACEOF
20920 cat confdefs.h
>>conftest.
$ac_ext
20921 cat >>conftest.
$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20924 #ifdef TIME_WITH_SYS_TIME
20925 #include <sys/time.h>
20928 #ifdef HAVE_SYS_TIME_H
20929 #include <sys/time.h>
20937 struct timeval time;
20938 gettimeofday (&time, 0);
20943 rm -f conftest.
$ac_objext
20944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20945 (eval $ac_compile) 2>conftest.er1
20947 grep -v '^ *+' conftest.er1
>conftest.err
20949 cat conftest.err
>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try
='test -z "$ac_c_werror_flag"
20953 || test ! -s conftest.err'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; } &&
20959 { ac_try
='test -s conftest.$ac_objext'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; }; then
20965 emacs_cv_gettimeofday_two_arguments
=yes
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.
$ac_ext >&5
20970 emacs_cv_gettimeofday_two_arguments
=no
20972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20974 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20975 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20976 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20978 cat >>confdefs.h
<<\_ACEOF
20979 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20986 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20987 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20988 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20989 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 cat >conftest.
$ac_ext <<_ACEOF
20995 cat confdefs.h
>>conftest.
$ac_ext
20996 cat >>conftest.
$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 #include <sys/types.h>
20999 #include <$ac_cv_struct_tm>
21005 static struct tm ac_aggr;
21006 if (ac_aggr.tm_zone)
21012 rm -f conftest.
$ac_objext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21014 (eval $ac_compile) 2>conftest.er1
21016 grep -v '^ *+' conftest.er1
>conftest.err
21018 cat conftest.err
>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try
='test -z "$ac_c_werror_flag"
21022 || test ! -s conftest.err'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; } &&
21028 { ac_try
='test -s conftest.$ac_objext'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 ac_cv_member_struct_tm_tm_zone
=yes
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.
$ac_ext >&5
21039 cat >conftest.
$ac_ext <<_ACEOF
21042 cat confdefs.h
>>conftest.
$ac_ext
21043 cat >>conftest.
$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <sys/types.h>
21046 #include <$ac_cv_struct_tm>
21052 static struct tm ac_aggr;
21053 if (sizeof ac_aggr.tm_zone)
21059 rm -f conftest.
$ac_objext
21060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061 (eval $ac_compile) 2>conftest.er1
21063 grep -v '^ *+' conftest.er1
>conftest.err
21065 cat conftest.err
>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try
='test -z "$ac_c_werror_flag"
21069 || test ! -s conftest.err'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try
='test -s conftest.$ac_objext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 ac_cv_member_struct_tm_tm_zone
=yes
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.
$ac_ext >&5
21086 ac_cv_member_struct_tm_tm_zone
=no
21088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21092 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21093 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21094 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21096 cat >>confdefs.h
<<_ACEOF
21097 #define HAVE_STRUCT_TM_TM_ZONE 1
21103 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21105 cat >>confdefs.h
<<\_ACEOF
21106 #define HAVE_TM_ZONE 1
21110 echo "$as_me:$LINENO: checking for tzname" >&5
21111 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21112 if test "${ac_cv_var_tzname+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 cat >conftest.
$ac_ext <<_ACEOF
21118 cat confdefs.h
>>conftest.
$ac_ext
21119 cat >>conftest.
$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21122 #ifndef tzname /* For SGI. */
21123 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21134 rm -f conftest.
$ac_objext conftest
$ac_exeext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21136 (eval $ac_link) 2>conftest.er1
21138 grep -v '^ *+' conftest.er1
>conftest.err
21140 cat conftest.err
>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
21143 { ac_try
='test -z "$ac_c_werror_flag"
21144 || test ! -s conftest.err'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try
='test -s conftest$ac_exeext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_var_tzname
=yes
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.
$ac_ext >&5
21161 ac_cv_var_tzname
=no
21163 rm -f conftest.err conftest.
$ac_objext \
21164 conftest
$ac_exeext conftest.
$ac_ext
21166 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21167 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21168 if test $ac_cv_var_tzname = yes; then
21170 cat >>confdefs.h
<<\_ACEOF
21171 #define HAVE_TZNAME 1
21178 if test "$ac_cv_func_gettimeofday" = yes; then
21179 echo "$as_me:$LINENO: checking for struct timezone" >&5
21180 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21181 if test "${emacs_cv_struct_timezone+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 cat >conftest.
$ac_ext <<_ACEOF
21187 cat confdefs.h
>>conftest.
$ac_ext
21188 cat >>conftest.
$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 #include <sys/time.h>
21194 struct timezone tz;
21199 rm -f conftest.
$ac_objext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201 (eval $ac_compile) 2>conftest.er1
21203 grep -v '^ *+' conftest.er1
>conftest.err
21205 cat conftest.err
>&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try
='test -z "$ac_c_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try
='test -s conftest.$ac_objext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 if test "$cross_compiling" = yes; then
21222 emacs_cv_struct_timezone
=yes
21224 cat >conftest.
$ac_ext <<_ACEOF
21227 cat confdefs.h
>>conftest.
$ac_ext
21228 cat >>conftest.
$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21231 #ifdef TIME_WITH_SYS_TIME
21232 #include <sys/time.h>
21235 #ifdef HAVE_SYS_TIME_H
21236 #include <sys/time.h>
21242 struct timeval time;
21243 struct timezone dummy;
21244 exit (gettimeofday (&time, &dummy));
21247 rm -f conftest
$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 emacs_cv_struct_timezone
=yes
21260 echo "$as_me: program exited with status $ac_status" >&5
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.
$ac_ext >&5
21264 ( exit $ac_status )
21265 emacs_cv_struct_timezone
=no
21267 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.
$ac_ext >&5
21273 emacs_cv_struct_timezone
=no
21275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21277 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21278 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21282 echo "$as_me:$LINENO: checking for socket" >&5
21283 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21284 if test "${ac_cv_func_socket+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21287 cat >conftest.
$ac_ext <<_ACEOF
21290 cat confdefs.h
>>conftest.
$ac_ext
21291 cat >>conftest.
$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21295 #define socket innocuous_socket
21297 /* System header to define __stub macros and hopefully few prototypes,
21298 which can conflict with char socket (); below.
21299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21300 <limits.h> exists even on freestanding compilers. */
21303 # include <limits.h>
21305 # include <assert.h>
21310 /* Override any gcc2 internal prototype to avoid an error. */
21315 /* We use char because int might match the return type of a gcc2
21316 builtin and then its argument prototype would still apply. */
21318 /* The GNU C library defines this for functions which it implements
21319 to always fail with ENOSYS. Some functions are actually named
21320 something starting with __ and the normal name is an alias. */
21321 #if defined (__stub_socket) || defined (__stub___socket)
21324 char (*f) () = socket;
21333 return f != socket;
21338 rm -f conftest.
$ac_objext conftest
$ac_exeext
21339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21340 (eval $ac_link) 2>conftest.er1
21342 grep -v '^ *+' conftest.er1
>conftest.err
21344 cat conftest.err
>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } &&
21347 { ac_try
='test -z "$ac_c_werror_flag"
21348 || test ! -s conftest.err'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; } &&
21354 { ac_try
='test -s conftest$ac_exeext'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; }; then
21360 ac_cv_func_socket
=yes
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.
$ac_ext >&5
21365 ac_cv_func_socket
=no
21367 rm -f conftest.err conftest.
$ac_objext \
21368 conftest
$ac_exeext conftest.
$ac_ext
21370 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21371 echo "${ECHO_T}$ac_cv_func_socket" >&6
21372 if test $ac_cv_func_socket = yes; then
21378 if test $ok_so_far = yes; then
21379 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21380 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21381 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21382 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21386 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21388 # Is the header compilable?
21389 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21390 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21391 cat >conftest.
$ac_ext <<_ACEOF
21394 cat confdefs.h
>>conftest.
$ac_ext
21395 cat >>conftest.
$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21398 #include <netinet/in.h>
21400 rm -f conftest.
$ac_objext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21402 (eval $ac_compile) 2>conftest.er1
21404 grep -v '^ *+' conftest.er1
>conftest.err
21406 cat conftest.err
>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } &&
21409 { ac_try
='test -z "$ac_c_werror_flag"
21410 || test ! -s conftest.err'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try
='test -s conftest.$ac_objext'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ac_header_compiler
=yes
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.
$ac_ext >&5
21427 ac_header_compiler
=no
21429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6
21433 # Is the header present?
21434 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21435 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21436 cat >conftest.
$ac_ext <<_ACEOF
21439 cat confdefs.h
>>conftest.
$ac_ext
21440 cat >>conftest.
$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <netinet/in.h>
21444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21447 grep -v '^ *+' conftest.er1
>conftest.err
21449 cat conftest.err
>&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } >/dev
/null
; then
21452 if test -s conftest.err
; then
21453 ac_cpp_err
=$ac_c_preproc_warn_flag
21454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21461 if test -z "$ac_cpp_err"; then
21462 ac_header_preproc
=yes
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.
$ac_ext >&5
21467 ac_header_preproc
=no
21469 rm -f conftest.err conftest.
$ac_ext
21470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21476 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21477 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21479 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21480 ac_header_preproc
=yes
21483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21484 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21486 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21488 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21490 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21492 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21494 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21497 ## ------------------------------------------ ##
21498 ## Report this to the AC_PACKAGE_NAME lists. ##
21499 ## ------------------------------------------ ##
21502 sed "s/^/$as_me: WARNING: /" >&2
21505 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21506 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21507 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 ac_cv_header_netinet_in_h
=$ac_header_preproc
21512 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21513 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21516 if test $ac_cv_header_netinet_in_h = yes; then
21524 if test $ok_so_far = yes; then
21525 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21526 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21527 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21528 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21532 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21534 # Is the header compilable?
21535 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21536 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21537 cat >conftest.
$ac_ext <<_ACEOF
21540 cat confdefs.h
>>conftest.
$ac_ext
21541 cat >>conftest.
$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 $ac_includes_default
21544 #include <arpa/inet.h>
21546 rm -f conftest.
$ac_objext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548 (eval $ac_compile) 2>conftest.er1
21550 grep -v '^ *+' conftest.er1
>conftest.err
21552 cat conftest.err
>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try
='test -z "$ac_c_werror_flag"
21556 || test ! -s conftest.err'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try
='test -s conftest.$ac_objext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 ac_header_compiler
=yes
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.
$ac_ext >&5
21573 ac_header_compiler
=no
21575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21577 echo "${ECHO_T}$ac_header_compiler" >&6
21579 # Is the header present?
21580 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21581 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21582 cat >conftest.
$ac_ext <<_ACEOF
21585 cat confdefs.h
>>conftest.
$ac_ext
21586 cat >>conftest.
$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <arpa/inet.h>
21590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21593 grep -v '^ *+' conftest.er1
>conftest.err
21595 cat conftest.err
>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } >/dev
/null
; then
21598 if test -s conftest.err
; then
21599 ac_cpp_err
=$ac_c_preproc_warn_flag
21600 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21607 if test -z "$ac_cpp_err"; then
21608 ac_header_preproc
=yes
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.
$ac_ext >&5
21613 ac_header_preproc
=no
21615 rm -f conftest.err conftest.
$ac_ext
21616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21617 echo "${ECHO_T}$ac_header_preproc" >&6
21619 # So? What about this header?
21620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21622 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21623 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21625 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21626 ac_header_preproc
=yes
21629 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21630 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21632 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21634 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21636 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21638 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21640 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21643 ## ------------------------------------------ ##
21644 ## Report this to the AC_PACKAGE_NAME lists. ##
21645 ## ------------------------------------------ ##
21648 sed "s/^/$as_me: WARNING: /" >&2
21651 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21652 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21653 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21658 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21659 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21662 if test $ac_cv_header_arpa_inet_h = yes; then
21670 if test $ok_so_far = yes; then
21672 cat >>confdefs.h
<<\_ACEOF
21673 #define HAVE_INET_SOCKETS 1
21679 for ac_header
in sys
/ioctl.h
21681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21683 echo "$as_me:$LINENO: checking for $ac_header" >&5
21684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21691 # Is the header compilable?
21692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21694 cat >conftest.
$ac_ext <<_ACEOF
21697 cat confdefs.h
>>conftest.
$ac_ext
21698 cat >>conftest.
$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 $ac_includes_default
21701 #include <$ac_header>
21703 rm -f conftest.
$ac_objext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21705 (eval $ac_compile) 2>conftest.er1
21707 grep -v '^ *+' conftest.er1
>conftest.err
21709 cat conftest.err
>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
21712 { ac_try
='test -z "$ac_c_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try
='test -s conftest.$ac_objext'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 ac_header_compiler
=yes
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.
$ac_ext >&5
21730 ac_header_compiler
=no
21732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21734 echo "${ECHO_T}$ac_header_compiler" >&6
21736 # Is the header present?
21737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21739 cat >conftest.
$ac_ext <<_ACEOF
21742 cat confdefs.h
>>conftest.
$ac_ext
21743 cat >>conftest.
$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 #include <$ac_header>
21747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21748 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21750 grep -v '^ *+' conftest.er1
>conftest.err
21752 cat conftest.err
>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } >/dev
/null
; then
21755 if test -s conftest.err
; then
21756 ac_cpp_err
=$ac_c_preproc_warn_flag
21757 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21764 if test -z "$ac_cpp_err"; then
21765 ac_header_preproc
=yes
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.
$ac_ext >&5
21770 ac_header_preproc
=no
21772 rm -f conftest.err conftest.
$ac_ext
21773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21774 echo "${ECHO_T}$ac_header_preproc" >&6
21776 # So? What about this header?
21777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21783 ac_header_preproc
=yes
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21800 ## ------------------------------------------ ##
21801 ## Report this to the AC_PACKAGE_NAME lists. ##
21802 ## ------------------------------------------ ##
21805 sed "s/^/$as_me: WARNING: /" >&2
21808 echo "$as_me:$LINENO: checking for $ac_header" >&5
21809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 eval "$as_ac_Header=\$ac_header_preproc"
21815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21820 cat >>confdefs.h
<<_ACEOF
21821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21829 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21831 cat >>confdefs.h
<<\_ACEOF
21832 #define HAVE_AIX_SMT_EXP 1
21837 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21838 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21839 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21840 echo "$as_me:$LINENO: result: yes" >&5
21841 echo "${ECHO_T}yes" >&6
21843 cat >>confdefs.h
<<\_ACEOF
21844 #define HAVE_DEV_PTMX 1
21848 echo "$as_me:$LINENO: result: no" >&5
21849 echo "${ECHO_T}no" >&6
21852 echo "$as_me:$LINENO: checking for pid_t" >&5
21853 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21854 if test "${ac_cv_type_pid_t+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 cat >conftest.
$ac_ext <<_ACEOF
21860 cat confdefs.h
>>conftest.
$ac_ext
21861 cat >>conftest.
$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21869 if (sizeof (pid_t))
21875 rm -f conftest.
$ac_objext
21876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21879 grep -v '^ *+' conftest.er1
>conftest.err
21881 cat conftest.err
>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try
='test -z "$ac_c_werror_flag"
21885 || test ! -s conftest.err'
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; } &&
21891 { ac_try
='test -s conftest.$ac_objext'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 ac_cv_type_pid_t
=yes
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.
$ac_ext >&5
21902 ac_cv_type_pid_t
=no
21904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21906 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21907 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21908 if test $ac_cv_type_pid_t = yes; then
21912 cat >>confdefs.h
<<_ACEOF
21920 for ac_header
in unistd.h vfork.h
21922 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21924 echo "$as_me:$LINENO: checking for $ac_header" >&5
21925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21932 # Is the header compilable?
21933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21935 cat >conftest.
$ac_ext <<_ACEOF
21938 cat confdefs.h
>>conftest.
$ac_ext
21939 cat >>conftest.
$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21942 #include <$ac_header>
21944 rm -f conftest.
$ac_objext
21945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21946 (eval $ac_compile) 2>conftest.er1
21948 grep -v '^ *+' conftest.er1
>conftest.err
21950 cat conftest.err
>&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } &&
21953 { ac_try
='test -z "$ac_c_werror_flag"
21954 || test ! -s conftest.err'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; } &&
21960 { ac_try
='test -s conftest.$ac_objext'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; }; then
21966 ac_header_compiler
=yes
21968 echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.
$ac_ext >&5
21971 ac_header_compiler
=no
21973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21975 echo "${ECHO_T}$ac_header_compiler" >&6
21977 # Is the header present?
21978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21980 cat >conftest.
$ac_ext <<_ACEOF
21983 cat confdefs.h
>>conftest.
$ac_ext
21984 cat >>conftest.
$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 #include <$ac_header>
21988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21991 grep -v '^ *+' conftest.er1
>conftest.err
21993 cat conftest.err
>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } >/dev
/null
; then
21996 if test -s conftest.err
; then
21997 ac_cpp_err
=$ac_c_preproc_warn_flag
21998 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22005 if test -z "$ac_cpp_err"; then
22006 ac_header_preproc
=yes
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.
$ac_ext >&5
22011 ac_header_preproc
=no
22013 rm -f conftest.err conftest.
$ac_ext
22014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22015 echo "${ECHO_T}$ac_header_preproc" >&6
22017 # So? What about this header?
22018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22024 ac_header_preproc
=yes
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22041 ## ------------------------------------------ ##
22042 ## Report this to the AC_PACKAGE_NAME lists. ##
22043 ## ------------------------------------------ ##
22046 sed "s/^/$as_me: WARNING: /" >&2
22049 echo "$as_me:$LINENO: checking for $ac_header" >&5
22050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 eval "$as_ac_Header=\$ac_header_preproc"
22056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22061 cat >>confdefs.h
<<_ACEOF
22062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22071 for ac_func
in fork vfork
22073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22074 echo "$as_me:$LINENO: checking for $ac_func" >&5
22075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22076 if eval "test \"\${$as_ac_var+set}\" = set"; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 cat >conftest.
$ac_ext <<_ACEOF
22082 cat confdefs.h
>>conftest.
$ac_ext
22083 cat >>conftest.
$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22087 #define $ac_func innocuous_$ac_func
22089 /* System header to define __stub macros and hopefully few prototypes,
22090 which can conflict with char $ac_func (); below.
22091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22092 <limits.h> exists even on freestanding compilers. */
22095 # include <limits.h>
22097 # include <assert.h>
22102 /* Override any gcc2 internal prototype to avoid an error. */
22107 /* We use char because int might match the return type of a gcc2
22108 builtin and then its argument prototype would still apply. */
22110 /* The GNU C library defines this for functions which it implements
22111 to always fail with ENOSYS. Some functions are actually named
22112 something starting with __ and the normal name is an alias. */
22113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22116 char (*f) () = $ac_func;
22125 return f != $ac_func;
22130 rm -f conftest.
$ac_objext conftest
$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>conftest.er1
22134 grep -v '^ *+' conftest.er1
>conftest.err
22136 cat conftest.err
>&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try
='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try
='test -s conftest$ac_exeext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 eval "$as_ac_var=yes"
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.
$ac_ext >&5
22157 eval "$as_ac_var=no"
22159 rm -f conftest.err conftest.
$ac_objext \
22160 conftest
$ac_exeext conftest.
$ac_ext
22162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22164 if test `eval echo '${'$as_ac_var'}'` = yes; then
22165 cat >>confdefs.h
<<_ACEOF
22166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22172 if test "x$ac_cv_func_fork" = xyes
; then
22173 echo "$as_me:$LINENO: checking for working fork" >&5
22174 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22175 if test "${ac_cv_func_fork_works+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 if test "$cross_compiling" = yes; then
22179 ac_cv_func_fork_works
=cross
22181 cat >conftest.
$ac_ext <<_ACEOF
22182 /* By Ruediger Kuhlmann. */
22183 #include <sys/types.h>
22185 # include <unistd.h>
22187 /* Some systems only have a dummy stub for fork() */
22195 rm -f conftest
$ac_exeext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22197 (eval $ac_link) 2>&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 ac_cv_func_fork_works
=yes
22208 echo "$as_me: program exited with status $ac_status" >&5
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.
$ac_ext >&5
22212 ( exit $ac_status )
22213 ac_cv_func_fork_works
=no
22215 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22218 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22219 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22222 ac_cv_func_fork_works
=$ac_cv_func_fork
22224 if test "x$ac_cv_func_fork_works" = xcross
; then
22226 *-*-amigaos* |
*-*-msdosdjgpp*)
22227 # Override, as these systems have only a dummy fork() stub
22228 ac_cv_func_fork_works
=no
22231 ac_cv_func_fork_works
=yes
22234 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22235 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22237 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22238 if test "x$ac_cv_func_vfork" = xyes
; then
22239 echo "$as_me:$LINENO: checking for working vfork" >&5
22240 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22241 if test "${ac_cv_func_vfork_works+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 if test "$cross_compiling" = yes; then
22245 ac_cv_func_vfork_works
=cross
22247 cat >conftest.
$ac_ext <<_ACEOF
22250 cat confdefs.h
>>conftest.
$ac_ext
22251 cat >>conftest.
$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 /* Thanks to Paul Eggert for this test. */
22255 #include <stdlib.h>
22256 #include <sys/types.h>
22257 #include <sys/stat.h>
22258 #include <sys/wait.h>
22260 # include <unistd.h>
22263 # include <vfork.h>
22265 /* On some sparc systems, changes by the child to local and incoming
22266 argument registers are propagated back to the parent. The compiler
22267 is told about this with #include <vfork.h>, but some compilers
22268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22269 static variable whose address is put into a register that is
22270 clobbered by the vfork. */
22273 sparc_address_test (int arg)
22275 sparc_address_test (arg) int arg;
22278 static pid_t child;
22296 pid_t parent = getpid ();
22299 sparc_address_test (0);
22304 /* Here is another test for sparc vfork register problems. This
22305 test uses lots of local variables, at least as many local
22306 variables as main has allocated so far including compiler
22307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22309 reuse the register of parent for one of the local variables,
22310 since it will think that parent can't possibly be used any more
22311 in this routine. Assigning to the local variable will thus
22312 munge parent in the parent process. */
22314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22316 /* Convince the compiler that p..p7 are live; otherwise, it might
22317 use the same hardware register for all 8 local variables. */
22318 if (p != p1 || p != p2 || p != p3 || p != p4
22319 || p != p5 || p != p6 || p != p7)
22322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22323 from child file descriptors. If the child closes a descriptor
22324 before it execs or exits, this munges the parent's descriptor
22325 as well. Test for this by closing stdout in the child. */
22326 _exit(close(fileno(stdout)) != 0);
22331 while (wait(&status) != child)
22334 /* Was there some problem with vforking? */
22337 /* Did the child fail? (This shouldn't happen.) */
22340 /* Did the vfork/compiler bug occur? */
22341 || parent != getpid()
22343 /* Did the file descriptor bug occur? */
22344 || fstat(fileno(stdout), &st) != 0
22349 rm -f conftest
$ac_exeext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351 (eval $ac_link) 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; }; then
22360 ac_cv_func_vfork_works
=yes
22362 echo "$as_me: program exited with status $ac_status" >&5
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.
$ac_ext >&5
22366 ( exit $ac_status )
22367 ac_cv_func_vfork_works
=no
22369 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22372 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22373 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22376 if test "x$ac_cv_func_fork_works" = xcross
; then
22377 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22378 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22379 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22382 if test "x$ac_cv_func_vfork_works" = xyes
; then
22384 cat >>confdefs.h
<<\_ACEOF
22385 #define HAVE_WORKING_VFORK 1
22390 cat >>confdefs.h
<<\_ACEOF
22395 if test "x$ac_cv_func_fork_works" = xyes
; then
22397 cat >>confdefs.h
<<\_ACEOF
22398 #define HAVE_WORKING_FORK 1
22404 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22405 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22406 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 cat >conftest.
$ac_ext <<_ACEOF
22412 cat confdefs.h
>>conftest.
$ac_ext
22413 cat >>conftest.
$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 #include <langinfo.h>
22419 char* cs = nl_langinfo(CODESET);
22424 rm -f conftest.
$ac_objext conftest
$ac_exeext
22425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426 (eval $ac_link) 2>conftest.er1
22428 grep -v '^ *+' conftest.er1
>conftest.err
22430 cat conftest.err
>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
22433 { ac_try
='test -z "$ac_c_werror_flag"
22434 || test ! -s conftest.err'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try
='test -s conftest$ac_exeext'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 emacs_cv_langinfo_codeset
=yes
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.
$ac_ext >&5
22451 emacs_cv_langinfo_codeset
=no
22453 rm -f conftest.err conftest.
$ac_objext \
22454 conftest
$ac_exeext conftest.
$ac_ext
22457 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22458 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22459 if test $emacs_cv_langinfo_codeset = yes; then
22461 cat >>confdefs.h
<<\_ACEOF
22462 #define HAVE_LANGINFO_CODESET 1
22467 echo "$as_me:$LINENO: checking for size_t" >&5
22468 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22469 if test "${ac_cv_type_size_t+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 cat >conftest.
$ac_ext <<_ACEOF
22475 cat confdefs.h
>>conftest.
$ac_ext
22476 cat >>conftest.
$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 $ac_includes_default
22484 if (sizeof (size_t))
22490 rm -f conftest.
$ac_objext
22491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22492 (eval $ac_compile) 2>conftest.er1
22494 grep -v '^ *+' conftest.er1
>conftest.err
22496 cat conftest.err
>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
22499 { ac_try
='test -z "$ac_c_werror_flag"
22500 || test ! -s conftest.err'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try
='test -s conftest.$ac_objext'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 ac_cv_type_size_t
=yes
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.
$ac_ext >&5
22517 ac_cv_type_size_t
=no
22519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22521 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22522 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22523 if test $ac_cv_type_size_t = yes; then
22525 cat >>confdefs.h
<<_ACEOF
22526 #define HAVE_SIZE_T 1
22533 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22534 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22535 if test "${ac_cv_type_mbstate_t+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 cat >conftest.
$ac_ext <<_ACEOF
22541 cat confdefs.h
>>conftest.
$ac_ext
22542 cat >>conftest.
$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22545 # include <wchar.h>
22549 mbstate_t x; return sizeof x;
22554 rm -f conftest.
$ac_objext
22555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556 (eval $ac_compile) 2>conftest.er1
22558 grep -v '^ *+' conftest.er1
>conftest.err
22560 cat conftest.err
>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
22563 { ac_try
='test -z "$ac_c_werror_flag"
22564 || test ! -s conftest.err'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; } &&
22570 { ac_try
='test -s conftest.$ac_objext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_cv_type_mbstate_t
=yes
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.
$ac_ext >&5
22581 ac_cv_type_mbstate_t
=no
22583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22585 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22586 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22587 if test $ac_cv_type_mbstate_t = yes; then
22589 cat >>confdefs.h
<<\_ACEOF
22590 #define HAVE_MBSTATE_T 1
22595 cat >>confdefs.h
<<\_ACEOF
22596 #define mbstate_t int
22601 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22602 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22603 if test "${emacs_cv_c_restrict+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 cat >conftest.
$ac_ext <<_ACEOF
22609 cat confdefs.h
>>conftest.
$ac_ext
22610 cat >>conftest.
$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 void fred (int *restrict x);
22621 rm -f conftest.
$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22625 grep -v '^ *+' conftest.er1
>conftest.err
22627 cat conftest.err
>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try
='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try
='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 emacs_cv_c_restrict
=yes
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.
$ac_ext >&5
22648 cat >conftest.
$ac_ext <<_ACEOF
22651 cat confdefs.h
>>conftest.
$ac_ext
22652 cat >>conftest.
$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 void fred (int *__restrict x);
22663 rm -f conftest.
$ac_objext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22665 (eval $ac_compile) 2>conftest.er1
22667 grep -v '^ *+' conftest.er1
>conftest.err
22669 cat conftest.err
>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try
='test -z "$ac_c_werror_flag"
22673 || test ! -s conftest.err'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try
='test -s conftest.$ac_objext'
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 emacs_cv_c_restrict
=__restrict
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.
$ac_ext >&5
22690 emacs_cv_c_restrict
=no
22692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22696 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22697 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22698 case "$emacs_cv_c_restrict" in
22699 yes) emacs_restrict
=restrict
;;
22700 no
) emacs_restrict
="";;
22701 *) emacs_restrict
="$emacs_cv_c_restrict";;
22703 if test "$emacs_restrict" != __restrict
; then
22705 cat >>confdefs.h
<<_ACEOF
22706 #define __restrict $emacs_restrict
22711 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22712 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22713 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 cat >conftest.
$ac_ext <<_ACEOF
22719 cat confdefs.h
>>conftest.
$ac_ext
22720 cat >>conftest.
$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 void fred (int x[__restrict]);
22731 rm -f conftest.
$ac_objext
22732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22733 (eval $ac_compile) 2>conftest.er1
22735 grep -v '^ *+' conftest.er1
>conftest.err
22737 cat conftest.err
>&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } &&
22740 { ac_try
='test -z "$ac_c_werror_flag"
22741 || test ! -s conftest.err'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; } &&
22747 { ac_try
='test -s conftest.$ac_objext'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; }; then
22753 emacs_cv_c_restrict_arr
=yes
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.
$ac_ext >&5
22758 emacs_cv_c_restrict_arr
=no
22760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22762 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22763 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22764 if test "$emacs_cv_c_restrict_arr" = yes; then
22766 cat >>confdefs.h
<<\_ACEOF
22767 #define __restrict_arr __restrict
22774 # Set up the CFLAGS for real compilation, so we can substitute it.
22775 CFLAGS
="$REAL_CFLAGS"
22776 CPPFLAGS
="$REAL_CPPFLAGS"
22778 #### Find out which version of Emacs this is.
22779 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22780 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22781 if test x
"${version}" = x
; then
22782 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22783 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22784 { (exit 1); exit 1; }; }
22787 ### Specify what sort of things we'll be editing into Makefile and config.h.
22788 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22824 cat >>confdefs.h
<<_ACEOF
22825 #define EMACS_CONFIGURATION "${canonical}"
22829 cat >>confdefs.h
<<_ACEOF
22830 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22834 cat >>confdefs.h
<<_ACEOF
22835 #define config_machfile "${machfile}"
22839 cat >>confdefs.h
<<_ACEOF
22840 #define config_opsysfile "${opsysfile}"
22844 cat >>confdefs.h
<<_ACEOF
22845 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22849 cat >>confdefs.h
<<_ACEOF
22850 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22854 cat >>confdefs.h
<<_ACEOF
22855 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22859 cat >>confdefs.h
<<_ACEOF
22860 #define UNEXEC_SRC ${UNEXEC_SRC}
22864 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22866 cat >>confdefs.h
<<\_ACEOF
22867 #define HAVE_X_WINDOWS 1
22871 if test "${USE_X_TOOLKIT}" != "none" ; then
22873 cat >>confdefs.h
<<\_ACEOF
22874 #define USE_X_TOOLKIT 1
22878 if test "${HAVE_X11}" = "yes" ; then
22880 cat >>confdefs.h
<<\_ACEOF
22885 if test "${HAVE_XFREE386}" = "yes" ; then
22887 cat >>confdefs.h
<<\_ACEOF
22888 #define HAVE_XFREE386 1
22892 if test "${HAVE_MENUS}" = "yes" ; then
22894 cat >>confdefs.h
<<\_ACEOF
22895 #define HAVE_MENUS 1
22899 if test "${GNU_MALLOC}" = "yes" ; then
22901 cat >>confdefs.h
<<\_ACEOF
22902 #define GNU_MALLOC 1
22906 if test "${REL_ALLOC}" = "yes" ; then
22908 cat >>confdefs.h
<<\_ACEOF
22909 #define REL_ALLOC 1
22918 #### Report on what we decided to do.
22919 #### Report GTK as a toolkit, even if it doesn't use Xt.
22920 #### It makes printing result more understandable as using GTK sets
22921 #### toolkit_scroll_bars to yes by default.
22922 if test "${HAVE_GTK}" = "yes"; then
22927 Configured for \`${canonical}'.
22929 Where should the build process find the source code? ${srcdir}
22930 What operating system and machine description files should Emacs use?
22931 \`${opsysfile}' and \`${machfile}'
22932 What compiler should emacs be built with? ${CC} ${CFLAGS}
22933 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22934 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22935 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22936 What window system should Emacs use? ${window_system}
22937 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22939 if test -n "${x_includes}"; then
22940 echo " Where do we find X Windows header files? ${x_includes}"
22942 echo " Where do we find X Windows header files? Standard dirs"
22944 if test -n "${x_libraries}"; then
22945 echo " Where do we find X Windows libraries? ${x_libraries}"
22947 echo " Where do we find X Windows libraries? Standard dirs"
22950 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22951 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22952 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22953 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22954 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22955 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22956 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22959 if test $USE_XASSERTS = yes; then
22960 echo " Compiling with asserts turned on."
22961 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22967 # Remove any trailing slashes in these variables.
22968 test "${prefix}" != NONE
&&
22969 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22970 test "${exec_prefix}" != NONE
&&
22971 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22973 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22974 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22975 ## from Makefile.c can correctly provide the arg `-traditional' to the
22978 cat >conftest.
$ac_ext <<_ACEOF
22981 cat confdefs.h
>>conftest.
$ac_ext
22982 cat >>conftest.
$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987 $EGREP "yes..yes" >/dev
/null
2>&1; then
22988 CPP_NEED_TRADITIONAL
=no
22990 CPP_NEED_TRADITIONAL
=yes
22995 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"
22996 ac_config_commands
="$ac_config_commands default"
22997 cat >confcache
<<\_ACEOF
22998 # This file is a shell script that caches the results of configure
22999 # tests run on this system so they can be shared between configure
23000 # scripts and configure runs, see configure's option --config-cache.
23001 # It is not useful on other systems. If it contains results you don't
23002 # want to keep, you may remove or edit it.
23004 # config.status only pays attention to the cache file if you give it
23005 # the --recheck option to rerun configure.
23007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23009 # following values.
23013 # The following way of writing the cache mishandles newlines in values,
23014 # but we know of no workaround that is simple, portable, and efficient.
23015 # So, don't put newlines in cache variables' values.
23016 # Ultrix sh set writes to stderr and can't be redirected directly,
23017 # and sets the high bit in the cache file unless we assign to the vars.
23020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23022 # `set' does not quote correctly, so add quotes (double-quote
23023 # substitution turns \\\\ into \\, and sed turns \\ into \).
23026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23029 # `set' quotes correctly as required by POSIX, so do not add quotes.
23031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23040 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23042 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23043 if test -w $cache_file; then
23044 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23045 cat confcache
>$cache_file
23047 echo "not updating unwritable cache $cache_file"
23052 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23053 # Let make expand exec_prefix.
23054 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23056 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23057 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23058 # trailing colons and then remove the whole line if VPATH becomes empty
23059 # (actually we leave an empty line to preserve line numbers).
23060 if test "x$srcdir" = x.
; then
23061 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23062 s/:*\$(srcdir):*/:/;
23063 s/:*\${srcdir}:*/:/;
23065 s/^\([^=]*=[ ]*\):*/\1/;
23071 DEFS
=-DHAVE_CONFIG_H
23075 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23076 # 1. Remove the extension, and $U if already installed.
23077 ac_i
=`echo "$ac_i" |
23078 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23080 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23081 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23083 LIBOBJS
=$ac_libobjs
23085 LTLIBOBJS
=$ac_ltlibobjs
23089 : ${CONFIG_STATUS=./config.status}
23090 ac_clean_files_save
=$ac_clean_files
23091 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23092 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23093 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23094 cat >$CONFIG_STATUS <<_ACEOF
23096 # Generated by $as_me.
23097 # Run this file to recreate the current configuration.
23098 # Compiler output produced by configure, useful for debugging
23099 # configure, is in config.log if it exists.
23102 ac_cs_recheck=false
23104 SHELL=\${CONFIG_SHELL-$SHELL}
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23108 ## --------------------- ##
23109 ## M4sh Initialization. ##
23110 ## --------------------- ##
23112 # Be Bourne compatible
23113 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23116 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23117 # is contrary to our usage. Disable this feature.
23118 alias -g '${1+"$@"}'='"$@"'
23119 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23122 DUALCASE
=1; export DUALCASE
# for MKS sh
23124 # Support unset when possible.
23125 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23132 # Work around bugs in pre-3.0 UWIN ksh.
23133 $as_unset ENV MAIL MAILPATH
23140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23142 LC_TELEPHONE LC_TIME
23144 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23145 eval $as_var=C
; export $as_var
23151 # Required to use basename.
23152 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23158 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23159 as_basename
=basename
23165 # Name of the executable.
23166 as_me
=`$as_basename "$0" ||
23167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23168 X"$0" : 'X\(//\)$' \| \
23169 X"$0" : 'X\(/\)$' \| \
23170 . : '\(.\)' 2>/dev/null ||
23172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23173 /^X\/\(\/\/\)$/{ s//\1/; q; }
23174 /^X\/\(\/\).*/{ s//\1/; q; }
23178 # PATH needs CR, and LINENO needs CR and PATH.
23179 # Avoid depending upon Character Ranges.
23180 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23181 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23182 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23183 as_cr_digits
='0123456789'
23184 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23186 # The user is always right.
23187 if test "${PATH_SEPARATOR+set}" != set; then
23188 echo "#! /bin/sh" >conf$$.sh
23189 echo "exit 0" >>conf$$.sh
23191 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23200 as_lineno_1
=$LINENO
23201 as_lineno_2
=$LINENO
23202 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23203 test "x$as_lineno_1" != "x$as_lineno_2" &&
23204 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23205 # Find who we are. Look in the path if we contain no path at all
23208 *[\\/]* ) as_myself
=$0 ;;
23209 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23210 for as_dir
in $PATH
23213 test -z "$as_dir" && as_dir
=.
23214 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23219 # We did not find ourselves, most probably we were run as `sh COMMAND'
23220 # in which case we are not to be found in the path.
23221 if test "x$as_myself" = x
; then
23224 if test ! -f "$as_myself"; then
23225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23227 { (exit 1); exit 1; }; }
23229 case $CONFIG_SHELL in
23231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23232 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23235 test -z "$as_dir" && as_dir
=.
23236 for as_base
in sh bash ksh sh5
; do
23239 if ("$as_dir/$as_base" -c '
23240 as_lineno_1=$LINENO
23241 as_lineno_2=$LINENO
23242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23243 test "x$as_lineno_1" != "x$as_lineno_2" &&
23244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23245 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23246 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23247 CONFIG_SHELL
=$as_dir/$as_base
23248 export CONFIG_SHELL
23249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23258 # uniformly replaced by the line number. The first 'sed' inserts a
23259 # line-number line before each line; the second 'sed' does the real
23260 # work. The second script uses 'N' to pair each line-number line
23261 # with the numbered line, and appends trailing '-' during
23262 # substitution so that $LINENO is not a special case at line end.
23263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23265 sed '=' <$as_myself |
23270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23273 s,^['$as_cr_digits']*\n,,
23274 ' >$as_me.lineno
&&
23275 chmod +x
$as_me.lineno ||
23276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23278 { (exit 1); exit 1; }; }
23280 # Don't try to exec as it changes $[0], causing all sort of problems
23281 # (the dirname of $[0] is not the place where we might find the
23282 # original and so on. Autoconf is especially sensible to this).
23284 # Exit status is that of the last command.
23289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23290 *c
*,-n*) ECHO_N
= ECHO_C
='
23292 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23293 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23296 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23302 rm -f conf$$ conf$$.exe conf$$.
file
23304 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23305 # We could just check for DJGPP; but this test a) works b) is more generic
23306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23307 if test -f conf$$.exe
; then
23308 # Don't use ln at all; we don't have any links
23313 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23318 rm -f conf$$ conf$$.exe conf$$.
file
23320 if mkdir
-p .
2>/dev
/null
; then
23323 test -d .
/-p && rmdir .
/-p
23327 as_executable_p
="test -f"
23329 # Sed expression to map a string onto a valid CPP name.
23330 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23332 # Sed expression to map a string onto a valid variable name.
23333 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23337 # We need space, tab and new line, in precisely that order.
23347 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23348 # report actual input values of CONFIG_FILES etc. instead of their
23349 # values after options handling. Logging --version etc. is OK.
23353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23354 ## Running $as_me. ##
23359 This file was extended by $as_me, which was
23360 generated by GNU Autoconf 2.59. Invocation command line was
23362 CONFIG_FILES = $CONFIG_FILES
23363 CONFIG_HEADERS = $CONFIG_HEADERS
23364 CONFIG_LINKS = $CONFIG_LINKS
23365 CONFIG_COMMANDS = $CONFIG_COMMANDS
23369 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23373 # Files that config.status was made for.
23374 if test -n "$ac_config_files"; then
23375 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23378 if test -n "$ac_config_headers"; then
23379 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23382 if test -n "$ac_config_links"; then
23383 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23386 if test -n "$ac_config_commands"; then
23387 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23390 cat >>$CONFIG_STATUS <<\_ACEOF
23393 \`$as_me' instantiates files from templates according to the
23394 current configuration.
23396 Usage: $0 [OPTIONS] [FILE]...
23398 -h, --help print this help, then exit
23399 -V, --version print version number, then exit
23400 -q, --quiet do not print progress messages
23401 -d, --debug don't remove temporary files
23402 --recheck update $as_me by reconfiguring in the same conditions
23403 --file=FILE[:TEMPLATE]
23404 instantiate the configuration file FILE
23405 --header=FILE[:TEMPLATE]
23406 instantiate the configuration header FILE
23408 Configuration files:
23411 Configuration headers:
23414 Configuration commands:
23417 Report bugs to <bug-autoconf@gnu.org>."
23420 cat >>$CONFIG_STATUS <<_ACEOF
23423 configured by $0, generated by GNU Autoconf 2.59,
23424 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23426 Copyright (C) 2003 Free Software Foundation, Inc.
23427 This config.status script is free software; the Free Software Foundation
23428 gives unlimited permission to copy, distribute and modify it."
23433 cat >>$CONFIG_STATUS <<\_ACEOF
23434 # If no file are specified by the user, then we need to provide default
23435 # value. By we need to know if files were specified by the user.
23441 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23442 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23450 *) # This is not an option, so the user has probably given explicit
23453 ac_need_defaults
=false
;;
23457 # Handling of the options.
23459 cat >>$CONFIG_STATUS <<\_ACEOF
23460 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23462 --version |
--vers* |
-V )
23463 echo "$ac_cs_version"; exit 0 ;;
23465 # Conflict between --help and --header
23466 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23467 Try \`$0 --help' for more information." >&5
23468 echo "$as_me: error: ambiguous option: $1
23469 Try \`$0 --help' for more information." >&2;}
23470 { (exit 1); exit 1; }; };;
23471 --help |
--hel |
-h )
23472 echo "$ac_cs_usage"; exit 0 ;;
23473 --debug |
--d* |
-d )
23475 --file |
--fil |
--fi |
--f )
23477 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23478 ac_need_defaults
=false
;;
23479 --header |
--heade |
--head |
--hea )
23481 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23482 ac_need_defaults
=false
;;
23483 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23484 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23487 # This is an error.
23488 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23489 Try \`$0 --help' for more information." >&5
23490 echo "$as_me: error: unrecognized option: $1
23491 Try \`$0 --help' for more information." >&2;}
23492 { (exit 1); exit 1; }; } ;;
23494 *) ac_config_targets
="$ac_config_targets $1" ;;
23500 ac_configure_extra_args
=
23502 if $ac_cs_silent; then
23504 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23508 cat >>$CONFIG_STATUS <<_ACEOF
23509 if \$ac_cs_recheck; then
23510 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23511 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23516 cat >>$CONFIG_STATUS <<_ACEOF
23518 # INIT-COMMANDS section.
23521 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23527 cat >>$CONFIG_STATUS <<\_ACEOF
23528 for ac_config_target
in $ac_config_targets
23530 case "$ac_config_target" in
23531 # Handling of arguments.
23532 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23533 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23534 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23535 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23536 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23537 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23538 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23539 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23540 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23541 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23542 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23543 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23544 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23545 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23546 { (exit 1); exit 1; }; };;
23550 # If the user did not use the arguments to specify the items to instantiate,
23551 # then the envvar interface is used. Set only those that are not.
23552 # We use the long form for the default assignment because of an extremely
23553 # bizarre bug on SunOS 4.1.3.
23554 if $ac_need_defaults; then
23555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23557 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23560 # Have a temporary directory for convenience. Make it in the build tree
23561 # simply because there is no reason to put it here, and in addition,
23562 # creating and moving files from /tmp can sometimes cause problems.
23563 # Create a temporary directory, and hook for its removal unless debugging.
23566 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23567 trap '{ (exit 1); exit 1; }' 1 2 13 15
23570 # Create a (secure) tmp directory for tmp files.
23573 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23574 test -n "$tmp" && test -d "$tmp"
23577 tmp
=.
/confstat$$
-$RANDOM
23578 (umask 077 && mkdir
$tmp)
23581 echo "$me: cannot create a temporary directory in ." >&2
23582 { (exit 1); exit 1; }
23587 cat >>$CONFIG_STATUS <<_ACEOF
23590 # CONFIG_FILES section.
23593 # No need to generate the scripts if there are no CONFIG_FILES.
23594 # This happens for instance when ./config.status config.h
23595 if test -n "\$CONFIG_FILES"; then
23596 # Protect against being on the right side of a sed subst in config.status.
23597 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23598 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23599 s,@SHELL@,$SHELL,;t t
23600 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23601 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23602 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23603 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23604 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23605 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23606 s,@exec_prefix@,$exec_prefix,;t t
23607 s,@prefix@,$prefix,;t t
23608 s,@program_transform_name@,$program_transform_name,;t t
23609 s,@bindir@,$bindir,;t t
23610 s,@sbindir@,$sbindir,;t t
23611 s,@libexecdir@,$libexecdir,;t t
23612 s,@datadir@,$datadir,;t t
23613 s,@sysconfdir@,$sysconfdir,;t t
23614 s,@sharedstatedir@,$sharedstatedir,;t t
23615 s,@localstatedir@,$localstatedir,;t t
23616 s,@libdir@,$libdir,;t t
23617 s,@includedir@,$includedir,;t t
23618 s,@oldincludedir@,$oldincludedir,;t t
23619 s,@infodir@,$infodir,;t t
23620 s,@mandir@,$mandir,;t t
23621 s,@build_alias@,$build_alias,;t t
23622 s,@host_alias@,$host_alias,;t t
23623 s,@target_alias@,$target_alias,;t t
23624 s,@DEFS@,$DEFS,;t t
23625 s,@ECHO_C@,$ECHO_C,;t t
23626 s,@ECHO_N@,$ECHO_N,;t t
23627 s,@ECHO_T@,$ECHO_T,;t t
23628 s,@LIBS@,$LIBS,;t t
23629 s,@MAINT@,$MAINT,;t t
23630 s,@build@,$build,;t t
23631 s,@build_cpu@,$build_cpu,;t t
23632 s,@build_vendor@,$build_vendor,;t t
23633 s,@build_os@,$build_os,;t t
23634 s,@host@,$host,;t t
23635 s,@host_cpu@,$host_cpu,;t t
23636 s,@host_vendor@,$host_vendor,;t t
23637 s,@host_os@,$host_os,;t t
23639 s,@CFLAGS@,$CFLAGS,;t t
23640 s,@LDFLAGS@,$LDFLAGS,;t t
23641 s,@CPPFLAGS@,$CPPFLAGS,;t t
23642 s,@ac_ct_CC@,$ac_ct_CC,;t t
23643 s,@EXEEXT@,$EXEEXT,;t t
23644 s,@OBJEXT@,$OBJEXT,;t t
23646 s,@EGREP@,$EGREP,;t t
23647 s,@LN_S@,$LN_S,;t t
23648 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23649 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23650 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23651 s,@RANLIB@,$RANLIB,;t t
23652 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23653 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23654 s,@GZIP_PROG@,$GZIP_PROG,;t t
23655 s,@LIBSOUND@,$LIBSOUND,;t t
23656 s,@SET_MAKE@,$SET_MAKE,;t t
23657 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23658 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23659 s,@GTK_LIBS@,$GTK_LIBS,;t t
23660 s,@ALLOCA@,$ALLOCA,;t t
23661 s,@liblockfile@,$liblockfile,;t t
23662 s,@LIBOBJS@,$LIBOBJS,;t t
23663 s,@NEED_SETGID@,$NEED_SETGID,;t t
23664 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23665 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23666 s,@GETOPT_H@,$GETOPT_H,;t t
23667 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23668 s,@version@,$version,;t t
23669 s,@configuration@,$configuration,;t t
23670 s,@canonical@,$canonical,;t t
23671 s,@srcdir@,$srcdir,;t t
23672 s,@lispdir@,$lispdir,;t t
23673 s,@locallisppath@,$locallisppath,;t t
23674 s,@lisppath@,$lisppath,;t t
23675 s,@x_default_search_path@,$x_default_search_path,;t t
23676 s,@etcdir@,$etcdir,;t t
23677 s,@archlibdir@,$archlibdir,;t t
23678 s,@docdir@,$docdir,;t t
23679 s,@bitmapdir@,$bitmapdir,;t t
23680 s,@gamedir@,$gamedir,;t t
23681 s,@gameuser@,$gameuser,;t t
23682 s,@c_switch_system@,$c_switch_system,;t t
23683 s,@c_switch_machine@,$c_switch_machine,;t t
23684 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23685 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23686 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23687 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23688 s,@machfile@,$machfile,;t t
23689 s,@opsysfile@,$opsysfile,;t t
23690 s,@carbon_appdir@,$carbon_appdir,;t t
23691 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23696 cat >>$CONFIG_STATUS <<\_ACEOF
23697 # Split the substitutions into bite-sized pieces for seds with
23698 # small command number limits, like on Digital OSF/1 and HP-UX.
23699 ac_max_sed_lines
=48
23700 ac_sed_frag
=1 # Number of current file.
23701 ac_beg
=1 # First line for current file.
23702 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23705 while $ac_more_lines; do
23706 if test $ac_beg -gt 1; then
23707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23709 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23711 if test ! -s $tmp/subs.frag
; then
23712 ac_more_lines
=false
23714 # The purpose of the label and of the branching condition is to
23715 # speed up the sed processing (if there are no `@' at all, there
23716 # is no need to browse any of the substitutions).
23717 # These are the two extra sed commands mentioned above.
23719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23720 if test -z "$ac_sed_cmds"; then
23721 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23723 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23725 ac_sed_frag
=`expr $ac_sed_frag + 1`
23727 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23730 if test -z "$ac_sed_cmds"; then
23733 fi # test -n "$CONFIG_FILES"
23736 cat >>$CONFIG_STATUS <<\_ACEOF
23737 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23740 - |
*:- |
*:-:* ) # input from stdin
23742 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23743 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23744 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23745 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23746 * ) ac_file_in
=$ac_file.
in ;;
23749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23750 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23752 X"$ac_file" : 'X\(//\)[^/]' \| \
23753 X"$ac_file" : 'X\(//\)$' \| \
23754 X"$ac_file" : 'X\(/\)' \| \
23755 . : '\(.\)' 2>/dev/null ||
23757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23759 /^X\(\/\/\)$/{ s//\1/; q; }
23760 /^X\(\/\).*/{ s//\1/; q; }
23762 { if $as_mkdir_p; then
23767 while test ! -d "$as_dir"; do
23768 as_dirs
="$as_dir $as_dirs"
23769 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23771 X"$as_dir" : 'X\(//\)[^/]' \| \
23772 X"$as_dir" : 'X\(//\)$' \| \
23773 X"$as_dir" : 'X\(/\)' \| \
23774 . : '\(.\)' 2>/dev/null ||
23776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23778 /^X\(\/\/\)$/{ s//\1/; q; }
23779 /^X\(\/\).*/{ s//\1/; q; }
23782 test ! -n "$as_dirs" || mkdir
$as_dirs
23783 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23785 { (exit 1); exit 1; }; }; }
23789 if test "$ac_dir" != .
; then
23790 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23791 # A "../" for each directory in $ac_dir_suffix.
23792 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23794 ac_dir_suffix
= ac_top_builddir
=
23798 .
) # No --srcdir option. We are building in place.
23800 if test -z "$ac_top_builddir"; then
23803 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23805 [\\/]* | ?
:[\\/]* ) # Absolute path.
23806 ac_srcdir
=$srcdir$ac_dir_suffix;
23807 ac_top_srcdir
=$srcdir ;;
23808 *) # Relative path.
23809 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23810 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23813 # Do not use `cd foo && pwd` to compute absolute paths, because
23814 # the directories may not exist.
23816 .
) ac_abs_builddir
="$ac_dir";;
23819 .
) ac_abs_builddir
=`pwd`;;
23820 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23821 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23824 case $ac_abs_builddir in
23825 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23827 case ${ac_top_builddir}.
in
23828 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23829 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23830 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23833 case $ac_abs_builddir in
23834 .
) ac_abs_srcdir
=$ac_srcdir;;
23837 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23838 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23839 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23842 case $ac_abs_builddir in
23843 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23845 case $ac_top_srcdir in
23846 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23847 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23848 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23854 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23855 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23858 if test x
"$ac_file" != x-
; then
23859 { echo "$as_me:$LINENO: creating $ac_file" >&5
23860 echo "$as_me: creating $ac_file" >&6;}
23863 # Let's still pretend it is `configure' which instantiates (i.e., don't
23864 # use $as_me), people would be surprised to read:
23865 # /* config.h. Generated by config.status. */
23866 if test x
"$ac_file" = x-
; then
23869 configure_input
="$ac_file. "
23871 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23872 sed 's,.*/,,'` by configure."
23874 # First look for the input files in the build tree, otherwise in the
23876 ac_file_inputs
=`IFS=:
23877 for f in $ac_file_in; do
23879 -) echo $tmp/stdin ;;
23881 # Absolute (can't be DOS-style, as IFS=:)
23882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23883 echo "$as_me: error: cannot find input file: $f" >&2;}
23884 { (exit 1); exit 1; }; }
23887 if test -f "$f"; then
23890 elif test -f "$srcdir/$f"; then
23895 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23896 echo "$as_me: error: cannot find input file: $f" >&2;}
23897 { (exit 1); exit 1; }; }
23900 done` ||
{ (exit 1); exit 1; }
23902 cat >>$CONFIG_STATUS <<_ACEOF
23906 cat >>$CONFIG_STATUS <<\_ACEOF
23908 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23909 s
,@configure_input@
,$configure_input,;t t
23910 s
,@srcdir@
,$ac_srcdir,;t t
23911 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23912 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23913 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23914 s
,@builddir@
,$ac_builddir,;t t
23915 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23916 s
,@top_builddir@
,$ac_top_builddir,;t t
23917 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23918 s
,@INSTALL@
,$ac_INSTALL,;t t
23919 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23921 if test x"$ac_file" != x-; then
23922 mv $tmp/out $ac_file
23930 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # CONFIG_HEADER section.
23936 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23937 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23939 # ac_d sets the value in "#define NAME VALUE" lines.
23940 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23941 ac_dB
='[ ].*$,\1#\2'
23944 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23945 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23946 ac_uB
='$,\1#\2define\3'
23950 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23953 - |
*:- |
*:-:* ) # input from stdin
23955 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23956 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23957 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23958 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23959 * ) ac_file_in
=$ac_file.
in ;;
23962 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23963 echo "$as_me: creating $ac_file" >&6;}
23965 # First look for the input files in the build tree, otherwise in the
23967 ac_file_inputs
=`IFS=:
23968 for f in $ac_file_in; do
23970 -) echo $tmp/stdin ;;
23972 # Absolute (can't be DOS-style, as IFS=:)
23973 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23974 echo "$as_me: error: cannot find input file: $f" >&2;}
23975 { (exit 1); exit 1; }; }
23976 # Do quote $f, to prevent DOS paths from being IFS'd.
23979 if test -f "$f"; then
23982 elif test -f "$srcdir/$f"; then
23987 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23988 echo "$as_me: error: cannot find input file: $f" >&2;}
23989 { (exit 1); exit 1; }; }
23992 done` ||
{ (exit 1); exit 1; }
23993 # Remove the trailing spaces.
23994 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23998 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23999 # `conftest.undefs', that substitutes the proper values into
24000 # config.h.in to produce config.h. The first handles `#define'
24001 # templates, and the second `#undef' templates.
24002 # And first: Protect against being on the right side of a sed subst in
24003 # config.status. Protect against being in an unquoted here document
24004 # in config.status.
24005 rm -f conftest.defines conftest.undefs
24006 # Using a here document instead of a string reduces the quoting nightmare.
24007 # Putting comments in sed scripts is not portable.
24009 # `end' is used to avoid that the second main sed command (meant for
24010 # 0-ary CPP macros) applies to n-ary macro definitions.
24011 # See the Autoconf documentation for `clear'.
24012 cat >confdef2sed.
sed <<\_ACEOF
24017 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24019 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24022 # If some macros were called several times there might be several times
24023 # the same #defines, which is useless. Nevertheless, we may not want to
24024 # sort them, since we want the *last* AC-DEFINE to be honored.
24025 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24026 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24027 rm -f confdef2sed.sed
24029 # This sed command replaces #undef with comments. This is necessary, for
24030 # example, in the case of _POSIX_SOURCE, which is predefined and required
24031 # on some systems where configure will not decide to define it.
24032 cat >>conftest.undefs <<\_ACEOF
24033 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24036 # Break up conftest.defines because some shells have a limit on the size
24037 # of here documents, and old seds have small limits too (100 cmds).
24038 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24039 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24040 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24041 echo ' :' >>$CONFIG_STATUS
24042 rm -f conftest.tail
24043 while grep . conftest.defines >/dev/null
24045 # Write a limited-size here document to $tmp/defines.sed.
24046 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24047 # Speed up: don't consider the non `#define' lines.
24048 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24049 # Work around the forget-to-reset-the-flag bug.
24050 echo 't clr' >>$CONFIG_STATUS
24051 echo ': clr' >>$CONFIG_STATUS
24052 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24054 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24056 mv $tmp/out $tmp/in
24058 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24059 rm -f conftest.defines
24060 mv conftest.
tail conftest.defines
24062 rm -f conftest.defines
24063 echo ' fi # grep' >>$CONFIG_STATUS
24064 echo >>$CONFIG_STATUS
24066 # Break up conftest.undefs because some shells have a limit on the size
24067 # of here documents, and old seds have small limits too (100 cmds).
24068 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24069 rm -f conftest.
tail
24070 while grep . conftest.undefs
>/dev
/null
24072 # Write a limited-size here document to $tmp/undefs.sed.
24073 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24074 # Speed up: don't consider the non
`#undef'
24075 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24076 # Work around the forget-to-reset-the-flag bug.
24077 echo 't clr' >>$CONFIG_STATUS
24078 echo ': clr' >>$CONFIG_STATUS
24079 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24081 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24083 mv $tmp/out $tmp/in
24085 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24086 rm -f conftest.undefs
24087 mv conftest.tail conftest.undefs
24089 rm -f conftest.undefs
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24092 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24093 # use $as_me), people would be surprised to read:
24094 # /* config.h. Generated by config.status. */
24095 if test x
"$ac_file" = x-
; then
24096 echo "/* Generated by configure. */" >$tmp/config.h
24098 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24100 cat $tmp/in >>$tmp/config.h
24102 if test x
"$ac_file" != x-
; then
24103 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24104 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24105 echo "$as_me: $ac_file is unchanged" >&6;}
24107 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24108 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24109 X"$ac_file" : 'X\(//\)[^/]' \| \
24110 X"$ac_file" : 'X\(//\)$' \| \
24111 X"$ac_file" : 'X\(/\)' \| \
24112 . : '\(.\)' 2>/dev/null ||
24114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24116 /^X\(\/\/\)$/{ s//\1/; q; }
24117 /^X\(\/\).*/{ s//\1/; q; }
24119 { if $as_mkdir_p; then
24124 while test ! -d "$as_dir"; do
24125 as_dirs
="$as_dir $as_dirs"
24126 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24128 X"$as_dir" : 'X\(//\)[^/]' \| \
24129 X"$as_dir" : 'X\(//\)$' \| \
24130 X"$as_dir" : 'X\(/\)' \| \
24131 . : '\(.\)' 2>/dev/null ||
24133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24135 /^X\(\/\/\)$/{ s//\1/; q; }
24136 /^X\(\/\).*/{ s//\1/; q; }
24139 test ! -n "$as_dirs" || mkdir
$as_dirs
24140 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24141 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24142 { (exit 1); exit 1; }; }; }
24145 mv $tmp/config.h
$ac_file
24149 rm -f $tmp/config.h
24153 cat >>$CONFIG_STATUS <<\_ACEOF
24156 # CONFIG_COMMANDS section.
24158 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24159 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24160 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24161 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24162 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24163 X"$ac_dest" : 'X\(//\)[^/]' \| \
24164 X"$ac_dest" : 'X\(//\)$' \| \
24165 X"$ac_dest" : 'X\(/\)' \| \
24166 . : '\(.\)' 2>/dev/null ||
24168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24170 /^X\(\/\/\)$/{ s//\1/; q; }
24171 /^X\(\/\).*/{ s//\1/; q; }
24173 { if $as_mkdir_p; then
24178 while test ! -d "$as_dir"; do
24179 as_dirs
="$as_dir $as_dirs"
24180 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$as_dir" : 'X\(//\)[^/]' \| \
24183 X"$as_dir" : 'X\(//\)$' \| \
24184 X"$as_dir" : 'X\(/\)' \| \
24185 . : '\(.\)' 2>/dev/null ||
24187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24189 /^X\(\/\/\)$/{ s//\1/; q; }
24190 /^X\(\/\).*/{ s//\1/; q; }
24193 test ! -n "$as_dirs" || mkdir
$as_dirs
24194 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24195 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24196 { (exit 1); exit 1; }; }; }
24200 if test "$ac_dir" != .
; then
24201 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24202 # A "../" for each directory in $ac_dir_suffix.
24203 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24205 ac_dir_suffix
= ac_top_builddir
=
24209 .
) # No --srcdir option. We are building in place.
24211 if test -z "$ac_top_builddir"; then
24214 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24216 [\\/]* | ?
:[\\/]* ) # Absolute path.
24217 ac_srcdir
=$srcdir$ac_dir_suffix;
24218 ac_top_srcdir
=$srcdir ;;
24219 *) # Relative path.
24220 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24221 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24224 # Do not use `cd foo && pwd` to compute absolute paths, because
24225 # the directories may not exist.
24227 .
) ac_abs_builddir
="$ac_dir";;
24230 .
) ac_abs_builddir
=`pwd`;;
24231 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24232 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24235 case $ac_abs_builddir in
24236 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24238 case ${ac_top_builddir}.
in
24239 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24240 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24241 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24244 case $ac_abs_builddir in
24245 .
) ac_abs_srcdir
=$ac_srcdir;;
24248 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24249 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24250 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24253 case $ac_abs_builddir in
24254 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24256 case $ac_top_srcdir in
24257 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24258 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24259 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24264 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24265 echo "$as_me: executing $ac_dest commands" >&6;}
24269 ### Make the necessary directories, if they don't exist.
24270 for dir
in etc lisp
; do
24271 test -d ${dir} || mkdir
${dir}
24274 # Build src/Makefile from ${srcdir}/src/Makefile.c
24275 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24276 # This must be done after src/config.h is built, since we rely on that file.
24278 # Now get this: Some word that is part of the ${srcdir} directory name
24279 # or the ${configuration} value might, just might, happen to be an
24280 # identifier like `sun4' or `i386' or something, and be predefined by
24281 # the C preprocessor to some helpful value like 1, or maybe the empty
24282 # string. Needless to say consequent macro substitutions are less
24283 # than conducive to the makefile finding the correct directory.
24284 undefs
="`echo $top_srcdir $configuration $canonical |
24285 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24286 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24289 echo creating src
/epaths.h
24290 ${MAKE-make} epaths-force
24292 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24293 # `..' to `. .' unless invoked with -traditional
24295 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24296 CPPFLAGS
="$CPPFLAGS -traditional"
24299 echo creating lib-src
/Makefile
24301 rm -f junk.c junk1.c junk2.c
24302 sed -e '/start of cpp stuff/q' \
24303 < Makefile.c
> junk1.c
24304 sed -e '1,/start of cpp stuff/d'\
24305 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24306 < Makefile.c
> junk.c
24307 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24308 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24309 cat junk1.c junk2.c
> Makefile.new
24310 rm -f junk.c junk1.c junk2.c
24311 chmod 444 Makefile.new
24312 mv -f Makefile.new Makefile
24315 echo creating src
/Makefile
24317 rm -f junk.c junk1.c junk2.c
24318 sed -e '/start of cpp stuff/q' \
24319 < Makefile.c
> junk1.c
24320 sed -e '1,/start of cpp stuff/d'\
24321 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24322 < Makefile.c
> junk.c
24323 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24324 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24325 cat junk1.c junk2.c
> Makefile.new
24326 rm -f junk.c junk1.c junk2.c
24327 chmod 444 Makefile.new
24328 mv -f Makefile.new Makefile
24331 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24332 echo creating src
/.gdbinit
24333 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24336 # This is how we know whether to re-run configure in certain cases.
24337 touch src
/config.stamp
24344 cat >>$CONFIG_STATUS <<\_ACEOF
24346 { (exit 0); exit 0; }
24348 chmod +x
$CONFIG_STATUS
24349 ac_clean_files
=$ac_clean_files_save
24352 # configure is writing to config.log, and then calls config.status.
24353 # config.status does its own redirection, appending to config.log.
24354 # Unfortunately, on DOS this fails, as config.log is still kept open
24355 # by configure, so config.status won't be able to write to it; its
24356 # output is simply discarded. So we exec the FD to /dev/null,
24357 # effectively closing config.log, so it can be properly (re)opened and
24358 # appended to by config.status. When coming back to configure, we
24359 # need to make the FD available again.
24360 if test "$no_create" != yes; then
24362 ac_config_status_args
=
24363 test "$silent" = yes &&
24364 ac_config_status_args
="$ac_config_status_args --quiet"
24366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24369 # would make configure fail if this is the last instruction.
24370 $ac_cs_success ||
{ (exit 1); exit 1; }