2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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
2098 hppa
*-*-linux-gnu* )
2099 machine
=hp800 opsys
=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2111 *) machine
=hp800 opsys
=hpux10
;;
2115 machine
=hp800 opsys
=nextstep
2120 machine
=orion opsys
=bsd4-2
2122 clipper-orion-bsd
* )
2123 machine
=orion105 opsys
=bsd4-2
2127 i
[3456]86-ibm-aix1.1
* )
2128 machine
=ibmps2-aix opsys
=usg5-2-2
2130 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2131 machine
=ibmps2-aix opsys
=usg5-3
2134 machine
=ibm370aix opsys
=usg5-3
2137 machine
=ibms390 opsys
=gnu-linux
2139 s390x-
*-linux-gnu* )
2140 machine
=ibms390x opsys
=gnu-linux
2142 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2143 machine
=ibmrs6000 opsys
=aix3-1
2145 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2146 machine
=ibmrs6000 opsys
=aix3-2-5
2148 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2149 machine
=ibmrs6000 opsys
=aix4-1
2151 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2152 machine
=ibmrs6000 opsys
=aix4-2
2154 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2155 machine
=ibmrs6000 opsys
=aix4-2
2157 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2158 machine
=ibmrs6000 opsys
=aix4
2160 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2161 machine
=ibmrs6000 opsys
=aix4-1
2163 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2164 machine
=ibmrs6000 opsys
=aix3-2
2167 machine
=ibmrt opsys
=bsd4-3
2170 machine
=ibmrt opsys
=bsd4-2
2173 machine
=ibmrt opsys
=bsd4-3
2176 machine
=ibmrt opsys
=bsd4-2
2179 machine
=ibmrt opsys
=bsd4-3
2182 machine
=ibmrt opsys
=bsd4-3
2185 machine
=ibmrt-aix opsys
=usg5-2-2
2188 ## Integrated Solutions `Optimum V'
2190 machine
=isi-ov opsys
=bsd4-2
2193 machine
=isi-ov opsys
=bsd4-3
2196 ## Intel 386 machines where we do care about the manufacturer
2197 i
[3456]86-intsys-sysv* )
2198 machine
=is386 opsys
=usg5-2-2
2202 i
[3456]86-prime-sysv* )
2203 machine
=i386 opsys
=usg5-3
2206 ## Sequent Symmetry running Dynix
2207 i
[3456]86-sequent-bsd* )
2208 machine
=symmetry opsys
=bsd4-3
2211 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2212 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2213 machine
=sequent-ptx opsys
=ptx4
2214 NON_GNU_CPP
=/lib
/cpp
2217 ## Sequent Symmetry running DYNIX/ptx
2218 ## Use the old cpp rather than the newer ANSI one.
2219 i
[3456]86-sequent-ptx* )
2220 machine
=sequent-ptx opsys
=ptx
2221 NON_GNU_CPP
="/lib/cpp"
2224 ## ncr machine running svr4.3.
2225 i
[3456]86-ncr-sysv4.3
)
2226 machine
=ncr386 opsys
=usg5-4-3
2229 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2230 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2231 i
[3456]86-ncr-sysv* )
2232 machine
=ncr386 opsys
=usg5-4-2
2235 ## Intel Paragon OSF/1
2237 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2242 machine
=i860 opsys
=usg5-4
2243 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2244 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2247 ## Macintosh PowerPC
2248 powerpc
*-*-linux-gnu* )
2249 machine
=macppc opsys
=gnu-linux
2252 ## Masscomp machines
2253 m68
*-masscomp-rtu* )
2254 machine
=masscomp opsys
=rtu
2257 ## Megatest machines
2258 m68
*-megatest-bsd* )
2259 machine
=mega68 opsys
=bsd4-2
2262 ## Workstations sold by MIPS
2263 ## This is not necessarily all workstations using the MIPS processor -
2264 ## Irises are produced by SGI, and DECstations by DEC.
2266 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2267 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2268 ## it gives for choosing between the alternatives seems to be "Use
2269 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2270 ## the BSD world." I'll assume that these are instructions for
2271 ## handling two odd situations, and that every other situation
2272 ## should use mips.h and usg5-2-2, they being listed first.
2275 ## Fall through to the general code at the bottom to decide on the OS.
2277 mips-mips-riscos4
* )
2278 machine
=mips4 opsys
=bsd4-3
2279 NON_GNU_CC
="cc -systype bsd43"
2280 NON_GNU_CPP
="cc -systype bsd43 -E"
2282 mips-mips-riscos5
* )
2283 machine
=mips4 opsys
=riscos5
2284 NON_GNU_CC
="cc -systype bsd43"
2285 NON_GNU_CPP
="cc -systype bsd43 -E"
2288 machine
=mips opsys
=bsd4-3
2291 machine
=mips opsys
=usg5-2-2
2295 m68
*-next-* | m68k-
*-nextstep* )
2296 machine
=m68k opsys
=nextstep
2299 ## The complete machine from National Semiconductor
2301 machine
=ns32000 opsys
=usg5-2
2305 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2306 machine
=tower32 opsys
=usg5-2-2
2308 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2309 machine
=tower32v3 opsys
=usg5-3
2314 machine
=ews4800 opsys
=ux4800
2317 ## Nixdorf Targon 31
2318 m68
*-nixdorf-sysv* )
2319 machine
=targon31 opsys
=usg5-2-2
2324 machine
=nu opsys
=usg5-2
2329 machine
=plexus opsys
=usg5-2
2333 ## I don't really have any idea what sort of processor the Pyramid has,
2334 ## so I'm assuming it is its own architecture.
2335 pyramid-pyramid-bsd
* )
2336 machine
=pyramid opsys
=bsd4-2
2340 ns32k-sequent-bsd4.2
* )
2341 machine
=sequent opsys
=bsd4-2
2343 ns32k-sequent-bsd4.3
* )
2344 machine
=sequent opsys
=bsd4-3
2348 mips-siemens-sysv
* | mips-sni-sysv
*)
2349 machine
=mips-siemens opsys
=usg5-4
2350 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2351 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2354 ## Silicon Graphics machines
2355 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2357 machine
=irist opsys
=iris3-5
2359 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2360 machine
=irist opsys
=iris3-6
2364 machine
=iris4d opsys
=irix3-3
2367 machine
=iris4d opsys
=irix4-0
2370 machine
=iris4d opsys
=irix6-5
2371 # Without defining _LANGUAGE_C, things get masked out in the headers
2372 # so that, for instance, grepping for `free' in stdlib.h fails and
2373 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2374 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2375 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2378 machine
=iris4d opsys
=irix6-0
2379 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2380 # but presumably it does no harm.
2381 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2382 # -32 probably isn't necessary in later v.6s -- anyone know which?
2383 NON_GCC_TEST_OPTIONS
=-32
2385 mips-sgi-irix5.
[01]* )
2386 machine
=iris4d opsys
=irix5-0
2388 mips-sgi-irix5
* | mips-sgi-irix
* )
2389 machine
=iris4d opsys
=irix5-2
2394 machine
=news opsys
=bsd4-2
2397 machine
=news opsys
=bsd4-3
2399 m68
*-sony-newsos3* | m68
*-sony-news3*)
2400 machine
=news opsys
=bsd4-3
2402 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2403 machine
=news-risc opsys
=bsd4-3
2405 mips-sony-newsos6
* )
2406 machine
=news-r6 opsys
=newsos6
2409 machine
=news-risc opsys
=newsos5
2414 machine
=stride opsys
=usg5-2
2418 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2419 machine
=sparc opsys
=gnu-linux
2422 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2423 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2424 | rs6000-
*-solaris2*)
2425 case "${canonical}" in
2426 m68
*-sunos1* ) machine
=sun1
;;
2427 m68
*-sunos2* ) machine
=sun2
;;
2428 m68
* ) machine
=sun3
;;
2429 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2430 i
[3456]86-*-* ) machine
=intel386
;;
2431 powerpcle
* ) machine
=powerpcle
;;
2432 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2433 sparc
* ) machine
=sparc
;;
2436 case "${canonical}" in
2437 ## The Sun386 didn't get past 4.0.
2438 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2439 *-sunos4.0
* ) opsys
=sunos4-0
;;
2440 *-sunos4.1.
[3-9]*noshare
)
2441 ## This name is sunos413 instead of sunos4-1-3
2442 ## to avoid a file name conflict on MSDOS.
2444 NON_GNU_CPP
=/usr
/lib
/cpp
2445 NON_GCC_TEST_OPTIONS
=-Bstatic
2446 GCC_TEST_OPTIONS
=-static
2448 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2450 NON_GNU_CPP
=/usr
/lib
/cpp
2452 *-sunos4* |
*-sunos )
2454 NON_GCC_TEST_OPTIONS
=-Bstatic
2455 GCC_TEST_OPTIONS
=-static
2457 *-sunos5.3
* |
*-solaris2.3
* )
2459 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 *-sunos5.4
* |
*-solaris2.4
* )
2463 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2466 *-sunos5.5
* |
*-solaris2.5
* )
2468 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2471 *-sunos5.6
* |
*-solaris2.6
* )
2473 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2476 *-sunos5* |
*-solaris* )
2478 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2482 ## Watch out for a compiler that we know will not work.
2483 case "${canonical}" in
2484 *-solaris* |
*-sunos5* )
2485 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2486 ## /usr/ucb/cc doesn't work;
2487 ## we should find some other compiler that does work.
2495 machine
=sparc opsys
=nextstep
2499 m68
*-tadpole-sysv* )
2500 machine
=tad68k opsys
=usg5-3
2504 tahoe-tahoe-bsd4.2
* )
2505 machine
=tahoe opsys
=bsd4-2
2507 tahoe-tahoe-bsd4.3
* )
2508 machine
=tahoe opsys
=bsd4-3
2511 ## Tandem Integrity S2
2513 machine
=tandem-s2 opsys
=usg5-3
2517 m88k-tektronix-sysv3
* )
2518 machine
=tekxd88 opsys
=usg5-3
2521 ## Tektronix 16000 box (6130?)
2522 ns16k-tektronix-bsd
* )
2523 machine
=ns16000 opsys
=bsd4-2
2526 ## src/m/tek4300.h hints that this is a m68k machine.
2527 m68
*-tektronix-bsd* )
2528 machine
=tek4300 opsys
=bsd4-3
2532 ## We seem to have lost the machine-description file titan.h!
2534 machine
=titan opsys
=usg5-3
2537 ## Ustation E30 (SS5E)
2538 m68
*-unisys-uniplus* )
2539 machine
=ustation opsystem
=unipl5-2
2545 case "${canonical}" in
2546 *-bsd4.1
* ) opsys
=bsd4-1
;;
2547 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2548 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2549 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2550 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2551 *-vms* ) opsys
=vms
;;
2557 ns16k-whitechapel-
* )
2559 ## We don't know what sort of OS runs on these; we'll let the
2560 ## operating system guessing code below try.
2565 machine
=wicat opsys
=usg5-2
2570 machine
=ia64 opsys
=gnu-linux
2573 ## Intel 386 machines where we don't care about the manufacturer
2576 case "${canonical}" in
2577 *-cygwin ) opsys
=cygwin
;;
2578 *-darwin* ) opsys
=darwin
2579 CPP
="${CC-cc} -E -no-cpp-precomp"
2581 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2582 *-isc2.2
* ) opsys
=isc2-2
;;
2583 *-isc4.0
* ) opsys
=isc4-0
;;
2584 *-isc4.
* ) opsys
=isc4-1
2585 GCC_TEST_OPTIONS
=-posix
2586 NON_GCC_TEST_OPTIONS
=-Xp
2588 *-isc* ) opsys
=isc3-0
;;
2589 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2590 *-esix* ) opsys
=esix
;;
2591 *-xenix* ) opsys
=xenix
;;
2592 *-linux-gnu* ) opsys
=gnu-linux
;;
2593 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2594 *-sco3.2v5
* ) opsys
=sco5
2595 NON_GNU_CPP
=/lib
/cpp
2596 # Prevent -belf from being passed to $CPP.
2597 # /lib/cpp does not accept it.
2598 OVERRIDE_CPPFLAGS
=" "
2600 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2601 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-386bsd* ) opsys
=386bsd
;;
2604 *-nextstep* ) opsys
=nextstep
;;
2605 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2609 ## m68k Linux-based GNU system
2611 machine
=m68k opsys
=gnu-linux
2614 ## Mips Linux-based GNU system
2615 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2616 machine
=mips opsys
=gnu-linux
2620 sparc-fujitsu-sysv4
* )
2621 machine
=sparc opsys
=uxpds
2622 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2627 f301-fujitsu-uxpv4.1
)
2628 machine
=f301 opsys
=uxpv
2631 ## Darwin / Mac OS X
2632 powerpc-apple-darwin
* )
2633 machine
=powermac opsys
=darwin
2634 # Define CPP as follows to make autoconf work correctly.
2635 CPP
="${CC-cc} -E -no-cpp-precomp"
2636 # Use fink packages if available.
2637 if test -d /sw
/include
&& test -d /sw
/lib
; then
2638 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2639 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2640 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2644 ## AMD x86-64 Linux-based GNU system
2645 x86_64-
*-linux-gnu* )
2646 machine
=amdx86-64 opsys
=gnu-linux
2654 ### If the code above didn't choose an operating system, just choose
2655 ### an operating system based on the configuration name. You really
2656 ### only want to use this when you have no idea what the right
2657 ### operating system is; if you know what operating systems a machine
2658 ### runs, it's cleaner to make it explicit in the case statement
2660 if test x
"${opsys}" = x
; then
2661 case "${canonical}" in
2662 *-gnu* ) opsys
=gnu
;;
2663 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2664 *-bsd4.2
) opsys
=bsd4-2
;;
2665 *-bsd4.3
) opsys
=bsd4-3
;;
2666 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2667 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2668 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2669 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2670 *-sysv4.2uw
* ) opsys
=unixware
;;
2671 *-sysv5uw* ) opsys
=unixware
;;
2672 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2673 *-sysv4.1
* |
*-sysvr4.1
* )
2674 NON_GNU_CPP
=/usr
/lib
/cpp
2676 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2677 if [ x
$NON_GNU_CPP = x
]; then
2678 if [ -f /usr
/ccs
/lib
/cpp
]; then
2679 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2681 NON_GNU_CPP
=/lib
/cpp
2685 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2694 if test $unported = yes; then
2695 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2696 Check \`etc/MACHINES' for recognized configuration names." >&5
2697 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2699 { (exit 1); exit 1; }; }
2702 machfile
="m/${machine}.h"
2703 opsysfile
="s/${opsys}.h"
2706 #### Choose a compiler.
2707 test -n "$CC" && cc_specified
=yes
2709 # Save the value of CFLAGS that the user specified.
2710 SPECIFIED_CFLAGS
="$CFLAGS"
2713 "yes" ) CC
="gcc" GCC
=yes ;;
2714 "no" ) : ${CC=cc} ;;
2718 ac_cpp
='$CPP $CPPFLAGS'
2719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC
="$CC" # Let the user override the test.
2733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir
=.
2738 for ac_exec_ext
in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$CC"; then
2751 echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6
2754 echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2759 if test -z "$ac_cv_prog_CC"; then
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc
; ac_word
=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir
=.
2776 for ac_exec_ext
in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC
="gcc"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC
="$CC" # Let the user override the test.
2813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir
=.
2818 for ac_exec_ext
in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CC"; then
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2839 if test -z "$ac_cv_prog_CC"; then
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc
; ac_word
=$2
2843 echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir
=.
2856 for ac_exec_ext
in '' $ac_executable_extensions; do
2857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_CC
="cc"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6
2872 echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc
; ac_word
=$2
2885 echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC
="$CC" # Let the user override the test.
2894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir
=.
2899 for ac_exec_ext
in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected
=yes
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy
$ac_cv_prog_CC
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2921 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2927 if test -n "$CC"; then
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929 echo "${ECHO_T}$CC" >&6
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC
="$CC" # Let the user override the test.
2950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir
=.
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2975 test -n "$CC" && break
2978 if test -z "$CC"; then
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy
$ac_prog; ac_word
=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC
="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 test -n "$ac_ct_CC" && break
3026 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3032 # Provide some information about the compiler.
3033 echo "$as_me:$LINENO:" \
3034 "checking for C compiler version" >&5
3035 ac_compiler
=`set X $ac_compile; echo $2`
3036 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3037 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3042 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3047 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3052 cat >conftest.
$ac_ext <<_ACEOF
3055 cat confdefs.h
>>conftest.
$ac_ext
3056 cat >>conftest.
$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 ac_clean_files_save
=$ac_clean_files
3068 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3072 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3073 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3074 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3076 (eval $ac_link_default) 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 # Find the output, starting from the most likely. This scheme is
3081 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3084 # Be careful to initialize this variable, since it used to be cached.
3085 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3087 # b.out is created by i960 compilers.
3088 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3090 test -f "$ac_file" ||
continue
3092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3095 # This is the source file.
3098 # We found the default executable, but exeext='' is most
3102 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 # FIXME: I believe we export ac_cv_exeext for Libtool,
3104 # but it would be cool to find out if it's true. Does anybody
3105 # maintain Libtool? --akim.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.
$ac_ext >&5
3116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3117 See \`config.log' for more details." >&5
3118 echo "$as_me: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&2;}
3120 { (exit 77); exit 77; }; }
3123 ac_exeext
=$ac_cv_exeext
3124 echo "$as_me:$LINENO: result: $ac_file" >&5
3125 echo "${ECHO_T}$ac_file" >&6
3127 # Check the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3130 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3132 # If not cross compiling, check that we can run a simple program.
3133 if test "$cross_compiling" != yes; then
3134 if { ac_try
='./$ac_file'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 if test "$cross_compiling" = maybe
; then
3145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: cannot run C compiled programs.
3149 If you meant to cross compile, use \`--host'.
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3155 echo "$as_me:$LINENO: result: yes" >&5
3156 echo "${ECHO_T}yes" >&6
3158 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3159 ac_clean_files
=$ac_clean_files_save
3160 # Check the compiler produces executables we can run. If not, either
3161 # the compiler is broken, or we cross compile.
3162 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3164 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3165 echo "${ECHO_T}$cross_compiling" >&6
3167 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170 (eval $ac_link) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 for ac_file
in conftest.exe conftest conftest.
*; do
3179 test -f "$ac_file" ||
continue
3181 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3182 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3196 rm -f conftest
$ac_cv_exeext
3197 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3198 echo "${ECHO_T}$ac_cv_exeext" >&6
3200 rm -f conftest.
$ac_ext
3201 EXEEXT
=$ac_cv_exeext
3203 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3205 if test "${ac_cv_objext+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 cat >conftest.
$ac_ext <<_ACEOF
3211 cat confdefs.h
>>conftest.
$ac_ext
3212 cat >>conftest.
$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.o conftest.obj
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; then
3229 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3231 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3232 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.
$ac_ext >&5
3240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." >&2;}
3244 { (exit 1); exit 1; }; }
3247 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3249 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3250 echo "${ECHO_T}$ac_cv_objext" >&6
3251 OBJEXT
=$ac_cv_objext
3253 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3254 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3255 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 cat >conftest.
$ac_ext <<_ACEOF
3261 cat confdefs.h
>>conftest.
$ac_ext
3262 cat >>conftest.
$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3276 rm -f conftest.
$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>conftest.er1
3280 grep -v '^ *+' conftest.er1
>conftest.err
3282 cat conftest.err
>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; } &&
3291 { ac_try
='test -s conftest.$ac_objext'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.
$ac_ext >&5
3304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3305 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3308 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3309 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3310 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3311 ac_test_CFLAGS
=${CFLAGS+set}
3312 ac_save_CFLAGS
=$CFLAGS
3314 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3315 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3316 if test "${ac_cv_prog_cc_g+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 cat >conftest.
$ac_ext <<_ACEOF
3322 cat confdefs.h
>>conftest.
$ac_ext
3323 cat >>conftest.
$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.
$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3338 grep -v '^ *+' conftest.er1
>conftest.err
3340 cat conftest.err
>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try
='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.
$ac_ext >&5
3362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS
=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3375 if test "$GCC" = yes; then
3381 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3382 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3383 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_cv_prog_cc_stdc
=no
3388 cat >conftest.
$ac_ext <<_ACEOF
3391 cat confdefs.h
>>conftest.
$ac_ext
3392 cat >>conftest.
$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3396 #include <sys/types.h>
3397 #include <sys/stat.h>
3398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3407 static char *f (char * (*g) (char **, int), char **p, ...)
3412 s = g (p, va_arg (v,int));
3417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
3420 as 'x'. The following induces an error, until -std1 is added to get
3421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
3423 that's true only with -std1. */
3424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 # Don't try gcc -ansi; that turns off useful extensions and
3441 # breaks some systems' header files.
3442 # AIX -qlanglvl=ansi
3443 # Ultrix and OSF/1 -std1
3444 # HP-UX 10.20 and later -Ae
3445 # HP-UX older versions -Aa -D_HPUX_SOURCE
3446 # SVR4 -Xc -D__EXTENSIONS__
3447 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3449 CC
="$ac_save_CC $ac_arg"
3450 rm -f conftest.
$ac_objext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452 (eval $ac_compile) 2>conftest.er1
3454 grep -v '^ *+' conftest.er1
>conftest.err
3456 cat conftest.err
>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try
='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_prog_cc_stdc
=$ac_arg
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.
$ac_ext >&5
3478 rm -f conftest.err conftest.
$ac_objext
3480 rm -f conftest.
$ac_ext conftest.
$ac_objext
3485 case "x$ac_cv_prog_cc_stdc" in
3487 echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6 ;;
3490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3491 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3492 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3495 # Some people use a C++ compiler to compile C. Since we use `exit',
3496 # in C++ we need to declare it. In case someone uses the same compiler
3497 # for both compiling C and C++ we need to have the C++ compiler decide
3498 # the declaration of exit, since it's the most demanding environment.
3499 cat >conftest.
$ac_ext <<_ACEOF
3504 rm -f conftest.
$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1
>conftest.err
3510 cat conftest.err
>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try
='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 for ac_declaration
in \
3527 'extern "C" void std::exit (int) throw (); using std::exit;' \
3528 'extern "C" void std::exit (int); using std::exit;' \
3529 'extern "C" void exit (int) throw ();' \
3530 'extern "C" void exit (int);' \
3533 cat >conftest.
$ac_ext <<_ACEOF
3536 cat confdefs.h
>>conftest.
$ac_ext
3537 cat >>conftest.
$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3549 rm -f conftest.
$ac_objext
3550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3553 grep -v '^ *+' conftest.er1
>conftest.err
3555 cat conftest.err
>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try
='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.
$ac_ext >&5
3577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3578 cat >conftest.
$ac_ext <<_ACEOF
3581 cat confdefs.h
>>conftest.
$ac_ext
3582 cat >>conftest.
$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3593 rm -f conftest.
$ac_objext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>conftest.er1
3597 grep -v '^ *+' conftest.er1
>conftest.err
3599 cat conftest.err
>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try
='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3623 if test -n "$ac_declaration"; then
3624 echo '#ifdef __cplusplus' >>confdefs.h
3625 echo $ac_declaration >>confdefs.h
3626 echo '#endif' >>confdefs.h
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.
$ac_ext >&5
3634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3636 ac_cpp
='$CPP $CPPFLAGS'
3637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3647 #### Some systems specify a CPP to use unless we are using GCC.
3648 #### Now that we know whether we are using GCC, we can decide whether
3649 #### to use that one.
3650 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3655 #### Some systems specify a CC to use unless we are using GCC.
3656 #### Now that we know whether we are using GCC, we can decide whether
3657 #### to use that one.
3658 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3659 test x
$cc_specified != xyes
3664 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3666 CC
="$CC $GCC_TEST_OPTIONS"
3669 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3671 CC
="$CC $NON_GCC_TEST_OPTIONS"
3676 ac_cpp
='$CPP $CPPFLAGS'
3677 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3682 # On Suns, sometimes $CPP names a directory.
3683 if test -n "$CPP" && test -d "$CPP"; then
3686 if test -z "$CPP"; then
3687 if test "${ac_cv_prog_CPP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 # Double quotes because CPP needs to be expanded
3691 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3694 for ac_c_preproc_warn_flag
in '' yes
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.
$ac_ext <<_ACEOF
3705 cat confdefs.h
>>conftest.
$ac_ext
3706 cat >>conftest.
$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3709 # include <limits.h>
3711 # include <assert.h>
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1
>conftest.err
3720 cat conftest.err
>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev
/null
; then
3723 if test -s conftest.err
; then
3724 ac_cpp_err
=$ac_c_preproc_warn_flag
3725 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3732 if test -z "$ac_cpp_err"; then
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.
$ac_ext >&5
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.
$ac_ext
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.
$ac_ext <<_ACEOF
3748 cat confdefs.h
>>conftest.
$ac_ext
3749 cat >>conftest.
$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3756 grep -v '^ *+' conftest.er1
>conftest.err
3758 cat conftest.err
>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev
/null
; then
3761 if test -s conftest.err
; then
3762 ac_cpp_err
=$ac_c_preproc_warn_flag
3763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.
$ac_ext >&5
3777 # Passes both tests.
3781 rm -f conftest.err conftest.
$ac_ext
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.
$ac_ext
3786 if $ac_preproc_ok; then
3798 echo "$as_me:$LINENO: result: $CPP" >&5
3799 echo "${ECHO_T}$CPP" >&6
3801 for ac_c_preproc_warn_flag
in '' yes
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.
$ac_ext <<_ACEOF
3812 cat confdefs.h
>>conftest.
$ac_ext
3813 cat >>conftest.
$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3816 # include <limits.h>
3818 # include <assert.h>
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1
>conftest.err
3827 cat conftest.err
>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev
/null
; then
3830 if test -s conftest.err
; then
3831 ac_cpp_err
=$ac_c_preproc_warn_flag
3832 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3839 if test -z "$ac_cpp_err"; then
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3845 # Broken: fails on valid input.
3848 rm -f conftest.err conftest.
$ac_ext
3850 # OK, works on sane cases. Now check whether non-existent headers
3851 # can be detected and how.
3852 cat >conftest.
$ac_ext <<_ACEOF
3855 cat confdefs.h
>>conftest.
$ac_ext
3856 cat >>conftest.
$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1
>conftest.err
3865 cat conftest.err
>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev
/null
; then
3868 if test -s conftest.err
; then
3869 ac_cpp_err
=$ac_c_preproc_warn_flag
3870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3877 if test -z "$ac_cpp_err"; then
3878 # Broken: success on invalid input.
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.
$ac_ext >&5
3884 # Passes both tests.
3888 rm -f conftest.err conftest.
$ac_ext
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.
$ac_ext
3893 if $ac_preproc_ok; then
3896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3897 See \`config.log' for more details." >&5
3898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&2;}
3900 { (exit 1); exit 1; }; }
3904 ac_cpp
='$CPP $CPPFLAGS'
3905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3910 echo "$as_me:$LINENO: checking for egrep" >&5
3911 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3912 if test "${ac_cv_prog_egrep+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3916 then ac_cv_prog_egrep
='grep -E'
3917 else ac_cv_prog_egrep
='egrep'
3920 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3921 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3922 EGREP
=$ac_cv_prog_egrep
3926 echo "$as_me:$LINENO: checking for AIX" >&5
3927 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "yes" >/dev
/null
2>&1; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942 echo "${ECHO_T}yes" >&6
3943 cat >>confdefs.h
<<\_ACEOF
3944 #define _ALL_SOURCE 1
3948 echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3955 cat >>confdefs.h
<<\_ACEOF
3956 #define _GNU_SOURCE 1
3961 ### Use -Wno-pointer-sign if the compiler supports it
3962 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3963 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3964 SAVE_CFLAGS
="$CFLAGS"
3965 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3966 cat >conftest.
$ac_ext <<_ACEOF
3969 cat confdefs.h
>>conftest.
$ac_ext
3970 cat >>conftest.
$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3981 rm -f conftest.
$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3985 grep -v '^ *+' conftest.er1
>conftest.err
3987 cat conftest.err
>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try
='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.
$ac_ext >&5
4009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4010 if test $has_option = yes; then
4011 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4013 echo "$as_me:$LINENO: result: $has_option" >&5
4014 echo "${ECHO_T}$has_option" >&6
4015 CFLAGS
="$SAVE_CFLAGS"
4019 #### Some other nice autoconf tests.
4021 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4022 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4024 if test "$LN_S" = "ln -s"; then
4025 echo "$as_me:$LINENO: result: yes" >&5
4026 echo "${ECHO_T}yes" >&6
4028 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4029 echo "${ECHO_T}no, using $LN_S" >&6
4033 ac_cpp
='$CPP $CPPFLAGS'
4034 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4039 # On Suns, sometimes $CPP names a directory.
4040 if test -n "$CPP" && test -d "$CPP"; then
4043 if test -z "$CPP"; then
4044 if test "${ac_cv_prog_CPP+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 # Double quotes because CPP needs to be expanded
4048 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051 for ac_c_preproc_warn_flag
in '' yes
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat >conftest.
$ac_ext <<_ACEOF
4062 cat confdefs.h
>>conftest.
$ac_ext
4063 cat >>conftest.
$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4066 # include <limits.h>
4068 # include <assert.h>
4072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4075 grep -v '^ *+' conftest.er1
>conftest.err
4077 cat conftest.err
>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } >/dev
/null
; then
4080 if test -s conftest.err
; then
4081 ac_cpp_err
=$ac_c_preproc_warn_flag
4082 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4089 if test -z "$ac_cpp_err"; then
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.
$ac_ext >&5
4095 # Broken: fails on valid input.
4098 rm -f conftest.err conftest.
$ac_ext
4100 # OK, works on sane cases. Now check whether non-existent headers
4101 # can be detected and how.
4102 cat >conftest.
$ac_ext <<_ACEOF
4105 cat confdefs.h
>>conftest.
$ac_ext
4106 cat >>conftest.
$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <ac_nonexistent.h>
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4113 grep -v '^ *+' conftest.er1
>conftest.err
4115 cat conftest.err
>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev
/null
; then
4118 if test -s conftest.err
; then
4119 ac_cpp_err
=$ac_c_preproc_warn_flag
4120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4127 if test -z "$ac_cpp_err"; then
4128 # Broken: success on invalid input.
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.
$ac_ext >&5
4134 # Passes both tests.
4138 rm -f conftest.err conftest.
$ac_ext
4141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4142 rm -f conftest.err conftest.
$ac_ext
4143 if $ac_preproc_ok; then
4155 echo "$as_me:$LINENO: result: $CPP" >&5
4156 echo "${ECHO_T}$CPP" >&6
4158 for ac_c_preproc_warn_flag
in '' yes
4160 # Use a header file that comes with gcc, so configuring glibc
4161 # with a fresh cross-compiler works.
4162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 # <limits.h> exists even on freestanding compilers.
4164 # On the NeXT, cc -E runs the code through the compiler's parser,
4165 # not just through cpp. "Syntax error" is here to catch this case.
4166 cat >conftest.
$ac_ext <<_ACEOF
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 # include <limits.h>
4175 # include <assert.h>
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4182 grep -v '^ *+' conftest.er1
>conftest.err
4184 cat conftest.err
>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev
/null
; then
4187 if test -s conftest.err
; then
4188 ac_cpp_err
=$ac_c_preproc_warn_flag
4189 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4196 if test -z "$ac_cpp_err"; then
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.
$ac_ext >&5
4202 # Broken: fails on valid input.
4205 rm -f conftest.err conftest.
$ac_ext
4207 # OK, works on sane cases. Now check whether non-existent headers
4208 # can be detected and how.
4209 cat >conftest.
$ac_ext <<_ACEOF
4212 cat confdefs.h
>>conftest.
$ac_ext
4213 cat >>conftest.
$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4218 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1
>conftest.err
4222 cat conftest.err
>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev
/null
; then
4225 if test -s conftest.err
; then
4226 ac_cpp_err
=$ac_c_preproc_warn_flag
4227 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4234 if test -z "$ac_cpp_err"; then
4235 # Broken: success on invalid input.
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.
$ac_ext >&5
4241 # Passes both tests.
4245 rm -f conftest.err conftest.
$ac_ext
4248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4249 rm -f conftest.err conftest.
$ac_ext
4250 if $ac_preproc_ok; then
4253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4254 See \`config.log' for more details." >&5
4255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4256 See \`config.log' for more details." >&2;}
4257 { (exit 1); exit 1; }; }
4261 ac_cpp
='$CPP $CPPFLAGS'
4262 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4266 # Find a good install program. We prefer a C program (faster),
4267 # so one script is as good as another. But avoid the broken or
4268 # incompatible versions:
4269 # SysV /etc/install, /usr/sbin/install
4270 # SunOS /usr/etc/install
4271 # IRIX /sbin/install
4273 # AmigaOS /C/install, which installs bootblocks on floppy discs
4274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4277 # OS/2's system install, which has a completely different semantic
4278 # ./install, which can be erroneously created by make from ./install.sh.
4279 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4280 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4281 if test -z "$INSTALL"; then
4282 if test "${ac_cv_path_install+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir
=.
4290 # Account for people who put trailing slashes in PATH elements.
4292 .
/ | .
// |
/cC
/* | \
4293 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4294 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4297 # OSF1 and SCO ODT 3.0 have their own names for install.
4298 # Don't use installbsd from OSF since it installs stuff as root
4300 for ac_prog
in ginstall scoinst
install; do
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4303 if test $ac_prog = install &&
4304 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4305 # AIX install. It has an incompatible calling convention.
4307 elif test $ac_prog = install &&
4308 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4309 # program-specific install script used by HP pwplus--don't use.
4312 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4324 if test "${ac_cv_path_install+set}" = set; then
4325 INSTALL
=$ac_cv_path_install
4327 # As a last resort, use the slow shell script. We don't cache a
4328 # path for INSTALL within a source directory, because that will
4329 # break other packages using the cache if that directory is
4330 # removed, or if the path is relative.
4331 INSTALL
=$ac_install_sh
4334 echo "$as_me:$LINENO: result: $INSTALL" >&5
4335 echo "${ECHO_T}$INSTALL" >&6
4337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4338 # It thinks the first close brace ends the variable substitution.
4339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4343 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4345 if test "x$RANLIB" = x
; then
4346 if test -n "$ac_tool_prefix"; then
4347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4348 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_prog_RANLIB+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$RANLIB"; then
4355 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir
=.
4362 for ac_exec_ext
in '' $ac_executable_extensions; do
4363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 RANLIB
=$ac_cv_prog_RANLIB
4374 if test -n "$RANLIB"; then
4375 echo "$as_me:$LINENO: result: $RANLIB" >&5
4376 echo "${ECHO_T}$RANLIB" >&6
4378 echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4383 if test -z "$ac_cv_prog_RANLIB"; then
4384 ac_ct_RANLIB
=$RANLIB
4385 # Extract the first word of "ranlib", so it can be a program name with args.
4386 set dummy ranlib
; ac_word
=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$ac_ct_RANLIB"; then
4393 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir
=.
4400 for ac_exec_ext
in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4412 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4413 if test -n "$ac_ct_RANLIB"; then
4414 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4415 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4417 echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4421 RANLIB
=$ac_ct_RANLIB
4423 RANLIB
="$ac_cv_prog_RANLIB"
4427 # Extract the first word of "install-info", so it can be a program name with args.
4428 set dummy install-info
; ac_word
=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 case $INSTALL_INFO in
4436 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir
=.
4444 for ac_exec_ext
in '' $ac_executable_extensions; do
4445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4458 if test -n "$INSTALL_INFO"; then
4459 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4460 echo "${ECHO_T}$INSTALL_INFO" >&6
4462 echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4466 # Extract the first word of "install-info", so it can be a program name with args.
4467 set dummy install-info
; ac_word
=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 case $INSTALL_INFO in
4475 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4479 for as_dir
in /usr
/sbin
4482 test -z "$as_dir" && as_dir
=.
4483 for ac_exec_ext
in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4497 if test -n "$INSTALL_INFO"; then
4498 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4499 echo "${ECHO_T}$INSTALL_INFO" >&6
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4505 # Extract the first word of "install-info", so it can be a program name with args.
4506 set dummy install-info
; ac_word
=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 case $INSTALL_INFO in
4514 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir
=.
4522 for ac_exec_ext
in '' $ac_executable_extensions; do
4523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4535 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4537 if test -n "$INSTALL_INFO"; then
4538 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4539 echo "${ECHO_T}$INSTALL_INFO" >&6
4541 echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4545 # Extract the first word of "gzip", so it can be a program name with args.
4546 set dummy
gzip; ac_word
=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4576 if test -n "$GZIP_PROG"; then
4577 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4578 echo "${ECHO_T}$GZIP_PROG" >&6
4580 echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6
4586 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4588 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4591 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4593 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4597 late_LDFLAGS
=$LDFLAGS
4598 if test "$GCC" = yes; then
4599 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4601 LDFLAGS
="$LDFLAGS -znocombreloc"
4604 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4605 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4606 cat >conftest.
$ac_ext <<_ACEOF
4609 rm -f conftest.
$ac_objext conftest
$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1
>conftest.err
4615 cat conftest.err
>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try
='test -s conftest$ac_exeext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 echo "$as_me:$LINENO: result: yes" >&5
4631 echo "${ECHO_T}yes" >&6
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.
$ac_ext >&5
4636 LDFLAGS
=$late_LDFLAGS
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4640 rm -f conftest.err conftest.
$ac_objext \
4641 conftest
$ac_exeext conftest.
$ac_ext
4643 #### Extract some information from the operating system and machine files.
4645 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4646 - which libraries the lib-src programs will want, and
4647 - whether the GNU malloc routines are usable..." >&5
4648 echo "$as_me: checking the machine- and system-dependent files to find out
4649 - which libraries the lib-src programs will want, and
4650 - whether the GNU malloc routines are usable..." >&6;}
4652 ### First figure out CFLAGS (which we use for running the compiler here)
4653 ### and REAL_CFLAGS (which we use for real compilation).
4654 ### The two are the same except on a few systems, where they are made
4655 ### different to work around various lossages. For example,
4656 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4657 ### as implying static linking.
4659 ### If the CFLAGS env var is specified, we use that value
4660 ### instead of the default.
4662 ### It's not important that this name contain the PID; you can't run
4663 ### two configures in the same directory and have anything work
4665 tempcname
="conftest.c"
4668 #include "'${srcdir}'/src/'${opsysfile}'"
4669 #include "'${srcdir}'/src/'${machfile}'"
4670 #ifndef LIBS_MACHINE
4671 #define LIBS_MACHINE
4676 #ifndef C_SWITCH_SYSTEM
4677 #define C_SWITCH_SYSTEM
4679 #ifndef C_SWITCH_MACHINE
4680 #define C_SWITCH_MACHINE
4682 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4683 configure___ c_switch_system=C_SWITCH_SYSTEM
4684 configure___ c_switch_machine=C_SWITCH_MACHINE
4687 #define LIB_X11_LIB -lX11
4690 #ifndef LIBX11_MACHINE
4691 #define LIBX11_MACHINE
4694 #ifndef LIBX11_SYSTEM
4695 #define LIBX11_SYSTEM
4697 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4700 configure___ unexec=UNEXEC
4702 configure___ unexec=unexec.o
4705 #ifdef SYSTEM_MALLOC
4706 configure___ system_malloc=yes
4708 configure___ system_malloc=no
4711 #ifdef USE_MMAP_FOR_BUFFERS
4712 configure___ use_mmap_for_buffers=yes
4714 configure___ use_mmap_for_buffers=no
4717 #ifndef C_DEBUG_SWITCH
4718 #define C_DEBUG_SWITCH -g
4721 #ifndef C_OPTIMIZE_SWITCH
4723 #define C_OPTIMIZE_SWITCH -O2
4725 #define C_OPTIMIZE_SWITCH -O
4729 #ifndef C_WARNINGS_SWITCH
4730 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4733 #ifndef LD_SWITCH_MACHINE
4734 #define LD_SWITCH_MACHINE
4737 #ifndef LD_SWITCH_SYSTEM
4738 #define LD_SWITCH_SYSTEM
4741 #ifndef LD_SWITCH_X_SITE_AUX
4742 #define LD_SWITCH_X_SITE_AUX
4745 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4746 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4748 #ifdef THIS_IS_CONFIGURE
4750 /* Get the CFLAGS for tests in configure. */
4752 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4754 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4757 #else /* not THIS_IS_CONFIGURE */
4759 /* Get the CFLAGS for real compilation. */
4761 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4763 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4766 #endif /* not THIS_IS_CONFIGURE */
4769 # The value of CPP is a quoted variable reference, so we need to do this
4770 # to get its actual value...
4771 CPP
=`eval "echo $CPP"`
4772 eval `${CPP} -Isrc ${tempcname} \
4773 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4774 if test "x$SPECIFIED_CFLAGS" = x
; then
4775 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4776 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4778 REAL_CFLAGS
="$CFLAGS"
4782 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4784 ### Make sure subsequent tests use flags consistent with the build flags.
4786 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4787 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4789 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4794 # Check whether --enable-largefile or --disable-largefile was given.
4795 if test "${enable_largefile+set}" = set; then
4796 enableval
="$enable_largefile"
4799 if test "$enable_largefile" != no
; then
4801 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4802 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4803 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_sys_largefile_CC
=no
4807 if test "$GCC" != yes; then
4810 # IRIX 6.2 and later do not support large files by default,
4811 # so use the C compiler's -n32 option if that helps.
4812 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <sys/types.h>
4819 /* Check that off_t can represent 2**63 - 1 correctly.
4820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4821 since some C++ compilers masquerading as C compilers
4822 incorrectly reject 9223372036854775807. */
4823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4825 && LARGE_OFF_T % 2147483647 == 1)
4835 rm -f conftest.
$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4839 grep -v '^ *+' conftest.er1
>conftest.err
4841 cat conftest.err
>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try
='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.
$ac_ext >&5
4862 rm -f conftest.err conftest.
$ac_objext
4864 rm -f conftest.
$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; } &&
4879 { ac_try
='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_sys_largefile_CC
=' -n32'; break
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4891 rm -f conftest.err conftest.
$ac_objext
4895 rm -f conftest.
$ac_ext
4898 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4899 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4900 if test "$ac_cv_sys_largefile_CC" != no
; then
4901 CC
=$CC$ac_cv_sys_largefile_CC
4904 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4905 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4906 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 ac_cv_sys_file_offset_bits
=no
4911 cat >conftest.
$ac_ext <<_ACEOF
4914 cat confdefs.h
>>conftest.
$ac_ext
4915 cat >>conftest.
$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4934 rm -f conftest.
$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4938 grep -v '^ *+' conftest.er1
>conftest.err
4940 cat conftest.err
>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try
='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4962 cat >conftest.
$ac_ext <<_ACEOF
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #define _FILE_OFFSET_BITS 64
4969 #include <sys/types.h>
4970 /* Check that off_t can represent 2**63 - 1 correctly.
4971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4972 since some C++ compilers masquerading as C compilers
4973 incorrectly reject 9223372036854775807. */
4974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4976 && LARGE_OFF_T % 2147483647 == 1)
4986 rm -f conftest.
$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>conftest.er1
4990 grep -v '^ *+' conftest.er1
>conftest.err
4992 cat conftest.err
>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try
='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_sys_file_offset_bits
=64; break
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.
$ac_ext >&5
5013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5018 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5019 if test "$ac_cv_sys_file_offset_bits" != no
; then
5021 cat >>confdefs.h
<<_ACEOF
5022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5027 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5028 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5029 if test "${ac_cv_sys_large_files+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 ac_cv_sys_large_files
=no
5034 cat >conftest.
$ac_ext <<_ACEOF
5037 cat confdefs.h
>>conftest.
$ac_ext
5038 cat >>conftest.
$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <sys/types.h>
5041 /* Check that off_t can represent 2**63 - 1 correctly.
5042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5043 since some C++ compilers masquerading as C compilers
5044 incorrectly reject 9223372036854775807. */
5045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5047 && LARGE_OFF_T % 2147483647 == 1)
5057 rm -f conftest.
$ac_objext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1
>conftest.err
5063 cat conftest.err
>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try
='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.
$ac_ext >&5
5084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5085 cat >conftest.
$ac_ext <<_ACEOF
5088 cat confdefs.h
>>conftest.
$ac_ext
5089 cat >>conftest.
$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #define _LARGE_FILES 1
5092 #include <sys/types.h>
5093 /* Check that off_t can represent 2**63 - 1 correctly.
5094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5095 since some C++ compilers masquerading as C compilers
5096 incorrectly reject 9223372036854775807. */
5097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5099 && LARGE_OFF_T % 2147483647 == 1)
5109 rm -f conftest.
$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1
>conftest.err
5115 cat conftest.err
>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try
='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_sys_large_files
=1; break
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5140 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5141 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5142 if test "$ac_cv_sys_large_files" != no
; then
5144 cat >>confdefs.h
<<_ACEOF
5145 #define _LARGE_FILES $ac_cv_sys_large_files
5153 if test "${with_sound}" != "no"; then
5154 # Sound support for GNU/Linux and the free BSDs.
5155 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5157 if test "${ac_cv_header_stdc+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 cat >conftest.
$ac_ext <<_ACEOF
5163 cat confdefs.h
>>conftest.
$ac_ext
5164 cat >>conftest.
$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; } &&
5194 { ac_try
='test -s conftest.$ac_objext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_cv_header_stdc
=yes
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.
$ac_ext >&5
5205 ac_cv_header_stdc
=no
5207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5209 if test $ac_cv_header_stdc = yes; then
5210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5211 cat >conftest.
$ac_ext <<_ACEOF
5214 cat confdefs.h
>>conftest.
$ac_ext
5215 cat >>conftest.
$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5221 $EGREP "memchr" >/dev
/null
2>&1; then
5224 ac_cv_header_stdc
=no
5230 if test $ac_cv_header_stdc = yes; then
5231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5232 cat >conftest.
$ac_ext <<_ACEOF
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 $EGREP "free" >/dev
/null
2>&1; then
5245 ac_cv_header_stdc
=no
5251 if test $ac_cv_header_stdc = yes; then
5252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5253 if test "$cross_compiling" = yes; then
5256 cat >conftest.
$ac_ext <<_ACEOF
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5263 #if ((' ' & 0x0FF) == 0x020)
5264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5267 # define ISLOWER(c) \
5268 (('a' <= (c) && (c) <= 'i') \
5269 || ('j' <= (c) && (c) <= 'r') \
5270 || ('s' <= (c) && (c) <= 'z'))
5271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5279 for (i = 0; i < 256; i++)
5280 if (XOR (islower (i), ISLOWER (i))
5281 || toupper (i) != TOUPPER (i))
5286 rm -f conftest
$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5299 echo "$as_me: program exited with status $ac_status" >&5
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.
$ac_ext >&5
5304 ac_cv_header_stdc
=no
5306 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5310 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5311 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5312 if test $ac_cv_header_stdc = yes; then
5314 cat >>confdefs.h
<<\_ACEOF
5315 #define STDC_HEADERS 1
5320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5330 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5331 inttypes.h stdint.h unistd.h
5333 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5334 echo "$as_me:$LINENO: checking for $ac_header" >&5
5335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.
$ac_ext <<_ACEOF
5342 cat confdefs.h
>>conftest.
$ac_ext
5343 cat >>conftest.
$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5347 #include <$ac_header>
5349 rm -f conftest.
$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5353 grep -v '^ *+' conftest.er1
>conftest.err
5355 cat conftest.err
>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try
='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 eval "$as_ac_Header=yes"
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.
$ac_ext >&5
5375 eval "$as_ac_Header=no"
5377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382 cat >>confdefs.h
<<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5394 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5396 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398 echo "$as_me:$LINENO: checking for $ac_header" >&5
5399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 # Is the header compilable?
5407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5409 cat >conftest.
$ac_ext <<_ACEOF
5412 cat confdefs.h
>>conftest.
$ac_ext
5413 cat >>conftest.
$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 $ac_includes_default
5416 #include <$ac_header>
5418 rm -f conftest.
$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5422 grep -v '^ *+' conftest.er1
>conftest.err
5424 cat conftest.err
>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try
='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_header_compiler
=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.
$ac_ext >&5
5444 ac_header_compiler
=no
5446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448 echo "${ECHO_T}$ac_header_compiler" >&6
5450 # Is the header present?
5451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453 cat >conftest.
$ac_ext <<_ACEOF
5456 cat confdefs.h
>>conftest.
$ac_ext
5457 cat >>conftest.
$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <$ac_header>
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5464 grep -v '^ *+' conftest.er1
>conftest.err
5466 cat conftest.err
>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev
/null
; then
5469 if test -s conftest.err
; then
5470 ac_cpp_err
=$ac_c_preproc_warn_flag
5471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5478 if test -z "$ac_cpp_err"; then
5479 ac_header_preproc
=yes
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.
$ac_ext >&5
5484 ac_header_preproc
=no
5486 rm -f conftest.err conftest.
$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488 echo "${ECHO_T}$ac_header_preproc" >&6
5490 # So? What about this header?
5491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5497 ac_header_preproc
=yes
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5514 ## ------------------------------------------ ##
5515 ## Report this to the AC_PACKAGE_NAME lists. ##
5516 ## ------------------------------------------ ##
5519 sed "s/^/$as_me: WARNING: /" >&2
5522 echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 eval "$as_ac_Header=\$ac_header_preproc"
5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h
<<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5542 # Emulation library used on NetBSD.
5543 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5544 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5545 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_check_lib_save_LIBS
=$LIBS
5549 LIBS
="-lossaudio $LIBS"
5550 cat >conftest.
$ac_ext <<_ACEOF
5553 cat confdefs.h
>>conftest.
$ac_ext
5554 cat >>conftest.
$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5557 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5572 rm -f conftest.
$ac_objext conftest
$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>conftest.er1
5576 grep -v '^ *+' conftest.er1
>conftest.err
5578 cat conftest.err
>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try
='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_lib_ossaudio__oss_ioctl
=yes
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.
$ac_ext >&5
5598 ac_cv_lib_ossaudio__oss_ioctl
=no
5600 rm -f conftest.err conftest.
$ac_objext \
5601 conftest
$ac_exeext conftest.
$ac_ext
5602 LIBS
=$ac_check_lib_save_LIBS
5604 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5605 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5606 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5640 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5641 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5642 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5643 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5646 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5656 # Is the header compilable?
5657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659 cat >conftest.
$ac_ext <<_ACEOF
5662 cat confdefs.h
>>conftest.
$ac_ext
5663 cat >>conftest.
$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5666 #include <$ac_header>
5668 rm -f conftest.
$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1
>conftest.err
5674 cat conftest.err
>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try
='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_header_compiler
=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.
$ac_ext >&5
5694 ac_header_compiler
=no
5696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5698 echo "${ECHO_T}$ac_header_compiler" >&6
5700 # Is the header present?
5701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5703 cat >conftest.
$ac_ext <<_ACEOF
5706 cat confdefs.h
>>conftest.
$ac_ext
5707 cat >>conftest.
$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <$ac_header>
5711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5712 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5714 grep -v '^ *+' conftest.er1
>conftest.err
5716 cat conftest.err
>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev
/null
; then
5719 if test -s conftest.err
; then
5720 ac_cpp_err
=$ac_c_preproc_warn_flag
5721 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5728 if test -z "$ac_cpp_err"; then
5729 ac_header_preproc
=yes
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.
$ac_ext >&5
5734 ac_header_preproc
=no
5736 rm -f conftest.err conftest.
$ac_ext
5737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5738 echo "${ECHO_T}$ac_header_preproc" >&6
5740 # So? What about this header?
5741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5747 ac_header_preproc
=yes
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5764 ## ------------------------------------------ ##
5765 ## Report this to the AC_PACKAGE_NAME lists. ##
5766 ## ------------------------------------------ ##
5769 sed "s/^/$as_me: WARNING: /" >&2
5772 echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 eval "$as_ac_Header=\$ac_header_preproc"
5779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5784 cat >>confdefs.h
<<_ACEOF
5785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5794 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5795 cat >conftest.
$ac_ext <<_ACEOF
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <sys/personality.h>
5805 personality (PER_LINUX32)
5810 rm -f conftest.
$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1
>conftest.err
5816 cat conftest.err
>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try
='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 emacs_cv_personality_linux32
=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.
$ac_ext >&5
5836 emacs_cv_personality_linux32
=no
5838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5840 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5842 if test $emacs_cv_personality_linux32 = yes; then
5844 cat >>confdefs.h
<<\_ACEOF
5845 #define HAVE_PERSONALITY_LINUX32 1
5851 for ac_header
in term.h
5853 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 cat >conftest.
$ac_ext <<_ACEOF
5862 cat confdefs.h
>>conftest.
$ac_ext
5863 cat >>conftest.
$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <$ac_header>
5867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } >/dev
/null
; then
5875 if test -s conftest.err
; then
5876 ac_cpp_err
=$ac_c_preproc_warn_flag
5877 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5884 if test -z "$ac_cpp_err"; then
5885 eval "$as_ac_Header=yes"
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.
$ac_ext >&5
5890 eval "$as_ac_Header=no"
5892 rm -f conftest.err conftest.
$ac_ext
5894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5897 cat >>confdefs.h
<<_ACEOF
5898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5905 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5906 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5907 if test "${ac_cv_header_stdc+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5929 rm -f conftest.
$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1
>conftest.err
5935 cat conftest.err
>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try
='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_header_stdc
=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5955 ac_cv_header_stdc
=no
5957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 if test $ac_cv_header_stdc = yes; then
5960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5971 $EGREP "memchr" >/dev
/null
2>&1; then
5974 ac_cv_header_stdc
=no
5980 if test $ac_cv_header_stdc = yes; then
5981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "free" >/dev
/null
2>&1; then
5995 ac_cv_header_stdc
=no
6001 if test $ac_cv_header_stdc = yes; then
6002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6003 if test "$cross_compiling" = yes; then
6006 cat >conftest.
$ac_ext <<_ACEOF
6009 cat confdefs.h
>>conftest.
$ac_ext
6010 cat >>conftest.
$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6013 #if ((' ' & 0x0FF) == 0x020)
6014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6017 # define ISLOWER(c) \
6018 (('a' <= (c) && (c) <= 'i') \
6019 || ('j' <= (c) && (c) <= 'r') \
6020 || ('s' <= (c) && (c) <= 'z'))
6021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6029 for (i = 0; i < 256; i++)
6030 if (XOR (islower (i), ISLOWER (i))
6031 || toupper (i) != TOUPPER (i))
6036 rm -f conftest
$ac_exeext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6038 (eval $ac_link) 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6049 echo "$as_me: program exited with status $ac_status" >&5
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.
$ac_ext >&5
6054 ac_cv_header_stdc
=no
6056 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6062 if test $ac_cv_header_stdc = yes; then
6064 cat >>confdefs.h
<<\_ACEOF
6065 #define STDC_HEADERS 1
6070 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6071 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6072 if test "${ac_cv_header_time+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 cat >conftest.
$ac_ext <<_ACEOF
6078 cat confdefs.h
>>conftest.
$ac_ext
6079 cat >>conftest.
$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #include <sys/types.h>
6082 #include <sys/time.h>
6088 if ((struct tm *) 0)
6094 rm -f conftest.
$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6098 grep -v '^ *+' conftest.er1
>conftest.err
6100 cat conftest.err
>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try
='test -s conftest.$ac_objext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_cv_header_time
=yes
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.
$ac_ext >&5
6120 ac_cv_header_time
=no
6122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6125 echo "${ECHO_T}$ac_cv_header_time" >&6
6126 if test $ac_cv_header_time = yes; then
6128 cat >>confdefs.h
<<\_ACEOF
6129 #define TIME_WITH_SYS_TIME 1
6134 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6135 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6136 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 cat >conftest.
$ac_ext <<_ACEOF
6142 cat confdefs.h
>>conftest.
$ac_ext
6143 cat >>conftest.
$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 $ac_includes_default
6150 char *p = (char *) sys_siglist;
6157 rm -f conftest.
$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try
='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_cv_have_decl_sys_siglist
=yes
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.
$ac_ext >&5
6183 ac_cv_have_decl_sys_siglist
=no
6185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6187 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6188 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6189 if test $ac_cv_have_decl_sys_siglist = yes; then
6191 cat >>confdefs.h
<<_ACEOF
6192 #define HAVE_DECL_SYS_SIGLIST 1
6197 cat >>confdefs.h
<<_ACEOF
6198 #define HAVE_DECL_SYS_SIGLIST 0
6205 if test $ac_cv_have_decl_sys_siglist != yes; then
6206 # For Tru64, at least:
6207 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6208 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6209 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6222 #ifndef __sys_siglist
6223 char *p = (char *) __sys_siglist;
6230 rm -f conftest.
$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1
>conftest.err
6236 cat conftest.err
>&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try
='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_have_decl___sys_siglist
=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6256 ac_cv_have_decl___sys_siglist
=no
6258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6261 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6262 if test $ac_cv_have_decl___sys_siglist = yes; then
6264 cat >>confdefs.h
<<_ACEOF
6265 #define HAVE_DECL___SYS_SIGLIST 1
6270 cat >>confdefs.h
<<_ACEOF
6271 #define HAVE_DECL___SYS_SIGLIST 0
6278 if test $ac_cv_have_decl___sys_siglist = yes; then
6280 cat >>confdefs.h
<<\_ACEOF
6281 #define sys_siglist __sys_siglist
6286 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6287 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6288 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 cat >conftest.
$ac_ext <<_ACEOF
6294 cat confdefs.h
>>conftest.
$ac_ext
6295 cat >>conftest.
$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <sys/types.h>
6298 #include <sys/wait.h>
6300 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6303 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6311 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6316 rm -f conftest.
$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6320 grep -v '^ *+' conftest.er1
>conftest.err
6322 cat conftest.err
>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try
='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_header_sys_wait_h
=yes
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.
$ac_ext >&5
6342 ac_cv_header_sys_wait_h
=no
6344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6348 if test $ac_cv_header_sys_wait_h = yes; then
6350 cat >>confdefs.h
<<\_ACEOF
6351 #define HAVE_SYS_WAIT_H 1
6357 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6358 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6359 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 cat >conftest.
$ac_ext <<_ACEOF
6365 cat confdefs.h
>>conftest.
$ac_ext
6366 cat >>conftest.
$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #ifdef TIME_WITH_SYS_TIME
6369 #include <sys/time.h>
6372 #ifdef HAVE_SYS_TIME_H
6373 #include <sys/time.h>
6384 static struct utimbuf x; x.actime = x.modtime;
6389 rm -f conftest.
$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6393 grep -v '^ *+' conftest.er1
>conftest.err
6395 cat conftest.err
>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try
='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 emacs_cv_struct_utimbuf
=yes
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.
$ac_ext >&5
6415 emacs_cv_struct_utimbuf
=no
6417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6420 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6421 if test $emacs_cv_struct_utimbuf = yes; then
6423 cat >>confdefs.h
<<\_ACEOF
6424 #define HAVE_STRUCT_UTIMBUF 1
6429 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6430 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6431 if test "${ac_cv_type_signal+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6437 cat confdefs.h
>>conftest.
$ac_ext
6438 cat >>conftest.
$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <sys/types.h>
6446 extern "C" void (*signal (int, void (*)(int)))(int);
6448 void (*signal ()) ();
6459 rm -f conftest.
$ac_objext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1
>conftest.err
6465 cat conftest.err
>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try
='test -s conftest.$ac_objext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_type_signal
=void
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.
$ac_ext >&5
6485 ac_cv_type_signal
=int
6487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6489 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6490 echo "${ECHO_T}$ac_cv_type_signal" >&6
6492 cat >>confdefs.h
<<_ACEOF
6493 #define RETSIGTYPE $ac_cv_type_signal
6498 echo "$as_me:$LINENO: checking for speed_t" >&5
6499 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6500 if test "${emacs_cv_speed_t+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <termios.h>
6518 rm -f conftest.
$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1
>conftest.err
6524 cat conftest.err
>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try
='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 emacs_cv_speed_t
=yes
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.
$ac_ext >&5
6546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6549 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6550 if test $emacs_cv_speed_t = yes; then
6552 cat >>confdefs.h
<<\_ACEOF
6553 #define HAVE_SPEED_T 1
6558 echo "$as_me:$LINENO: checking for struct timeval" >&5
6559 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6560 if test "${emacs_cv_struct_timeval+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 #ifdef TIME_WITH_SYS_TIME
6570 #include <sys/time.h>
6573 #ifdef HAVE_SYS_TIME_H
6574 #include <sys/time.h>
6582 static struct timeval x; x.tv_sec = x.tv_usec;
6587 rm -f conftest.
$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1
>conftest.err
6593 cat conftest.err
>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 emacs_cv_struct_timeval
=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 emacs_cv_struct_timeval
=no
6615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6617 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6618 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6619 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6620 if test $emacs_cv_struct_timeval = yes; then
6622 cat >>confdefs.h
<<\_ACEOF
6623 #define HAVE_TIMEVAL 1
6628 echo "$as_me:$LINENO: checking for struct exception" >&5
6629 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6630 if test "${emacs_cv_struct_exception+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6643 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6648 rm -f conftest.
$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1
>conftest.err
6654 cat conftest.err
>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try
='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 emacs_cv_struct_exception
=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.
$ac_ext >&5
6674 emacs_cv_struct_exception
=no
6676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6678 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6679 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6680 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6681 if test $emacs_cv_struct_exception != yes; then
6683 cat >>confdefs.h
<<\_ACEOF
6684 #define NO_MATHERR 1
6690 for ac_header
in sys
/socket.h
6692 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694 echo "$as_me:$LINENO: checking for $ac_header" >&5
6695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6702 # Is the header compilable?
6703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6705 cat >conftest.
$ac_ext <<_ACEOF
6708 cat confdefs.h
>>conftest.
$ac_ext
6709 cat >>conftest.
$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6712 #include <$ac_header>
6714 rm -f conftest.
$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6718 grep -v '^ *+' conftest.er1
>conftest.err
6720 cat conftest.err
>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try
='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_header_compiler
=yes
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.
$ac_ext >&5
6740 ac_header_compiler
=no
6742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6744 echo "${ECHO_T}$ac_header_compiler" >&6
6746 # Is the header present?
6747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6749 cat >conftest.
$ac_ext <<_ACEOF
6752 cat confdefs.h
>>conftest.
$ac_ext
6753 cat >>conftest.
$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <$ac_header>
6757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6758 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev
/null
; then
6765 if test -s conftest.err
; then
6766 ac_cpp_err
=$ac_c_preproc_warn_flag
6767 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6774 if test -z "$ac_cpp_err"; then
6775 ac_header_preproc
=yes
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.
$ac_ext >&5
6780 ac_header_preproc
=no
6782 rm -f conftest.err conftest.
$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6784 echo "${ECHO_T}$ac_header_preproc" >&6
6786 # So? What about this header?
6787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6793 ac_header_preproc
=yes
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6810 ## ------------------------------------------ ##
6811 ## Report this to the AC_PACKAGE_NAME lists. ##
6812 ## ------------------------------------------ ##
6815 sed "s/^/$as_me: WARNING: /" >&2
6818 echo "$as_me:$LINENO: checking for $ac_header" >&5
6819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 eval "$as_ac_Header=\$ac_header_preproc"
6825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6830 cat >>confdefs.h
<<_ACEOF
6831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6839 for ac_header
in net
/if.h
6841 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6842 echo "$as_me:$LINENO: checking for $ac_header" >&5
6843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 cat >conftest.
$ac_ext <<_ACEOF
6850 cat confdefs.h
>>conftest.
$ac_ext
6851 cat >>conftest.
$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 $ac_includes_default
6854 #if HAVE_SYS_SOCKET_H
6855 #include <sys/socket.h>
6858 #include <$ac_header>
6860 rm -f conftest.
$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try
='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 eval "$as_ac_Header=yes"
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.
$ac_ext >&5
6886 eval "$as_ac_Header=no"
6888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6893 cat >>confdefs.h
<<_ACEOF
6894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6903 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6904 if test "${ac_cv_struct_tm+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.
$ac_ext <<_ACEOF
6910 cat confdefs.h
>>conftest.
$ac_ext
6911 cat >>conftest.
$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 #include <sys/types.h>
6919 struct tm *tp; tp->tm_sec;
6924 rm -f conftest.
$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>conftest.er1
6928 grep -v '^ *+' conftest.er1
>conftest.err
6930 cat conftest.err
>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
6933 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; } &&
6939 { ac_try
='test -s conftest.$ac_objext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_struct_tm
=time.h
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.
$ac_ext >&5
6950 ac_cv_struct_tm
=sys
/time.h
6952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6954 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6955 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6956 if test $ac_cv_struct_tm = sys
/time.h
; then
6958 cat >>confdefs.h
<<\_ACEOF
6959 #define TM_IN_SYS_TIME 1
6964 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6965 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6966 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.
$ac_ext <<_ACEOF
6972 cat confdefs.h
>>conftest.
$ac_ext
6973 cat >>conftest.
$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <$ac_cv_struct_tm>
6982 static struct tm ac_aggr;
6983 if (ac_aggr.tm_zone)
6989 rm -f conftest.
$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1
>conftest.err
6995 cat conftest.err
>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try
='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_cv_member_struct_tm_tm_zone
=yes
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.
$ac_ext >&5
7015 cat >conftest.
$ac_ext <<_ACEOF
7018 cat confdefs.h
>>conftest.
$ac_ext
7019 cat >>conftest.
$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 #include <sys/types.h>
7022 #include <$ac_cv_struct_tm>
7028 static struct tm ac_aggr;
7029 if (sizeof ac_aggr.tm_zone)
7035 rm -f conftest.
$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7039 grep -v '^ *+' conftest.er1
>conftest.err
7041 cat conftest.err
>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; } &&
7050 { ac_try
='test -s conftest.$ac_objext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_member_struct_tm_tm_zone
=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7061 ac_cv_member_struct_tm_tm_zone
=no
7063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7068 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7069 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7071 cat >>confdefs.h
<<_ACEOF
7072 #define HAVE_STRUCT_TM_TM_ZONE 1
7078 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7080 cat >>confdefs.h
<<\_ACEOF
7081 #define HAVE_TM_ZONE 1
7085 echo "$as_me:$LINENO: checking for tzname" >&5
7086 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7087 if test "${ac_cv_var_tzname+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.
$ac_ext <<_ACEOF
7093 cat confdefs.h
>>conftest.
$ac_ext
7094 cat >>conftest.
$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7097 #ifndef tzname /* For SGI. */
7098 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7109 rm -f conftest.
$ac_objext conftest
$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try
='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_cv_var_tzname
=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.
$ac_ext >&5
7137 rm -f conftest.err conftest.
$ac_objext \
7138 conftest
$ac_exeext conftest.
$ac_ext
7140 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7141 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7142 if test $ac_cv_var_tzname = yes; then
7144 cat >>confdefs.h
<<\_ACEOF
7145 #define HAVE_TZNAME 1
7151 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7152 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7153 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 cat >conftest.
$ac_ext <<_ACEOF
7159 cat confdefs.h
>>conftest.
$ac_ext
7160 cat >>conftest.
$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7167 static struct tm ac_aggr;
7168 if (ac_aggr.tm_gmtoff)
7174 rm -f conftest.
$ac_objext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7176 (eval $ac_compile) 2>conftest.er1
7178 grep -v '^ *+' conftest.er1
>conftest.err
7180 cat conftest.err
>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try
='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_member_struct_tm_tm_gmtoff
=yes
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.
$ac_ext >&5
7200 cat >conftest.
$ac_ext <<_ACEOF
7203 cat confdefs.h
>>conftest.
$ac_ext
7204 cat >>conftest.
$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7211 static struct tm ac_aggr;
7212 if (sizeof ac_aggr.tm_gmtoff)
7218 rm -f conftest.
$ac_objext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>conftest.er1
7222 grep -v '^ *+' conftest.er1
>conftest.err
7224 cat conftest.err
>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; } &&
7233 { ac_try
='test -s conftest.$ac_objext'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 ac_cv_member_struct_tm_tm_gmtoff
=yes
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.
$ac_ext >&5
7244 ac_cv_member_struct_tm_tm_gmtoff
=no
7246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7251 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7252 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7254 cat >>confdefs.h
<<\_ACEOF
7255 #define HAVE_TM_GMTOFF 1
7260 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7261 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7262 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 $ac_includes_default
7272 #if HAVE_SYS_SOCKET_H
7273 #include <sys/socket.h>
7282 static struct ifreq ac_aggr;
7283 if (ac_aggr.ifr_flags)
7289 rm -f conftest.
$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7293 grep -v '^ *+' conftest.er1
>conftest.err
7295 cat conftest.err
>&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try
='test -s conftest.$ac_objext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_member_struct_ifreq_ifr_flags
=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.
$ac_ext >&5
7315 cat >conftest.
$ac_ext <<_ACEOF
7318 cat confdefs.h
>>conftest.
$ac_ext
7319 cat >>conftest.
$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7322 #if HAVE_SYS_SOCKET_H
7323 #include <sys/socket.h>
7332 static struct ifreq ac_aggr;
7333 if (sizeof ac_aggr.ifr_flags)
7339 rm -f conftest.
$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1
>conftest.err
7345 cat conftest.err
>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try
='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_member_struct_ifreq_ifr_flags
=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.
$ac_ext >&5
7365 ac_cv_member_struct_ifreq_ifr_flags
=no
7367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7372 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7373 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7375 cat >>confdefs.h
<<_ACEOF
7376 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7381 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7382 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7383 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.
$ac_ext <<_ACEOF
7389 cat confdefs.h
>>conftest.
$ac_ext
7390 cat >>conftest.
$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #if HAVE_SYS_SOCKET_H
7394 #include <sys/socket.h>
7403 static struct ifreq ac_aggr;
7404 if (ac_aggr.ifr_hwaddr)
7410 rm -f conftest.
$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>conftest.er1
7414 grep -v '^ *+' conftest.er1
>conftest.err
7416 cat conftest.err
>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try
='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.
$ac_ext >&5
7436 cat >conftest.
$ac_ext <<_ACEOF
7439 cat confdefs.h
>>conftest.
$ac_ext
7440 cat >>conftest.
$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 #if HAVE_SYS_SOCKET_H
7444 #include <sys/socket.h>
7453 static struct ifreq ac_aggr;
7454 if (sizeof ac_aggr.ifr_hwaddr)
7460 rm -f conftest.
$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1
>conftest.err
7466 cat conftest.err
>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try
='test -s conftest.$ac_objext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.
$ac_ext >&5
7486 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7493 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7494 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7496 cat >>confdefs.h
<<_ACEOF
7497 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7502 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7503 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7504 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 cat >conftest.
$ac_ext <<_ACEOF
7510 cat confdefs.h
>>conftest.
$ac_ext
7511 cat >>conftest.
$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #if HAVE_SYS_SOCKET_H
7515 #include <sys/socket.h>
7524 static struct ifreq ac_aggr;
7525 if (ac_aggr.ifr_netmask)
7531 rm -f conftest.
$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7535 grep -v '^ *+' conftest.er1
>conftest.err
7537 cat conftest.err
>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try
='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.
$ac_ext >&5
7557 cat >conftest.
$ac_ext <<_ACEOF
7560 cat confdefs.h
>>conftest.
$ac_ext
7561 cat >>conftest.
$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7564 #if HAVE_SYS_SOCKET_H
7565 #include <sys/socket.h>
7574 static struct ifreq ac_aggr;
7575 if (sizeof ac_aggr.ifr_netmask)
7581 rm -f conftest.
$ac_objext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583 (eval $ac_compile) 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try
='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.
$ac_ext >&5
7607 ac_cv_member_struct_ifreq_ifr_netmask
=no
7609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7614 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7615 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7617 cat >>confdefs.h
<<_ACEOF
7618 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7623 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7624 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7625 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 cat >conftest.
$ac_ext <<_ACEOF
7631 cat confdefs.h
>>conftest.
$ac_ext
7632 cat >>conftest.
$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 #if HAVE_SYS_SOCKET_H
7636 #include <sys/socket.h>
7645 static struct ifreq ac_aggr;
7646 if (ac_aggr.ifr_broadaddr)
7652 rm -f conftest.
$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7656 grep -v '^ *+' conftest.er1
>conftest.err
7658 cat conftest.err
>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try
='test -s conftest.$ac_objext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.
$ac_ext >&5
7678 cat >conftest.
$ac_ext <<_ACEOF
7681 cat confdefs.h
>>conftest.
$ac_ext
7682 cat >>conftest.
$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 #if HAVE_SYS_SOCKET_H
7686 #include <sys/socket.h>
7695 static struct ifreq ac_aggr;
7696 if (sizeof ac_aggr.ifr_broadaddr)
7702 rm -f conftest.
$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>conftest.er1
7706 grep -v '^ *+' conftest.er1
>conftest.err
7708 cat conftest.err
>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try
='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.
$ac_ext >&5
7728 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7735 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7736 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7738 cat >>confdefs.h
<<_ACEOF
7739 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7744 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7745 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7746 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #if HAVE_SYS_SOCKET_H
7757 #include <sys/socket.h>
7766 static struct ifreq ac_aggr;
7767 if (ac_aggr.ifr_addr)
7773 rm -f conftest.
$ac_objext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7775 (eval $ac_compile) 2>conftest.er1
7777 grep -v '^ *+' conftest.er1
>conftest.err
7779 cat conftest.err
>&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try
='test -s conftest.$ac_objext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_member_struct_ifreq_ifr_addr
=yes
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.
$ac_ext >&5
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 #if HAVE_SYS_SOCKET_H
7807 #include <sys/socket.h>
7816 static struct ifreq ac_aggr;
7817 if (sizeof ac_aggr.ifr_addr)
7823 rm -f conftest.
$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>conftest.er1
7827 grep -v '^ *+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try
='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_member_struct_ifreq_ifr_addr
=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7849 ac_cv_member_struct_ifreq_ifr_addr
=no
7851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7856 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7857 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7859 cat >>confdefs.h
<<_ACEOF
7860 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7868 echo "$as_me:$LINENO: checking for function prototypes" >&5
7869 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7870 if test "$ac_cv_prog_cc_stdc" != no
; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872 echo "${ECHO_T}yes" >&6
7874 cat >>confdefs.h
<<\_ACEOF
7875 #define PROTOTYPES 1
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define __PROTOTYPES 1
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7888 echo "$as_me:$LINENO: checking for working volatile" >&5
7889 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7890 if test "${ac_cv_c_volatile+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 cat >conftest.
$ac_ext <<_ACEOF
7896 cat confdefs.h
>>conftest.
$ac_ext
7897 cat >>conftest.
$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7910 rm -f conftest.
$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>conftest.er1
7914 grep -v '^ *+' conftest.er1
>conftest.err
7916 cat conftest.err
>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try
='test -s conftest.$ac_objext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_c_volatile
=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.
$ac_ext >&5
7938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7941 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7942 if test $ac_cv_c_volatile = no
; then
7944 cat >>confdefs.h
<<\_ACEOF
7950 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7952 if test "${ac_cv_c_const+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 cat >conftest.
$ac_ext <<_ACEOF
7958 cat confdefs.h
>>conftest.
$ac_ext
7959 cat >>conftest.
$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7965 /* FIXME: Include the comments suggested by Paul. */
7967 /* Ultrix mips cc rejects this. */
7968 typedef int charset[2];
7970 /* SunOS 4.1.1 cc rejects this. */
7971 char const *const *ccp;
7973 /* NEC SVR4.0.2 mips cc rejects this. */
7974 struct point {int x, y;};
7975 static struct point const zero = {0,0};
7976 /* AIX XL C 1.02.0.0 rejects this.
7977 It does not let you subtract one const X* pointer from another in
7978 an arm of an if-expression whose if-part is not a constant
7980 const char *g = "string";
7981 ccp = &g + (g ? g-g : 0);
7982 /* HPUX 7.0 cc rejects these. */
7985 ccp = (char const *const *) p;
7986 { /* SCO 3.2v4 cc rejects this. */
7988 char const *s = 0 ? (char *) 0 : (char const *) 0;
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7994 const int *foo = &x[0];
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8016 rm -f conftest.
$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>conftest.er1
8020 grep -v '^ *+' conftest.er1
>conftest.err
8022 cat conftest.err
>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try
='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.
$ac_ext >&5
8044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8047 echo "${ECHO_T}$ac_cv_c_const" >&6
8048 if test $ac_cv_c_const = no
; then
8050 cat >>confdefs.h
<<\_ACEOF
8056 echo "$as_me:$LINENO: checking for void * support" >&5
8057 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8058 if test "${emacs_cv_void_star+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.
$ac_ext <<_ACEOF
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8076 rm -f conftest.
$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>conftest.er1
8080 grep -v '^ *+' conftest.er1
>conftest.err
8082 cat conftest.err
>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try
='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 emacs_cv_void_star
=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 emacs_cv_void_star
=no
8104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8106 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8107 echo "${ECHO_T}$emacs_cv_void_star" >&6
8108 if test $emacs_cv_void_star = yes; then
8109 cat >>confdefs.h
<<\_ACEOF
8110 #define POINTER_TYPE void
8114 cat >>confdefs.h
<<\_ACEOF
8115 #define POINTER_TYPE char
8124 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8125 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8126 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8127 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.
make <<\_ACEOF
8132 @
echo 'ac_maketemp="$(MAKE)"'
8134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8135 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8136 if test -n "$ac_maketemp"; then
8137 eval ac_cv_prog_make_
${ac_make}_set
=yes
8139 eval ac_cv_prog_make_
${ac_make}_set
=no
8143 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8144 echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150 SET_MAKE
="MAKE=${MAKE-make}"
8154 echo "$as_me:$LINENO: checking for long file names" >&5
8155 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8156 if test "${ac_cv_sys_long_file_names+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 ac_cv_sys_long_file_names
=yes
8160 # Test for long file names in all the places we know might matter:
8161 # . the current directory, where building will happen
8162 # $prefix/lib where we will be installing things
8163 # $exec_prefix/lib likewise
8164 # eval it to expand exec_prefix.
8165 # $TMPDIR if set, where it might want to write temporary files
8166 # if $TMPDIR is not set:
8167 # /tmp where it might want to write temporary files
8170 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8173 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8175 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8176 test -d $ac_dir ||
continue
8177 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8178 ac_xdir
=$ac_dir/cf$$
8179 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8180 ac_tf1
=$ac_xdir/conftest9012345
8181 ac_tf2
=$ac_xdir/conftest9012346
8182 (echo 1 >$ac_tf1) 2>/dev
/null
8183 (echo 2 >$ac_tf2) 2>/dev
/null
8184 ac_val
=`cat $ac_tf1 2>/dev/null`
8185 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8186 ac_cv_sys_long_file_names
=no
8187 rm -rf $ac_xdir 2>/dev
/null
8190 rm -rf $ac_xdir 2>/dev
/null
8193 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8194 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8195 if test $ac_cv_sys_long_file_names = yes; then
8197 cat >>confdefs.h
<<\_ACEOF
8198 #define HAVE_LONG_FILE_NAMES 1
8204 #### Choose a window system.
8206 echo "$as_me:$LINENO: checking for X" >&5
8207 echo $ECHO_N "checking for X... $ECHO_C" >&6
8209 ac_path_x_has_been_run
=yes
8211 # Check whether --with-x or --without-x was given.
8212 if test "${with_x+set}" = set; then
8216 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8217 if test "x$with_x" = xno
; then
8218 # The user explicitly disabled X.
8221 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8222 # Both variables are already set.
8225 if test "${ac_cv_have_x+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 # One or both of the vars are not set, and there is no cached value.
8229 ac_x_includes
=no ac_x_libraries
=no
8231 if mkdir conftest.dir
; then
8233 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8234 cat >Imakefile
<<'_ACEOF'
8236 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8238 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8239 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8240 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8241 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8242 for ac_extension
in a so sl
; do
8243 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8244 test -f $ac_im_libdir/libX11.
$ac_extension; then
8245 ac_im_usrlibdir
=$ac_im_libdir; break
8248 # Screen out bogus values from the imake configuration. They are
8249 # bogus both because they are the default anyway, and because
8250 # using them would break gcc on systems where it needs fixed includes.
8251 case $ac_im_incroot in
8253 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8255 case $ac_im_usrlibdir in
8257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8264 # Standard set of common directories for X headers.
8265 # Check X11 before X11Rn because it is often a symlink to the current release.
8277 /usr/local/X11/include
8278 /usr/local/X11R6/include
8279 /usr/local/X11R5/include
8280 /usr/local/X11R4/include
8282 /usr/local/include/X11
8283 /usr/local/include/X11R6
8284 /usr/local/include/X11R5
8285 /usr/local/include/X11R4
8289 /usr/XFree86/include/X11
8293 /usr/unsupported/include
8295 /usr/local/x11r5/include
8296 /usr/lpp/Xamples/include
8298 /usr/openwin/include
8299 /usr/openwin/share/include'
8301 if test "$ac_x_includes" = no
; then
8302 # Guess where to find include files, by looking for a specified header file.
8303 # First, try using that file with no special directory specified.
8304 cat >conftest.
$ac_ext <<_ACEOF
8307 cat confdefs.h
>>conftest.
$ac_ext
8308 cat >>conftest.
$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <X11/Xlib.h>
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8315 grep -v '^ *+' conftest.er1
>conftest.err
8317 cat conftest.err
>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev
/null
; then
8320 if test -s conftest.err
; then
8321 ac_cpp_err
=$ac_c_preproc_warn_flag
8322 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8329 if test -z "$ac_cpp_err"; then
8330 # We can compile using X headers with no special include directory.
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.
$ac_ext >&5
8336 for ac_dir
in $ac_x_header_dirs; do
8337 if test -r "$ac_dir/X11/Xlib.h"; then
8338 ac_x_includes
=$ac_dir
8343 rm -f conftest.err conftest.
$ac_ext
8344 fi # $ac_x_includes = no
8346 if test "$ac_x_libraries" = no
; then
8347 # Check for the libraries.
8348 # See if we find them without any special options.
8349 # Don't add to $LIBS permanently.
8352 cat >conftest.
$ac_ext <<_ACEOF
8355 cat confdefs.h
>>conftest.
$ac_ext
8356 cat >>conftest.
$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <X11/Xlib.h>
8367 rm -f conftest.
$ac_objext conftest
$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8371 grep -v '^ *+' conftest.er1
>conftest.err
8373 cat conftest.err
>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try
='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8389 # We can link X programs with no special library path.
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.
$ac_ext >&5
8396 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8398 # Don't even attempt the hair of trying to link an X program!
8399 for ac_extension
in a so sl
; do
8400 if test -r $ac_dir/libX11.
$ac_extension; then
8401 ac_x_libraries
=$ac_dir
8407 rm -f conftest.err conftest.
$ac_objext \
8408 conftest
$ac_exeext conftest.
$ac_ext
8409 fi # $ac_x_libraries = no
8411 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8412 # Didn't find X anywhere. Cache the known absence of X.
8413 ac_cv_have_x
="have_x=no"
8415 # Record where we found X for the cache.
8416 ac_cv_have_x
="have_x=yes \
8417 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8422 eval "$ac_cv_have_x"
8425 if test "$have_x" != yes; then
8426 echo "$as_me:$LINENO: result: $have_x" >&5
8427 echo "${ECHO_T}$have_x" >&6
8430 # If each of the values was on the command line, it overrides each guess.
8431 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8432 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8433 # Update the cache value to reflect the command line values.
8434 ac_cv_have_x
="have_x=yes \
8435 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8436 # It might be that x_includes is empty (headers are found in the
8437 # standard search path. Then output the corresponding message
8438 ac_out_x_includes
=$x_includes
8439 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8440 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8441 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8444 if test "$no_x" = yes; then
8450 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8451 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8452 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8453 x_default_search_path
=""
8454 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8456 ${x_library}/X11/%L/%T/%N%C%S:\
8457 ${x_library}/X11/%l/%T/%N%C%S:\
8458 ${x_library}/X11/%T/%N%C%S:\
8459 ${x_library}/X11/%L/%T/%N%S:\
8460 ${x_library}/X11/%l/%T/%N%S:\
8461 ${x_library}/X11/%T/%N%S"
8462 if test x
"${x_default_search_path}" = x
; then
8463 x_default_search_path
=${x_search_path}
8465 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8469 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8470 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8473 if test x
"${x_includes}" = x
; then
8474 bitmapdir
=/usr
/include
/X11
/bitmaps
8476 # accumulate include directories that have X11 bitmap subdirectories
8478 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8479 if test -d "${bmd}/X11/bitmaps"; then
8480 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8482 if test -d "${bmd}/bitmaps"; then
8483 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8486 if test ${bmd_acc} != "dummyval"; then
8487 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8492 if test "${with_carbon}" != no
; then
8493 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8494 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8495 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8500 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8502 # Is the header compilable?
8503 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8504 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8505 cat >conftest.
$ac_ext <<_ACEOF
8508 cat confdefs.h
>>conftest.
$ac_ext
8509 cat >>conftest.
$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 #include <Carbon/Carbon.h>
8514 rm -f conftest.
$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 (eval $ac_compile) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1
>conftest.err
8520 cat conftest.err
>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try
='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_header_compiler
=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.
$ac_ext >&5
8540 ac_header_compiler
=no
8542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8544 echo "${ECHO_T}$ac_header_compiler" >&6
8546 # Is the header present?
8547 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8548 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 #include <Carbon/Carbon.h>
8557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1
>conftest.err
8562 cat conftest.err
>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } >/dev
/null
; then
8565 if test -s conftest.err
; then
8566 ac_cpp_err
=$ac_c_preproc_warn_flag
8567 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8574 if test -z "$ac_cpp_err"; then
8575 ac_header_preproc
=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.
$ac_ext >&5
8580 ac_header_preproc
=no
8582 rm -f conftest.err conftest.
$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8584 echo "${ECHO_T}$ac_header_preproc" >&6
8586 # So? What about this header?
8587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8589 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8590 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8592 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8593 ac_header_preproc
=yes
8596 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8597 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8599 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8601 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8603 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8605 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8607 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8610 ## ------------------------------------------ ##
8611 ## Report this to the AC_PACKAGE_NAME lists. ##
8612 ## ------------------------------------------ ##
8615 sed "s/^/$as_me: WARNING: /" >&2
8618 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8619 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8620 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8625 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8626 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8629 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8635 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8636 if test "${with_carbon+set}" != set \
8637 && test "${carbon_appdir_x+set}" != set; then
8641 if test "${HAVE_CARBON}" = yes; then
8645 case "${window_system}" in
8649 case "${with_x_toolkit}" in
8650 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8651 motif
) USE_X_TOOLKIT
=MOTIF
;;
8653 USE_X_TOOLKIT
=none
;;
8654 no
) USE_X_TOOLKIT
=none
;;
8655 * ) USE_X_TOOLKIT
=maybe
;;
8665 ### If we're using X11, we should use the X menu package.
8668 yes ) HAVE_MENUS
=yes ;;
8671 if test "${opsys}" = "hpux9"; then
8672 case "${x_libraries}" in
8674 opsysfile
="s/hpux9-x11r4.h"
8679 if test "${opsys}" = "hpux9shr"; then
8680 case "${x_libraries}" in
8682 opsysfile
="s/hpux9shxr4.h"
8687 ### Compute the unexec source name from the object name.
8688 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8690 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8691 # Assume not, until told otherwise.
8694 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8695 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8696 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 cat >conftest.
$ac_ext <<_ACEOF
8702 cat confdefs.h
>>conftest.
$ac_ext
8703 cat >>conftest.
$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8707 #define malloc_get_state innocuous_malloc_get_state
8709 /* System header to define __stub macros and hopefully few prototypes,
8710 which can conflict with char malloc_get_state (); below.
8711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8712 <limits.h> exists even on freestanding compilers. */
8715 # include <limits.h>
8717 # include <assert.h>
8720 #undef malloc_get_state
8722 /* Override any gcc2 internal prototype to avoid an error. */
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729 char malloc_get_state ();
8730 /* The GNU C library defines this for functions which it implements
8731 to always fail with ENOSYS. Some functions are actually named
8732 something starting with __ and the normal name is an alias. */
8733 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8736 char (*f) () = malloc_get_state;
8745 return f != malloc_get_state;
8750 rm -f conftest.
$ac_objext conftest
$ac_exeext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>conftest.er1
8754 grep -v '^ *+' conftest.er1
>conftest.err
8756 cat conftest.err
>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try
='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_func_malloc_get_state
=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.
$ac_ext >&5
8776 ac_cv_func_malloc_get_state
=no
8778 rm -f conftest.err conftest.
$ac_objext \
8779 conftest
$ac_exeext conftest.
$ac_ext
8781 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8782 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8783 if test $ac_cv_func_malloc_get_state = yes; then
8789 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8790 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8791 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 cat >conftest.
$ac_ext <<_ACEOF
8797 cat confdefs.h
>>conftest.
$ac_ext
8798 cat >>conftest.
$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8802 #define malloc_set_state innocuous_malloc_set_state
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char malloc_set_state (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8810 # include <limits.h>
8812 # include <assert.h>
8815 #undef malloc_set_state
8817 /* Override any gcc2 internal prototype to avoid an error. */
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char malloc_set_state ();
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8831 char (*f) () = malloc_set_state;
8840 return f != malloc_set_state;
8845 rm -f conftest.
$ac_objext conftest
$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>conftest.er1
8849 grep -v '^ *+' conftest.er1
>conftest.err
8851 cat conftest.err
>&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try
='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 ac_cv_func_malloc_set_state
=yes
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.
$ac_ext >&5
8871 ac_cv_func_malloc_set_state
=no
8873 rm -f conftest.err conftest.
$ac_objext \
8874 conftest
$ac_exeext conftest.
$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8877 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8878 if test $ac_cv_func_malloc_set_state = yes; then
8884 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8885 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8886 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 cat >conftest.
$ac_ext <<_ACEOF
8892 cat confdefs.h
>>conftest.
$ac_ext
8893 cat >>conftest.
$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 extern void (* __after_morecore_hook)();
8899 __after_morecore_hook = 0
8904 rm -f conftest.
$ac_objext conftest
$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>conftest.er1
8908 grep -v '^ *+' conftest.er1
>conftest.err
8910 cat conftest.err
>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try
='test -s conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 emacs_cv_var___after_morecore_hook
=yes
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.
$ac_ext >&5
8930 emacs_cv_var___after_morecore_hook
=no
8932 rm -f conftest.err conftest.
$ac_objext \
8933 conftest
$ac_exeext conftest.
$ac_ext
8935 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8936 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8937 if test $emacs_cv_var___after_morecore_hook = no
; then
8940 if test "${system_malloc}" = "yes"; then
8943 (The GNU allocators don't work with this system configuration.)"
8945 if test "$doug_lea_malloc" = "yes" ; then
8946 if test "$GNU_MALLOC" = yes ; then
8948 (Using Doug Lea's new malloc from the GNU C Library.)"
8951 cat >>confdefs.h
<<\_ACEOF
8952 #define DOUG_LEA_MALLOC 1
8957 if test x
"${REL_ALLOC}" = x
; then
8958 REL_ALLOC
=${GNU_MALLOC}
8964 for ac_header
in stdlib.h unistd.h
8966 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968 echo "$as_me:$LINENO: checking for $ac_header" >&5
8969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8976 # Is the header compilable?
8977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8979 cat >conftest.
$ac_ext <<_ACEOF
8982 cat confdefs.h
>>conftest.
$ac_ext
8983 cat >>conftest.
$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 #include <$ac_header>
8988 rm -f conftest.
$ac_objext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8990 (eval $ac_compile) 2>conftest.er1
8992 grep -v '^ *+' conftest.er1
>conftest.err
8994 cat conftest.err
>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try
='test -s conftest.$ac_objext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_header_compiler
=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.
$ac_ext >&5
9014 ac_header_compiler
=no
9016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9018 echo "${ECHO_T}$ac_header_compiler" >&6
9020 # Is the header present?
9021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9023 cat >conftest.
$ac_ext <<_ACEOF
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <$ac_header>
9031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1
>conftest.err
9036 cat conftest.err
>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } >/dev
/null
; then
9039 if test -s conftest.err
; then
9040 ac_cpp_err
=$ac_c_preproc_warn_flag
9041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9048 if test -z "$ac_cpp_err"; then
9049 ac_header_preproc
=yes
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.
$ac_ext >&5
9054 ac_header_preproc
=no
9056 rm -f conftest.err conftest.
$ac_ext
9057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9058 echo "${ECHO_T}$ac_header_preproc" >&6
9060 # So? What about this header?
9061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9067 ac_header_preproc
=yes
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9084 ## ------------------------------------------ ##
9085 ## Report this to the AC_PACKAGE_NAME lists. ##
9086 ## ------------------------------------------ ##
9089 sed "s/^/$as_me: WARNING: /" >&2
9092 echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 eval "$as_ac_Header=\$ac_header_preproc"
9099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9104 cat >>confdefs.h
<<_ACEOF
9105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9113 for ac_func
in getpagesize
9115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9116 echo "$as_me:$LINENO: checking for $ac_func" >&5
9117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_var+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 cat >conftest.
$ac_ext <<_ACEOF
9124 cat confdefs.h
>>conftest.
$ac_ext
9125 cat >>conftest.
$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9129 #define $ac_func innocuous_$ac_func
9131 /* System header to define __stub macros and hopefully few prototypes,
9132 which can conflict with char $ac_func (); below.
9133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9134 <limits.h> exists even on freestanding compilers. */
9137 # include <limits.h>
9139 # include <assert.h>
9144 /* Override any gcc2 internal prototype to avoid an error. */
9149 /* We use char because int might match the return type of a gcc2
9150 builtin and then its argument prototype would still apply. */
9152 /* The GNU C library defines this for functions which it implements
9153 to always fail with ENOSYS. Some functions are actually named
9154 something starting with __ and the normal name is an alias. */
9155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9158 char (*f) () = $ac_func;
9167 return f != $ac_func;
9172 rm -f conftest.
$ac_objext conftest
$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9176 grep -v '^ *+' conftest.er1
>conftest.err
9178 cat conftest.err
>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try
='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 eval "$as_ac_var=yes"
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.
$ac_ext >&5
9198 eval "$as_ac_var=no"
9200 rm -f conftest.err conftest.
$ac_objext \
9201 conftest
$ac_exeext conftest.
$ac_ext
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9205 if test `eval echo '${'$as_ac_var'}'` = yes; then
9206 cat >>confdefs.h
<<_ACEOF
9207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9213 echo "$as_me:$LINENO: checking for working mmap" >&5
9214 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9215 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 if test "$cross_compiling" = yes; then
9219 ac_cv_func_mmap_fixed_mapped
=no
9221 cat >conftest.
$ac_ext <<_ACEOF
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 /* malloc might have been renamed as rpl_malloc. */
9231 /* Thanks to Mike Haertel and Jim Avera for this test.
9232 Here is a matrix of mmap possibilities:
9233 mmap private not fixed
9234 mmap private fixed at somewhere currently unmapped
9235 mmap private fixed at somewhere already mapped
9236 mmap shared not fixed
9237 mmap shared fixed at somewhere currently unmapped
9238 mmap shared fixed at somewhere already mapped
9239 For private mappings, we should verify that changes cannot be read()
9240 back from the file, nor mmap's back from the file at a different
9241 address. (There have been systems where private was not correctly
9242 implemented like the infamous i386 svr4.0, and systems where the
9243 VM page cache was not coherent with the file system buffer cache
9244 like early versions of FreeBSD and possibly contemporary NetBSD.)
9245 For shared mappings, we should conversely verify that changes get
9246 propagated back to all the places they're supposed to be.
9248 Grep wants private fixed already mapped.
9249 The main things grep needs to know about mmap are:
9250 * does it exist and is it safe to write into the mmap'd area
9251 * how to use it (BSD variants) */
9254 #include <sys/mman.h>
9256 #if !STDC_HEADERS && !HAVE_STDLIB_H
9260 /* This mess was copied from the GNU getpagesize.h. */
9261 #if !HAVE_GETPAGESIZE
9262 /* Assume that all systems that can run configure have sys/param.h. */
9263 # if !HAVE_SYS_PARAM_H
9264 # define HAVE_SYS_PARAM_H 1
9267 # ifdef _SC_PAGESIZE
9268 # define getpagesize() sysconf(_SC_PAGESIZE)
9269 # else /* no _SC_PAGESIZE */
9270 # if HAVE_SYS_PARAM_H
9271 # include <sys/param.h>
9272 # ifdef EXEC_PAGESIZE
9273 # define getpagesize() EXEC_PAGESIZE
9274 # else /* no EXEC_PAGESIZE */
9276 # define getpagesize() NBPG * CLSIZE
9279 # endif /* no CLSIZE */
9280 # else /* no NBPG */
9282 # define getpagesize() NBPC
9283 # else /* no NBPC */
9285 # define getpagesize() PAGESIZE
9286 # endif /* PAGESIZE */
9287 # endif /* no NBPC */
9288 # endif /* no NBPG */
9289 # endif /* no EXEC_PAGESIZE */
9290 # else /* no HAVE_SYS_PARAM_H */
9291 # define getpagesize() 8192 /* punt totally */
9292 # endif /* no HAVE_SYS_PARAM_H */
9293 # endif /* no _SC_PAGESIZE */
9295 #endif /* no HAVE_GETPAGESIZE */
9300 char *data, *data2, *data3;
9304 pagesize = getpagesize ();
9306 /* First, make a file with some known garbage in it. */
9307 data = (char *) malloc (pagesize);
9310 for (i = 0; i < pagesize; ++i)
9311 *(data + i) = rand ();
9313 fd = creat ("conftest.mmap", 0600);
9316 if (write (fd, data, pagesize) != pagesize)
9320 /* Next, try to mmap the file at a fixed address which already has
9321 something else allocated at it. If we can, also make sure that
9322 we see the same garbage. */
9323 fd = open ("conftest.mmap", O_RDWR);
9326 data2 = (char *) malloc (2 * pagesize);
9329 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9330 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9331 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9333 for (i = 0; i < pagesize; ++i)
9334 if (*(data + i) != *(data2 + i))
9337 /* Finally, make sure that changes to the mapped area do not
9338 percolate back to the file as seen by read(). (This is a bug on
9339 some variants of i386 svr4.0.) */
9340 for (i = 0; i < pagesize; ++i)
9341 *(data2 + i) = *(data2 + i) + 1;
9342 data3 = (char *) malloc (pagesize);
9345 if (read (fd, data3, pagesize) != pagesize)
9347 for (i = 0; i < pagesize; ++i)
9348 if (*(data + i) != *(data3 + i))
9354 rm -f conftest
$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_func_mmap_fixed_mapped
=yes
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.
$ac_ext >&5
9372 ac_cv_func_mmap_fixed_mapped
=no
9374 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9377 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9378 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9379 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9381 cat >>confdefs.h
<<\_ACEOF
9388 if test $use_mmap_for_buffers = yes; then
9392 LIBS
="$libsrc_libs $LIBS"
9395 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9396 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9397 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 ac_check_lib_save_LIBS
=$LIBS
9402 cat >conftest.
$ac_ext <<_ACEOF
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9424 rm -f conftest.
$ac_objext conftest
$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9428 grep -v '^ *+' conftest.er1
>conftest.err
9430 cat conftest.err
>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try
='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_lib_dnet_dnet_ntoa
=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.
$ac_ext >&5
9450 ac_cv_lib_dnet_dnet_ntoa
=no
9452 rm -f conftest.err conftest.
$ac_objext \
9453 conftest
$ac_exeext conftest.
$ac_ext
9454 LIBS
=$ac_check_lib_save_LIBS
9456 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9457 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9458 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9459 cat >>confdefs.h
<<_ACEOF
9460 #define HAVE_LIBDNET 1
9468 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9469 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9470 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 ac_check_lib_save_LIBS
=$LIBS
9475 cat >conftest.
$ac_ext <<_ACEOF
9478 cat confdefs.h
>>conftest.
$ac_ext
9479 cat >>conftest.
$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9491 rm -f conftest.
$ac_objext conftest
$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1
>conftest.err
9497 cat conftest.err
>&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try
='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_lib_Xbsd_main
=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.
$ac_ext >&5
9517 ac_cv_lib_Xbsd_main
=no
9519 rm -f conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 LIBS
=$ac_check_lib_save_LIBS
9523 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9524 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9525 if test $ac_cv_lib_Xbsd_main = yes; then
9526 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9531 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9532 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9533 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 ac_check_lib_save_LIBS
=$LIBS
9537 LIBS
="-lpthreads $LIBS"
9538 cat >conftest.
$ac_ext <<_ACEOF
9541 cat confdefs.h
>>conftest.
$ac_ext
9542 cat >>conftest.
$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9545 /* Override any gcc2 internal prototype to avoid an error. */
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9560 rm -f conftest.
$ac_objext conftest
$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9564 grep -v '^ *+' conftest.er1
>conftest.err
9566 cat conftest.err
>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try
='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_lib_pthreads_cma_open
=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9586 ac_cv_lib_pthreads_cma_open
=no
9588 rm -f conftest.err conftest.
$ac_objext \
9589 conftest
$ac_exeext conftest.
$ac_ext
9590 LIBS
=$ac_check_lib_save_LIBS
9592 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9593 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9594 if test $ac_cv_lib_pthreads_cma_open = yes; then
9595 cat >>confdefs.h
<<_ACEOF
9596 #define HAVE_LIBPTHREADS 1
9599 LIBS
="-lpthreads $LIBS"
9604 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9605 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9606 if test -d /usr
/X386
/include
; then
9608 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9612 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9613 echo "${ECHO_T}$HAVE_XFREE386" >&6
9618 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9619 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9620 if test "${gdb_cv_bigtoc+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9626 *) gdb_cv_bigtoc
=-bbigtoc ;;
9629 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9630 cat >conftest.
$ac_ext <<_ACEOF
9633 cat confdefs.h
>>conftest.
$ac_ext
9634 cat >>conftest.
$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9645 rm -f conftest.
$ac_objext conftest
$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9649 grep -v '^ *+' conftest.er1
>conftest.err
9651 cat conftest.err
>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try
='test -s conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.
$ac_ext >&5
9673 rm -f conftest.err conftest.
$ac_objext \
9674 conftest
$ac_exeext conftest.
$ac_ext
9677 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9678 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9682 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9683 # used for the tests that follow. We set them back to REAL_CFLAGS and
9684 # REAL_CPPFLAGS later on.
9686 REAL_CPPFLAGS
="$CPPFLAGS"
9688 if test "${HAVE_X11}" = "yes"; then
9689 DEFS
="$C_SWITCH_X_SITE $DEFS"
9690 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9692 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9693 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9695 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9696 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9697 # but it's more convenient here to set LD_RUN_PATH
9698 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9699 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9700 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9704 if test "${opsys}" = "gnu-linux"; then
9705 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9706 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9707 cat >conftest.
$ac_ext <<_ACEOF
9710 cat confdefs.h
>>conftest.
$ac_ext
9711 cat >>conftest.
$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9717 XOpenDisplay ("foo");
9722 rm -f conftest.
$ac_objext conftest
$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9726 grep -v '^ *+' conftest.er1
>conftest.err
9728 cat conftest.err
>&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try
='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 xlinux_first_failure
=no
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.
$ac_ext >&5
9748 xlinux_first_failure
=yes
9750 rm -f conftest.err conftest.
$ac_objext \
9751 conftest
$ac_exeext conftest.
$ac_ext
9752 if test "${xlinux_first_failure}" = "yes"; then
9753 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9754 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9755 OLD_CPPFLAGS
="$CPPFLAGS"
9757 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9758 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9759 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9760 LIBS
="$LIBS -b i486-linuxaout"
9761 cat >conftest.
$ac_ext <<_ACEOF
9764 cat confdefs.h
>>conftest.
$ac_ext
9765 cat >>conftest.
$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9771 XOpenDisplay ("foo");
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9780 grep -v '^ *+' conftest.er1
>conftest.err
9782 cat conftest.err
>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try
='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 xlinux_second_failure
=no
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.
$ac_ext >&5
9802 xlinux_second_failure
=yes
9804 rm -f conftest.err conftest.
$ac_objext \
9805 conftest
$ac_exeext conftest.
$ac_ext
9806 if test "${xlinux_second_failure}" = "yes"; then
9807 # If we get the same failure with -b, there is no use adding -b.
9808 # So take it out. This plays safe.
9809 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9810 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9811 CPPFLAGS
="$OLD_CPPFLAGS"
9813 echo "$as_me:$LINENO: result: no" >&5
9814 echo "${ECHO_T}no" >&6
9816 echo "$as_me:$LINENO: result: yes" >&5
9817 echo "${ECHO_T}yes" >&6
9820 echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9825 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9826 # header files included from there.
9827 echo "$as_me:$LINENO: checking for Xkb" >&5
9828 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9829 cat >conftest.
$ac_ext <<_ACEOF
9832 cat confdefs.h
>>conftest.
$ac_ext
9833 cat >>conftest.
$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <X11/Xlib.h>
9836 #include <X11/XKBlib.h>
9840 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9845 rm -f conftest.
$ac_objext conftest
$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9849 grep -v '^ *+' conftest.er1
>conftest.err
9851 cat conftest.err
>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try
='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.
$ac_ext >&5
9873 rm -f conftest.err conftest.
$ac_objext \
9874 conftest
$ac_exeext conftest.
$ac_ext
9875 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9876 echo "${ECHO_T}$emacs_xkb" >&6
9877 if test $emacs_xkb = yes; then
9879 cat >>confdefs.h
<<\_ACEOF
9880 #define HAVE_XKBGETKEYBOARD 1
9889 for ac_func
in XrmSetDatabase XScreenResourceString \
9890 XScreenNumberOfScreen XSetWMProtocols
9892 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9893 echo "$as_me:$LINENO: checking for $ac_func" >&5
9894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9895 if eval "test \"\${$as_ac_var+set}\" = set"; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 cat >conftest.
$ac_ext <<_ACEOF
9901 cat confdefs.h
>>conftest.
$ac_ext
9902 cat >>conftest.
$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9906 #define $ac_func innocuous_$ac_func
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char $ac_func (); below.
9910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911 <limits.h> exists even on freestanding compilers. */
9914 # include <limits.h>
9916 # include <assert.h>
9921 /* Override any gcc2 internal prototype to avoid an error. */
9926 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9929 /* The GNU C library defines this for functions which it implements
9930 to always fail with ENOSYS. Some functions are actually named
9931 something starting with __ and the normal name is an alias. */
9932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9935 char (*f) () = $ac_func;
9944 return f != $ac_func;
9949 rm -f conftest.
$ac_objext conftest
$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9953 grep -v '^ *+' conftest.er1
>conftest.err
9955 cat conftest.err
>&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try
='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 eval "$as_ac_var=yes"
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.
$ac_ext >&5
9975 eval "$as_ac_var=no"
9977 rm -f conftest.err conftest.
$ac_objext \
9978 conftest
$ac_exeext conftest.
$ac_ext
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9982 if test `eval echo '${'$as_ac_var'}'` = yes; then
9983 cat >>confdefs.h
<<_ACEOF
9984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9992 if test "${window_system}" = "x11"; then
9993 echo "$as_me:$LINENO: checking X11 version 6" >&5
9994 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9995 if test "${emacs_cv_x11_version_6+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 cat >conftest.
$ac_ext <<_ACEOF
10001 cat confdefs.h
>>conftest.
$ac_ext
10002 cat >>conftest.
$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 #include <X11/Xlib.h>
10008 #if XlibSpecificationRelease < 6
10016 rm -f conftest.
$ac_objext conftest
$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>conftest.er1
10020 grep -v '^ *+' conftest.er1
>conftest.err
10022 cat conftest.err
>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try
='test -s conftest$ac_exeext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 emacs_cv_x11_version_6
=yes
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.
$ac_ext >&5
10042 emacs_cv_x11_version_6
=no
10044 rm -f conftest.err conftest.
$ac_objext \
10045 conftest
$ac_exeext conftest.
$ac_ext
10048 if test $emacs_cv_x11_version_6 = yes; then
10049 echo "$as_me:$LINENO: result: 6 or newer" >&5
10050 echo "${ECHO_T}6 or newer" >&6
10052 cat >>confdefs.h
<<\_ACEOF
10053 #define HAVE_X11R6 1
10057 echo "$as_me:$LINENO: result: before 6" >&5
10058 echo "${ECHO_T}before 6" >&6
10062 if test "${window_system}" = "x11"; then
10063 echo "$as_me:$LINENO: checking X11 version 5" >&5
10064 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10065 if test "${emacs_cv_x11_version_5+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 cat >conftest.
$ac_ext <<_ACEOF
10071 cat confdefs.h
>>conftest.
$ac_ext
10072 cat >>conftest.
$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <X11/Xlib.h>
10078 #if XlibSpecificationRelease < 5
10086 rm -f conftest.
$ac_objext conftest
$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10090 grep -v '^ *+' conftest.er1
>conftest.err
10092 cat conftest.err
>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try
='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 emacs_cv_x11_version_5
=yes
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.
$ac_ext >&5
10112 emacs_cv_x11_version_5
=no
10114 rm -f conftest.err conftest.
$ac_objext \
10115 conftest
$ac_exeext conftest.
$ac_ext
10118 if test $emacs_cv_x11_version_5 = yes; then
10119 echo "$as_me:$LINENO: result: 5 or newer" >&5
10120 echo "${ECHO_T}5 or newer" >&6
10123 cat >>confdefs.h
<<\_ACEOF
10124 #define HAVE_X11R5 1
10129 echo "$as_me:$LINENO: result: before 5" >&5
10130 echo "${ECHO_T}before 5" >&6
10137 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10138 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10139 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10140 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10141 { (exit 1); exit 1; }; };
10145 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10147 if test "X${with_pkg_config_prog}" != X
; then
10148 PKG_CONFIG
="${with_pkg_config_prog}"
10153 if test -z "$PKG_CONFIG"; then
10154 # Extract the first word of "pkg-config", so it can be a program name with args.
10155 set dummy pkg-config
; ac_word
=$2
10156 echo "$as_me:$LINENO: checking for $ac_word" >&5
10157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 case $PKG_CONFIG in
10163 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10167 for as_dir
in $PATH
10170 test -z "$as_dir" && as_dir
=.
10171 for ac_exec_ext
in '' $ac_executable_extensions; do
10172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10184 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10186 if test -n "$PKG_CONFIG"; then
10187 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10188 echo "${ECHO_T}$PKG_CONFIG" >&6
10190 echo "$as_me:$LINENO: result: no" >&5
10191 echo "${ECHO_T}no" >&6
10196 if test "$PKG_CONFIG" = "no" ; then
10197 echo "*** The pkg-config script could not be found. Make sure it is"
10198 echo "*** in your path, or give the full path to pkg-config with"
10199 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10200 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10202 PKG_CONFIG_MIN_VERSION
=0.9.0
10203 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10204 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10205 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10207 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209 echo "${ECHO_T}yes" >&6
10212 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10213 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10214 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10215 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10216 echo "${ECHO_T}$GTK_CFLAGS" >&6
10218 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10219 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10220 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10221 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10222 echo "${ECHO_T}$GTK_LIBS" >&6
10226 ## If we have a custom action on failure, don't print errors, but
10227 ## do set a variable so people can do so.
10228 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10229 echo $GTK_PKG_ERRORS
10235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10240 if test $succeeded = yes; then
10243 { { 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
10244 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;}
10245 { (exit 1); exit 1; }; }
10250 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10251 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10252 LIBS
="$GTK_LIBS $LIBS"
10255 cat >>confdefs.h
<<\_ACEOF
10261 if test "$with_toolkit_scroll_bars" != no
; then
10262 with_toolkit_scroll_bars
=yes
10265 HAVE_GTK_MULTIDISPLAY
=no
10267 HAVE_GTK_FILE_SELECTION
=no
10269 for ac_func
in gtk_file_selection_new
10271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 cat >conftest.
$ac_ext <<_ACEOF
10280 cat confdefs.h
>>conftest.
$ac_ext
10281 cat >>conftest.
$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10285 #define $ac_func innocuous_$ac_func
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char $ac_func (); below.
10289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10290 <limits.h> exists even on freestanding compilers. */
10293 # include <limits.h>
10295 # include <assert.h>
10300 /* Override any gcc2 internal prototype to avoid an error. */
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10308 /* The GNU C library defines this for functions which it implements
10309 to always fail with ENOSYS. Some functions are actually named
10310 something starting with __ and the normal name is an alias. */
10311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10314 char (*f) () = $ac_func;
10323 return f != $ac_func;
10328 rm -f conftest.
$ac_objext conftest
$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>conftest.er1
10332 grep -v '^ *+' conftest.er1
>conftest.err
10334 cat conftest.err
>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try
='test -s conftest$ac_exeext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 eval "$as_ac_var=yes"
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.
$ac_ext >&5
10354 eval "$as_ac_var=no"
10356 rm -f conftest.err conftest.
$ac_objext \
10357 conftest
$ac_exeext conftest.
$ac_ext
10359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10361 if test `eval echo '${'$as_ac_var'}'` = yes; then
10362 cat >>confdefs.h
<<_ACEOF
10363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10365 HAVE_GTK_FILE_SELECTION
=yes
10370 HAVE_GTK_FILE_CHOOSER
=no
10372 for ac_func
in gtk_file_chooser_dialog_new
10374 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_var+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 cat >conftest.
$ac_ext <<_ACEOF
10383 cat confdefs.h
>>conftest.
$ac_ext
10384 cat >>conftest.
$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388 #define $ac_func innocuous_$ac_func
10390 /* System header to define __stub macros and hopefully few prototypes,
10391 which can conflict with char $ac_func (); below.
10392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393 <limits.h> exists even on freestanding compilers. */
10396 # include <limits.h>
10398 # include <assert.h>
10403 /* Override any gcc2 internal prototype to avoid an error. */
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10411 /* The GNU C library defines this for functions which it implements
10412 to always fail with ENOSYS. Some functions are actually named
10413 something starting with __ and the normal name is an alias. */
10414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10417 char (*f) () = $ac_func;
10426 return f != $ac_func;
10431 rm -f conftest.
$ac_objext conftest
$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10435 grep -v '^ *+' conftest.er1
>conftest.err
10437 cat conftest.err
>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try
='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 eval "$as_ac_var=yes"
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.
$ac_ext >&5
10457 eval "$as_ac_var=no"
10459 rm -f conftest.err conftest.
$ac_objext \
10460 conftest
$ac_exeext conftest.
$ac_ext
10462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10464 if test `eval echo '${'$as_ac_var'}'` = yes; then
10465 cat >>confdefs.h
<<_ACEOF
10466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 HAVE_GTK_FILE_CHOOSER
=yes
10473 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10474 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10476 cat >>confdefs.h
<<\_ACEOF
10477 #define HAVE_GTK_FILE_BOTH 1
10482 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10483 HAVE_GTK_AND_PTHREAD
=no
10485 for ac_header
in pthread.h
10487 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10489 echo "$as_me:$LINENO: checking for $ac_header" >&5
10490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10497 # Is the header compilable?
10498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10500 cat >conftest.
$ac_ext <<_ACEOF
10503 cat confdefs.h
>>conftest.
$ac_ext
10504 cat >>conftest.
$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 #include <$ac_header>
10509 rm -f conftest.
$ac_objext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>conftest.er1
10513 grep -v '^ *+' conftest.er1
>conftest.err
10515 cat conftest.err
>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try
='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_header_compiler
=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.
$ac_ext >&5
10535 ac_header_compiler
=no
10537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10539 echo "${ECHO_T}$ac_header_compiler" >&6
10541 # Is the header present?
10542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10544 cat >conftest.
$ac_ext <<_ACEOF
10547 cat confdefs.h
>>conftest.
$ac_ext
10548 cat >>conftest.
$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 #include <$ac_header>
10552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10555 grep -v '^ *+' conftest.er1
>conftest.err
10557 cat conftest.err
>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev
/null
; then
10560 if test -s conftest.err
; then
10561 ac_cpp_err
=$ac_c_preproc_warn_flag
10562 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10569 if test -z "$ac_cpp_err"; then
10570 ac_header_preproc
=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.
$ac_ext >&5
10575 ac_header_preproc
=no
10577 rm -f conftest.err conftest.
$ac_ext
10578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579 echo "${ECHO_T}$ac_header_preproc" >&6
10581 # So? What about this header?
10582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588 ac_header_preproc
=yes
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10605 ## ------------------------------------------ ##
10606 ## Report this to the AC_PACKAGE_NAME lists. ##
10607 ## ------------------------------------------ ##
10610 sed "s/^/$as_me: WARNING: /" >&2
10613 echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 eval "$as_ac_Header=\$ac_header_preproc"
10620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10625 cat >>confdefs.h
<<_ACEOF
10626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10633 if test "$ac_cv_header_pthread_h"; then
10634 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10635 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10636 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 ac_check_lib_save_LIBS
=$LIBS
10640 LIBS
="-lpthread $LIBS"
10641 cat >conftest.
$ac_ext <<_ACEOF
10644 cat confdefs.h
>>conftest.
$ac_ext
10645 cat >>conftest.
$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char pthread_self ();
10663 rm -f conftest.
$ac_objext conftest
$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>conftest.er1
10667 grep -v '^ *+' conftest.er1
>conftest.err
10669 cat conftest.err
>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try
='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_pthread_pthread_self
=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.
$ac_ext >&5
10689 ac_cv_lib_pthread_pthread_self
=no
10691 rm -f conftest.err conftest.
$ac_objext \
10692 conftest
$ac_exeext conftest.
$ac_ext
10693 LIBS
=$ac_check_lib_save_LIBS
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10697 if test $ac_cv_lib_pthread_pthread_self = yes; then
10698 HAVE_GTK_AND_PTHREAD
=yes
10702 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10703 GTK_LIBS
="$GTK_LIBS -lpthread"
10705 cat >>confdefs.h
<<\_ACEOF
10706 #define HAVE_GTK_AND_PTHREAD 1
10713 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10714 if test x
"${HAVE_X11R5}" = xyes
; then
10715 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10716 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10717 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.
$ac_ext <<_ACEOF
10723 cat confdefs.h
>>conftest.
$ac_ext
10724 cat >>conftest.
$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10727 #include <X11/Intrinsic.h>
10728 #include <X11/Xaw/Simple.h>
10737 rm -f conftest.
$ac_objext conftest
$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739 (eval $ac_link) 2>conftest.er1
10741 grep -v '^ *+' conftest.er1
>conftest.err
10743 cat conftest.err
>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try
='test -s conftest$ac_exeext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 emacs_cv_x11_version_5_with_xaw
=yes
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.
$ac_ext >&5
10763 emacs_cv_x11_version_5_with_xaw
=no
10765 rm -f conftest.err conftest.
$ac_objext \
10766 conftest
$ac_exeext conftest.
$ac_ext
10769 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10770 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10771 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10772 USE_X_TOOLKIT
=LUCID
10774 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10775 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10783 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10785 if test "${USE_X_TOOLKIT}" != "none"; then
10786 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10787 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10788 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.
$ac_ext <<_ACEOF
10794 cat confdefs.h
>>conftest.
$ac_ext
10795 cat >>conftest.
$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <X11/Intrinsic.h>
10801 #if XtSpecificationRelease < 6
10809 rm -f conftest.
$ac_objext conftest
$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1
>conftest.err
10815 cat conftest.err
>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try
='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 emacs_cv_x11_toolkit_version_6
=yes
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.
$ac_ext >&5
10835 emacs_cv_x11_toolkit_version_6
=no
10837 rm -f conftest.err conftest.
$ac_objext \
10838 conftest
$ac_exeext conftest.
$ac_ext
10841 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10842 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10843 echo "$as_me:$LINENO: result: 6 or newer" >&5
10844 echo "${ECHO_T}6 or newer" >&6
10846 cat >>confdefs.h
<<\_ACEOF
10847 #define HAVE_X11XTR6 1
10851 echo "$as_me:$LINENO: result: before 6" >&5
10852 echo "${ECHO_T}before 6" >&6
10856 if test x
$HAVE_X11XTR6 = xyes
; then
10857 LIBS
="-lXt -lSM -lICE $LIBS"
10862 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10863 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10864 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 ac_check_lib_save_LIBS
=$LIBS
10869 cat >conftest.
$ac_ext <<_ACEOF
10872 cat confdefs.h
>>conftest.
$ac_ext
10873 cat >>conftest.
$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10876 /* Override any gcc2 internal prototype to avoid an error. */
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10882 char XmuConvertStandardSelection ();
10886 XmuConvertStandardSelection ();
10891 rm -f conftest.
$ac_objext conftest
$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10895 grep -v '^ *+' conftest.er1
>conftest.err
10897 cat conftest.err
>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try
='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.
$ac_ext >&5
10917 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10919 rm -f conftest.err conftest.
$ac_objext \
10920 conftest
$ac_exeext conftest.
$ac_ext
10921 LIBS
=$ac_check_lib_save_LIBS
10923 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10924 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10925 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10926 cat >>confdefs.h
<<_ACEOF
10927 #define HAVE_LIBXMU 1
10934 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10937 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10938 if test "${HAVE_X11}" = "yes"; then
10939 if test "${USE_X_TOOLKIT}" != "none"; then
10941 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10942 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10943 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_check_lib_save_LIBS
=$LIBS
10947 LIBS
="-lXext $LIBS"
10948 cat >conftest.
$ac_ext <<_ACEOF
10951 cat confdefs.h
>>conftest.
$ac_ext
10952 cat >>conftest.
$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10955 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char XShapeQueryExtension ();
10965 XShapeQueryExtension ();
10970 rm -f conftest.
$ac_objext conftest
$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>conftest.er1
10974 grep -v '^ *+' conftest.er1
>conftest.err
10976 cat conftest.err
>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try
='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.
$ac_ext >&5
10996 ac_cv_lib_Xext_XShapeQueryExtension
=no
10998 rm -f conftest.err conftest.
$ac_objext \
10999 conftest
$ac_exeext conftest.
$ac_ext
11000 LIBS
=$ac_check_lib_save_LIBS
11002 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11003 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11004 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11005 cat >>confdefs.h
<<_ACEOF
11006 #define HAVE_LIBXEXT 1
11009 LIBS
="-lXext $LIBS"
11016 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11017 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11018 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11019 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11032 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11035 Motif version prior to 2.1.
11041 rm -f conftest.
$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1
>conftest.err
11047 cat conftest.err
>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try
='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 emacs_cv_motif_version_2_1
=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 emacs_cv_motif_version_2_1
=no
11069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11071 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11072 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11073 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11074 if test $emacs_cv_motif_version_2_1 = yes; then
11077 cat >>confdefs.h
<<\_ACEOF
11078 #define HAVE_MOTIF_2_1 1
11081 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11082 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11083 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 ac_check_lib_save_LIBS
=$LIBS
11088 cat >conftest.
$ac_ext <<_ACEOF
11091 cat confdefs.h
>>conftest.
$ac_ext
11092 cat >>conftest.
$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11095 /* Override any gcc2 internal prototype to avoid an error. */
11099 /* We use char because int might match the return type of a gcc2
11100 builtin and then its argument prototype would still apply. */
11101 char XpCreateContext ();
11105 XpCreateContext ();
11110 rm -f conftest.
$ac_objext conftest
$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>conftest.er1
11114 grep -v '^ *+' conftest.er1
>conftest.err
11116 cat conftest.err
>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try
='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_lib_Xp_XpCreateContext
=yes
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.
$ac_ext >&5
11136 ac_cv_lib_Xp_XpCreateContext
=no
11138 rm -f conftest.err conftest.
$ac_objext \
11139 conftest
$ac_exeext conftest.
$ac_ext
11140 LIBS
=$ac_check_lib_save_LIBS
11142 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11143 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11144 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11148 if test ${HAVE_LIBXP} = yes; then
11150 cat >>confdefs.h
<<\_ACEOF
11151 #define HAVE_LIBXP 1
11156 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11157 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11158 if test "${emacs_cv_lesstif+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 # We put this in CFLAGS temporarily to precede other -I options
11162 # that might be in CFLAGS temporarily.
11163 # We put this in CPPFLAGS where it precedes the other -I options.
11164 OLD_CPPFLAGS
=$CPPFLAGS
11166 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11167 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11168 cat >conftest.
$ac_ext <<_ACEOF
11171 cat confdefs.h
>>conftest.
$ac_ext
11172 cat >>conftest.
$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11183 rm -f conftest.
$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11187 grep -v '^ *+' conftest.er1
>conftest.err
11189 cat conftest.err
>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try
='test -s conftest.$ac_objext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 emacs_cv_lesstif
=yes
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.
$ac_ext >&5
11209 emacs_cv_lesstif
=no
11211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11213 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11214 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11215 if test $emacs_cv_lesstif = yes; then
11216 # Make sure this -I option remains in CPPFLAGS after it is set
11217 # back to REAL_CPPFLAGS.
11218 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11219 # have those other -I options anyway. Ultimately, having this
11220 # directory ultimately in CPPFLAGS will be enough.
11221 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11222 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11225 CPPFLAGS
=$OLD_CPPFLAGS
11230 ### Is -lXaw3d available?
11232 if test "${HAVE_X11}" = "yes"; then
11233 if test "${USE_X_TOOLKIT}" != "none"; then
11234 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11235 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11236 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.
$ac_ext <<_ACEOF
11242 cat confdefs.h
>>conftest.
$ac_ext
11243 cat >>conftest.
$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <X11/Xaw3d/Scrollbar.h>
11247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11250 grep -v '^ *+' conftest.er1
>conftest.err
11252 cat conftest.err
>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev
/null
; then
11255 if test -s conftest.err
; then
11256 ac_cpp_err
=$ac_c_preproc_warn_flag
11257 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11264 if test -z "$ac_cpp_err"; then
11265 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.
$ac_ext >&5
11270 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11272 rm -f conftest.err conftest.
$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11275 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11276 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11277 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11278 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11279 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 ac_check_lib_save_LIBS
=$LIBS
11283 LIBS
="-lXaw3d $LIBS"
11284 cat >conftest.
$ac_ext <<_ACEOF
11287 cat confdefs.h
>>conftest.
$ac_ext
11288 cat >>conftest.
$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11291 /* Override any gcc2 internal prototype to avoid an error. */
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char XawScrollbarSetThumb ();
11301 XawScrollbarSetThumb ();
11306 rm -f conftest.
$ac_objext conftest
$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11310 grep -v '^ *+' conftest.er1
>conftest.err
11312 cat conftest.err
>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try
='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.
$ac_ext >&5
11332 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11334 rm -f conftest.err conftest.
$ac_objext \
11335 conftest
$ac_exeext conftest.
$ac_ext
11336 LIBS
=$ac_check_lib_save_LIBS
11338 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11339 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11340 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11347 if test "${HAVE_XAW3D}" = "yes"; then
11349 cat >>confdefs.h
<<\_ACEOF
11350 #define HAVE_XAW3D 1
11359 USE_TOOLKIT_SCROLL_BARS
=no
11360 if test "${with_toolkit_scroll_bars}" != "no"; then
11361 if test "${USE_X_TOOLKIT}" != "none"; then
11362 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11363 cat >>confdefs.h
<<\_ACEOF
11364 #define USE_TOOLKIT_SCROLL_BARS 1
11368 USE_TOOLKIT_SCROLL_BARS
=yes
11369 elif test "${HAVE_XAW3D}" = "yes"; then
11370 cat >>confdefs.h
<<\_ACEOF
11371 #define USE_TOOLKIT_SCROLL_BARS 1
11374 USE_TOOLKIT_SCROLL_BARS
=yes
11376 elif test "${HAVE_GTK}" = "yes"; then
11377 cat >>confdefs.h
<<\_ACEOF
11378 #define USE_TOOLKIT_SCROLL_BARS 1
11381 USE_TOOLKIT_SCROLL_BARS
=yes
11382 elif test "${HAVE_CARBON}" = "yes"; then
11383 cat >>confdefs.h
<<\_ACEOF
11384 #define USE_TOOLKIT_SCROLL_BARS 1
11387 USE_TOOLKIT_SCROLL_BARS
=yes
11391 cat >conftest.
$ac_ext <<_ACEOF
11394 cat confdefs.h
>>conftest.
$ac_ext
11395 cat >>conftest.
$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11398 #include <X11/Xlib.h>
11399 #include <X11/Xresource.h>
11408 rm -f conftest.
$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1
>conftest.err
11414 cat conftest.err
>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try
='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11431 cat >>confdefs.h
<<\_ACEOF
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.
$ac_ext >&5
11441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 if test "${with_xim}" != "no"; then
11446 cat >>confdefs.h
<<\_ACEOF
11453 if test "${HAVE_XIM}" != "no"; then
11454 late_CFLAGS
=$CFLAGS
11455 if test "$GCC" = yes; then
11456 CFLAGS
="$CFLAGS --pedantic-errors"
11458 cat >conftest.
$ac_ext <<_ACEOF
11461 cat confdefs.h
>>conftest.
$ac_ext
11462 cat >>conftest.
$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11465 #include <X11/Xlib.h>
11466 #include <X11/Xresource.h>
11475 XPointer *client_data;
11477 /* If we're not using GCC, it's probably not XFree86, and this is
11478 probably right, but we can't use something like --pedantic-errors. */
11479 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11480 char*, XIMProc, XPointer*);
11482 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11488 rm -f conftest.
$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1
>conftest.err
11494 cat conftest.err
>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try
='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 emacs_cv_arg6_star
=yes
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.
$ac_ext >&5
11515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11517 if test "$emacs_cv_arg6_star" = yes; then
11518 cat >>confdefs.h
<<\_ACEOF
11519 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11523 cat >>confdefs.h
<<\_ACEOF
11524 #define XRegisterIMInstantiateCallback_arg6 XPointer
11528 CFLAGS
=$late_CFLAGS
11531 ### Use -lXpm if available, unless `--with-xpm=no'.
11533 if test "${HAVE_X11}" = "yes"; then
11534 if test "${with_xpm}" != "no"; then
11535 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11536 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11537 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11538 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11542 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11544 # Is the header compilable?
11545 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11546 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11547 cat >conftest.
$ac_ext <<_ACEOF
11550 cat confdefs.h
>>conftest.
$ac_ext
11551 cat >>conftest.
$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 $ac_includes_default
11554 #include <X11/xpm.h>
11556 rm -f conftest.
$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11560 grep -v '^ *+' conftest.er1
>conftest.err
11562 cat conftest.err
>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; } &&
11571 { ac_try
='test -s conftest.$ac_objext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_header_compiler
=yes
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.
$ac_ext >&5
11582 ac_header_compiler
=no
11584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11586 echo "${ECHO_T}$ac_header_compiler" >&6
11588 # Is the header present?
11589 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11590 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11591 cat >conftest.
$ac_ext <<_ACEOF
11594 cat confdefs.h
>>conftest.
$ac_ext
11595 cat >>conftest.
$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 #include <X11/xpm.h>
11599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11600 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11602 grep -v '^ *+' conftest.er1
>conftest.err
11604 cat conftest.err
>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } >/dev
/null
; then
11607 if test -s conftest.err
; then
11608 ac_cpp_err
=$ac_c_preproc_warn_flag
11609 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11616 if test -z "$ac_cpp_err"; then
11617 ac_header_preproc
=yes
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.
$ac_ext >&5
11622 ac_header_preproc
=no
11624 rm -f conftest.err conftest.
$ac_ext
11625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11626 echo "${ECHO_T}$ac_header_preproc" >&6
11628 # So? What about this header?
11629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11631 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11632 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11634 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11635 ac_header_preproc
=yes
11638 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11639 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11641 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11643 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11645 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11647 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11649 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11652 ## ------------------------------------------ ##
11653 ## Report this to the AC_PACKAGE_NAME lists. ##
11654 ## ------------------------------------------ ##
11657 sed "s/^/$as_me: WARNING: /" >&2
11660 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11661 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11662 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11667 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11668 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11671 if test $ac_cv_header_X11_xpm_h = yes; then
11672 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11673 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11674 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 ac_check_lib_save_LIBS
=$LIBS
11678 LIBS
="-lXpm -lX11 $LIBS"
11679 cat >conftest.
$ac_ext <<_ACEOF
11682 cat confdefs.h
>>conftest.
$ac_ext
11683 cat >>conftest.
$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 /* Override any gcc2 internal prototype to avoid an error. */
11690 /* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692 char XpmReadFileToPixmap ();
11696 XpmReadFileToPixmap ();
11701 rm -f conftest.
$ac_objext conftest
$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11705 grep -v '^ *+' conftest.er1
>conftest.err
11707 cat conftest.err
>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try
='test -s conftest$ac_exeext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.
$ac_ext >&5
11727 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11729 rm -f conftest.err conftest.
$ac_objext \
11730 conftest
$ac_exeext conftest.
$ac_ext
11731 LIBS
=$ac_check_lib_save_LIBS
11733 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11734 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11735 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11742 if test "${HAVE_XPM}" = "yes"; then
11743 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11744 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11745 cat >conftest.
$ac_ext <<_ACEOF
11748 cat confdefs.h
>>conftest.
$ac_ext
11749 cat >>conftest.
$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 #include "X11/xpm.h"
11752 #ifndef XpmReturnAllocPixels
11753 no_return_alloc_pixels
11757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11758 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11766 if test "${HAVE_XPM}" = "yes"; then
11767 echo "$as_me:$LINENO: result: yes" >&5
11768 echo "${ECHO_T}yes" >&6
11770 echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6
11776 if test "${HAVE_XPM}" = "yes"; then
11778 cat >>confdefs.h
<<\_ACEOF
11785 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11787 if test "${HAVE_X11}" = "yes"; then
11788 if test "${with_jpeg}" != "no"; then
11789 if test "${ac_cv_header_jerror_h+set}" = set; then
11790 echo "$as_me:$LINENO: checking for jerror.h" >&5
11791 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11792 if test "${ac_cv_header_jerror_h+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11796 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11798 # Is the header compilable?
11799 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11800 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11801 cat >conftest.
$ac_ext <<_ACEOF
11804 cat confdefs.h
>>conftest.
$ac_ext
11805 cat >>conftest.
$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 $ac_includes_default
11808 #include <jerror.h>
11810 rm -f conftest.
$ac_objext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812 (eval $ac_compile) 2>conftest.er1
11814 grep -v '^ *+' conftest.er1
>conftest.err
11816 cat conftest.err
>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try
='test -s conftest.$ac_objext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_header_compiler
=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.
$ac_ext >&5
11836 ac_header_compiler
=no
11838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840 echo "${ECHO_T}$ac_header_compiler" >&6
11842 # Is the header present?
11843 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11844 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11845 cat >conftest.
$ac_ext <<_ACEOF
11848 cat confdefs.h
>>conftest.
$ac_ext
11849 cat >>conftest.
$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <jerror.h>
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1
>conftest.err
11858 cat conftest.err
>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev
/null
; then
11861 if test -s conftest.err
; then
11862 ac_cpp_err
=$ac_c_preproc_warn_flag
11863 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11870 if test -z "$ac_cpp_err"; then
11871 ac_header_preproc
=yes
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.
$ac_ext >&5
11876 ac_header_preproc
=no
11878 rm -f conftest.err conftest.
$ac_ext
11879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11880 echo "${ECHO_T}$ac_header_preproc" >&6
11882 # So? What about this header?
11883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11885 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11886 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11888 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11889 ac_header_preproc
=yes
11892 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11893 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11895 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11897 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11899 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11901 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11903 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11906 ## ------------------------------------------ ##
11907 ## Report this to the AC_PACKAGE_NAME lists. ##
11908 ## ------------------------------------------ ##
11911 sed "s/^/$as_me: WARNING: /" >&2
11914 echo "$as_me:$LINENO: checking for jerror.h" >&5
11915 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11916 if test "${ac_cv_header_jerror_h+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_cv_header_jerror_h
=$ac_header_preproc
11921 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11922 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11925 if test $ac_cv_header_jerror_h = yes; then
11926 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11927 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11928 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 ac_check_lib_save_LIBS
=$LIBS
11932 LIBS
="-ljpeg $LIBS"
11933 cat >conftest.
$ac_ext <<_ACEOF
11936 cat confdefs.h
>>conftest.
$ac_ext
11937 cat >>conftest.
$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11940 /* Override any gcc2 internal prototype to avoid an error. */
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946 char jpeg_destroy_compress ();
11950 jpeg_destroy_compress ();
11955 rm -f conftest.
$ac_objext conftest
$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11959 grep -v '^ *+' conftest.er1
>conftest.err
11961 cat conftest.err
>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try
='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.
$ac_ext >&5
11981 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11983 rm -f conftest.err conftest.
$ac_objext \
11984 conftest
$ac_exeext conftest.
$ac_ext
11985 LIBS
=$ac_check_lib_save_LIBS
11987 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11988 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11989 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11999 if test "${HAVE_JPEG}" = "yes"; then
12000 cat >>confdefs.h
<<\_ACEOF
12001 #define HAVE_JPEG 1
12004 cat >conftest.
$ac_ext <<_ACEOF
12007 cat confdefs.h
>>conftest.
$ac_ext
12008 cat >>conftest.
$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 #include <jpeglib.h>
12011 version=JPEG_LIB_VERSION
12014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12015 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12016 cat >>confdefs.h
<<\_ACEOF
12017 #define HAVE_JPEG 1
12021 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12022 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12030 ### Use -lpng if available, unless `--with-png=no'.
12032 if test "${HAVE_X11}" = "yes"; then
12033 if test "${with_png}" != "no"; then
12034 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12035 # in /usr/include/libpng.
12038 for ac_header
in png.h libpng
/png.h
12040 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12042 echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12050 # Is the header compilable?
12051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12053 cat >conftest.
$ac_ext <<_ACEOF
12056 cat confdefs.h
>>conftest.
$ac_ext
12057 cat >>conftest.
$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12060 #include <$ac_header>
12062 rm -f conftest.
$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>conftest.er1
12066 grep -v '^ *+' conftest.er1
>conftest.err
12068 cat conftest.err
>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try
='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_header_compiler
=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.
$ac_ext >&5
12088 ac_header_compiler
=no
12090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12092 echo "${ECHO_T}$ac_header_compiler" >&6
12094 # Is the header present?
12095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12097 cat >conftest.
$ac_ext <<_ACEOF
12100 cat confdefs.h
>>conftest.
$ac_ext
12101 cat >>conftest.
$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 #include <$ac_header>
12105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12108 grep -v '^ *+' conftest.er1
>conftest.err
12110 cat conftest.err
>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } >/dev
/null
; then
12113 if test -s conftest.err
; then
12114 ac_cpp_err
=$ac_c_preproc_warn_flag
12115 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12122 if test -z "$ac_cpp_err"; then
12123 ac_header_preproc
=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.
$ac_ext >&5
12128 ac_header_preproc
=no
12130 rm -f conftest.err conftest.
$ac_ext
12131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12132 echo "${ECHO_T}$ac_header_preproc" >&6
12134 # So? What about this header?
12135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12141 ac_header_preproc
=yes
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12158 ## ------------------------------------------ ##
12159 ## Report this to the AC_PACKAGE_NAME lists. ##
12160 ## ------------------------------------------ ##
12163 sed "s/^/$as_me: WARNING: /" >&2
12166 echo "$as_me:$LINENO: checking for $ac_header" >&5
12167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 eval "$as_ac_Header=\$ac_header_preproc"
12173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12178 cat >>confdefs.h
<<_ACEOF
12179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12186 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12187 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12188 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12189 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 ac_check_lib_save_LIBS
=$LIBS
12193 LIBS
="-lpng -lz -lm $LIBS"
12194 cat >conftest.
$ac_ext <<_ACEOF
12197 cat confdefs.h
>>conftest.
$ac_ext
12198 cat >>conftest.
$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char png_get_channels ();
12211 png_get_channels ();
12216 rm -f conftest.
$ac_objext conftest
$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12220 grep -v '^ *+' conftest.er1
>conftest.err
12222 cat conftest.err
>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try
='test -s conftest$ac_exeext'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; }; then
12237 ac_cv_lib_png_png_get_channels
=yes
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.
$ac_ext >&5
12242 ac_cv_lib_png_png_get_channels
=no
12244 rm -f conftest.err conftest.
$ac_objext \
12245 conftest
$ac_exeext conftest.
$ac_ext
12246 LIBS
=$ac_check_lib_save_LIBS
12248 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12249 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12250 if test $ac_cv_lib_png_png_get_channels = yes; then
12257 if test "${HAVE_PNG}" = "yes"; then
12259 cat >>confdefs.h
<<\_ACEOF
12266 ### Use -ltiff if available, unless `--with-tiff=no'.
12268 if test "${HAVE_X11}" = "yes"; then
12269 if test "${with_tiff}" != "no"; then
12270 if test "${ac_cv_header_tiffio_h+set}" = set; then
12271 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12272 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12273 if test "${ac_cv_header_tiffio_h+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12277 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12279 # Is the header compilable?
12280 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12281 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12282 cat >conftest.
$ac_ext <<_ACEOF
12285 cat confdefs.h
>>conftest.
$ac_ext
12286 cat >>conftest.
$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 #include <tiffio.h>
12291 rm -f conftest.
$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>conftest.er1
12295 grep -v '^ *+' conftest.er1
>conftest.err
12297 cat conftest.err
>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try
='test -s conftest.$ac_objext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_header_compiler
=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.
$ac_ext >&5
12317 ac_header_compiler
=no
12319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12321 echo "${ECHO_T}$ac_header_compiler" >&6
12323 # Is the header present?
12324 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12325 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12326 cat >conftest.
$ac_ext <<_ACEOF
12329 cat confdefs.h
>>conftest.
$ac_ext
12330 cat >>conftest.
$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <tiffio.h>
12334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12335 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12337 grep -v '^ *+' conftest.er1
>conftest.err
12339 cat conftest.err
>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } >/dev
/null
; then
12342 if test -s conftest.err
; then
12343 ac_cpp_err
=$ac_c_preproc_warn_flag
12344 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12351 if test -z "$ac_cpp_err"; then
12352 ac_header_preproc
=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.
$ac_ext >&5
12357 ac_header_preproc
=no
12359 rm -f conftest.err conftest.
$ac_ext
12360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12361 echo "${ECHO_T}$ac_header_preproc" >&6
12363 # So? What about this header?
12364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12366 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12367 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12369 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12370 ac_header_preproc
=yes
12373 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12374 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12376 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12378 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12380 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12382 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12384 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12387 ## ------------------------------------------ ##
12388 ## Report this to the AC_PACKAGE_NAME lists. ##
12389 ## ------------------------------------------ ##
12392 sed "s/^/$as_me: WARNING: /" >&2
12395 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12396 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12397 if test "${ac_cv_header_tiffio_h+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 ac_cv_header_tiffio_h
=$ac_header_preproc
12402 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12403 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12406 if test $ac_cv_header_tiffio_h = yes; then
12408 # At least one tiff package requires the jpeg library.
12409 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12410 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12411 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12412 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 ac_check_lib_save_LIBS
=$LIBS
12416 LIBS
="-ltiff $tifflibs $LIBS"
12417 cat >conftest.
$ac_ext <<_ACEOF
12420 cat confdefs.h
>>conftest.
$ac_ext
12421 cat >>conftest.
$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12424 /* Override any gcc2 internal prototype to avoid an error. */
12428 /* We use char because int might match the return type of a gcc2
12429 builtin and then its argument prototype would still apply. */
12430 char TIFFGetVersion ();
12439 rm -f conftest.
$ac_objext conftest
$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>conftest.er1
12443 grep -v '^ *+' conftest.er1
>conftest.err
12445 cat conftest.err
>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try
='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_lib_tiff_TIFFGetVersion
=yes
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.
$ac_ext >&5
12465 ac_cv_lib_tiff_TIFFGetVersion
=no
12467 rm -f conftest.err conftest.
$ac_objext \
12468 conftest
$ac_exeext conftest.
$ac_ext
12469 LIBS
=$ac_check_lib_save_LIBS
12471 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12472 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12473 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12482 if test "${HAVE_TIFF}" = "yes"; then
12484 cat >>confdefs.h
<<\_ACEOF
12485 #define HAVE_TIFF 1
12491 ### Use -lgif if available, unless `--with-gif=no'.
12493 if test "${HAVE_X11}" = "yes"; then
12494 if test "${with_gif}" != "no"; then
12495 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12496 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12497 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12498 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12502 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12504 # Is the header compilable?
12505 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12506 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12507 cat >conftest.
$ac_ext <<_ACEOF
12510 cat confdefs.h
>>conftest.
$ac_ext
12511 cat >>conftest.
$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 #include <gif_lib.h>
12516 rm -f conftest.
$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>conftest.er1
12520 grep -v '^ *+' conftest.er1
>conftest.err
12522 cat conftest.err
>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try
='test -s conftest.$ac_objext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 ac_header_compiler
=yes
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.
$ac_ext >&5
12542 ac_header_compiler
=no
12544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12546 echo "${ECHO_T}$ac_header_compiler" >&6
12548 # Is the header present?
12549 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12550 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12551 cat >conftest.
$ac_ext <<_ACEOF
12554 cat confdefs.h
>>conftest.
$ac_ext
12555 cat >>conftest.
$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 #include <gif_lib.h>
12559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12560 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12562 grep -v '^ *+' conftest.er1
>conftest.err
12564 cat conftest.err
>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } >/dev
/null
; then
12567 if test -s conftest.err
; then
12568 ac_cpp_err
=$ac_c_preproc_warn_flag
12569 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12576 if test -z "$ac_cpp_err"; then
12577 ac_header_preproc
=yes
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.
$ac_ext >&5
12582 ac_header_preproc
=no
12584 rm -f conftest.err conftest.
$ac_ext
12585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12586 echo "${ECHO_T}$ac_header_preproc" >&6
12588 # So? What about this header?
12589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12592 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12594 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12595 ac_header_preproc
=yes
12598 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12599 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12601 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12603 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12605 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12607 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12609 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12612 ## ------------------------------------------ ##
12613 ## Report this to the AC_PACKAGE_NAME lists. ##
12614 ## ------------------------------------------ ##
12617 sed "s/^/$as_me: WARNING: /" >&2
12620 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12621 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12622 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 ac_cv_header_gif_lib_h
=$ac_header_preproc
12627 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12628 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12631 if test $ac_cv_header_gif_lib_h = yes; then
12632 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12633 # Earlier versions can crash Emacs.
12634 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12635 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12636 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 ac_check_lib_save_LIBS
=$LIBS
12640 LIBS
="-lungif $LIBS"
12641 cat >conftest.
$ac_ext <<_ACEOF
12644 cat confdefs.h
>>conftest.
$ac_ext
12645 cat >>conftest.
$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12648 /* Override any gcc2 internal prototype to avoid an error. */
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12654 char EGifPutExtensionLast ();
12658 EGifPutExtensionLast ();
12663 rm -f conftest.
$ac_objext conftest
$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>conftest.er1
12667 grep -v '^ *+' conftest.er1
>conftest.err
12669 cat conftest.err
>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try
='test -s conftest$ac_exeext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.
$ac_ext >&5
12689 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12691 rm -f conftest.err conftest.
$ac_objext \
12692 conftest
$ac_exeext conftest.
$ac_ext
12693 LIBS
=$ac_check_lib_save_LIBS
12695 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12696 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12697 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12706 if test "${HAVE_GIF}" = "yes"; then
12708 cat >>confdefs.h
<<\_ACEOF
12715 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12716 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12717 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12718 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12722 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12724 # Is the header compilable?
12725 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12726 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12727 cat >conftest.
$ac_ext <<_ACEOF
12730 cat confdefs.h
>>conftest.
$ac_ext
12731 cat >>conftest.
$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 $ac_includes_default
12734 #include <malloc/malloc.h>
12736 rm -f conftest.
$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12740 grep -v '^ *+' conftest.er1
>conftest.err
12742 cat conftest.err
>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try
='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_header_compiler
=yes
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.
$ac_ext >&5
12762 ac_header_compiler
=no
12764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12766 echo "${ECHO_T}$ac_header_compiler" >&6
12768 # Is the header present?
12769 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12770 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12771 cat >conftest.
$ac_ext <<_ACEOF
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 #include <malloc/malloc.h>
12779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12780 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12782 grep -v '^ *+' conftest.er1
>conftest.err
12784 cat conftest.err
>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } >/dev
/null
; then
12787 if test -s conftest.err
; then
12788 ac_cpp_err
=$ac_c_preproc_warn_flag
12789 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12796 if test -z "$ac_cpp_err"; then
12797 ac_header_preproc
=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.
$ac_ext >&5
12802 ac_header_preproc
=no
12804 rm -f conftest.err conftest.
$ac_ext
12805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12806 echo "${ECHO_T}$ac_header_preproc" >&6
12808 # So? What about this header?
12809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12811 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12812 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12814 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12815 ac_header_preproc
=yes
12818 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12819 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12821 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12823 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12825 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12827 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12829 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12832 ## ------------------------------------------ ##
12833 ## Report this to the AC_PACKAGE_NAME lists. ##
12834 ## ------------------------------------------ ##
12837 sed "s/^/$as_me: WARNING: /" >&2
12840 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12841 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12842 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12847 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12848 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12851 if test $ac_cv_header_malloc_malloc_h = yes; then
12853 cat >>confdefs.h
<<\_ACEOF
12854 #define HAVE_MALLOC_MALLOC_H 1
12861 ### Use Mac OS X Carbon API to implement GUI.
12862 if test "${HAVE_CARBON}" = "yes"; then
12864 cat >>confdefs.h
<<\_ACEOF
12865 #define HAVE_CARBON 1
12868 ## Specify the install directory
12870 if test "${carbon_appdir_x}" != ""; then
12871 case ${carbon_appdir_x} in
12872 y | ye |
yes) carbon_appdir
=/Applications
;;
12873 * ) carbon_appdir
=${carbon_appdir_x} ;;
12876 # We also have mouse menus.
12879 tmp_CFLAGS
="$CFLAGS"
12880 CFLAGS
="$CFLAGS -framework Carbon"
12881 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12882 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12883 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 cat >conftest.
$ac_ext <<_ACEOF
12889 cat confdefs.h
>>conftest.
$ac_ext
12890 cat >>conftest.
$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12894 #define CancelMenuTracking innocuous_CancelMenuTracking
12896 /* System header to define __stub macros and hopefully few prototypes,
12897 which can conflict with char CancelMenuTracking (); below.
12898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12899 <limits.h> exists even on freestanding compilers. */
12902 # include <limits.h>
12904 # include <assert.h>
12907 #undef CancelMenuTracking
12909 /* Override any gcc2 internal prototype to avoid an error. */
12914 /* We use char because int might match the return type of a gcc2
12915 builtin and then its argument prototype would still apply. */
12916 char CancelMenuTracking ();
12917 /* The GNU C library defines this for functions which it implements
12918 to always fail with ENOSYS. Some functions are actually named
12919 something starting with __ and the normal name is an alias. */
12920 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12923 char (*f) () = CancelMenuTracking;
12932 return f != CancelMenuTracking;
12937 rm -f conftest.
$ac_objext conftest
$ac_exeext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939 (eval $ac_link) 2>conftest.er1
12941 grep -v '^ *+' conftest.er1
>conftest.err
12943 cat conftest.err
>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try
='test -s conftest$ac_exeext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_func_CancelMenuTracking
=yes
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.
$ac_ext >&5
12963 ac_cv_func_CancelMenuTracking
=no
12965 rm -f conftest.err conftest.
$ac_objext \
12966 conftest
$ac_exeext conftest.
$ac_ext
12968 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12969 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12970 if test $ac_cv_func_CancelMenuTracking = yes; then
12976 if test "$have_cmt" = yes; then
12978 cat >>confdefs.h
<<\_ACEOF
12979 #define HAVE_CANCELMENUTRACKING 1
12983 CFLAGS
="$tmp_CFLAGS"
12986 ### Use session management (-lSM -lICE) if available
12988 if test "${HAVE_X11}" = "yes"; then
12989 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12990 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12991 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12992 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12996 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12998 # Is the header compilable?
12999 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13000 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13001 cat >conftest.
$ac_ext <<_ACEOF
13004 cat confdefs.h
>>conftest.
$ac_ext
13005 cat >>conftest.
$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 #include <X11/SM/SMlib.h>
13010 rm -f conftest.
$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1
>conftest.err
13016 cat conftest.err
>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try
='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_header_compiler
=yes
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.
$ac_ext >&5
13036 ac_header_compiler
=no
13038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13040 echo "${ECHO_T}$ac_header_compiler" >&6
13042 # Is the header present?
13043 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13044 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13045 cat >conftest.
$ac_ext <<_ACEOF
13048 cat confdefs.h
>>conftest.
$ac_ext
13049 cat >>conftest.
$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <X11/SM/SMlib.h>
13053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13054 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13056 grep -v '^ *+' conftest.er1
>conftest.err
13058 cat conftest.err
>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } >/dev
/null
; then
13061 if test -s conftest.err
; then
13062 ac_cpp_err
=$ac_c_preproc_warn_flag
13063 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13070 if test -z "$ac_cpp_err"; then
13071 ac_header_preproc
=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.
$ac_ext >&5
13076 ac_header_preproc
=no
13078 rm -f conftest.err conftest.
$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13080 echo "${ECHO_T}$ac_header_preproc" >&6
13082 # So? What about this header?
13083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13085 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13086 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13088 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13089 ac_header_preproc
=yes
13092 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13093 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13095 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13097 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13099 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13101 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13103 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13106 ## ------------------------------------------ ##
13107 ## Report this to the AC_PACKAGE_NAME lists. ##
13108 ## ------------------------------------------ ##
13111 sed "s/^/$as_me: WARNING: /" >&2
13114 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13115 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13116 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13121 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13122 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13125 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13126 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13127 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13128 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_check_lib_save_LIBS
=$LIBS
13132 LIBS
="-lSM -lICE $LIBS"
13133 cat >conftest.
$ac_ext <<_ACEOF
13136 cat confdefs.h
>>conftest.
$ac_ext
13137 cat >>conftest.
$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 /* Override any gcc2 internal prototype to avoid an error. */
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13146 char SmcOpenConnection ();
13150 SmcOpenConnection ();
13155 rm -f conftest.
$ac_objext conftest
$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157 (eval $ac_link) 2>conftest.er1
13159 grep -v '^ *+' conftest.er1
>conftest.err
13161 cat conftest.err
>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try
='test -s conftest$ac_exeext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_lib_SM_SmcOpenConnection
=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.
$ac_ext >&5
13181 ac_cv_lib_SM_SmcOpenConnection
=no
13183 rm -f conftest.err conftest.
$ac_objext \
13184 conftest
$ac_exeext conftest.
$ac_ext
13185 LIBS
=$ac_check_lib_save_LIBS
13187 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13188 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13189 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13197 if test "${HAVE_X_SM}" = "yes"; then
13199 cat >>confdefs.h
<<\_ACEOF
13200 #define HAVE_X_SM 1
13205 *) LIBS
="-lSM -lICE $LIBS" ;;
13210 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13211 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13212 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13213 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 cat >conftest.
$ac_ext <<_ACEOF
13219 cat confdefs.h
>>conftest.
$ac_ext
13220 cat >>conftest.
$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13231 rm -f conftest.
$ac_objext conftest
$ac_exeext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13233 (eval $ac_link) 2>conftest.er1
13235 grep -v '^ *+' conftest.er1
>conftest.err
13237 cat conftest.err
>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try
='test -s conftest$ac_exeext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 emacs_cv_netdb_declares_h_errno
=yes
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.
$ac_ext >&5
13257 emacs_cv_netdb_declares_h_errno
=no
13259 rm -f conftest.err conftest.
$ac_objext \
13260 conftest
$ac_exeext conftest.
$ac_ext
13262 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13263 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13264 if test $emacs_cv_netdb_declares_h_errno = yes; then
13266 cat >>confdefs.h
<<\_ACEOF
13267 #define HAVE_H_ERRNO 1
13272 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13273 # for constant arguments. Useless!
13274 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13275 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13276 if test "${ac_cv_working_alloca_h+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 cat >conftest.
$ac_ext <<_ACEOF
13282 cat confdefs.h
>>conftest.
$ac_ext
13283 cat >>conftest.
$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 #include <alloca.h>
13289 char *p = (char *) alloca (2 * sizeof (int));
13294 rm -f conftest.
$ac_objext conftest
$ac_exeext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13296 (eval $ac_link) 2>conftest.er1
13298 grep -v '^ *+' conftest.er1
>conftest.err
13300 cat conftest.err
>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try
='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_working_alloca_h
=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.
$ac_ext >&5
13320 ac_cv_working_alloca_h
=no
13322 rm -f conftest.err conftest.
$ac_objext \
13323 conftest
$ac_exeext conftest.
$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13327 if test $ac_cv_working_alloca_h = yes; then
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define HAVE_ALLOCA_H 1
13335 echo "$as_me:$LINENO: checking for alloca" >&5
13336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13337 if test "${ac_cv_func_alloca_works+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 cat >conftest.
$ac_ext <<_ACEOF
13343 cat confdefs.h
>>conftest.
$ac_ext
13344 cat >>conftest.
$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13347 # define alloca __builtin_alloca
13350 # include <malloc.h>
13351 # define alloca _alloca
13354 # include <alloca.h>
13359 # ifndef alloca /* predefined by HP cc +Olibcalls */
13370 char *p = (char *) alloca (1);
13375 rm -f conftest.
$ac_objext conftest
$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>conftest.er1
13379 grep -v '^ *+' conftest.er1
>conftest.err
13381 cat conftest.err
>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try
='test -s conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_func_alloca_works
=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.
$ac_ext >&5
13401 ac_cv_func_alloca_works
=no
13403 rm -f conftest.err conftest.
$ac_objext \
13404 conftest
$ac_exeext conftest.
$ac_ext
13406 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13407 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13409 if test $ac_cv_func_alloca_works = yes; then
13411 cat >>confdefs.h
<<\_ACEOF
13412 #define HAVE_ALLOCA 1
13416 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13417 # that cause trouble. Some versions do not even contain alloca or
13418 # contain a buggy version. If you still want to use their alloca,
13419 # use ar to extract alloca.o from them instead of compiling alloca.c.
13421 ALLOCA
=alloca.
$ac_objext
13423 cat >>confdefs.h
<<\_ACEOF
13428 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13429 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13430 if test "${ac_cv_os_cray+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 cat >conftest.
$ac_ext <<_ACEOF
13436 cat confdefs.h
>>conftest.
$ac_ext
13437 cat >>conftest.
$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 #if defined(CRAY) && ! defined(CRAY2)
13446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13447 $EGREP "webecray" >/dev
/null
2>&1; then
13455 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13456 echo "${ECHO_T}$ac_cv_os_cray" >&6
13457 if test $ac_cv_os_cray = yes; then
13458 for ac_func
in _getb67 GETB67 getb67
; do
13459 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13460 echo "$as_me:$LINENO: checking for $ac_func" >&5
13461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_var+set}\" = set"; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 cat >conftest.
$ac_ext <<_ACEOF
13468 cat confdefs.h
>>conftest.
$ac_ext
13469 cat >>conftest.
$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13473 #define $ac_func innocuous_$ac_func
13475 /* System header to define __stub macros and hopefully few prototypes,
13476 which can conflict with char $ac_func (); below.
13477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13478 <limits.h> exists even on freestanding compilers. */
13481 # include <limits.h>
13483 # include <assert.h>
13488 /* Override any gcc2 internal prototype to avoid an error. */
13493 /* We use char because int might match the return type of a gcc2
13494 builtin and then its argument prototype would still apply. */
13496 /* The GNU C library defines this for functions which it implements
13497 to always fail with ENOSYS. Some functions are actually named
13498 something starting with __ and the normal name is an alias. */
13499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13502 char (*f) () = $ac_func;
13511 return f != $ac_func;
13516 rm -f conftest.
$ac_objext conftest
$ac_exeext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 (eval $ac_link) 2>conftest.er1
13520 grep -v '^ *+' conftest.er1
>conftest.err
13522 cat conftest.err
>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try
='test -s conftest$ac_exeext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 eval "$as_ac_var=yes"
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.
$ac_ext >&5
13542 eval "$as_ac_var=no"
13544 rm -f conftest.err conftest.
$ac_objext \
13545 conftest
$ac_exeext conftest.
$ac_ext
13547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13549 if test `eval echo '${'$as_ac_var'}'` = yes; then
13551 cat >>confdefs.h
<<_ACEOF
13552 #define CRAY_STACKSEG_END $ac_func
13561 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13562 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13563 if test "${ac_cv_c_stack_direction+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 if test "$cross_compiling" = yes; then
13567 ac_cv_c_stack_direction
=0
13569 cat >conftest.
$ac_ext <<_ACEOF
13572 cat confdefs.h
>>conftest.
$ac_ext
13573 cat >>conftest.
$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13576 find_stack_direction ()
13578 static char *addr = 0;
13583 return find_stack_direction ();
13586 return (&dummy > addr) ? 1 : -1;
13592 exit (find_stack_direction () < 0);
13595 rm -f conftest
$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 ac_cv_c_stack_direction
=1
13608 echo "$as_me: program exited with status $ac_status" >&5
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.
$ac_ext >&5
13612 ( exit $ac_status )
13613 ac_cv_c_stack_direction
=-1
13615 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13618 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13619 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13621 cat >>confdefs.h
<<_ACEOF
13622 #define STACK_DIRECTION $ac_cv_c_stack_direction
13629 # fmod, logb, and frexp are found in -lm on most systems.
13630 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13632 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13633 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13634 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS
=$LIBS
13639 cat >conftest.
$ac_ext <<_ACEOF
13642 cat confdefs.h
>>conftest.
$ac_ext
13643 cat >>conftest.
$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.
$ac_objext conftest
$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>conftest.er1
13665 grep -v '^ *+' conftest.er1
>conftest.err
13667 cat conftest.err
>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try
='test -s conftest$ac_exeext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 ac_cv_lib_m_sqrt
=yes
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.
$ac_ext >&5
13687 ac_cv_lib_m_sqrt
=no
13689 rm -f conftest.err conftest.
$ac_objext \
13690 conftest
$ac_exeext conftest.
$ac_ext
13691 LIBS
=$ac_check_lib_save_LIBS
13693 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13694 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13695 if test $ac_cv_lib_m_sqrt = yes; then
13696 cat >>confdefs.h
<<_ACEOF
13697 #define HAVE_LIBM 1
13705 # Check for mail-locking functions in a "mail" library. Probably this should
13706 # have the same check as for liblockfile below.
13708 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13709 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13710 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 ac_check_lib_save_LIBS
=$LIBS
13714 LIBS
="-lmail $LIBS"
13715 cat >conftest.
$ac_ext <<_ACEOF
13718 cat confdefs.h
>>conftest.
$ac_ext
13719 cat >>conftest.
$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 /* Override any gcc2 internal prototype to avoid an error. */
13726 /* We use char because int might match the return type of a gcc2
13727 builtin and then its argument prototype would still apply. */
13737 rm -f conftest.
$ac_objext conftest
$ac_exeext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>conftest.er1
13741 grep -v '^ *+' conftest.er1
>conftest.err
13743 cat conftest.err
>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try
='test -s conftest$ac_exeext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_lib_mail_maillock
=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.
$ac_ext >&5
13763 ac_cv_lib_mail_maillock
=no
13765 rm -f conftest.err conftest.
$ac_objext \
13766 conftest
$ac_exeext conftest.
$ac_ext
13767 LIBS
=$ac_check_lib_save_LIBS
13769 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13770 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13771 if test $ac_cv_lib_mail_maillock = yes; then
13772 cat >>confdefs.h
<<_ACEOF
13773 #define HAVE_LIBMAIL 1
13776 LIBS
="-lmail $LIBS"
13781 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13782 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13783 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 ac_check_lib_save_LIBS
=$LIBS
13787 LIBS
="-llockfile $LIBS"
13788 cat >conftest.
$ac_ext <<_ACEOF
13791 cat confdefs.h
>>conftest.
$ac_ext
13792 cat >>conftest.
$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13795 /* Override any gcc2 internal prototype to avoid an error. */
13799 /* We use char because int might match the return type of a gcc2
13800 builtin and then its argument prototype would still apply. */
13810 rm -f conftest.
$ac_objext conftest
$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812 (eval $ac_link) 2>conftest.er1
13814 grep -v '^ *+' conftest.er1
>conftest.err
13816 cat conftest.err
>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try
='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_lib_lockfile_maillock
=yes
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.
$ac_ext >&5
13836 ac_cv_lib_lockfile_maillock
=no
13838 rm -f conftest.err conftest.
$ac_objext \
13839 conftest
$ac_exeext conftest.
$ac_ext
13840 LIBS
=$ac_check_lib_save_LIBS
13842 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13843 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13844 if test $ac_cv_lib_lockfile_maillock = yes; then
13845 cat >>confdefs.h
<<_ACEOF
13846 #define HAVE_LIBLOCKFILE 1
13849 LIBS
="-llockfile $LIBS"
13853 # If we have the shared liblockfile, assume we must use it for mail
13854 # locking (e.g. Debian). If we couldn't link against liblockfile
13855 # (no liblockfile.a installed), ensure that we don't need to.
13856 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13857 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13858 set dummy liblockfile.so
; ac_word
=$2
13859 echo "$as_me:$LINENO: checking for $ac_word" >&5
13860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13861 if test "${ac_cv_prog_liblockfile+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 if test -n "$liblockfile"; then
13865 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13868 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13869 for as_dir
in $as_dummy
13872 test -z "$as_dir" && as_dir
=.
13873 for ac_exec_ext
in '' $ac_executable_extensions; do
13874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_liblockfile
="yes"
13876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13885 liblockfile
=$ac_cv_prog_liblockfile
13886 if test -n "$liblockfile"; then
13887 echo "$as_me:$LINENO: result: $liblockfile" >&5
13888 echo "${ECHO_T}$liblockfile" >&6
13890 echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6
13894 if test $ac_cv_prog_liblockfile = yes; then
13895 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13896 This probably means that movemail could lose mail.
13897 There may be a \`development' package to install containing liblockfile." >&5
13898 echo "$as_me: error: Shared liblockfile found but can't link against it.
13899 This probably means that movemail could lose mail.
13900 There may be a \`development' package to install containing liblockfile." >&2;}
13901 { (exit 1); exit 1; }; }
13906 for ac_func
in touchlock
13908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13909 echo "$as_me:$LINENO: checking for $ac_func" >&5
13910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13911 if eval "test \"\${$as_ac_var+set}\" = set"; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 cat >conftest.
$ac_ext <<_ACEOF
13917 cat confdefs.h
>>conftest.
$ac_ext
13918 cat >>conftest.
$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13922 #define $ac_func innocuous_$ac_func
13924 /* System header to define __stub macros and hopefully few prototypes,
13925 which can conflict with char $ac_func (); below.
13926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13927 <limits.h> exists even on freestanding compilers. */
13930 # include <limits.h>
13932 # include <assert.h>
13937 /* Override any gcc2 internal prototype to avoid an error. */
13942 /* We use char because int might match the return type of a gcc2
13943 builtin and then its argument prototype would still apply. */
13945 /* The GNU C library defines this for functions which it implements
13946 to always fail with ENOSYS. Some functions are actually named
13947 something starting with __ and the normal name is an alias. */
13948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13951 char (*f) () = $ac_func;
13960 return f != $ac_func;
13965 rm -f conftest.
$ac_objext conftest
$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>conftest.er1
13969 grep -v '^ *+' conftest.er1
>conftest.err
13971 cat conftest.err
>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; } &&
13980 { ac_try
='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 eval "$as_ac_var=yes"
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.
$ac_ext >&5
13991 eval "$as_ac_var=no"
13993 rm -f conftest.err conftest.
$ac_objext \
13994 conftest
$ac_exeext conftest.
$ac_ext
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13998 if test `eval echo '${'$as_ac_var'}'` = yes; then
13999 cat >>confdefs.h
<<_ACEOF
14000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007 for ac_header
in maillock.h
14009 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo "$as_me:$LINENO: checking for $ac_header" >&5
14012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14019 # Is the header compilable?
14020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14022 cat >conftest.
$ac_ext <<_ACEOF
14025 cat confdefs.h
>>conftest.
$ac_ext
14026 cat >>conftest.
$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14029 #include <$ac_header>
14031 rm -f conftest.
$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14035 grep -v '^ *+' conftest.er1
>conftest.err
14037 cat conftest.err
>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try
='test -s conftest.$ac_objext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_header_compiler
=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.
$ac_ext >&5
14057 ac_header_compiler
=no
14059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14061 echo "${ECHO_T}$ac_header_compiler" >&6
14063 # Is the header present?
14064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14066 cat >conftest.
$ac_ext <<_ACEOF
14069 cat confdefs.h
>>conftest.
$ac_ext
14070 cat >>conftest.
$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 #include <$ac_header>
14074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14077 grep -v '^ *+' conftest.er1
>conftest.err
14079 cat conftest.err
>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } >/dev
/null
; then
14082 if test -s conftest.err
; then
14083 ac_cpp_err
=$ac_c_preproc_warn_flag
14084 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14091 if test -z "$ac_cpp_err"; then
14092 ac_header_preproc
=yes
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.
$ac_ext >&5
14097 ac_header_preproc
=no
14099 rm -f conftest.err conftest.
$ac_ext
14100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14101 echo "${ECHO_T}$ac_header_preproc" >&6
14103 # So? What about this header?
14104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14110 ac_header_preproc
=yes
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14127 ## ------------------------------------------ ##
14128 ## Report this to the AC_PACKAGE_NAME lists. ##
14129 ## ------------------------------------------ ##
14132 sed "s/^/$as_me: WARNING: /" >&2
14135 echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 eval "$as_ac_Header=\$ac_header_preproc"
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h
<<_ACEOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14224 for ac_func
in gethostname getdomainname dup2 \
14225 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14226 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14227 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14228 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14229 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14230 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14231 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14232 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14234 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235 echo "$as_me:$LINENO: checking for $ac_func" >&5
14236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14237 if eval "test \"\${$as_ac_var+set}\" = set"; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 cat >conftest.
$ac_ext <<_ACEOF
14243 cat confdefs.h
>>conftest.
$ac_ext
14244 cat >>conftest.
$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14248 #define $ac_func innocuous_$ac_func
14250 /* System header to define __stub macros and hopefully few prototypes,
14251 which can conflict with char $ac_func (); below.
14252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14253 <limits.h> exists even on freestanding compilers. */
14256 # include <limits.h>
14258 # include <assert.h>
14263 /* Override any gcc2 internal prototype to avoid an error. */
14268 /* We use char because int might match the return type of a gcc2
14269 builtin and then its argument prototype would still apply. */
14271 /* The GNU C library defines this for functions which it implements
14272 to always fail with ENOSYS. Some functions are actually named
14273 something starting with __ and the normal name is an alias. */
14274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14277 char (*f) () = $ac_func;
14286 return f != $ac_func;
14291 rm -f conftest.
$ac_objext conftest
$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>conftest.er1
14295 grep -v '^ *+' conftest.er1
>conftest.err
14297 cat conftest.err
>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try
='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 eval "$as_ac_var=yes"
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.
$ac_ext >&5
14317 eval "$as_ac_var=no"
14319 rm -f conftest.err conftest.
$ac_objext \
14320 conftest
$ac_exeext conftest.
$ac_ext
14322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14324 if test `eval echo '${'$as_ac_var'}'` = yes; then
14325 cat >>confdefs.h
<<_ACEOF
14326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14334 for ac_header
in sys
/un.h
14336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo "$as_me:$LINENO: checking for $ac_header" >&5
14339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14346 # Is the header compilable?
14347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14349 cat >conftest.
$ac_ext <<_ACEOF
14352 cat confdefs.h
>>conftest.
$ac_ext
14353 cat >>conftest.
$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 $ac_includes_default
14356 #include <$ac_header>
14358 rm -f conftest.
$ac_objext
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>conftest.er1
14362 grep -v '^ *+' conftest.er1
>conftest.err
14364 cat conftest.err
>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; } &&
14373 { ac_try
='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_header_compiler
=yes
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.
$ac_ext >&5
14384 ac_header_compiler
=no
14386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14388 echo "${ECHO_T}$ac_header_compiler" >&6
14390 # Is the header present?
14391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14393 cat >conftest.
$ac_ext <<_ACEOF
14396 cat confdefs.h
>>conftest.
$ac_ext
14397 cat >>conftest.
$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <$ac_header>
14401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14404 grep -v '^ *+' conftest.er1
>conftest.err
14406 cat conftest.err
>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } >/dev
/null
; then
14409 if test -s conftest.err
; then
14410 ac_cpp_err
=$ac_c_preproc_warn_flag
14411 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14418 if test -z "$ac_cpp_err"; then
14419 ac_header_preproc
=yes
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.
$ac_ext >&5
14424 ac_header_preproc
=no
14426 rm -f conftest.err conftest.
$ac_ext
14427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14428 echo "${ECHO_T}$ac_header_preproc" >&6
14430 # So? What about this header?
14431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14437 ac_header_preproc
=yes
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14454 ## ------------------------------------------ ##
14455 ## Report this to the AC_PACKAGE_NAME lists. ##
14456 ## ------------------------------------------ ##
14459 sed "s/^/$as_me: WARNING: /" >&2
14462 echo "$as_me:$LINENO: checking for $ac_header" >&5
14463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 eval "$as_ac_Header=\$ac_header_preproc"
14469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14474 cat >>confdefs.h
<<_ACEOF
14475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14486 for ac_header
in stdlib.h sys
/time.h unistd.h
14488 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo "$as_me:$LINENO: checking for $ac_header" >&5
14491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498 # Is the header compilable?
14499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14501 cat >conftest.
$ac_ext <<_ACEOF
14504 cat confdefs.h
>>conftest.
$ac_ext
14505 cat >>conftest.
$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 $ac_includes_default
14508 #include <$ac_header>
14510 rm -f conftest.
$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>conftest.er1
14514 grep -v '^ *+' conftest.er1
>conftest.err
14516 cat conftest.err
>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try
='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_header_compiler
=yes
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.
$ac_ext >&5
14536 ac_header_compiler
=no
14538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14540 echo "${ECHO_T}$ac_header_compiler" >&6
14542 # Is the header present?
14543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14545 cat >conftest.
$ac_ext <<_ACEOF
14548 cat confdefs.h
>>conftest.
$ac_ext
14549 cat >>conftest.
$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 #include <$ac_header>
14553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14556 grep -v '^ *+' conftest.er1
>conftest.err
14558 cat conftest.err
>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev
/null
; then
14561 if test -s conftest.err
; then
14562 ac_cpp_err
=$ac_c_preproc_warn_flag
14563 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14570 if test -z "$ac_cpp_err"; then
14571 ac_header_preproc
=yes
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.
$ac_ext >&5
14576 ac_header_preproc
=no
14578 rm -f conftest.err conftest.
$ac_ext
14579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14580 echo "${ECHO_T}$ac_header_preproc" >&6
14582 # So? What about this header?
14583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14589 ac_header_preproc
=yes
14592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14606 ## ------------------------------------------ ##
14607 ## Report this to the AC_PACKAGE_NAME lists. ##
14608 ## ------------------------------------------ ##
14611 sed "s/^/$as_me: WARNING: /" >&2
14614 echo "$as_me:$LINENO: checking for $ac_header" >&5
14615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 eval "$as_ac_Header=\$ac_header_preproc"
14621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14626 cat >>confdefs.h
<<_ACEOF
14627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14635 for ac_func
in alarm
14637 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14638 echo "$as_me:$LINENO: checking for $ac_func" >&5
14639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14640 if eval "test \"\${$as_ac_var+set}\" = set"; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 cat >conftest.
$ac_ext <<_ACEOF
14646 cat confdefs.h
>>conftest.
$ac_ext
14647 cat >>conftest.
$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14651 #define $ac_func innocuous_$ac_func
14653 /* System header to define __stub macros and hopefully few prototypes,
14654 which can conflict with char $ac_func (); below.
14655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14656 <limits.h> exists even on freestanding compilers. */
14659 # include <limits.h>
14661 # include <assert.h>
14666 /* Override any gcc2 internal prototype to avoid an error. */
14671 /* We use char because int might match the return type of a gcc2
14672 builtin and then its argument prototype would still apply. */
14674 /* The GNU C library defines this for functions which it implements
14675 to always fail with ENOSYS. Some functions are actually named
14676 something starting with __ and the normal name is an alias. */
14677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14680 char (*f) () = $ac_func;
14689 return f != $ac_func;
14694 rm -f conftest.
$ac_objext conftest
$ac_exeext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14696 (eval $ac_link) 2>conftest.er1
14698 grep -v '^ *+' conftest.er1
>conftest.err
14700 cat conftest.err
>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try
='test -s conftest$ac_exeext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 eval "$as_ac_var=yes"
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.
$ac_ext >&5
14720 eval "$as_ac_var=no"
14722 rm -f conftest.err conftest.
$ac_objext \
14723 conftest
$ac_exeext conftest.
$ac_ext
14725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14727 if test `eval echo '${'$as_ac_var'}'` = yes; then
14728 cat >>confdefs.h
<<_ACEOF
14729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14735 echo "$as_me:$LINENO: checking for working mktime" >&5
14736 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14737 if test "${ac_cv_func_working_mktime+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 if test "$cross_compiling" = yes; then
14741 ac_cv_func_working_mktime
=no
14743 cat >conftest.
$ac_ext <<_ACEOF
14746 cat confdefs.h
>>conftest.
$ac_ext
14747 cat >>conftest.
$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 /* Test program from Paul Eggert and Tony Leneis. */
14750 #if TIME_WITH_SYS_TIME
14751 # include <sys/time.h>
14754 # if HAVE_SYS_TIME_H
14755 # include <sys/time.h>
14762 # include <stdlib.h>
14766 # include <unistd.h>
14770 # define alarm(X) /* empty */
14773 /* Work around redefinition to rpl_putenv by other config tests. */
14776 static time_t time_t_max;
14777 static time_t time_t_min;
14779 /* Values we'll use to set the TZ environment variable. */
14780 static char *tz_strings[] = {
14781 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14782 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14784 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14786 /* Fail if mktime fails to convert a date in the spring-forward gap.
14787 Based on a problem report from Andreas Jaeger. */
14789 spring_forward_gap ()
14791 /* glibc (up to about 1998-10-07) failed this test. */
14794 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14795 instead of "TZ=America/Vancouver" in order to detect the bug even
14796 on systems that don't support the Olson extension, or don't have the
14797 full zoneinfo tables installed. */
14798 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14807 if (mktime (&tm) == (time_t)-1)
14816 if ((lt = localtime (&now)) && mktime (lt) != now)
14824 mktime_test1 (now);
14825 mktime_test1 ((time_t) (time_t_max - now));
14826 mktime_test1 ((time_t) (time_t_min + now));
14832 /* Based on code from Ariel Faigon. */
14842 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14852 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14853 now = mktime (&tm);
14854 if (now != (time_t) -1)
14856 struct tm *lt = localtime (&now);
14858 && lt->tm_year == tm.tm_year
14859 && lt->tm_mon == tm.tm_mon
14860 && lt->tm_mday == tm.tm_mday
14861 && lt->tm_hour == tm.tm_hour
14862 && lt->tm_min == tm.tm_min
14863 && lt->tm_sec == tm.tm_sec
14864 && lt->tm_yday == tm.tm_yday
14865 && lt->tm_wday == tm.tm_wday
14866 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14867 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14878 /* This test makes some buggy mktime implementations loop.
14879 Give up after 60 seconds; a mktime slower than that
14880 isn't worth using anyway. */
14883 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14886 if ((time_t) -1 < 0)
14887 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14889 delta = time_t_max / 997; /* a suitable prime number */
14890 for (i = 0; i < N_STRINGS; i++)
14893 putenv (tz_strings[i]);
14895 for (t = 0; t <= time_t_max - delta; t += delta)
14897 mktime_test ((time_t) 1);
14898 mktime_test ((time_t) (60 * 60));
14899 mktime_test ((time_t) (60 * 60 * 24));
14901 for (j = 1; 0 < j; j *= 2)
14903 bigtime_test (j - 1);
14906 spring_forward_gap ();
14910 rm -f conftest
$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_func_working_mktime
=yes
14923 echo "$as_me: program exited with status $ac_status" >&5
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.
$ac_ext >&5
14927 ( exit $ac_status )
14928 ac_cv_func_working_mktime
=no
14930 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14934 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14935 if test $ac_cv_func_working_mktime = no
; then
14937 "mktime.$ac_objext" | \
14938 *" mktime.$ac_objext" | \
14939 "mktime.$ac_objext "* | \
14940 *" mktime.$ac_objext "* ) ;;
14941 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14946 if test "$ac_cv_func_working_mktime" = no
; then
14948 cat >>confdefs.h
<<\_ACEOF
14949 #define BROKEN_MKTIME 1
14954 ac_have_func
=no
# yes means we've found a way to get the load average.
14956 # Make sure getloadavg.c is where it belongs, at configure-time.
14957 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14958 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14959 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14960 { (exit 1); exit 1; }; }
14964 # Check for getloadavg, but be sure not to touch the cache variable.
14965 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14966 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14967 if test "${ac_cv_func_getloadavg+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 cat >conftest.
$ac_ext <<_ACEOF
14973 cat confdefs.h
>>conftest.
$ac_ext
14974 cat >>conftest.
$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14978 #define getloadavg innocuous_getloadavg
14980 /* System header to define __stub macros and hopefully few prototypes,
14981 which can conflict with char getloadavg (); below.
14982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14983 <limits.h> exists even on freestanding compilers. */
14986 # include <limits.h>
14988 # include <assert.h>
14993 /* Override any gcc2 internal prototype to avoid an error. */
14998 /* We use char because int might match the return type of a gcc2
14999 builtin and then its argument prototype would still apply. */
15000 char getloadavg ();
15001 /* The GNU C library defines this for functions which it implements
15002 to always fail with ENOSYS. Some functions are actually named
15003 something starting with __ and the normal name is an alias. */
15004 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15007 char (*f) () = getloadavg;
15016 return f != getloadavg;
15021 rm -f conftest.
$ac_objext conftest
$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023 (eval $ac_link) 2>conftest.er1
15025 grep -v '^ *+' conftest.er1
>conftest.err
15027 cat conftest.err
>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try
='test -s conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_func_getloadavg
=yes
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.
$ac_ext >&5
15047 ac_cv_func_getloadavg
=no
15049 rm -f conftest.err conftest.
$ac_objext \
15050 conftest
$ac_exeext conftest.
$ac_ext
15052 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15053 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15054 if test $ac_cv_func_getloadavg = yes; then
15059 ) && ac_have_func
=yes
15061 # On HPUX9, an unprivileged user can get load averages through this function.
15063 for ac_func
in pstat_getdynamic
15065 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 echo "$as_me:$LINENO: checking for $ac_func" >&5
15067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15068 if eval "test \"\${$as_ac_var+set}\" = set"; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 cat >conftest.
$ac_ext <<_ACEOF
15074 cat confdefs.h
>>conftest.
$ac_ext
15075 cat >>conftest.
$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15079 #define $ac_func innocuous_$ac_func
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func (); below.
15083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15084 <limits.h> exists even on freestanding compilers. */
15087 # include <limits.h>
15089 # include <assert.h>
15094 /* Override any gcc2 internal prototype to avoid an error. */
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15102 /* The GNU C library defines this for functions which it implements
15103 to always fail with ENOSYS. Some functions are actually named
15104 something starting with __ and the normal name is an alias. */
15105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15108 char (*f) () = $ac_func;
15117 return f != $ac_func;
15122 rm -f conftest.
$ac_objext conftest
$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>conftest.er1
15126 grep -v '^ *+' conftest.er1
>conftest.err
15128 cat conftest.err
>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try
='test -s conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 eval "$as_ac_var=yes"
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.
$ac_ext >&5
15148 eval "$as_ac_var=no"
15150 rm -f conftest.err conftest.
$ac_objext \
15151 conftest
$ac_exeext conftest.
$ac_ext
15153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15155 if test `eval echo '${'$as_ac_var'}'` = yes; then
15156 cat >>confdefs.h
<<_ACEOF
15157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15164 # Solaris has libkstat which does not require root.
15166 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15167 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15168 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 ac_check_lib_save_LIBS
=$LIBS
15172 LIBS
="-lkstat $LIBS"
15173 cat >conftest.
$ac_ext <<_ACEOF
15176 cat confdefs.h
>>conftest.
$ac_ext
15177 cat >>conftest.
$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15180 /* Override any gcc2 internal prototype to avoid an error. */
15184 /* We use char because int might match the return type of a gcc2
15185 builtin and then its argument prototype would still apply. */
15186 char kstat_open ();
15195 rm -f conftest.
$ac_objext conftest
$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>conftest.er1
15199 grep -v '^ *+' conftest.er1
>conftest.err
15201 cat conftest.err
>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try
='test -s conftest$ac_exeext'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216 ac_cv_lib_kstat_kstat_open
=yes
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.
$ac_ext >&5
15221 ac_cv_lib_kstat_kstat_open
=no
15223 rm -f conftest.err conftest.
$ac_objext \
15224 conftest
$ac_exeext conftest.
$ac_ext
15225 LIBS
=$ac_check_lib_save_LIBS
15227 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15228 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15229 if test $ac_cv_lib_kstat_kstat_open = yes; then
15230 cat >>confdefs.h
<<_ACEOF
15231 #define HAVE_LIBKSTAT 1
15234 LIBS
="-lkstat $LIBS"
15238 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15240 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15241 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15242 # to get the right answer into the cache.
15243 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15244 if test $ac_have_func = no
; then
15245 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15246 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15247 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 ac_check_lib_save_LIBS
=$LIBS
15252 cat >conftest.
$ac_ext <<_ACEOF
15255 cat confdefs.h
>>conftest.
$ac_ext
15256 cat >>conftest.
$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15259 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15274 rm -f conftest.
$ac_objext conftest
$ac_exeext
15275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276 (eval $ac_link) 2>conftest.er1
15278 grep -v '^ *+' conftest.er1
>conftest.err
15280 cat conftest.err
>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } &&
15283 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try
='test -s conftest$ac_exeext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_cv_lib_elf_elf_begin
=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.
$ac_ext >&5
15300 ac_cv_lib_elf_elf_begin
=no
15302 rm -f conftest.err conftest.
$ac_objext \
15303 conftest
$ac_exeext conftest.
$ac_ext
15304 LIBS
=$ac_check_lib_save_LIBS
15306 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15308 if test $ac_cv_lib_elf_elf_begin = yes; then
15313 if test $ac_have_func = no
; then
15314 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15315 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15316 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 ac_check_lib_save_LIBS
=$LIBS
15321 cat >conftest.
$ac_ext <<_ACEOF
15324 cat confdefs.h
>>conftest.
$ac_ext
15325 cat >>conftest.
$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15328 /* Override any gcc2 internal prototype to avoid an error. */
15332 /* We use char because int might match the return type of a gcc2
15333 builtin and then its argument prototype would still apply. */
15343 rm -f conftest.
$ac_objext conftest
$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345 (eval $ac_link) 2>conftest.er1
15347 grep -v '^ *+' conftest.er1
>conftest.err
15349 cat conftest.err
>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15358 { ac_try
='test -s conftest$ac_exeext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_cv_lib_kvm_kvm_open
=yes
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.
$ac_ext >&5
15369 ac_cv_lib_kvm_kvm_open
=no
15371 rm -f conftest.err conftest.
$ac_objext \
15372 conftest
$ac_exeext conftest.
$ac_ext
15373 LIBS
=$ac_check_lib_save_LIBS
15375 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15376 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15377 if test $ac_cv_lib_kvm_kvm_open = yes; then
15381 # Check for the 4.4BSD definition of getloadavg.
15382 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15383 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15384 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 ac_check_lib_save_LIBS
=$LIBS
15388 LIBS
="-lutil $LIBS"
15389 cat >conftest.
$ac_ext <<_ACEOF
15392 cat confdefs.h
>>conftest.
$ac_ext
15393 cat >>conftest.
$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15396 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15402 char getloadavg ();
15411 rm -f conftest.
$ac_objext conftest
$ac_exeext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15413 (eval $ac_link) 2>conftest.er1
15415 grep -v '^ *+' conftest.er1
>conftest.err
15417 cat conftest.err
>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try
='test -z "$ac_c_werror_flag" || 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_util_getloadavg
=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.
$ac_ext >&5
15437 ac_cv_lib_util_getloadavg
=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_util_getloadavg" >&5
15444 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15445 if test $ac_cv_lib_util_getloadavg = yes; then
15446 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15451 if test $ac_have_func = no
; then
15452 # There is a commonly available library for RS/6000 AIX.
15453 # Since it is not a standard part of AIX, it might be installed locally.
15454 ac_getloadavg_LIBS
=$LIBS
15455 LIBS
="-L/usr/local/lib $LIBS"
15456 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15457 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15458 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 ac_check_lib_save_LIBS
=$LIBS
15462 LIBS
="-lgetloadavg $LIBS"
15463 cat >conftest.
$ac_ext <<_ACEOF
15466 cat confdefs.h
>>conftest.
$ac_ext
15467 cat >>conftest.
$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15470 /* Override any gcc2 internal prototype to avoid an error. */
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15476 char getloadavg ();
15485 rm -f conftest.
$ac_objext conftest
$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
15506 ac_cv_lib_getloadavg_getloadavg
=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.
$ac_ext >&5
15511 ac_cv_lib_getloadavg_getloadavg
=no
15513 rm -f conftest.err conftest.
$ac_objext \
15514 conftest
$ac_exeext conftest.
$ac_ext
15515 LIBS
=$ac_check_lib_save_LIBS
15517 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15518 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15519 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15520 LIBS
="-lgetloadavg $LIBS"
15522 LIBS
=$ac_getloadavg_LIBS
15527 # Make sure it is really in the library, if we think we found it,
15528 # otherwise set up the replacement function.
15530 for ac_func
in getloadavg
15532 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15533 echo "$as_me:$LINENO: checking for $ac_func" >&5
15534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15535 if eval "test \"\${$as_ac_var+set}\" = set"; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 cat >conftest.
$ac_ext <<_ACEOF
15541 cat confdefs.h
>>conftest.
$ac_ext
15542 cat >>conftest.
$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15546 #define $ac_func innocuous_$ac_func
15548 /* System header to define __stub macros and hopefully few prototypes,
15549 which can conflict with char $ac_func (); below.
15550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551 <limits.h> exists even on freestanding compilers. */
15554 # include <limits.h>
15556 # include <assert.h>
15561 /* Override any gcc2 internal prototype to avoid an error. */
15566 /* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15569 /* The GNU C library defines this for functions which it implements
15570 to always fail with ENOSYS. Some functions are actually named
15571 something starting with __ and the normal name is an alias. */
15572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15575 char (*f) () = $ac_func;
15584 return f != $ac_func;
15589 rm -f conftest.
$ac_objext conftest
$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591 (eval $ac_link) 2>conftest.er1
15593 grep -v '^ *+' conftest.er1
>conftest.err
15595 cat conftest.err
>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try
='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 eval "$as_ac_var=yes"
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.
$ac_ext >&5
15615 eval "$as_ac_var=no"
15617 rm -f conftest.err conftest.
$ac_objext \
15618 conftest
$ac_exeext conftest.
$ac_ext
15620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h
<<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15629 "getloadavg.$ac_objext" | \
15630 *" getloadavg.$ac_objext" | \
15631 "getloadavg.$ac_objext "* | \
15632 *" getloadavg.$ac_objext "* ) ;;
15633 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15637 cat >>confdefs.h
<<\_ACEOF
15638 #define C_GETLOADAVG 1
15641 # Figure out what our getloadavg.c needs.
15643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15644 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15645 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15646 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15650 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15652 # Is the header compilable?
15653 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15654 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15655 cat >conftest.
$ac_ext <<_ACEOF
15658 cat confdefs.h
>>conftest.
$ac_ext
15659 cat >>conftest.
$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 #include <sys/dg_sys_info.h>
15664 rm -f conftest.
$ac_objext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666 (eval $ac_compile) 2>conftest.er1
15668 grep -v '^ *+' conftest.er1
>conftest.err
15670 cat conftest.err
>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try
='test -s conftest.$ac_objext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_header_compiler
=yes
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.
$ac_ext >&5
15690 ac_header_compiler
=no
15692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15694 echo "${ECHO_T}$ac_header_compiler" >&6
15696 # Is the header present?
15697 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15698 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15699 cat >conftest.
$ac_ext <<_ACEOF
15702 cat confdefs.h
>>conftest.
$ac_ext
15703 cat >>conftest.
$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <sys/dg_sys_info.h>
15707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15708 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15710 grep -v '^ *+' conftest.er1
>conftest.err
15712 cat conftest.err
>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } >/dev
/null
; then
15715 if test -s conftest.err
; then
15716 ac_cpp_err
=$ac_c_preproc_warn_flag
15717 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15724 if test -z "$ac_cpp_err"; then
15725 ac_header_preproc
=yes
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.
$ac_ext >&5
15730 ac_header_preproc
=no
15732 rm -f conftest.err conftest.
$ac_ext
15733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15734 echo "${ECHO_T}$ac_header_preproc" >&6
15736 # So? What about this header?
15737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15740 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15742 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15743 ac_header_preproc
=yes
15746 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15747 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15749 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15751 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15753 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15755 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15757 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15760 ## ------------------------------------------ ##
15761 ## Report this to the AC_PACKAGE_NAME lists. ##
15762 ## ------------------------------------------ ##
15765 sed "s/^/$as_me: WARNING: /" >&2
15768 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15769 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15770 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15775 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15776 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15779 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15782 cat >>confdefs.h
<<\_ACEOF
15787 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15788 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15789 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 ac_check_lib_save_LIBS
=$LIBS
15794 cat >conftest.
$ac_ext <<_ACEOF
15797 cat confdefs.h
>>conftest.
$ac_ext
15798 cat >>conftest.
$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15801 /* Override any gcc2 internal prototype to avoid an error. */
15805 /* We use char because int might match the return type of a gcc2
15806 builtin and then its argument prototype would still apply. */
15807 char dg_sys_info ();
15816 rm -f conftest.
$ac_objext conftest
$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>conftest.er1
15820 grep -v '^ *+' conftest.er1
>conftest.err
15822 cat conftest.err
>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15831 { ac_try
='test -s conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_cv_lib_dgc_dg_sys_info
=yes
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.
$ac_ext >&5
15842 ac_cv_lib_dgc_dg_sys_info
=no
15844 rm -f conftest.err conftest.
$ac_objext \
15845 conftest
$ac_exeext conftest.
$ac_ext
15846 LIBS
=$ac_check_lib_save_LIBS
15848 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15849 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15850 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15851 cat >>confdefs.h
<<_ACEOF
15852 #define HAVE_LIBDGC 1
15863 if test "${ac_cv_header_locale_h+set}" = set; then
15864 echo "$as_me:$LINENO: checking for locale.h" >&5
15865 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15866 if test "${ac_cv_header_locale_h+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15872 # Is the header compilable?
15873 echo "$as_me:$LINENO: checking locale.h usability" >&5
15874 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15875 cat >conftest.
$ac_ext <<_ACEOF
15878 cat confdefs.h
>>conftest.
$ac_ext
15879 cat >>conftest.
$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 $ac_includes_default
15882 #include <locale.h>
15884 rm -f conftest.
$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15888 grep -v '^ *+' conftest.er1
>conftest.err
15890 cat conftest.err
>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try
='test -s conftest.$ac_objext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 ac_header_compiler
=yes
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.
$ac_ext >&5
15910 ac_header_compiler
=no
15912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15914 echo "${ECHO_T}$ac_header_compiler" >&6
15916 # Is the header present?
15917 echo "$as_me:$LINENO: checking locale.h presence" >&5
15918 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15919 cat >conftest.
$ac_ext <<_ACEOF
15922 cat confdefs.h
>>conftest.
$ac_ext
15923 cat >>conftest.
$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <locale.h>
15927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15928 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15930 grep -v '^ *+' conftest.er1
>conftest.err
15932 cat conftest.err
>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev
/null
; then
15935 if test -s conftest.err
; then
15936 ac_cpp_err
=$ac_c_preproc_warn_flag
15937 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15944 if test -z "$ac_cpp_err"; then
15945 ac_header_preproc
=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.
$ac_ext >&5
15950 ac_header_preproc
=no
15952 rm -f conftest.err conftest.
$ac_ext
15953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15954 echo "${ECHO_T}$ac_header_preproc" >&6
15956 # So? What about this header?
15957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15960 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15961 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15962 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15963 ac_header_preproc
=yes
15966 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15967 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15969 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15971 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15973 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15975 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15977 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15980 ## ------------------------------------------ ##
15981 ## Report this to the AC_PACKAGE_NAME lists. ##
15982 ## ------------------------------------------ ##
15985 sed "s/^/$as_me: WARNING: /" >&2
15988 echo "$as_me:$LINENO: checking for locale.h" >&5
15989 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15990 if test "${ac_cv_header_locale_h+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 ac_cv_header_locale_h
=$ac_header_preproc
15995 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15996 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16002 for ac_func
in setlocale
16004 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16005 echo "$as_me:$LINENO: checking for $ac_func" >&5
16006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16007 if eval "test \"\${$as_ac_var+set}\" = set"; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 cat >conftest.
$ac_ext <<_ACEOF
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018 #define $ac_func innocuous_$ac_func
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16026 # include <limits.h>
16028 # include <assert.h>
16033 /* Override any gcc2 internal prototype to avoid an error. */
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16047 char (*f) () = $ac_func;
16056 return f != $ac_func;
16061 rm -f conftest.
$ac_objext conftest
$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>conftest.er1
16065 grep -v '^ *+' conftest.er1
>conftest.err
16067 cat conftest.err
>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try
='test -s conftest$ac_exeext'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 eval "$as_ac_var=yes"
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.
$ac_ext >&5
16087 eval "$as_ac_var=no"
16089 rm -f conftest.err conftest.
$ac_objext \
16090 conftest
$ac_exeext conftest.
$ac_ext
16092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095 cat >>confdefs.h
<<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16103 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16104 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16105 # Irix 4.0.5F has the header but not the library.
16106 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16109 cat >>confdefs.h
<<\_ACEOF
16115 if test $ac_have_func = no
; then
16116 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16117 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16118 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16119 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16123 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16125 # Is the header compilable?
16126 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16127 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16128 cat >conftest.
$ac_ext <<_ACEOF
16131 cat confdefs.h
>>conftest.
$ac_ext
16132 cat >>conftest.
$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 #include <inq_stats/cpustats.h>
16137 rm -f conftest.
$ac_objext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16139 (eval $ac_compile) 2>conftest.er1
16141 grep -v '^ *+' conftest.er1
>conftest.err
16143 cat conftest.err
>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try
='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_header_compiler
=yes
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.
$ac_ext >&5
16163 ac_header_compiler
=no
16165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 echo "${ECHO_T}$ac_header_compiler" >&6
16169 # Is the header present?
16170 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16171 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16172 cat >conftest.
$ac_ext <<_ACEOF
16175 cat confdefs.h
>>conftest.
$ac_ext
16176 cat >>conftest.
$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <inq_stats/cpustats.h>
16180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16183 grep -v '^ *+' conftest.er1
>conftest.err
16185 cat conftest.err
>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev
/null
; then
16188 if test -s conftest.err
; then
16189 ac_cpp_err
=$ac_c_preproc_warn_flag
16190 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16197 if test -z "$ac_cpp_err"; then
16198 ac_header_preproc
=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.
$ac_ext >&5
16203 ac_header_preproc
=no
16205 rm -f conftest.err conftest.
$ac_ext
16206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16207 echo "${ECHO_T}$ac_header_preproc" >&6
16209 # So? What about this header?
16210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16213 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16215 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16216 ac_header_preproc
=yes
16219 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16220 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16222 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16224 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16226 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16228 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16230 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16233 ## ------------------------------------------ ##
16234 ## Report this to the AC_PACKAGE_NAME lists. ##
16235 ## ------------------------------------------ ##
16238 sed "s/^/$as_me: WARNING: /" >&2
16241 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16242 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16243 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16248 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16249 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16252 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16255 cat >>confdefs.h
<<\_ACEOF
16260 cat >>confdefs.h
<<\_ACEOF
16269 if test $ac_have_func = no
; then
16270 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16271 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16272 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16273 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16277 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16279 # Is the header compilable?
16280 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16281 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16282 cat >conftest.
$ac_ext <<_ACEOF
16285 cat confdefs.h
>>conftest.
$ac_ext
16286 cat >>conftest.
$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16289 #include <sys/cpustats.h>
16291 rm -f conftest.
$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>conftest.er1
16295 grep -v '^ *+' conftest.er1
>conftest.err
16297 cat conftest.err
>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try
='test -s conftest.$ac_objext'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_header_compiler
=yes
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.
$ac_ext >&5
16317 ac_header_compiler
=no
16319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16321 echo "${ECHO_T}$ac_header_compiler" >&6
16323 # Is the header present?
16324 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16325 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16326 cat >conftest.
$ac_ext <<_ACEOF
16329 cat confdefs.h
>>conftest.
$ac_ext
16330 cat >>conftest.
$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 #include <sys/cpustats.h>
16334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16335 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16337 grep -v '^ *+' conftest.er1
>conftest.err
16339 cat conftest.err
>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } >/dev
/null
; then
16342 if test -s conftest.err
; then
16343 ac_cpp_err
=$ac_c_preproc_warn_flag
16344 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16351 if test -z "$ac_cpp_err"; then
16352 ac_header_preproc
=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.
$ac_ext >&5
16357 ac_header_preproc
=no
16359 rm -f conftest.err conftest.
$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16361 echo "${ECHO_T}$ac_header_preproc" >&6
16363 # So? What about this header?
16364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16366 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16367 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16369 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16370 ac_header_preproc
=yes
16373 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16374 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16376 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16377 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16378 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16380 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16381 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16382 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16384 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16387 ## ------------------------------------------ ##
16388 ## Report this to the AC_PACKAGE_NAME lists. ##
16389 ## ------------------------------------------ ##
16392 sed "s/^/$as_me: WARNING: /" >&2
16395 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16396 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16397 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16402 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16403 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16406 if test $ac_cv_header_sys_cpustats_h = yes; then
16407 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16416 if test $ac_have_func = no
; then
16418 for ac_header
in mach
/mach.h
16420 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16422 echo "$as_me:$LINENO: checking for $ac_header" >&5
16423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16430 # Is the header compilable?
16431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16433 cat >conftest.
$ac_ext <<_ACEOF
16436 cat confdefs.h
>>conftest.
$ac_ext
16437 cat >>conftest.
$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 $ac_includes_default
16440 #include <$ac_header>
16442 rm -f conftest.
$ac_objext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>conftest.er1
16446 grep -v '^ *+' conftest.er1
>conftest.err
16448 cat conftest.err
>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try
='test -s conftest.$ac_objext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_header_compiler
=yes
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.
$ac_ext >&5
16468 ac_header_compiler
=no
16470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16472 echo "${ECHO_T}$ac_header_compiler" >&6
16474 # Is the header present?
16475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16477 cat >conftest.
$ac_ext <<_ACEOF
16480 cat confdefs.h
>>conftest.
$ac_ext
16481 cat >>conftest.
$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <$ac_header>
16485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16488 grep -v '^ *+' conftest.er1
>conftest.err
16490 cat conftest.err
>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } >/dev
/null
; then
16493 if test -s conftest.err
; then
16494 ac_cpp_err
=$ac_c_preproc_warn_flag
16495 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16502 if test -z "$ac_cpp_err"; then
16503 ac_header_preproc
=yes
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.
$ac_ext >&5
16508 ac_header_preproc
=no
16510 rm -f conftest.err conftest.
$ac_ext
16511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16512 echo "${ECHO_T}$ac_header_preproc" >&6
16514 # So? What about this header?
16515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16521 ac_header_preproc
=yes
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16538 ## ------------------------------------------ ##
16539 ## Report this to the AC_PACKAGE_NAME lists. ##
16540 ## ------------------------------------------ ##
16543 sed "s/^/$as_me: WARNING: /" >&2
16546 echo "$as_me:$LINENO: checking for $ac_header" >&5
16547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 eval "$as_ac_Header=\$ac_header_preproc"
16553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16558 cat >>confdefs.h
<<_ACEOF
16559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16569 for ac_header
in nlist.h
16571 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16573 echo "$as_me:$LINENO: checking for $ac_header" >&5
16574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16581 # Is the header compilable?
16582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16584 cat >conftest.
$ac_ext <<_ACEOF
16587 cat confdefs.h
>>conftest.
$ac_ext
16588 cat >>conftest.
$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 $ac_includes_default
16591 #include <$ac_header>
16593 rm -f conftest.
$ac_objext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16595 (eval $ac_compile) 2>conftest.er1
16597 grep -v '^ *+' conftest.er1
>conftest.err
16599 cat conftest.err
>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
16602 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try
='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_header_compiler
=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.
$ac_ext >&5
16619 ac_header_compiler
=no
16621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16623 echo "${ECHO_T}$ac_header_compiler" >&6
16625 # Is the header present?
16626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16628 cat >conftest.
$ac_ext <<_ACEOF
16631 cat confdefs.h
>>conftest.
$ac_ext
16632 cat >>conftest.
$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 #include <$ac_header>
16636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16637 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16639 grep -v '^ *+' conftest.er1
>conftest.err
16641 cat conftest.err
>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } >/dev
/null
; then
16644 if test -s conftest.err
; then
16645 ac_cpp_err
=$ac_c_preproc_warn_flag
16646 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16653 if test -z "$ac_cpp_err"; then
16654 ac_header_preproc
=yes
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.
$ac_ext >&5
16659 ac_header_preproc
=no
16661 rm -f conftest.err conftest.
$ac_ext
16662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16663 echo "${ECHO_T}$ac_header_preproc" >&6
16665 # So? What about this header?
16666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16672 ac_header_preproc
=yes
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16689 ## ------------------------------------------ ##
16690 ## Report this to the AC_PACKAGE_NAME lists. ##
16691 ## ------------------------------------------ ##
16694 sed "s/^/$as_me: WARNING: /" >&2
16697 echo "$as_me:$LINENO: checking for $ac_header" >&5
16698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 eval "$as_ac_Header=\$ac_header_preproc"
16704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16709 cat >>confdefs.h
<<_ACEOF
16710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16712 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16713 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16714 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 cat >conftest.
$ac_ext <<_ACEOF
16720 cat confdefs.h
>>conftest.
$ac_ext
16721 cat >>conftest.
$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16728 static struct nlist ac_aggr;
16729 if (ac_aggr.n_un.n_name)
16735 rm -f conftest.
$ac_objext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16737 (eval $ac_compile) 2>conftest.er1
16739 grep -v '^ *+' conftest.er1
>conftest.err
16741 cat conftest.err
>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try
='test -s conftest.$ac_objext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_member_struct_nlist_n_un_n_name
=yes
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.
$ac_ext >&5
16761 cat >conftest.
$ac_ext <<_ACEOF
16764 cat confdefs.h
>>conftest.
$ac_ext
16765 cat >>conftest.
$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16772 static struct nlist ac_aggr;
16773 if (sizeof ac_aggr.n_un.n_name)
16779 rm -f conftest.
$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
16783 grep -v '^ *+' conftest.er1
>conftest.err
16785 cat conftest.err
>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try
='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_member_struct_nlist_n_un_n_name
=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.
$ac_ext >&5
16805 ac_cv_member_struct_nlist_n_un_n_name
=no
16807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16811 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16812 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16813 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16815 cat >>confdefs.h
<<_ACEOF
16816 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16820 cat >>confdefs.h
<<\_ACEOF
16821 #define NLIST_NAME_UNION 1
16835 # Some definitions of getloadavg require that the program be installed setgid.
16836 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16837 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16838 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 cat >conftest.
$ac_ext <<_ACEOF
16844 cat confdefs.h
>>conftest.
$ac_ext
16845 cat >>conftest.
$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16848 #ifdef LDAV_PRIVILEGED
16849 Yowza Am I SETGID yet
16852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16853 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16854 ac_cv_func_getloadavg_setgid
=yes
16856 ac_cv_func_getloadavg_setgid
=no
16861 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16862 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16863 if test $ac_cv_func_getloadavg_setgid = yes; then
16866 cat >>confdefs.h
<<\_ACEOF
16867 #define GETLOADAVG_PRIVILEGED 1
16874 if test $ac_cv_func_getloadavg_setgid = yes; then
16875 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16876 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16877 if test "${ac_cv_group_kmem+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16881 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16882 # If we got an error (system does not support symlinks), try without -L.
16883 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16884 ac_cv_group_kmem
=`echo $ac_ls_output \
16885 | sed -ne 's/[ ][ ]*/ /g;
16886 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16890 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16891 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16892 KMEM_GROUP
=$ac_cv_group_kmem
16894 if test "x$ac_save_LIBS" = x
; then
16895 GETLOADAVG_LIBS
=$LIBS
16897 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16903 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16904 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16905 if test "${ac_cv_sys_largefile_source+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 ac_cv_sys_largefile_source
=no
16910 cat >conftest.
$ac_ext <<_ACEOF
16913 cat confdefs.h
>>conftest.
$ac_ext
16914 cat >>conftest.
$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16925 rm -f conftest.
$ac_objext
16926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16927 (eval $ac_compile) 2>conftest.er1
16929 grep -v '^ *+' conftest.er1
>conftest.err
16931 cat conftest.err
>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try
='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.
$ac_ext >&5
16952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16953 cat >conftest.
$ac_ext <<_ACEOF
16956 cat confdefs.h
>>conftest.
$ac_ext
16957 cat >>conftest.
$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 #define _LARGEFILE_SOURCE 1
16969 rm -f conftest.
$ac_objext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16971 (eval $ac_compile) 2>conftest.er1
16973 grep -v '^ *+' conftest.er1
>conftest.err
16975 cat conftest.err
>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try
='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_sys_largefile_source
=1; break
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.
$ac_ext >&5
16996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17000 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17001 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17002 if test "$ac_cv_sys_largefile_source" != no
; then
17004 cat >>confdefs.h
<<_ACEOF
17005 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17011 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17012 # in glibc 2.1.3, but that breaks too many other things.
17013 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17014 echo "$as_me:$LINENO: checking for fseeko" >&5
17015 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17016 if test "${ac_cv_func_fseeko+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 cat >conftest.
$ac_ext <<_ACEOF
17022 cat confdefs.h
>>conftest.
$ac_ext
17023 cat >>conftest.
$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17029 return fseeko && fseeko (stdin, 0, 0);
17034 rm -f conftest.
$ac_objext conftest
$ac_exeext
17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036 (eval $ac_link) 2>conftest.er1
17038 grep -v '^ *+' conftest.er1
>conftest.err
17040 cat conftest.err
>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try
='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_func_fseeko
=yes
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.
$ac_ext >&5
17060 ac_cv_func_fseeko
=no
17062 rm -f conftest.err conftest.
$ac_objext \
17063 conftest
$ac_exeext conftest.
$ac_ext
17065 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17066 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17067 if test $ac_cv_func_fseeko = yes; then
17069 cat >>confdefs.h
<<\_ACEOF
17070 #define HAVE_FSEEKO 1
17076 # Configure getopt.
17077 # getopt.m4 serial 10
17079 # The getopt module assume you want GNU getopt, with getopt_long etc,
17080 # rather than vanilla POSIX getopt. This means your your code should
17081 # always include <getopt.h> for the getopt prototypes.
17093 # Prerequisites of lib/getopt*.
17100 for ac_header
in getopt.h
17102 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17112 # Is the header compilable?
17113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17115 cat >conftest.
$ac_ext <<_ACEOF
17118 cat confdefs.h
>>conftest.
$ac_ext
17119 cat >>conftest.
$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 $ac_includes_default
17122 #include <$ac_header>
17124 rm -f conftest.
$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126 (eval $ac_compile) 2>conftest.er1
17128 grep -v '^ *+' conftest.er1
>conftest.err
17130 cat conftest.err
>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try
='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_header_compiler
=yes
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17150 ac_header_compiler
=no
17152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17154 echo "${ECHO_T}$ac_header_compiler" >&6
17156 # Is the header present?
17157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17159 cat >conftest.
$ac_ext <<_ACEOF
17162 cat confdefs.h
>>conftest.
$ac_ext
17163 cat >>conftest.
$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 #include <$ac_header>
17167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17170 grep -v '^ *+' conftest.er1
>conftest.err
17172 cat conftest.err
>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } >/dev
/null
; then
17175 if test -s conftest.err
; then
17176 ac_cpp_err
=$ac_c_preproc_warn_flag
17177 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17184 if test -z "$ac_cpp_err"; then
17185 ac_header_preproc
=yes
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.
$ac_ext >&5
17190 ac_header_preproc
=no
17192 rm -f conftest.err conftest.
$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17194 echo "${ECHO_T}$ac_header_preproc" >&6
17196 # So? What about this header?
17197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17203 ac_header_preproc
=yes
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17220 ## ------------------------------------------ ##
17221 ## Report this to the AC_PACKAGE_NAME lists. ##
17222 ## ------------------------------------------ ##
17225 sed "s/^/$as_me: WARNING: /" >&2
17228 echo "$as_me:$LINENO: checking for $ac_header" >&5
17229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 eval "$as_ac_Header=\$ac_header_preproc"
17235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17240 cat >>confdefs.h
<<_ACEOF
17241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17250 if test -z "$GETOPT_H"; then
17252 for ac_func
in getopt_long_only
17254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 echo "$as_me:$LINENO: checking for $ac_func" >&5
17256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17257 if eval "test \"\${$as_ac_var+set}\" = set"; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 cat >conftest.
$ac_ext <<_ACEOF
17263 cat confdefs.h
>>conftest.
$ac_ext
17264 cat >>conftest.
$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17276 # include <limits.h>
17278 # include <assert.h>
17283 /* Override any gcc2 internal prototype to avoid an error. */
17288 /* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
17291 /* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
17294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17297 char (*f) () = $ac_func;
17306 return f != $ac_func;
17311 rm -f conftest.
$ac_objext conftest
$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
17315 grep -v '^ *+' conftest.er1
>conftest.err
17317 cat conftest.err
>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try
='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 eval "$as_ac_var=yes"
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.
$ac_ext >&5
17337 eval "$as_ac_var=no"
17339 rm -f conftest.err conftest.
$ac_objext \
17340 conftest
$ac_exeext conftest.
$ac_ext
17342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17344 if test `eval echo '${'$as_ac_var'}'` = yes; then
17345 cat >>confdefs.h
<<_ACEOF
17346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17356 if test -z "$GETOPT_H"; then
17357 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17358 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17359 if test "${ac_cv_have_decl_optreset+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 cat >conftest.
$ac_ext <<_ACEOF
17365 cat confdefs.h
>>conftest.
$ac_ext
17366 cat >>conftest.
$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <getopt.h>
17374 char *p = (char *) optreset;
17381 rm -f conftest.
$ac_objext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17383 (eval $ac_compile) 2>conftest.er1
17385 grep -v '^ *+' conftest.er1
>conftest.err
17387 cat conftest.err
>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try
='test -s conftest.$ac_objext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_have_decl_optreset
=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.
$ac_ext >&5
17407 ac_cv_have_decl_optreset
=no
17409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17412 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17413 if test $ac_cv_have_decl_optreset = yes; then
17419 if test -z "$GETOPT_H"; then
17420 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17421 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17422 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 if test "$cross_compiling" = yes; then
17426 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17427 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17428 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 cat >conftest.
$ac_ext <<_ACEOF
17434 cat confdefs.h
>>conftest.
$ac_ext
17435 cat >>conftest.
$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 #include <getopt.h>
17442 #ifndef getopt_clip
17443 char *p = (char *) getopt_clip;
17450 rm -f conftest.
$ac_objext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17452 (eval $ac_compile) 2>conftest.er1
17454 grep -v '^ *+' conftest.er1
>conftest.err
17456 cat conftest.err
>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try
='test -s conftest.$ac_objext'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; }; then
17471 ac_cv_have_decl_getopt_clip
=yes
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.
$ac_ext >&5
17476 ac_cv_have_decl_getopt_clip
=no
17478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17480 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17481 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17482 if test $ac_cv_have_decl_getopt_clip = yes; then
17483 gl_cv_func_gnu_getopt
=no
17485 gl_cv_func_gnu_getopt
=yes
17489 cat >conftest.
$ac_ext <<_ACEOF
17492 cat confdefs.h
>>conftest.
$ac_ext
17493 cat >>conftest.
$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <getopt.h>
17501 myargv[0] = "conftest";
17504 return getopt (2, myargv, "+a") != '?';
17510 rm -f conftest
$ac_exeext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17512 (eval $ac_link) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 gl_cv_func_gnu_getopt
=yes
17523 echo "$as_me: program exited with status $ac_status" >&5
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.
$ac_ext >&5
17527 ( exit $ac_status )
17528 gl_cv_func_gnu_getopt
=no
17530 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17533 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17534 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17535 if test "$gl_cv_func_gnu_getopt" = "no"; then
17542 if test -n "$GETOPT_H"; then
17547 cat >>confdefs.h
<<\_ACEOF
17548 #define __GETOPT_PREFIX rpl_
17554 GETOPTOBJS
='getopt.o getopt1.o'
17561 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17562 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17563 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 # Use it with a single arg.
17567 cat >conftest.
$ac_ext <<_ACEOF
17570 cat confdefs.h
>>conftest.
$ac_ext
17571 cat >>conftest.
$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 $ac_includes_default
17582 rm -f conftest.
$ac_objext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17584 (eval $ac_compile) 2>conftest.er1
17586 grep -v '^ *+' conftest.er1
>conftest.err
17588 cat conftest.err
>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try
='test -s conftest.$ac_objext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_func_getpgrp_void
=no
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.
$ac_ext >&5
17608 ac_cv_func_getpgrp_void
=yes
17610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17613 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17614 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17615 if test $ac_cv_func_getpgrp_void = yes; then
17617 cat >>confdefs.h
<<\_ACEOF
17618 #define GETPGRP_VOID 1
17625 for ac_func
in strftime
17627 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17628 echo "$as_me:$LINENO: checking for $ac_func" >&5
17629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17630 if eval "test \"\${$as_ac_var+set}\" = set"; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 cat >conftest.
$ac_ext <<_ACEOF
17636 cat confdefs.h
>>conftest.
$ac_ext
17637 cat >>conftest.
$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17641 #define $ac_func innocuous_$ac_func
17643 /* System header to define __stub macros and hopefully few prototypes,
17644 which can conflict with char $ac_func (); below.
17645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17646 <limits.h> exists even on freestanding compilers. */
17649 # include <limits.h>
17651 # include <assert.h>
17656 /* Override any gcc2 internal prototype to avoid an error. */
17661 /* We use char because int might match the return type of a gcc2
17662 builtin and then its argument prototype would still apply. */
17664 /* The GNU C library defines this for functions which it implements
17665 to always fail with ENOSYS. Some functions are actually named
17666 something starting with __ and the normal name is an alias. */
17667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17670 char (*f) () = $ac_func;
17679 return f != $ac_func;
17684 rm -f conftest.
$ac_objext conftest
$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686 (eval $ac_link) 2>conftest.er1
17688 grep -v '^ *+' conftest.er1
>conftest.err
17690 cat conftest.err
>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try
='test -s conftest$ac_exeext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 eval "$as_ac_var=yes"
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.
$ac_ext >&5
17710 eval "$as_ac_var=no"
17712 rm -f conftest.err conftest.
$ac_objext \
17713 conftest
$ac_exeext conftest.
$ac_ext
17715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17717 if test `eval echo '${'$as_ac_var'}'` = yes; then
17718 cat >>confdefs.h
<<_ACEOF
17719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17723 # strftime is in -lintl on SCO UNIX.
17724 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17725 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17726 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 ac_check_lib_save_LIBS
=$LIBS
17730 LIBS
="-lintl $LIBS"
17731 cat >conftest.
$ac_ext <<_ACEOF
17734 cat confdefs.h
>>conftest.
$ac_ext
17735 cat >>conftest.
$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17738 /* Override any gcc2 internal prototype to avoid an error. */
17742 /* We use char because int might match the return type of a gcc2
17743 builtin and then its argument prototype would still apply. */
17753 rm -f conftest.
$ac_objext conftest
$ac_exeext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>conftest.er1
17757 grep -v '^ *+' conftest.er1
>conftest.err
17759 cat conftest.err
>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try
='test -s conftest$ac_exeext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_lib_intl_strftime
=yes
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.
$ac_ext >&5
17779 ac_cv_lib_intl_strftime
=no
17781 rm -f conftest.err conftest.
$ac_objext \
17782 conftest
$ac_exeext conftest.
$ac_ext
17783 LIBS
=$ac_check_lib_save_LIBS
17785 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17786 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17787 if test $ac_cv_lib_intl_strftime = yes; then
17788 cat >>confdefs.h
<<\_ACEOF
17789 #define HAVE_STRFTIME 1
17792 LIBS
="-lintl $LIBS"
17801 for ac_func
in grantpt
17803 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17804 echo "$as_me:$LINENO: checking for $ac_func" >&5
17805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17806 if eval "test \"\${$as_ac_var+set}\" = set"; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 cat >conftest.
$ac_ext <<_ACEOF
17812 cat confdefs.h
>>conftest.
$ac_ext
17813 cat >>conftest.
$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17817 #define $ac_func innocuous_$ac_func
17819 /* System header to define __stub macros and hopefully few prototypes,
17820 which can conflict with char $ac_func (); below.
17821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822 <limits.h> exists even on freestanding compilers. */
17825 # include <limits.h>
17827 # include <assert.h>
17832 /* Override any gcc2 internal prototype to avoid an error. */
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17840 /* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17846 char (*f) () = $ac_func;
17855 return f != $ac_func;
17860 rm -f conftest.
$ac_objext conftest
$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1
>conftest.err
17866 cat conftest.err
>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try
='test -s conftest$ac_exeext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 eval "$as_ac_var=yes"
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.
$ac_ext >&5
17886 eval "$as_ac_var=no"
17888 rm -f conftest.err conftest.
$ac_objext \
17889 conftest
$ac_exeext conftest.
$ac_ext
17891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h
<<_ACEOF
17895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17902 # PTY-related GNU extensions.
17904 for ac_func
in getpt
17906 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17907 echo "$as_me:$LINENO: checking for $ac_func" >&5
17908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17909 if eval "test \"\${$as_ac_var+set}\" = set"; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 cat >conftest.
$ac_ext <<_ACEOF
17915 cat confdefs.h
>>conftest.
$ac_ext
17916 cat >>conftest.
$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17920 #define $ac_func innocuous_$ac_func
17922 /* System header to define __stub macros and hopefully few prototypes,
17923 which can conflict with char $ac_func (); below.
17924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17925 <limits.h> exists even on freestanding compilers. */
17928 # include <limits.h>
17930 # include <assert.h>
17935 /* Override any gcc2 internal prototype to avoid an error. */
17940 /* We use char because int might match the return type of a gcc2
17941 builtin and then its argument prototype would still apply. */
17943 /* The GNU C library defines this for functions which it implements
17944 to always fail with ENOSYS. Some functions are actually named
17945 something starting with __ and the normal name is an alias. */
17946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17949 char (*f) () = $ac_func;
17958 return f != $ac_func;
17963 rm -f conftest.
$ac_objext conftest
$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965 (eval $ac_link) 2>conftest.er1
17967 grep -v '^ *+' conftest.er1
>conftest.err
17969 cat conftest.err
>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try
='test -s conftest$ac_exeext'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 eval "$as_ac_var=yes"
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.
$ac_ext >&5
17989 eval "$as_ac_var=no"
17991 rm -f conftest.err conftest.
$ac_objext \
17992 conftest
$ac_exeext conftest.
$ac_ext
17994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h
<<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18005 # Check this now, so that we will NOT find the above functions in ncurses.
18006 # That is because we have not set up to link ncurses in lib-src.
18007 # It's better to believe a function is not available
18008 # than to expect to find it in ncurses.
18010 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18011 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18012 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 ac_check_lib_save_LIBS
=$LIBS
18016 LIBS
="-lncurses $LIBS"
18017 cat >conftest.
$ac_ext <<_ACEOF
18020 cat confdefs.h
>>conftest.
$ac_ext
18021 cat >>conftest.
$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18024 /* Override any gcc2 internal prototype to avoid an error. */
18028 /* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18039 rm -f conftest.
$ac_objext conftest
$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18043 grep -v '^ *+' conftest.er1
>conftest.err
18045 cat conftest.err
>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try
='test -s conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_lib_ncurses_tparm
=yes
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.
$ac_ext >&5
18065 ac_cv_lib_ncurses_tparm
=no
18067 rm -f conftest.err conftest.
$ac_objext \
18068 conftest
$ac_exeext conftest.
$ac_ext
18069 LIBS
=$ac_check_lib_save_LIBS
18071 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18072 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18073 if test $ac_cv_lib_ncurses_tparm = yes; then
18074 cat >>confdefs.h
<<_ACEOF
18075 #define HAVE_LIBNCURSES 1
18078 LIBS
="-lncurses $LIBS"
18083 # Do we need the Hesiod library to provide the support routines?
18084 if test "$with_hesiod" = yes ; then
18085 # Don't set $LIBS here -- see comments above.
18087 echo "$as_me:$LINENO: checking for res_send" >&5
18088 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18089 if test "${ac_cv_func_res_send+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 cat >conftest.
$ac_ext <<_ACEOF
18095 cat confdefs.h
>>conftest.
$ac_ext
18096 cat >>conftest.
$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18100 #define res_send innocuous_res_send
18102 /* System header to define __stub macros and hopefully few prototypes,
18103 which can conflict with char res_send (); below.
18104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18105 <limits.h> exists even on freestanding compilers. */
18108 # include <limits.h>
18110 # include <assert.h>
18115 /* Override any gcc2 internal prototype to avoid an error. */
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18123 /* The GNU C library defines this for functions which it implements
18124 to always fail with ENOSYS. Some functions are actually named
18125 something starting with __ and the normal name is an alias. */
18126 #if defined (__stub_res_send) || defined (__stub___res_send)
18129 char (*f) () = res_send;
18138 return f != res_send;
18143 rm -f conftest.
$ac_objext conftest
$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145 (eval $ac_link) 2>conftest.er1
18147 grep -v '^ *+' conftest.er1
>conftest.err
18149 cat conftest.err
>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try
='test -s conftest$ac_exeext'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_cv_func_res_send
=yes
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.
$ac_ext >&5
18169 ac_cv_func_res_send
=no
18171 rm -f conftest.err conftest.
$ac_objext \
18172 conftest
$ac_exeext conftest.
$ac_ext
18174 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18175 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18176 if test $ac_cv_func_res_send = yes; then
18179 echo "$as_me:$LINENO: checking for __res_send" >&5
18180 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18181 if test "${ac_cv_func___res_send+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 cat >conftest.
$ac_ext <<_ACEOF
18187 cat confdefs.h
>>conftest.
$ac_ext
18188 cat >>conftest.
$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define __res_send innocuous___res_send
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char __res_send (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18200 # include <limits.h>
18202 # include <assert.h>
18207 /* Override any gcc2 internal prototype to avoid an error. */
18212 /* We use char because int might match the return type of a gcc2
18213 builtin and then its argument prototype would still apply. */
18214 char __res_send ();
18215 /* The GNU C library defines this for functions which it implements
18216 to always fail with ENOSYS. Some functions are actually named
18217 something starting with __ and the normal name is an alias. */
18218 #if defined (__stub___res_send) || defined (__stub_____res_send)
18221 char (*f) () = __res_send;
18230 return f != __res_send;
18235 rm -f conftest.
$ac_objext conftest
$ac_exeext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237 (eval $ac_link) 2>conftest.er1
18239 grep -v '^ *+' conftest.er1
>conftest.err
18241 cat conftest.err
>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try
='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_func___res_send
=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.
$ac_ext >&5
18261 ac_cv_func___res_send
=no
18263 rm -f conftest.err conftest.
$ac_objext \
18264 conftest
$ac_exeext conftest.
$ac_ext
18266 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18267 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18268 if test $ac_cv_func___res_send = yes; then
18271 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18272 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18273 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 ac_check_lib_save_LIBS
=$LIBS
18277 LIBS
="-lresolv $LIBS"
18278 cat >conftest.
$ac_ext <<_ACEOF
18281 cat confdefs.h
>>conftest.
$ac_ext
18282 cat >>conftest.
$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18285 /* Override any gcc2 internal prototype to avoid an error. */
18289 /* We use char because int might match the return type of a gcc2
18290 builtin and then its argument prototype would still apply. */
18300 rm -f conftest.
$ac_objext conftest
$ac_exeext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302 (eval $ac_link) 2>conftest.er1
18304 grep -v '^ *+' conftest.er1
>conftest.err
18306 cat conftest.err
>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try
='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_resolv_res_send
=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.
$ac_ext >&5
18326 ac_cv_lib_resolv_res_send
=no
18328 rm -f conftest.err conftest.
$ac_objext \
18329 conftest
$ac_exeext conftest.
$ac_ext
18330 LIBS
=$ac_check_lib_save_LIBS
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18333 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18334 if test $ac_cv_lib_resolv_res_send = yes; then
18337 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18338 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18339 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 ac_check_lib_save_LIBS
=$LIBS
18343 LIBS
="-lresolv $LIBS"
18344 cat >conftest.
$ac_ext <<_ACEOF
18347 cat confdefs.h
>>conftest.
$ac_ext
18348 cat >>conftest.
$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18351 /* Override any gcc2 internal prototype to avoid an error. */
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357 char __res_send ();
18366 rm -f conftest.
$ac_objext conftest
$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>conftest.er1
18370 grep -v '^ *+' conftest.er1
>conftest.err
18372 cat conftest.err
>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try
='test -s conftest$ac_exeext'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_resolv___res_send
=yes
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.
$ac_ext >&5
18392 ac_cv_lib_resolv___res_send
=no
18394 rm -f conftest.err conftest.
$ac_objext \
18395 conftest
$ac_exeext conftest.
$ac_ext
18396 LIBS
=$ac_check_lib_save_LIBS
18398 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18399 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18400 if test $ac_cv_lib_resolv___res_send = yes; then
18410 if test "$resolv" = yes ; then
18413 cat >>confdefs.h
<<\_ACEOF
18414 #define HAVE_LIBRESOLV 1
18420 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18421 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18422 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 cat >conftest.
$ac_ext <<_ACEOF
18428 cat confdefs.h
>>conftest.
$ac_ext
18429 cat >>conftest.
$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18433 #define hes_getmailhost innocuous_hes_getmailhost
18435 /* System header to define __stub macros and hopefully few prototypes,
18436 which can conflict with char hes_getmailhost (); below.
18437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18438 <limits.h> exists even on freestanding compilers. */
18441 # include <limits.h>
18443 # include <assert.h>
18446 #undef hes_getmailhost
18448 /* Override any gcc2 internal prototype to avoid an error. */
18453 /* We use char because int might match the return type of a gcc2
18454 builtin and then its argument prototype would still apply. */
18455 char hes_getmailhost ();
18456 /* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18462 char (*f) () = hes_getmailhost;
18471 return f != hes_getmailhost;
18476 rm -f conftest.
$ac_objext conftest
$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>conftest.er1
18480 grep -v '^ *+' conftest.er1
>conftest.err
18482 cat conftest.err
>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; } &&
18491 { ac_try
='test -s conftest$ac_exeext'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 ac_cv_func_hes_getmailhost
=yes
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.
$ac_ext >&5
18502 ac_cv_func_hes_getmailhost
=no
18504 rm -f conftest.err conftest.
$ac_objext \
18505 conftest
$ac_exeext conftest.
$ac_ext
18507 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18508 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18509 if test $ac_cv_func_hes_getmailhost = yes; then
18512 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18513 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18514 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 ac_check_lib_save_LIBS
=$LIBS
18518 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18519 cat >conftest.
$ac_ext <<_ACEOF
18522 cat confdefs.h
>>conftest.
$ac_ext
18523 cat >>conftest.
$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18526 /* Override any gcc2 internal prototype to avoid an error. */
18530 /* We use char because int might match the return type of a gcc2
18531 builtin and then its argument prototype would still apply. */
18532 char hes_getmailhost ();
18536 hes_getmailhost ();
18541 rm -f conftest.
$ac_objext conftest
$ac_exeext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543 (eval $ac_link) 2>conftest.er1
18545 grep -v '^ *+' conftest.er1
>conftest.err
18547 cat conftest.err
>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
18550 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
18562 ac_cv_lib_hesiod_hes_getmailhost
=yes
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.
$ac_ext >&5
18567 ac_cv_lib_hesiod_hes_getmailhost
=no
18569 rm -f conftest.err conftest.
$ac_objext \
18570 conftest
$ac_exeext conftest.
$ac_ext
18571 LIBS
=$ac_check_lib_save_LIBS
18573 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18574 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18575 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18577 cat >>confdefs.h
<<\_ACEOF
18578 #define HAVE_LIBHESIOD 1
18589 # These tell us which Kerberos-related libraries to use.
18590 if test "${with_kerberos+set}" = set; then
18592 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18593 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18594 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 ac_check_lib_save_LIBS
=$LIBS
18598 LIBS
="-lcom_err $LIBS"
18599 cat >conftest.
$ac_ext <<_ACEOF
18602 cat confdefs.h
>>conftest.
$ac_ext
18603 cat >>conftest.
$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18606 /* Override any gcc2 internal prototype to avoid an error. */
18610 /* We use char because int might match the return type of a gcc2
18611 builtin and then its argument prototype would still apply. */
18621 rm -f conftest.
$ac_objext conftest
$ac_exeext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18623 (eval $ac_link) 2>conftest.er1
18625 grep -v '^ *+' conftest.er1
>conftest.err
18627 cat conftest.err
>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try
='test -s conftest$ac_exeext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_com_err_com_err
=yes
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.
$ac_ext >&5
18647 ac_cv_lib_com_err_com_err
=no
18649 rm -f conftest.err conftest.
$ac_objext \
18650 conftest
$ac_exeext conftest.
$ac_ext
18651 LIBS
=$ac_check_lib_save_LIBS
18653 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18654 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18655 if test $ac_cv_lib_com_err_com_err = yes; then
18656 cat >>confdefs.h
<<_ACEOF
18657 #define HAVE_LIBCOM_ERR 1
18660 LIBS
="-lcom_err $LIBS"
18665 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18666 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18667 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 ac_check_lib_save_LIBS
=$LIBS
18671 LIBS
="-lk5crypto $LIBS"
18672 cat >conftest.
$ac_ext <<_ACEOF
18675 cat confdefs.h
>>conftest.
$ac_ext
18676 cat >>conftest.
$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18679 /* Override any gcc2 internal prototype to avoid an error. */
18683 /* We use char because int might match the return type of a gcc2
18684 builtin and then its argument prototype would still apply. */
18685 char mit_des_cbc_encrypt ();
18689 mit_des_cbc_encrypt ();
18694 rm -f conftest.
$ac_objext conftest
$ac_exeext
18695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18696 (eval $ac_link) 2>conftest.er1
18698 grep -v '^ *+' conftest.er1
>conftest.err
18700 cat conftest.err
>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try
='test -s conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.
$ac_ext >&5
18720 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18722 rm -f conftest.err conftest.
$ac_objext \
18723 conftest
$ac_exeext conftest.
$ac_ext
18724 LIBS
=$ac_check_lib_save_LIBS
18726 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18727 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18728 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18729 cat >>confdefs.h
<<_ACEOF
18730 #define HAVE_LIBK5CRYPTO 1
18733 LIBS
="-lk5crypto $LIBS"
18738 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18739 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18740 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 ac_check_lib_save_LIBS
=$LIBS
18744 LIBS
="-lcrypto $LIBS"
18745 cat >conftest.
$ac_ext <<_ACEOF
18748 cat confdefs.h
>>conftest.
$ac_ext
18749 cat >>conftest.
$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18752 /* Override any gcc2 internal prototype to avoid an error. */
18756 /* We use char because int might match the return type of a gcc2
18757 builtin and then its argument prototype would still apply. */
18758 char mit_des_cbc_encrypt ();
18762 mit_des_cbc_encrypt ();
18767 rm -f conftest.
$ac_objext conftest
$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769 (eval $ac_link) 2>conftest.er1
18771 grep -v '^ *+' conftest.er1
>conftest.err
18773 cat conftest.err
>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try
='test -s conftest$ac_exeext'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.
$ac_ext >&5
18793 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18795 rm -f conftest.err conftest.
$ac_objext \
18796 conftest
$ac_exeext conftest.
$ac_ext
18797 LIBS
=$ac_check_lib_save_LIBS
18799 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18800 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18801 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18802 cat >>confdefs.h
<<_ACEOF
18803 #define HAVE_LIBCRYPTO 1
18806 LIBS
="-lcrypto $LIBS"
18811 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18812 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18813 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 ac_check_lib_save_LIBS
=$LIBS
18817 LIBS
="-lkrb5 $LIBS"
18818 cat >conftest.
$ac_ext <<_ACEOF
18821 cat confdefs.h
>>conftest.
$ac_ext
18822 cat >>conftest.
$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18825 /* Override any gcc2 internal prototype to avoid an error. */
18829 /* We use char because int might match the return type of a gcc2
18830 builtin and then its argument prototype would still apply. */
18831 char krb5_init_context ();
18835 krb5_init_context ();
18840 rm -f conftest.
$ac_objext conftest
$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18844 grep -v '^ *+' conftest.er1
>conftest.err
18846 cat conftest.err
>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try
='test -s conftest$ac_exeext'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18861 ac_cv_lib_krb5_krb5_init_context
=yes
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.
$ac_ext >&5
18866 ac_cv_lib_krb5_krb5_init_context
=no
18868 rm -f conftest.err conftest.
$ac_objext \
18869 conftest
$ac_exeext conftest.
$ac_ext
18870 LIBS
=$ac_check_lib_save_LIBS
18872 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18873 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18874 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18875 cat >>confdefs.h
<<_ACEOF
18876 #define HAVE_LIBKRB5 1
18879 LIBS
="-lkrb5 $LIBS"
18883 if test "${with_kerberos5+set}" != set; then
18885 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18886 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18887 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 ac_check_lib_save_LIBS
=$LIBS
18891 LIBS
="-ldes425 $LIBS"
18892 cat >conftest.
$ac_ext <<_ACEOF
18895 cat confdefs.h
>>conftest.
$ac_ext
18896 cat >>conftest.
$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 /* Override any gcc2 internal prototype to avoid an error. */
18903 /* We use char because int might match the return type of a gcc2
18904 builtin and then its argument prototype would still apply. */
18905 char des_cbc_encrypt ();
18909 des_cbc_encrypt ();
18914 rm -f conftest.
$ac_objext conftest
$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916 (eval $ac_link) 2>conftest.er1
18918 grep -v '^ *+' conftest.er1
>conftest.err
18920 cat conftest.err
>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
18923 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try
='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_lib_des425_des_cbc_encrypt
=yes
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.
$ac_ext >&5
18940 ac_cv_lib_des425_des_cbc_encrypt
=no
18942 rm -f conftest.err conftest.
$ac_objext \
18943 conftest
$ac_exeext conftest.
$ac_ext
18944 LIBS
=$ac_check_lib_save_LIBS
18946 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18947 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18948 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18949 cat >>confdefs.h
<<_ACEOF
18950 #define HAVE_LIBDES425 1
18953 LIBS
="-ldes425 $LIBS"
18957 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18958 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18959 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 ac_check_lib_save_LIBS
=$LIBS
18964 cat >conftest.
$ac_ext <<_ACEOF
18967 cat confdefs.h
>>conftest.
$ac_ext
18968 cat >>conftest.
$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18971 /* Override any gcc2 internal prototype to avoid an error. */
18975 /* We use char because int might match the return type of a gcc2
18976 builtin and then its argument prototype would still apply. */
18977 char des_cbc_encrypt ();
18981 des_cbc_encrypt ();
18986 rm -f conftest.
$ac_objext conftest
$ac_exeext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18988 (eval $ac_link) 2>conftest.er1
18990 grep -v '^ *+' conftest.er1
>conftest.err
18992 cat conftest.err
>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try
='test -s conftest$ac_exeext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_lib_des_des_cbc_encrypt
=yes
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.
$ac_ext >&5
19012 ac_cv_lib_des_des_cbc_encrypt
=no
19014 rm -f conftest.err conftest.
$ac_objext \
19015 conftest
$ac_exeext conftest.
$ac_ext
19016 LIBS
=$ac_check_lib_save_LIBS
19018 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19019 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19020 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19021 cat >>confdefs.h
<<_ACEOF
19022 #define HAVE_LIBDES 1
19032 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19033 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19034 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 ac_check_lib_save_LIBS
=$LIBS
19038 LIBS
="-lkrb4 $LIBS"
19039 cat >conftest.
$ac_ext <<_ACEOF
19042 cat confdefs.h
>>conftest.
$ac_ext
19043 cat >>conftest.
$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19046 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052 char krb_get_cred ();
19061 rm -f conftest.
$ac_objext conftest
$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063 (eval $ac_link) 2>conftest.er1
19065 grep -v '^ *+' conftest.er1
>conftest.err
19067 cat conftest.err
>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try
='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_krb4_krb_get_cred
=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.
$ac_ext >&5
19087 ac_cv_lib_krb4_krb_get_cred
=no
19089 rm -f conftest.err conftest.
$ac_objext \
19090 conftest
$ac_exeext conftest.
$ac_ext
19091 LIBS
=$ac_check_lib_save_LIBS
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19094 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19095 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19096 cat >>confdefs.h
<<_ACEOF
19097 #define HAVE_LIBKRB4 1
19100 LIBS
="-lkrb4 $LIBS"
19104 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19105 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19106 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 ac_check_lib_save_LIBS
=$LIBS
19111 cat >conftest.
$ac_ext <<_ACEOF
19114 cat confdefs.h
>>conftest.
$ac_ext
19115 cat >>conftest.
$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19118 /* Override any gcc2 internal prototype to avoid an error. */
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19124 char krb_get_cred ();
19133 rm -f conftest.
$ac_objext conftest
$ac_exeext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19135 (eval $ac_link) 2>conftest.er1
19137 grep -v '^ *+' conftest.er1
>conftest.err
19139 cat conftest.err
>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try
='test -s conftest$ac_exeext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_krb_krb_get_cred
=yes
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.
$ac_ext >&5
19159 ac_cv_lib_krb_krb_get_cred
=no
19161 rm -f conftest.err conftest.
$ac_objext \
19162 conftest
$ac_exeext conftest.
$ac_ext
19163 LIBS
=$ac_check_lib_save_LIBS
19165 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19166 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19167 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19168 cat >>confdefs.h
<<_ACEOF
19169 #define HAVE_LIBKRB 1
19180 if test "${with_kerberos5+set}" = set; then
19182 for ac_header
in krb5.h
19184 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19186 echo "$as_me:$LINENO: checking for $ac_header" >&5
19187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19194 # Is the header compilable?
19195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19197 cat >conftest.
$ac_ext <<_ACEOF
19200 cat confdefs.h
>>conftest.
$ac_ext
19201 cat >>conftest.
$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 $ac_includes_default
19204 #include <$ac_header>
19206 rm -f conftest.
$ac_objext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19208 (eval $ac_compile) 2>conftest.er1
19210 grep -v '^ *+' conftest.er1
>conftest.err
19212 cat conftest.err
>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try
='test -s conftest.$ac_objext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_header_compiler
=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.
$ac_ext >&5
19232 ac_header_compiler
=no
19234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6
19238 # Is the header present?
19239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19241 cat >conftest.
$ac_ext <<_ACEOF
19244 cat confdefs.h
>>conftest.
$ac_ext
19245 cat >>conftest.
$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <$ac_header>
19249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19250 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19252 grep -v '^ *+' conftest.er1
>conftest.err
19254 cat conftest.err
>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } >/dev
/null
; then
19257 if test -s conftest.err
; then
19258 ac_cpp_err
=$ac_c_preproc_warn_flag
19259 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19266 if test -z "$ac_cpp_err"; then
19267 ac_header_preproc
=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.
$ac_ext >&5
19272 ac_header_preproc
=no
19274 rm -f conftest.err conftest.
$ac_ext
19275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19276 echo "${ECHO_T}$ac_header_preproc" >&6
19278 # So? What about this header?
19279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19285 ac_header_preproc
=yes
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19302 ## ------------------------------------------ ##
19303 ## Report this to the AC_PACKAGE_NAME lists. ##
19304 ## ------------------------------------------ ##
19307 sed "s/^/$as_me: WARNING: /" >&2
19310 echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 eval "$as_ac_Header=\$ac_header_preproc"
19317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322 cat >>confdefs.h
<<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19332 for ac_header
in des.h
19334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19336 echo "$as_me:$LINENO: checking for $ac_header" >&5
19337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19344 # Is the header compilable?
19345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19347 cat >conftest.
$ac_ext <<_ACEOF
19350 cat confdefs.h
>>conftest.
$ac_ext
19351 cat >>conftest.
$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 $ac_includes_default
19354 #include <$ac_header>
19356 rm -f conftest.
$ac_objext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19358 (eval $ac_compile) 2>conftest.er1
19360 grep -v '^ *+' conftest.er1
>conftest.err
19362 cat conftest.err
>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try
='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_header_compiler
=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.
$ac_ext >&5
19382 ac_header_compiler
=no
19384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19386 echo "${ECHO_T}$ac_header_compiler" >&6
19388 # Is the header present?
19389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19391 cat >conftest.
$ac_ext <<_ACEOF
19394 cat confdefs.h
>>conftest.
$ac_ext
19395 cat >>conftest.
$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 #include <$ac_header>
19399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19402 grep -v '^ *+' conftest.er1
>conftest.err
19404 cat conftest.err
>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } >/dev
/null
; then
19407 if test -s conftest.err
; then
19408 ac_cpp_err
=$ac_c_preproc_warn_flag
19409 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19416 if test -z "$ac_cpp_err"; then
19417 ac_header_preproc
=yes
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.
$ac_ext >&5
19422 ac_header_preproc
=no
19424 rm -f conftest.err conftest.
$ac_ext
19425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19426 echo "${ECHO_T}$ac_header_preproc" >&6
19428 # So? What about this header?
19429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19435 ac_header_preproc
=yes
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19452 ## ------------------------------------------ ##
19453 ## Report this to the AC_PACKAGE_NAME lists. ##
19454 ## ------------------------------------------ ##
19457 sed "s/^/$as_me: WARNING: /" >&2
19460 echo "$as_me:$LINENO: checking for $ac_header" >&5
19461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 eval "$as_ac_Header=\$ac_header_preproc"
19467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19472 cat >>confdefs.h
<<_ACEOF
19473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19478 for ac_header
in kerberosIV
/des.h
19480 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19482 echo "$as_me:$LINENO: checking for $ac_header" >&5
19483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19490 # Is the header compilable?
19491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19493 cat >conftest.
$ac_ext <<_ACEOF
19496 cat confdefs.h
>>conftest.
$ac_ext
19497 cat >>conftest.
$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 $ac_includes_default
19500 #include <$ac_header>
19502 rm -f conftest.
$ac_objext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19504 (eval $ac_compile) 2>conftest.er1
19506 grep -v '^ *+' conftest.er1
>conftest.err
19508 cat conftest.err
>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try
='test -s conftest.$ac_objext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_header_compiler
=yes
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.
$ac_ext >&5
19528 ac_header_compiler
=no
19530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19532 echo "${ECHO_T}$ac_header_compiler" >&6
19534 # Is the header present?
19535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19537 cat >conftest.
$ac_ext <<_ACEOF
19540 cat confdefs.h
>>conftest.
$ac_ext
19541 cat >>conftest.
$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #include <$ac_header>
19545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19546 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19548 grep -v '^ *+' conftest.er1
>conftest.err
19550 cat conftest.err
>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } >/dev
/null
; then
19553 if test -s conftest.err
; then
19554 ac_cpp_err
=$ac_c_preproc_warn_flag
19555 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19562 if test -z "$ac_cpp_err"; then
19563 ac_header_preproc
=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.
$ac_ext >&5
19568 ac_header_preproc
=no
19570 rm -f conftest.err conftest.
$ac_ext
19571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19572 echo "${ECHO_T}$ac_header_preproc" >&6
19574 # So? What about this header?
19575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19581 ac_header_preproc
=yes
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19598 ## ------------------------------------------ ##
19599 ## Report this to the AC_PACKAGE_NAME lists. ##
19600 ## ------------------------------------------ ##
19603 sed "s/^/$as_me: WARNING: /" >&2
19606 echo "$as_me:$LINENO: checking for $ac_header" >&5
19607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 eval "$as_ac_Header=\$ac_header_preproc"
19613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19618 cat >>confdefs.h
<<_ACEOF
19619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19624 for ac_header
in kerberos
/des.h
19626 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19628 echo "$as_me:$LINENO: checking for $ac_header" >&5
19629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19636 # Is the header compilable?
19637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19639 cat >conftest.
$ac_ext <<_ACEOF
19642 cat confdefs.h
>>conftest.
$ac_ext
19643 cat >>conftest.
$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19645 $ac_includes_default
19646 #include <$ac_header>
19648 rm -f conftest.
$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650 (eval $ac_compile) 2>conftest.er1
19652 grep -v '^ *+' conftest.er1
>conftest.err
19654 cat conftest.err
>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try
='test -s conftest.$ac_objext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 ac_header_compiler
=yes
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.
$ac_ext >&5
19674 ac_header_compiler
=no
19676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19678 echo "${ECHO_T}$ac_header_compiler" >&6
19680 # Is the header present?
19681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19683 cat >conftest.
$ac_ext <<_ACEOF
19686 cat confdefs.h
>>conftest.
$ac_ext
19687 cat >>conftest.
$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19689 #include <$ac_header>
19691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19692 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19694 grep -v '^ *+' conftest.er1
>conftest.err
19696 cat conftest.err
>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } >/dev
/null
; then
19699 if test -s conftest.err
; then
19700 ac_cpp_err
=$ac_c_preproc_warn_flag
19701 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19708 if test -z "$ac_cpp_err"; then
19709 ac_header_preproc
=yes
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.
$ac_ext >&5
19714 ac_header_preproc
=no
19716 rm -f conftest.err conftest.
$ac_ext
19717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19718 echo "${ECHO_T}$ac_header_preproc" >&6
19720 # So? What about this header?
19721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19727 ac_header_preproc
=yes
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19744 ## ------------------------------------------ ##
19745 ## Report this to the AC_PACKAGE_NAME lists. ##
19746 ## ------------------------------------------ ##
19749 sed "s/^/$as_me: WARNING: /" >&2
19752 echo "$as_me:$LINENO: checking for $ac_header" >&5
19753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 eval "$as_ac_Header=\$ac_header_preproc"
19759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19764 cat >>confdefs.h
<<_ACEOF
19765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19781 for ac_header
in krb.h
19783 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo "$as_me:$LINENO: checking for $ac_header" >&5
19786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19793 # Is the header compilable?
19794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19796 cat >conftest.
$ac_ext <<_ACEOF
19799 cat confdefs.h
>>conftest.
$ac_ext
19800 cat >>conftest.
$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 $ac_includes_default
19803 #include <$ac_header>
19805 rm -f conftest.
$ac_objext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19807 (eval $ac_compile) 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); } &&
19814 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try
='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_header_compiler
=yes
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.
$ac_ext >&5
19831 ac_header_compiler
=no
19833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19835 echo "${ECHO_T}$ac_header_compiler" >&6
19837 # Is the header present?
19838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19840 cat >conftest.
$ac_ext <<_ACEOF
19843 cat confdefs.h
>>conftest.
$ac_ext
19844 cat >>conftest.
$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <$ac_header>
19848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19851 grep -v '^ *+' conftest.er1
>conftest.err
19853 cat conftest.err
>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } >/dev
/null
; then
19856 if test -s conftest.err
; then
19857 ac_cpp_err
=$ac_c_preproc_warn_flag
19858 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19865 if test -z "$ac_cpp_err"; then
19866 ac_header_preproc
=yes
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.
$ac_ext >&5
19871 ac_header_preproc
=no
19873 rm -f conftest.err conftest.
$ac_ext
19874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875 echo "${ECHO_T}$ac_header_preproc" >&6
19877 # So? What about this header?
19878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19884 ac_header_preproc
=yes
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19901 ## ------------------------------------------ ##
19902 ## Report this to the AC_PACKAGE_NAME lists. ##
19903 ## ------------------------------------------ ##
19906 sed "s/^/$as_me: WARNING: /" >&2
19909 echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 eval "$as_ac_Header=\$ac_header_preproc"
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19921 cat >>confdefs.h
<<_ACEOF
19922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19927 for ac_header
in kerberosIV
/krb.h
19929 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19931 echo "$as_me:$LINENO: checking for $ac_header" >&5
19932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19939 # Is the header compilable?
19940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19942 cat >conftest.
$ac_ext <<_ACEOF
19945 cat confdefs.h
>>conftest.
$ac_ext
19946 cat >>conftest.
$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 $ac_includes_default
19949 #include <$ac_header>
19951 rm -f conftest.
$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953 (eval $ac_compile) 2>conftest.er1
19955 grep -v '^ *+' conftest.er1
>conftest.err
19957 cat conftest.err
>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try
='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_header_compiler
=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.
$ac_ext >&5
19977 ac_header_compiler
=no
19979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6
19983 # Is the header present?
19984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19986 cat >conftest.
$ac_ext <<_ACEOF
19989 cat confdefs.h
>>conftest.
$ac_ext
19990 cat >>conftest.
$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <$ac_header>
19994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19997 grep -v '^ *+' conftest.er1
>conftest.err
19999 cat conftest.err
>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } >/dev
/null
; then
20002 if test -s conftest.err
; then
20003 ac_cpp_err
=$ac_c_preproc_warn_flag
20004 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20011 if test -z "$ac_cpp_err"; then
20012 ac_header_preproc
=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.
$ac_ext >&5
20017 ac_header_preproc
=no
20019 rm -f conftest.err conftest.
$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6
20023 # So? What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc
=yes
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20047 ## ------------------------------------------ ##
20048 ## Report this to the AC_PACKAGE_NAME lists. ##
20049 ## ------------------------------------------ ##
20052 sed "s/^/$as_me: WARNING: /" >&2
20055 echo "$as_me:$LINENO: checking for $ac_header" >&5
20056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 eval "$as_ac_Header=\$ac_header_preproc"
20062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20067 cat >>confdefs.h
<<_ACEOF
20068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20073 for ac_header
in kerberos
/krb.h
20075 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20077 echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20085 # Is the header compilable?
20086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20088 cat >conftest.
$ac_ext <<_ACEOF
20091 cat confdefs.h
>>conftest.
$ac_ext
20092 cat >>conftest.
$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 $ac_includes_default
20095 #include <$ac_header>
20097 rm -f conftest.
$ac_objext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>conftest.er1
20101 grep -v '^ *+' conftest.er1
>conftest.err
20103 cat conftest.err
>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try
='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_header_compiler
=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.
$ac_ext >&5
20123 ac_header_compiler
=no
20125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20127 echo "${ECHO_T}$ac_header_compiler" >&6
20129 # Is the header present?
20130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20132 cat >conftest.
$ac_ext <<_ACEOF
20135 cat confdefs.h
>>conftest.
$ac_ext
20136 cat >>conftest.
$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 #include <$ac_header>
20140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20143 grep -v '^ *+' conftest.er1
>conftest.err
20145 cat conftest.err
>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } >/dev
/null
; then
20148 if test -s conftest.err
; then
20149 ac_cpp_err
=$ac_c_preproc_warn_flag
20150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20157 if test -z "$ac_cpp_err"; then
20158 ac_header_preproc
=yes
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.
$ac_ext >&5
20163 ac_header_preproc
=no
20165 rm -f conftest.err conftest.
$ac_ext
20166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20167 echo "${ECHO_T}$ac_header_preproc" >&6
20169 # So? What about this header?
20170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20176 ac_header_preproc
=yes
20179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20193 ## ------------------------------------------ ##
20194 ## Report this to the AC_PACKAGE_NAME lists. ##
20195 ## ------------------------------------------ ##
20198 sed "s/^/$as_me: WARNING: /" >&2
20201 echo "$as_me:$LINENO: checking for $ac_header" >&5
20202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 eval "$as_ac_Header=\$ac_header_preproc"
20208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20213 cat >>confdefs.h
<<_ACEOF
20214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20231 for ac_header
in com_err.h
20233 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235 echo "$as_me:$LINENO: checking for $ac_header" >&5
20236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20243 # Is the header compilable?
20244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20246 cat >conftest.
$ac_ext <<_ACEOF
20249 cat confdefs.h
>>conftest.
$ac_ext
20250 cat >>conftest.
$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <$ac_header>
20255 rm -f conftest.
$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20259 grep -v '^ *+' conftest.er1
>conftest.err
20261 cat conftest.err
>&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try
='test -s conftest.$ac_objext'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 ac_header_compiler
=yes
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.
$ac_ext >&5
20281 ac_header_compiler
=no
20283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20285 echo "${ECHO_T}$ac_header_compiler" >&6
20287 # Is the header present?
20288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20290 cat >conftest.
$ac_ext <<_ACEOF
20293 cat confdefs.h
>>conftest.
$ac_ext
20294 cat >>conftest.
$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 #include <$ac_header>
20298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20299 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20301 grep -v '^ *+' conftest.er1
>conftest.err
20303 cat conftest.err
>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } >/dev
/null
; then
20306 if test -s conftest.err
; then
20307 ac_cpp_err
=$ac_c_preproc_warn_flag
20308 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20315 if test -z "$ac_cpp_err"; then
20316 ac_header_preproc
=yes
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.
$ac_ext >&5
20321 ac_header_preproc
=no
20323 rm -f conftest.err conftest.
$ac_ext
20324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20325 echo "${ECHO_T}$ac_header_preproc" >&6
20327 # So? What about this header?
20328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20334 ac_header_preproc
=yes
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20351 ## ------------------------------------------ ##
20352 ## Report this to the AC_PACKAGE_NAME lists. ##
20353 ## ------------------------------------------ ##
20356 sed "s/^/$as_me: WARNING: /" >&2
20359 echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 eval "$as_ac_Header=\$ac_header_preproc"
20366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20371 cat >>confdefs.h
<<_ACEOF
20372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20381 # Solaris requires -lintl if you want strerror (which calls dgettext)
20382 # to return localized messages.
20384 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20385 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20386 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 ac_check_lib_save_LIBS
=$LIBS
20390 LIBS
="-lintl $LIBS"
20391 cat >conftest.
$ac_ext <<_ACEOF
20394 cat confdefs.h
>>conftest.
$ac_ext
20395 cat >>conftest.
$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20398 /* Override any gcc2 internal prototype to avoid an error. */
20402 /* We use char because int might match the return type of a gcc2
20403 builtin and then its argument prototype would still apply. */
20413 rm -f conftest.
$ac_objext conftest
$ac_exeext
20414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20415 (eval $ac_link) 2>conftest.er1
20417 grep -v '^ *+' conftest.er1
>conftest.err
20419 cat conftest.err
>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } &&
20422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try
='test -s conftest$ac_exeext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_lib_intl_dgettext
=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.
$ac_ext >&5
20439 ac_cv_lib_intl_dgettext
=no
20441 rm -f conftest.err conftest.
$ac_objext \
20442 conftest
$ac_exeext conftest.
$ac_ext
20443 LIBS
=$ac_check_lib_save_LIBS
20445 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20446 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20447 if test $ac_cv_lib_intl_dgettext = yes; then
20448 cat >>confdefs.h
<<_ACEOF
20449 #define HAVE_LIBINTL 1
20452 LIBS
="-lintl $LIBS"
20457 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20458 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20459 if test "${emacs_cv_localtime_cache+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 if test x
$ac_cv_func_tzset = xyes
; then
20463 if test "$cross_compiling" = yes; then
20464 # If we have tzset, assume the worst when cross-compiling.
20465 emacs_cv_localtime_cache
=yes
20467 cat >conftest.
$ac_ext <<_ACEOF
20470 cat confdefs.h
>>conftest.
$ac_ext
20471 cat >>conftest.
$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 extern char **environ;
20478 for (to = from = environ; (*to = *from); from++)
20479 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20482 char TZ_GMT0[] = "TZ=GMT0";
20483 char TZ_PST8[] = "TZ=PST8";
20486 time_t now = time ((time_t *) 0);
20487 int hour_GMT0, hour_unset;
20488 if (putenv (TZ_GMT0) != 0)
20490 hour_GMT0 = localtime (&now)->tm_hour;
20492 hour_unset = localtime (&now)->tm_hour;
20493 if (putenv (TZ_PST8) != 0)
20495 if (localtime (&now)->tm_hour == hour_GMT0)
20498 if (localtime (&now)->tm_hour != hour_unset)
20503 rm -f conftest
$ac_exeext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20505 (eval $ac_link) 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 emacs_cv_localtime_cache
=no
20516 echo "$as_me: program exited with status $ac_status" >&5
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.
$ac_ext >&5
20520 ( exit $ac_status )
20521 emacs_cv_localtime_cache
=yes
20523 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20526 # If we lack tzset, report that localtime does not cache TZ,
20527 # since we can't invalidate the cache if we don't have tzset.
20528 emacs_cv_localtime_cache
=no
20531 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20532 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20533 if test $emacs_cv_localtime_cache = yes; then
20535 cat >>confdefs.h
<<\_ACEOF
20536 #define LOCALTIME_CACHE 1
20541 if test "x$HAVE_TIMEVAL" = xyes
; then
20543 for ac_func
in gettimeofday
20545 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20546 echo "$as_me:$LINENO: checking for $ac_func" >&5
20547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20548 if eval "test \"\${$as_ac_var+set}\" = set"; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 cat >conftest.
$ac_ext <<_ACEOF
20554 cat confdefs.h
>>conftest.
$ac_ext
20555 cat >>conftest.
$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20559 #define $ac_func innocuous_$ac_func
20561 /* System header to define __stub macros and hopefully few prototypes,
20562 which can conflict with char $ac_func (); below.
20563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20564 <limits.h> exists even on freestanding compilers. */
20567 # include <limits.h>
20569 # include <assert.h>
20574 /* Override any gcc2 internal prototype to avoid an error. */
20579 /* We use char because int might match the return type of a gcc2
20580 builtin and then its argument prototype would still apply. */
20582 /* The GNU C library defines this for functions which it implements
20583 to always fail with ENOSYS. Some functions are actually named
20584 something starting with __ and the normal name is an alias. */
20585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20588 char (*f) () = $ac_func;
20597 return f != $ac_func;
20602 rm -f conftest.
$ac_objext conftest
$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604 (eval $ac_link) 2>conftest.er1
20606 grep -v '^ *+' conftest.er1
>conftest.err
20608 cat conftest.err
>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try
='test -s conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 eval "$as_ac_var=yes"
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.
$ac_ext >&5
20628 eval "$as_ac_var=no"
20630 rm -f conftest.err conftest.
$ac_objext \
20631 conftest
$ac_exeext conftest.
$ac_ext
20633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20635 if test `eval echo '${'$as_ac_var'}'` = yes; then
20636 cat >>confdefs.h
<<_ACEOF
20637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20643 if test $ac_cv_func_gettimeofday = yes; then
20644 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20645 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20646 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 cat >conftest.
$ac_ext <<_ACEOF
20652 cat confdefs.h
>>conftest.
$ac_ext
20653 cat >>conftest.
$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20656 #ifdef TIME_WITH_SYS_TIME
20657 #include <sys/time.h>
20660 #ifdef HAVE_SYS_TIME_H
20661 #include <sys/time.h>
20669 struct timeval time;
20670 gettimeofday (&time, 0);
20675 rm -f conftest.
$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>conftest.er1
20679 grep -v '^ *+' conftest.er1
>conftest.err
20681 cat conftest.err
>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try
='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 emacs_cv_gettimeofday_two_arguments
=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.
$ac_ext >&5
20701 emacs_cv_gettimeofday_two_arguments
=no
20703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20705 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20706 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20707 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20709 cat >>confdefs.h
<<\_ACEOF
20710 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20717 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20718 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20719 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20720 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 cat >conftest.
$ac_ext <<_ACEOF
20726 cat confdefs.h
>>conftest.
$ac_ext
20727 cat >>conftest.
$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <sys/types.h>
20730 #include <$ac_cv_struct_tm>
20736 static struct tm ac_aggr;
20737 if (ac_aggr.tm_zone)
20743 rm -f conftest.
$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745 (eval $ac_compile) 2>conftest.er1
20747 grep -v '^ *+' conftest.er1
>conftest.err
20749 cat conftest.err
>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; } &&
20758 { ac_try
='test -s conftest.$ac_objext'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 ac_cv_member_struct_tm_tm_zone
=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.
$ac_ext >&5
20769 cat >conftest.
$ac_ext <<_ACEOF
20772 cat confdefs.h
>>conftest.
$ac_ext
20773 cat >>conftest.
$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775 #include <sys/types.h>
20776 #include <$ac_cv_struct_tm>
20782 static struct tm ac_aggr;
20783 if (sizeof ac_aggr.tm_zone)
20789 rm -f conftest.
$ac_objext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20791 (eval $ac_compile) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1
>conftest.err
20795 cat conftest.err
>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try
='test -s conftest.$ac_objext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_cv_member_struct_tm_tm_zone
=yes
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.
$ac_ext >&5
20815 ac_cv_member_struct_tm_tm_zone
=no
20817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20822 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20823 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20825 cat >>confdefs.h
<<_ACEOF
20826 #define HAVE_STRUCT_TM_TM_ZONE 1
20832 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20834 cat >>confdefs.h
<<\_ACEOF
20835 #define HAVE_TM_ZONE 1
20839 echo "$as_me:$LINENO: checking for tzname" >&5
20840 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20841 if test "${ac_cv_var_tzname+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 cat >conftest.
$ac_ext <<_ACEOF
20847 cat confdefs.h
>>conftest.
$ac_ext
20848 cat >>conftest.
$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 #ifndef tzname /* For SGI. */
20852 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20863 rm -f conftest.
$ac_objext conftest
$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865 (eval $ac_link) 2>conftest.er1
20867 grep -v '^ *+' conftest.er1
>conftest.err
20869 cat conftest.err
>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
20872 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try
='test -s conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_var_tzname
=yes
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.
$ac_ext >&5
20889 ac_cv_var_tzname
=no
20891 rm -f conftest.err conftest.
$ac_objext \
20892 conftest
$ac_exeext conftest.
$ac_ext
20894 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20895 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20896 if test $ac_cv_var_tzname = yes; then
20898 cat >>confdefs.h
<<\_ACEOF
20899 #define HAVE_TZNAME 1
20906 if test "$ac_cv_func_gettimeofday" = yes; then
20907 echo "$as_me:$LINENO: checking for struct timezone" >&5
20908 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20909 if test "${emacs_cv_struct_timezone+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 cat >conftest.
$ac_ext <<_ACEOF
20915 cat confdefs.h
>>conftest.
$ac_ext
20916 cat >>conftest.
$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 #include <sys/time.h>
20922 struct timezone tz;
20927 rm -f conftest.
$ac_objext
20928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20929 (eval $ac_compile) 2>conftest.er1
20931 grep -v '^ *+' conftest.er1
>conftest.err
20933 cat conftest.err
>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } &&
20936 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } &&
20942 { ac_try
='test -s conftest.$ac_objext'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 if test "$cross_compiling" = yes; then
20949 emacs_cv_struct_timezone
=yes
20951 cat >conftest.
$ac_ext <<_ACEOF
20954 cat confdefs.h
>>conftest.
$ac_ext
20955 cat >>conftest.
$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20958 #ifdef TIME_WITH_SYS_TIME
20959 #include <sys/time.h>
20962 #ifdef HAVE_SYS_TIME_H
20963 #include <sys/time.h>
20969 struct timeval time;
20970 struct timezone dummy;
20971 exit (gettimeofday (&time, &dummy));
20974 rm -f conftest
$ac_exeext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20976 (eval $ac_link) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 emacs_cv_struct_timezone
=yes
20987 echo "$as_me: program exited with status $ac_status" >&5
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.
$ac_ext >&5
20991 ( exit $ac_status )
20992 emacs_cv_struct_timezone
=no
20994 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 emacs_cv_struct_timezone
=no
21002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21004 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21005 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21009 echo "$as_me:$LINENO: checking for socket" >&5
21010 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21011 if test "${ac_cv_func_socket+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 cat >conftest.
$ac_ext <<_ACEOF
21017 cat confdefs.h
>>conftest.
$ac_ext
21018 cat >>conftest.
$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21022 #define socket innocuous_socket
21024 /* System header to define __stub macros and hopefully few prototypes,
21025 which can conflict with char socket (); below.
21026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21027 <limits.h> exists even on freestanding compilers. */
21030 # include <limits.h>
21032 # include <assert.h>
21037 /* Override any gcc2 internal prototype to avoid an error. */
21042 /* We use char because int might match the return type of a gcc2
21043 builtin and then its argument prototype would still apply. */
21045 /* The GNU C library defines this for functions which it implements
21046 to always fail with ENOSYS. Some functions are actually named
21047 something starting with __ and the normal name is an alias. */
21048 #if defined (__stub_socket) || defined (__stub___socket)
21051 char (*f) () = socket;
21060 return f != socket;
21065 rm -f conftest.
$ac_objext conftest
$ac_exeext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21067 (eval $ac_link) 2>conftest.er1
21069 grep -v '^ *+' conftest.er1
>conftest.err
21071 cat conftest.err
>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try
='test -s conftest$ac_exeext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_cv_func_socket
=yes
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.
$ac_ext >&5
21091 ac_cv_func_socket
=no
21093 rm -f conftest.err conftest.
$ac_objext \
21094 conftest
$ac_exeext conftest.
$ac_ext
21096 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21097 echo "${ECHO_T}$ac_cv_func_socket" >&6
21098 if test $ac_cv_func_socket = yes; then
21104 if test $ok_so_far = yes; then
21105 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21106 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21107 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21108 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21112 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21114 # Is the header compilable?
21115 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21116 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21117 cat >conftest.
$ac_ext <<_ACEOF
21120 cat confdefs.h
>>conftest.
$ac_ext
21121 cat >>conftest.
$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 $ac_includes_default
21124 #include <netinet/in.h>
21126 rm -f conftest.
$ac_objext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128 (eval $ac_compile) 2>conftest.er1
21130 grep -v '^ *+' conftest.er1
>conftest.err
21132 cat conftest.err
>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try
='test -s conftest.$ac_objext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 ac_header_compiler
=yes
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.
$ac_ext >&5
21152 ac_header_compiler
=no
21154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21156 echo "${ECHO_T}$ac_header_compiler" >&6
21158 # Is the header present?
21159 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21160 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21161 cat >conftest.
$ac_ext <<_ACEOF
21164 cat confdefs.h
>>conftest.
$ac_ext
21165 cat >>conftest.
$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <netinet/in.h>
21169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21172 grep -v '^ *+' conftest.er1
>conftest.err
21174 cat conftest.err
>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } >/dev
/null
; then
21177 if test -s conftest.err
; then
21178 ac_cpp_err
=$ac_c_preproc_warn_flag
21179 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21186 if test -z "$ac_cpp_err"; then
21187 ac_header_preproc
=yes
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.
$ac_ext >&5
21192 ac_header_preproc
=no
21194 rm -f conftest.err conftest.
$ac_ext
21195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21196 echo "${ECHO_T}$ac_header_preproc" >&6
21198 # So? What about this header?
21199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21201 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21202 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21203 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21204 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21205 ac_header_preproc
=yes
21208 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21209 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21211 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21213 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21214 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21215 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21216 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21217 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21219 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21222 ## ------------------------------------------ ##
21223 ## Report this to the AC_PACKAGE_NAME lists. ##
21224 ## ------------------------------------------ ##
21227 sed "s/^/$as_me: WARNING: /" >&2
21230 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21231 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21232 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 ac_cv_header_netinet_in_h
=$ac_header_preproc
21237 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21238 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21241 if test $ac_cv_header_netinet_in_h = yes; then
21249 if test $ok_so_far = yes; then
21250 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21251 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21252 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21253 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21257 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21259 # Is the header compilable?
21260 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21261 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21262 cat >conftest.
$ac_ext <<_ACEOF
21265 cat confdefs.h
>>conftest.
$ac_ext
21266 cat >>conftest.
$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 $ac_includes_default
21269 #include <arpa/inet.h>
21271 rm -f conftest.
$ac_objext
21272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21273 (eval $ac_compile) 2>conftest.er1
21275 grep -v '^ *+' conftest.er1
>conftest.err
21277 cat conftest.err
>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
21280 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; } &&
21286 { ac_try
='test -s conftest.$ac_objext'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 ac_header_compiler
=yes
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.
$ac_ext >&5
21297 ac_header_compiler
=no
21299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21301 echo "${ECHO_T}$ac_header_compiler" >&6
21303 # Is the header present?
21304 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21305 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21306 cat >conftest.
$ac_ext <<_ACEOF
21309 cat confdefs.h
>>conftest.
$ac_ext
21310 cat >>conftest.
$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 #include <arpa/inet.h>
21314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21317 grep -v '^ *+' conftest.er1
>conftest.err
21319 cat conftest.err
>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev
/null
; then
21322 if test -s conftest.err
; then
21323 ac_cpp_err
=$ac_c_preproc_warn_flag
21324 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21331 if test -z "$ac_cpp_err"; then
21332 ac_header_preproc
=yes
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.
$ac_ext >&5
21337 ac_header_preproc
=no
21339 rm -f conftest.err conftest.
$ac_ext
21340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21341 echo "${ECHO_T}$ac_header_preproc" >&6
21343 # So? What about this header?
21344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21346 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21347 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21349 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21350 ac_header_preproc
=yes
21353 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21354 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21356 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21358 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21360 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21362 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21364 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21367 ## ------------------------------------------ ##
21368 ## Report this to the AC_PACKAGE_NAME lists. ##
21369 ## ------------------------------------------ ##
21372 sed "s/^/$as_me: WARNING: /" >&2
21375 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21376 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21377 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21382 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21383 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21386 if test $ac_cv_header_arpa_inet_h = yes; then
21394 if test $ok_so_far = yes; then
21396 cat >>confdefs.h
<<\_ACEOF
21397 #define HAVE_INET_SOCKETS 1
21403 for ac_header
in sys
/ioctl.h
21405 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407 echo "$as_me:$LINENO: checking for $ac_header" >&5
21408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21415 # Is the header compilable?
21416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21418 cat >conftest.
$ac_ext <<_ACEOF
21421 cat confdefs.h
>>conftest.
$ac_ext
21422 cat >>conftest.
$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 #include <$ac_header>
21427 rm -f conftest.
$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429 (eval $ac_compile) 2>conftest.er1
21431 grep -v '^ *+' conftest.er1
>conftest.err
21433 cat conftest.err
>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; } &&
21442 { ac_try
='test -s conftest.$ac_objext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 ac_header_compiler
=yes
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.
$ac_ext >&5
21453 ac_header_compiler
=no
21455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6
21459 # Is the header present?
21460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21462 cat >conftest.
$ac_ext <<_ACEOF
21465 cat confdefs.h
>>conftest.
$ac_ext
21466 cat >>conftest.
$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <$ac_header>
21470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21473 grep -v '^ *+' conftest.er1
>conftest.err
21475 cat conftest.err
>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } >/dev
/null
; then
21478 if test -s conftest.err
; then
21479 ac_cpp_err
=$ac_c_preproc_warn_flag
21480 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21487 if test -z "$ac_cpp_err"; then
21488 ac_header_preproc
=yes
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.
$ac_ext >&5
21493 ac_header_preproc
=no
21495 rm -f conftest.err conftest.
$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497 echo "${ECHO_T}$ac_header_preproc" >&6
21499 # So? What about this header?
21500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21506 ac_header_preproc
=yes
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21523 ## ------------------------------------------ ##
21524 ## Report this to the AC_PACKAGE_NAME lists. ##
21525 ## ------------------------------------------ ##
21528 sed "s/^/$as_me: WARNING: /" >&2
21531 echo "$as_me:$LINENO: checking for $ac_header" >&5
21532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 eval "$as_ac_Header=\$ac_header_preproc"
21538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21543 cat >>confdefs.h
<<_ACEOF
21544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21552 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21554 cat >>confdefs.h
<<\_ACEOF
21555 #define HAVE_AIX_SMT_EXP 1
21560 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21561 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21562 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21563 echo "$as_me:$LINENO: result: yes" >&5
21564 echo "${ECHO_T}yes" >&6
21566 cat >>confdefs.h
<<\_ACEOF
21567 #define HAVE_DEV_PTMX 1
21571 echo "$as_me:$LINENO: result: no" >&5
21572 echo "${ECHO_T}no" >&6
21575 echo "$as_me:$LINENO: checking for pid_t" >&5
21576 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21577 if test "${ac_cv_type_pid_t+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 cat >conftest.
$ac_ext <<_ACEOF
21583 cat confdefs.h
>>conftest.
$ac_ext
21584 cat >>conftest.
$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 $ac_includes_default
21592 if (sizeof (pid_t))
21598 rm -f conftest.
$ac_objext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21600 (eval $ac_compile) 2>conftest.er1
21602 grep -v '^ *+' conftest.er1
>conftest.err
21604 cat conftest.err
>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; } &&
21613 { ac_try
='test -s conftest.$ac_objext'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 ac_cv_type_pid_t
=yes
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.
$ac_ext >&5
21624 ac_cv_type_pid_t
=no
21626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21628 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21629 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21630 if test $ac_cv_type_pid_t = yes; then
21634 cat >>confdefs.h
<<_ACEOF
21642 for ac_header
in unistd.h vfork.h
21644 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21646 echo "$as_me:$LINENO: checking for $ac_header" >&5
21647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21654 # Is the header compilable?
21655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21657 cat >conftest.
$ac_ext <<_ACEOF
21660 cat confdefs.h
>>conftest.
$ac_ext
21661 cat >>conftest.
$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 $ac_includes_default
21664 #include <$ac_header>
21666 rm -f conftest.
$ac_objext
21667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21668 (eval $ac_compile) 2>conftest.er1
21670 grep -v '^ *+' conftest.er1
>conftest.err
21672 cat conftest.err
>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
21675 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try
='test -s conftest.$ac_objext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_header_compiler
=yes
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.
$ac_ext >&5
21692 ac_header_compiler
=no
21694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21696 echo "${ECHO_T}$ac_header_compiler" >&6
21698 # Is the header present?
21699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21701 cat >conftest.
$ac_ext <<_ACEOF
21704 cat confdefs.h
>>conftest.
$ac_ext
21705 cat >>conftest.
$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 #include <$ac_header>
21709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21710 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21712 grep -v '^ *+' conftest.er1
>conftest.err
21714 cat conftest.err
>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } >/dev
/null
; then
21717 if test -s conftest.err
; then
21718 ac_cpp_err
=$ac_c_preproc_warn_flag
21719 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21726 if test -z "$ac_cpp_err"; then
21727 ac_header_preproc
=yes
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.
$ac_ext >&5
21732 ac_header_preproc
=no
21734 rm -f conftest.err conftest.
$ac_ext
21735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21736 echo "${ECHO_T}$ac_header_preproc" >&6
21738 # So? What about this header?
21739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21745 ac_header_preproc
=yes
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21762 ## ------------------------------------------ ##
21763 ## Report this to the AC_PACKAGE_NAME lists. ##
21764 ## ------------------------------------------ ##
21767 sed "s/^/$as_me: WARNING: /" >&2
21770 echo "$as_me:$LINENO: checking for $ac_header" >&5
21771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 eval "$as_ac_Header=\$ac_header_preproc"
21777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21782 cat >>confdefs.h
<<_ACEOF
21783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21792 for ac_func
in fork vfork
21794 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21795 echo "$as_me:$LINENO: checking for $ac_func" >&5
21796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21797 if eval "test \"\${$as_ac_var+set}\" = set"; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 cat >conftest.
$ac_ext <<_ACEOF
21803 cat confdefs.h
>>conftest.
$ac_ext
21804 cat >>conftest.
$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21808 #define $ac_func innocuous_$ac_func
21810 /* System header to define __stub macros and hopefully few prototypes,
21811 which can conflict with char $ac_func (); below.
21812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21813 <limits.h> exists even on freestanding compilers. */
21816 # include <limits.h>
21818 # include <assert.h>
21823 /* Override any gcc2 internal prototype to avoid an error. */
21828 /* We use char because int might match the return type of a gcc2
21829 builtin and then its argument prototype would still apply. */
21831 /* The GNU C library defines this for functions which it implements
21832 to always fail with ENOSYS. Some functions are actually named
21833 something starting with __ and the normal name is an alias. */
21834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21837 char (*f) () = $ac_func;
21846 return f != $ac_func;
21851 rm -f conftest.
$ac_objext conftest
$ac_exeext
21852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21853 (eval $ac_link) 2>conftest.er1
21855 grep -v '^ *+' conftest.er1
>conftest.err
21857 cat conftest.err
>&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try
='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 eval "$as_ac_var=yes"
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.
$ac_ext >&5
21877 eval "$as_ac_var=no"
21879 rm -f conftest.err conftest.
$ac_objext \
21880 conftest
$ac_exeext conftest.
$ac_ext
21882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21884 if test `eval echo '${'$as_ac_var'}'` = yes; then
21885 cat >>confdefs.h
<<_ACEOF
21886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21892 if test "x$ac_cv_func_fork" = xyes
; then
21893 echo "$as_me:$LINENO: checking for working fork" >&5
21894 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21895 if test "${ac_cv_func_fork_works+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 if test "$cross_compiling" = yes; then
21899 ac_cv_func_fork_works
=cross
21901 cat >conftest.
$ac_ext <<_ACEOF
21904 cat confdefs.h
>>conftest.
$ac_ext
21905 cat >>conftest.
$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 $ac_includes_default
21912 /* By Ruediger Kuhlmann. */
21921 rm -f conftest
$ac_exeext
21922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21923 (eval $ac_link) 2>&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 ac_cv_func_fork_works
=yes
21934 echo "$as_me: program exited with status $ac_status" >&5
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.
$ac_ext >&5
21938 ( exit $ac_status )
21939 ac_cv_func_fork_works
=no
21941 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21944 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21945 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21948 ac_cv_func_fork_works
=$ac_cv_func_fork
21950 if test "x$ac_cv_func_fork_works" = xcross
; then
21952 *-*-amigaos* |
*-*-msdosdjgpp*)
21953 # Override, as these systems have only a dummy fork() stub
21954 ac_cv_func_fork_works
=no
21957 ac_cv_func_fork_works
=yes
21960 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21961 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21963 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21964 if test "x$ac_cv_func_vfork" = xyes
; then
21965 echo "$as_me:$LINENO: checking for working vfork" >&5
21966 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21967 if test "${ac_cv_func_vfork_works+set}" = set; then
21968 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 if test "$cross_compiling" = yes; then
21971 ac_cv_func_vfork_works
=cross
21973 cat >conftest.
$ac_ext <<_ACEOF
21976 cat confdefs.h
>>conftest.
$ac_ext
21977 cat >>conftest.
$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 /* Thanks to Paul Eggert for this test. */
21981 #include <stdlib.h>
21982 #include <sys/types.h>
21983 #include <sys/stat.h>
21984 #include <sys/wait.h>
21986 # include <unistd.h>
21989 # include <vfork.h>
21991 /* On some sparc systems, changes by the child to local and incoming
21992 argument registers are propagated back to the parent. The compiler
21993 is told about this with #include <vfork.h>, but some compilers
21994 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21995 static variable whose address is put into a register that is
21996 clobbered by the vfork. */
21999 sparc_address_test (int arg)
22001 sparc_address_test (arg) int arg;
22004 static pid_t child;
22022 pid_t parent = getpid ();
22025 sparc_address_test (0);
22030 /* Here is another test for sparc vfork register problems. This
22031 test uses lots of local variables, at least as many local
22032 variables as main has allocated so far including compiler
22033 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22034 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22035 reuse the register of parent for one of the local variables,
22036 since it will think that parent can't possibly be used any more
22037 in this routine. Assigning to the local variable will thus
22038 munge parent in the parent process. */
22040 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22041 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22042 /* Convince the compiler that p..p7 are live; otherwise, it might
22043 use the same hardware register for all 8 local variables. */
22044 if (p != p1 || p != p2 || p != p3 || p != p4
22045 || p != p5 || p != p6 || p != p7)
22048 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22049 from child file descriptors. If the child closes a descriptor
22050 before it execs or exits, this munges the parent's descriptor
22051 as well. Test for this by closing stdout in the child. */
22052 _exit(close(fileno(stdout)) != 0);
22057 while (wait(&status) != child)
22060 /* Was there some problem with vforking? */
22063 /* Did the child fail? (This shouldn't happen.) */
22066 /* Did the vfork/compiler bug occur? */
22067 || parent != getpid()
22069 /* Did the file descriptor bug occur? */
22070 || fstat(fileno(stdout), &st) != 0
22075 rm -f conftest
$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077 (eval $ac_link) 2>&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 ac_cv_func_vfork_works
=yes
22088 echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.
$ac_ext >&5
22092 ( exit $ac_status )
22093 ac_cv_func_vfork_works
=no
22095 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22098 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22099 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22102 if test "x$ac_cv_func_fork_works" = xcross
; then
22103 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22104 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22105 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22108 if test "x$ac_cv_func_vfork_works" = xyes
; then
22110 cat >>confdefs.h
<<\_ACEOF
22111 #define HAVE_WORKING_VFORK 1
22116 cat >>confdefs.h
<<\_ACEOF
22121 if test "x$ac_cv_func_fork_works" = xyes
; then
22123 cat >>confdefs.h
<<\_ACEOF
22124 #define HAVE_WORKING_FORK 1
22130 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22131 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22132 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 cat >conftest.
$ac_ext <<_ACEOF
22138 cat confdefs.h
>>conftest.
$ac_ext
22139 cat >>conftest.
$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 #include <langinfo.h>
22145 char* cs = nl_langinfo(CODESET);
22150 rm -f conftest.
$ac_objext conftest
$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152 (eval $ac_link) 2>conftest.er1
22154 grep -v '^ *+' conftest.er1
>conftest.err
22156 cat conftest.err
>&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
22159 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try
='test -s conftest$ac_exeext'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 emacs_cv_langinfo_codeset
=yes
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.
$ac_ext >&5
22176 emacs_cv_langinfo_codeset
=no
22178 rm -f conftest.err conftest.
$ac_objext \
22179 conftest
$ac_exeext conftest.
$ac_ext
22182 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22183 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22184 if test $emacs_cv_langinfo_codeset = yes; then
22186 cat >>confdefs.h
<<\_ACEOF
22187 #define HAVE_LANGINFO_CODESET 1
22192 echo "$as_me:$LINENO: checking for size_t" >&5
22193 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22194 if test "${ac_cv_type_size_t+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 cat >conftest.
$ac_ext <<_ACEOF
22200 cat confdefs.h
>>conftest.
$ac_ext
22201 cat >>conftest.
$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 $ac_includes_default
22209 if (sizeof (size_t))
22215 rm -f conftest.
$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217 (eval $ac_compile) 2>conftest.er1
22219 grep -v '^ *+' conftest.er1
>conftest.err
22221 cat conftest.err
>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
22224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } &&
22230 { ac_try
='test -s conftest.$ac_objext'
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_cv_type_size_t
=yes
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.
$ac_ext >&5
22241 ac_cv_type_size_t
=no
22243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22245 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22246 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22247 if test $ac_cv_type_size_t = yes; then
22249 cat >>confdefs.h
<<_ACEOF
22250 #define HAVE_SIZE_T 1
22257 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22258 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22259 if test "${ac_cv_type_mbstate_t+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 cat >conftest.
$ac_ext <<_ACEOF
22265 cat confdefs.h
>>conftest.
$ac_ext
22266 cat >>conftest.
$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 $ac_includes_default
22269 # include <wchar.h>
22273 mbstate_t x; return sizeof x;
22278 rm -f conftest.
$ac_objext
22279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22280 (eval $ac_compile) 2>conftest.er1
22282 grep -v '^ *+' conftest.er1
>conftest.err
22284 cat conftest.err
>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } &&
22287 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try
='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_type_mbstate_t
=yes
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.
$ac_ext >&5
22304 ac_cv_type_mbstate_t
=no
22306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22308 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22309 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22310 if test $ac_cv_type_mbstate_t = yes; then
22312 cat >>confdefs.h
<<\_ACEOF
22313 #define HAVE_MBSTATE_T 1
22318 cat >>confdefs.h
<<\_ACEOF
22319 #define mbstate_t int
22324 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22325 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22326 if test "${emacs_cv_c_restrict+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 cat >conftest.
$ac_ext <<_ACEOF
22332 cat confdefs.h
>>conftest.
$ac_ext
22333 cat >>conftest.
$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 void fred (int *restrict x);
22344 rm -f conftest.
$ac_objext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 (eval $ac_compile) 2>conftest.er1
22348 grep -v '^ *+' conftest.er1
>conftest.err
22350 cat conftest.err
>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } &&
22353 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; } &&
22359 { ac_try
='test -s conftest.$ac_objext'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; }; then
22365 emacs_cv_c_restrict
=yes
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.
$ac_ext >&5
22370 cat >conftest.
$ac_ext <<_ACEOF
22373 cat confdefs.h
>>conftest.
$ac_ext
22374 cat >>conftest.
$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 void fred (int *__restrict x);
22385 rm -f conftest.
$ac_objext
22386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22387 (eval $ac_compile) 2>conftest.er1
22389 grep -v '^ *+' conftest.er1
>conftest.err
22391 cat conftest.err
>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try
='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 emacs_cv_c_restrict
=__restrict
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.
$ac_ext >&5
22411 emacs_cv_c_restrict
=no
22413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22417 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22418 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22419 case "$emacs_cv_c_restrict" in
22420 yes) emacs_restrict
=restrict
;;
22421 no
) emacs_restrict
="";;
22422 *) emacs_restrict
="$emacs_cv_c_restrict";;
22424 if test "$emacs_restrict" != __restrict
; then
22426 cat >>confdefs.h
<<_ACEOF
22427 #define __restrict $emacs_restrict
22432 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22433 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22434 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 cat >conftest.
$ac_ext <<_ACEOF
22440 cat confdefs.h
>>conftest.
$ac_ext
22441 cat >>conftest.
$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 void fred (int x[__restrict]);
22452 rm -f conftest.
$ac_objext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454 (eval $ac_compile) 2>conftest.er1
22456 grep -v '^ *+' conftest.er1
>conftest.err
22458 cat conftest.err
>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } &&
22461 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; } &&
22467 { ac_try
='test -s conftest.$ac_objext'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }; then
22473 emacs_cv_c_restrict_arr
=yes
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.
$ac_ext >&5
22478 emacs_cv_c_restrict_arr
=no
22480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22482 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22483 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22484 if test "$emacs_cv_c_restrict_arr" = yes; then
22486 cat >>confdefs.h
<<\_ACEOF
22487 #define __restrict_arr __restrict
22494 # Set up the CFLAGS for real compilation, so we can substitute it.
22495 CFLAGS
="$REAL_CFLAGS"
22496 CPPFLAGS
="$REAL_CPPFLAGS"
22498 #### Find out which version of Emacs this is.
22499 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22500 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22501 if test x
"${version}" = x
; then
22502 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22503 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22504 { (exit 1); exit 1; }; }
22507 ### Specify what sort of things we'll be editing into Makefile and config.h.
22508 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22544 cat >>confdefs.h
<<_ACEOF
22545 #define EMACS_CONFIGURATION "${canonical}"
22549 cat >>confdefs.h
<<_ACEOF
22550 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22554 cat >>confdefs.h
<<_ACEOF
22555 #define config_machfile "${machfile}"
22559 cat >>confdefs.h
<<_ACEOF
22560 #define config_opsysfile "${opsysfile}"
22564 cat >>confdefs.h
<<_ACEOF
22565 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22569 cat >>confdefs.h
<<_ACEOF
22570 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22574 cat >>confdefs.h
<<_ACEOF
22575 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22579 cat >>confdefs.h
<<_ACEOF
22580 #define UNEXEC_SRC ${UNEXEC_SRC}
22584 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22586 cat >>confdefs.h
<<\_ACEOF
22587 #define HAVE_X_WINDOWS 1
22591 if test "${USE_X_TOOLKIT}" != "none" ; then
22593 cat >>confdefs.h
<<\_ACEOF
22594 #define USE_X_TOOLKIT 1
22598 if test "${HAVE_X11}" = "yes" ; then
22600 cat >>confdefs.h
<<\_ACEOF
22605 if test "${HAVE_XFREE386}" = "yes" ; then
22607 cat >>confdefs.h
<<\_ACEOF
22608 #define HAVE_XFREE386 1
22612 if test "${HAVE_MENUS}" = "yes" ; then
22614 cat >>confdefs.h
<<\_ACEOF
22615 #define HAVE_MENUS 1
22619 if test "${GNU_MALLOC}" = "yes" ; then
22621 cat >>confdefs.h
<<\_ACEOF
22622 #define GNU_MALLOC 1
22626 if test "${REL_ALLOC}" = "yes" ; then
22628 cat >>confdefs.h
<<\_ACEOF
22629 #define REL_ALLOC 1
22638 #### Report on what we decided to do.
22639 #### Report GTK as a toolkit, even if it doesn't use Xt.
22640 #### It makes printing result more understandable as using GTK sets
22641 #### toolkit_scroll_bars to yes by default.
22642 if test "${HAVE_GTK}" = "yes"; then
22647 Configured for \`${canonical}'.
22649 Where should the build process find the source code? ${srcdir}
22650 What operating system and machine description files should Emacs use?
22651 \`${opsysfile}' and \`${machfile}'
22652 What compiler should emacs be built with? ${CC} ${CFLAGS}
22653 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22654 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22655 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22656 What window system should Emacs use? ${window_system}
22657 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22659 if test -n "${x_includes}"; then
22660 echo " Where do we find X Windows header files? ${x_includes}"
22662 echo " Where do we find X Windows header files? Standard dirs"
22664 if test -n "${x_libraries}"; then
22665 echo " Where do we find X Windows libraries? ${x_libraries}"
22667 echo " Where do we find X Windows libraries? Standard dirs"
22670 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22671 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22672 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22673 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22674 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22675 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22676 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22679 if test $USE_XASSERTS = yes; then
22680 echo " Compiling with asserts turned on."
22681 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22687 # Remove any trailing slashes in these variables.
22688 test "${prefix}" != NONE
&&
22689 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22690 test "${exec_prefix}" != NONE
&&
22691 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22693 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22694 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22695 ## from Makefile.c can correctly provide the arg `-traditional' to the
22698 cat >conftest.
$ac_ext <<_ACEOF
22701 cat confdefs.h
>>conftest.
$ac_ext
22702 cat >>conftest.
$ac_ext <<_ACEOF
22703 /* end confdefs.h. */
22706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22707 $EGREP "yes..yes" >/dev
/null
2>&1; then
22708 CPP_NEED_TRADITIONAL
=no
22710 CPP_NEED_TRADITIONAL
=yes
22715 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"
22716 ac_config_commands
="$ac_config_commands default"
22717 cat >confcache
<<\_ACEOF
22718 # This file is a shell script that caches the results of configure
22719 # tests run on this system so they can be shared between configure
22720 # scripts and configure runs, see configure's option --config-cache.
22721 # It is not useful on other systems. If it contains results you don't
22722 # want to keep, you may remove or edit it.
22724 # config.status only pays attention to the cache file if you give it
22725 # the --recheck option to rerun configure.
22727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22729 # following values.
22733 # The following way of writing the cache mishandles newlines in values,
22734 # but we know of no workaround that is simple, portable, and efficient.
22735 # So, don't put newlines in cache variables' values.
22736 # Ultrix sh set writes to stderr and can't be redirected directly,
22737 # and sets the high bit in the cache file unless we assign to the vars.
22740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22742 # `set' does not quote correctly, so add quotes (double-quote
22743 # substitution turns \\\\ into \\, and sed turns \\ into \).
22746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22749 # `set' quotes correctly as required by POSIX, so do not add quotes.
22751 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22760 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22762 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22763 if test -w $cache_file; then
22764 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22765 cat confcache
>$cache_file
22767 echo "not updating unwritable cache $cache_file"
22772 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22773 # Let make expand exec_prefix.
22774 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22776 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22777 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22778 # trailing colons and then remove the whole line if VPATH becomes empty
22779 # (actually we leave an empty line to preserve line numbers).
22780 if test "x$srcdir" = x.
; then
22781 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22782 s/:*\$(srcdir):*/:/;
22783 s/:*\${srcdir}:*/:/;
22785 s/^\([^=]*=[ ]*\):*/\1/;
22791 DEFS
=-DHAVE_CONFIG_H
22795 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22796 # 1. Remove the extension, and $U if already installed.
22797 ac_i
=`echo "$ac_i" |
22798 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22800 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22801 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22803 LIBOBJS
=$ac_libobjs
22805 LTLIBOBJS
=$ac_ltlibobjs
22809 : ${CONFIG_STATUS=./config.status}
22810 ac_clean_files_save
=$ac_clean_files
22811 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22812 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22813 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22814 cat >$CONFIG_STATUS <<_ACEOF
22816 # Generated by $as_me.
22817 # Run this file to recreate the current configuration.
22818 # Compiler output produced by configure, useful for debugging
22819 # configure, is in config.log if it exists.
22822 ac_cs_recheck=false
22824 SHELL=\${CONFIG_SHELL-$SHELL}
22827 cat >>$CONFIG_STATUS <<\_ACEOF
22828 ## --------------------- ##
22829 ## M4sh Initialization. ##
22830 ## --------------------- ##
22832 # Be Bourne compatible
22833 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22836 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22837 # is contrary to our usage. Disable this feature.
22838 alias -g '${1+"$@"}'='"$@"'
22839 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22842 DUALCASE
=1; export DUALCASE
# for MKS sh
22844 # Support unset when possible.
22845 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22852 # Work around bugs in pre-3.0 UWIN ksh.
22853 $as_unset ENV MAIL MAILPATH
22860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22862 LC_TELEPHONE LC_TIME
22864 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22865 eval $as_var=C
; export $as_var
22871 # Required to use basename.
22872 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22878 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22879 as_basename
=basename
22885 # Name of the executable.
22886 as_me
=`$as_basename "$0" ||
22887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22888 X"$0" : 'X\(//\)$' \| \
22889 X"$0" : 'X\(/\)$' \| \
22890 . : '\(.\)' 2>/dev/null ||
22892 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22893 /^X\/\(\/\/\)$/{ s//\1/; q; }
22894 /^X\/\(\/\).*/{ s//\1/; q; }
22898 # PATH needs CR, and LINENO needs CR and PATH.
22899 # Avoid depending upon Character Ranges.
22900 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22901 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22902 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22903 as_cr_digits
='0123456789'
22904 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22906 # The user is always right.
22907 if test "${PATH_SEPARATOR+set}" != set; then
22908 echo "#! /bin/sh" >conf$$.sh
22909 echo "exit 0" >>conf$$.sh
22911 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22920 as_lineno_1
=$LINENO
22921 as_lineno_2
=$LINENO
22922 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22923 test "x$as_lineno_1" != "x$as_lineno_2" &&
22924 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22925 # Find who we are. Look in the path if we contain no path at all
22928 *[\\/]* ) as_myself
=$0 ;;
22929 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22930 for as_dir
in $PATH
22933 test -z "$as_dir" && as_dir
=.
22934 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22939 # We did not find ourselves, most probably we were run as `sh COMMAND'
22940 # in which case we are not to be found in the path.
22941 if test "x$as_myself" = x
; then
22944 if test ! -f "$as_myself"; then
22945 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22946 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22947 { (exit 1); exit 1; }; }
22949 case $CONFIG_SHELL in
22951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22952 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22955 test -z "$as_dir" && as_dir
=.
22956 for as_base
in sh bash ksh sh5
; do
22959 if ("$as_dir/$as_base" -c '
22960 as_lineno_1=$LINENO
22961 as_lineno_2=$LINENO
22962 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22963 test "x$as_lineno_1" != "x$as_lineno_2" &&
22964 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22965 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22966 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22967 CONFIG_SHELL
=$as_dir/$as_base
22968 export CONFIG_SHELL
22969 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22977 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22978 # uniformly replaced by the line number. The first 'sed' inserts a
22979 # line-number line before each line; the second 'sed' does the real
22980 # work. The second script uses 'N' to pair each line-number line
22981 # with the numbered line, and appends trailing '-' during
22982 # substitution so that $LINENO is not a special case at line end.
22983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22984 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22985 sed '=' <$as_myself |
22990 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22993 s,^['$as_cr_digits']*\n,,
22994 ' >$as_me.lineno
&&
22995 chmod +x
$as_me.lineno ||
22996 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22997 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22998 { (exit 1); exit 1; }; }
23000 # Don't try to exec as it changes $[0], causing all sort of problems
23001 # (the dirname of $[0] is not the place where we might find the
23002 # original and so on. Autoconf is especially sensible to this).
23004 # Exit status is that of the last command.
23009 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23010 *c
*,-n*) ECHO_N
= ECHO_C
='
23012 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23013 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23016 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23022 rm -f conf$$ conf$$.exe conf$$.
file
23024 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23025 # We could just check for DJGPP; but this test a) works b) is more generic
23026 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23027 if test -f conf$$.exe
; then
23028 # Don't use ln at all; we don't have any links
23033 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23038 rm -f conf$$ conf$$.exe conf$$.
file
23040 if mkdir
-p .
2>/dev
/null
; then
23043 test -d .
/-p && rmdir .
/-p
23047 as_executable_p
="test -f"
23049 # Sed expression to map a string onto a valid CPP name.
23050 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23052 # Sed expression to map a string onto a valid variable name.
23053 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23057 # We need space, tab and new line, in precisely that order.
23067 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23068 # report actual input values of CONFIG_FILES etc. instead of their
23069 # values after options handling. Logging --version etc. is OK.
23073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23074 ## Running $as_me. ##
23079 This file was extended by $as_me, which was
23080 generated by GNU Autoconf 2.59. Invocation command line was
23082 CONFIG_FILES = $CONFIG_FILES
23083 CONFIG_HEADERS = $CONFIG_HEADERS
23084 CONFIG_LINKS = $CONFIG_LINKS
23085 CONFIG_COMMANDS = $CONFIG_COMMANDS
23089 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23093 # Files that config.status was made for.
23094 if test -n "$ac_config_files"; then
23095 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23098 if test -n "$ac_config_headers"; then
23099 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23102 if test -n "$ac_config_links"; then
23103 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23106 if test -n "$ac_config_commands"; then
23107 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23110 cat >>$CONFIG_STATUS <<\_ACEOF
23113 \`$as_me' instantiates files from templates according to the
23114 current configuration.
23116 Usage: $0 [OPTIONS] [FILE]...
23118 -h, --help print this help, then exit
23119 -V, --version print version number, then exit
23120 -q, --quiet do not print progress messages
23121 -d, --debug don't remove temporary files
23122 --recheck update $as_me by reconfiguring in the same conditions
23123 --file=FILE[:TEMPLATE]
23124 instantiate the configuration file FILE
23125 --header=FILE[:TEMPLATE]
23126 instantiate the configuration header FILE
23128 Configuration files:
23131 Configuration headers:
23134 Configuration commands:
23137 Report bugs to <bug-autoconf@gnu.org>."
23140 cat >>$CONFIG_STATUS <<_ACEOF
23143 configured by $0, generated by GNU Autoconf 2.59,
23144 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23146 Copyright (C) 2003 Free Software Foundation, Inc.
23147 This config.status script is free software; the Free Software Foundation
23148 gives unlimited permission to copy, distribute and modify it."
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 # If no file are specified by the user, then we need to provide default
23155 # value. By we need to know if files were specified by the user.
23161 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23162 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23170 *) # This is not an option, so the user has probably given explicit
23173 ac_need_defaults
=false
;;
23177 # Handling of the options.
23179 cat >>$CONFIG_STATUS <<\_ACEOF
23180 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23182 --version |
--vers* |
-V )
23183 echo "$ac_cs_version"; exit 0 ;;
23185 # Conflict between --help and --header
23186 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23187 Try \`$0 --help' for more information." >&5
23188 echo "$as_me: error: ambiguous option: $1
23189 Try \`$0 --help' for more information." >&2;}
23190 { (exit 1); exit 1; }; };;
23191 --help |
--hel |
-h )
23192 echo "$ac_cs_usage"; exit 0 ;;
23193 --debug |
--d* |
-d )
23195 --file |
--fil |
--fi |
--f )
23197 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23198 ac_need_defaults
=false
;;
23199 --header |
--heade |
--head |
--hea )
23201 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23202 ac_need_defaults
=false
;;
23203 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23204 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23207 # This is an error.
23208 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23209 Try \`$0 --help' for more information." >&5
23210 echo "$as_me: error: unrecognized option: $1
23211 Try \`$0 --help' for more information." >&2;}
23212 { (exit 1); exit 1; }; } ;;
23214 *) ac_config_targets
="$ac_config_targets $1" ;;
23220 ac_configure_extra_args
=
23222 if $ac_cs_silent; then
23224 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23228 cat >>$CONFIG_STATUS <<_ACEOF
23229 if \$ac_cs_recheck; then
23230 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23231 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23236 cat >>$CONFIG_STATUS <<_ACEOF
23238 # INIT-COMMANDS section.
23241 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248 for ac_config_target
in $ac_config_targets
23250 case "$ac_config_target" in
23251 # Handling of arguments.
23252 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23253 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23254 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23255 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23256 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23257 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23258 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23259 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23260 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23261 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23262 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23263 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23266 { (exit 1); exit 1; }; };;
23270 # If the user did not use the arguments to specify the items to instantiate,
23271 # then the envvar interface is used. Set only those that are not.
23272 # We use the long form for the default assignment because of an extremely
23273 # bizarre bug on SunOS 4.1.3.
23274 if $ac_need_defaults; then
23275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23280 # Have a temporary directory for convenience. Make it in the build tree
23281 # simply because there is no reason to put it here, and in addition,
23282 # creating and moving files from /tmp can sometimes cause problems.
23283 # Create a temporary directory, and hook for its removal unless debugging.
23286 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23287 trap '{ (exit 1); exit 1; }' 1 2 13 15
23290 # Create a (secure) tmp directory for tmp files.
23293 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23294 test -n "$tmp" && test -d "$tmp"
23297 tmp
=.
/confstat$$
-$RANDOM
23298 (umask 077 && mkdir
$tmp)
23301 echo "$me: cannot create a temporary directory in ." >&2
23302 { (exit 1); exit 1; }
23307 cat >>$CONFIG_STATUS <<_ACEOF
23310 # CONFIG_FILES section.
23313 # No need to generate the scripts if there are no CONFIG_FILES.
23314 # This happens for instance when ./config.status config.h
23315 if test -n "\$CONFIG_FILES"; then
23316 # Protect against being on the right side of a sed subst in config.status.
23317 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23318 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23319 s,@SHELL@,$SHELL,;t t
23320 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23321 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23322 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23323 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23324 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23325 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23326 s,@exec_prefix@,$exec_prefix,;t t
23327 s,@prefix@,$prefix,;t t
23328 s,@program_transform_name@,$program_transform_name,;t t
23329 s,@bindir@,$bindir,;t t
23330 s,@sbindir@,$sbindir,;t t
23331 s,@libexecdir@,$libexecdir,;t t
23332 s,@datadir@,$datadir,;t t
23333 s,@sysconfdir@,$sysconfdir,;t t
23334 s,@sharedstatedir@,$sharedstatedir,;t t
23335 s,@localstatedir@,$localstatedir,;t t
23336 s,@libdir@,$libdir,;t t
23337 s,@includedir@,$includedir,;t t
23338 s,@oldincludedir@,$oldincludedir,;t t
23339 s,@infodir@,$infodir,;t t
23340 s,@mandir@,$mandir,;t t
23341 s,@build_alias@,$build_alias,;t t
23342 s,@host_alias@,$host_alias,;t t
23343 s,@target_alias@,$target_alias,;t t
23344 s,@DEFS@,$DEFS,;t t
23345 s,@ECHO_C@,$ECHO_C,;t t
23346 s,@ECHO_N@,$ECHO_N,;t t
23347 s,@ECHO_T@,$ECHO_T,;t t
23348 s,@LIBS@,$LIBS,;t t
23349 s,@MAINT@,$MAINT,;t t
23350 s,@build@,$build,;t t
23351 s,@build_cpu@,$build_cpu,;t t
23352 s,@build_vendor@,$build_vendor,;t t
23353 s,@build_os@,$build_os,;t t
23354 s,@host@,$host,;t t
23355 s,@host_cpu@,$host_cpu,;t t
23356 s,@host_vendor@,$host_vendor,;t t
23357 s,@host_os@,$host_os,;t t
23359 s,@CFLAGS@,$CFLAGS,;t t
23360 s,@LDFLAGS@,$LDFLAGS,;t t
23361 s,@CPPFLAGS@,$CPPFLAGS,;t t
23362 s,@ac_ct_CC@,$ac_ct_CC,;t t
23363 s,@EXEEXT@,$EXEEXT,;t t
23364 s,@OBJEXT@,$OBJEXT,;t t
23366 s,@EGREP@,$EGREP,;t t
23367 s,@LN_S@,$LN_S,;t t
23368 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23369 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23370 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23371 s,@RANLIB@,$RANLIB,;t t
23372 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23373 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23374 s,@GZIP_PROG@,$GZIP_PROG,;t t
23375 s,@LIBSOUND@,$LIBSOUND,;t t
23376 s,@SET_MAKE@,$SET_MAKE,;t t
23377 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23378 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23379 s,@GTK_LIBS@,$GTK_LIBS,;t t
23380 s,@ALLOCA@,$ALLOCA,;t t
23381 s,@liblockfile@,$liblockfile,;t t
23382 s,@LIBOBJS@,$LIBOBJS,;t t
23383 s,@NEED_SETGID@,$NEED_SETGID,;t t
23384 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23385 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23386 s,@GETOPT_H@,$GETOPT_H,;t t
23387 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23388 s,@version@,$version,;t t
23389 s,@configuration@,$configuration,;t t
23390 s,@canonical@,$canonical,;t t
23391 s,@srcdir@,$srcdir,;t t
23392 s,@lispdir@,$lispdir,;t t
23393 s,@locallisppath@,$locallisppath,;t t
23394 s,@lisppath@,$lisppath,;t t
23395 s,@x_default_search_path@,$x_default_search_path,;t t
23396 s,@etcdir@,$etcdir,;t t
23397 s,@archlibdir@,$archlibdir,;t t
23398 s,@docdir@,$docdir,;t t
23399 s,@bitmapdir@,$bitmapdir,;t t
23400 s,@gamedir@,$gamedir,;t t
23401 s,@gameuser@,$gameuser,;t t
23402 s,@c_switch_system@,$c_switch_system,;t t
23403 s,@c_switch_machine@,$c_switch_machine,;t t
23404 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23405 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23406 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23407 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23408 s,@machfile@,$machfile,;t t
23409 s,@opsysfile@,$opsysfile,;t t
23410 s,@carbon_appdir@,$carbon_appdir,;t t
23411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23416 cat >>$CONFIG_STATUS <<\_ACEOF
23417 # Split the substitutions into bite-sized pieces for seds with
23418 # small command number limits, like on Digital OSF/1 and HP-UX.
23419 ac_max_sed_lines
=48
23420 ac_sed_frag
=1 # Number of current file.
23421 ac_beg
=1 # First line for current file.
23422 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23425 while $ac_more_lines; do
23426 if test $ac_beg -gt 1; then
23427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23429 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23431 if test ! -s $tmp/subs.frag
; then
23432 ac_more_lines
=false
23434 # The purpose of the label and of the branching condition is to
23435 # speed up the sed processing (if there are no `@' at all, there
23436 # is no need to browse any of the substitutions).
23437 # These are the two extra sed commands mentioned above.
23439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23440 if test -z "$ac_sed_cmds"; then
23441 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23443 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23445 ac_sed_frag
=`expr $ac_sed_frag + 1`
23447 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23450 if test -z "$ac_sed_cmds"; then
23453 fi # test -n "$CONFIG_FILES"
23456 cat >>$CONFIG_STATUS <<\_ACEOF
23457 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23460 - |
*:- |
*:-:* ) # input from stdin
23462 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23463 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23464 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23465 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23466 * ) ac_file_in
=$ac_file.
in ;;
23469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23470 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23472 X"$ac_file" : 'X\(//\)[^/]' \| \
23473 X"$ac_file" : 'X\(//\)$' \| \
23474 X"$ac_file" : 'X\(/\)' \| \
23475 . : '\(.\)' 2>/dev/null ||
23477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23479 /^X\(\/\/\)$/{ s//\1/; q; }
23480 /^X\(\/\).*/{ s//\1/; q; }
23482 { if $as_mkdir_p; then
23487 while test ! -d "$as_dir"; do
23488 as_dirs
="$as_dir $as_dirs"
23489 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23491 X"$as_dir" : 'X\(//\)[^/]' \| \
23492 X"$as_dir" : 'X\(//\)$' \| \
23493 X"$as_dir" : 'X\(/\)' \| \
23494 . : '\(.\)' 2>/dev/null ||
23496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23498 /^X\(\/\/\)$/{ s//\1/; q; }
23499 /^X\(\/\).*/{ s//\1/; q; }
23502 test ! -n "$as_dirs" || mkdir
$as_dirs
23503 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23505 { (exit 1); exit 1; }; }; }
23509 if test "$ac_dir" != .
; then
23510 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23511 # A "../" for each directory in $ac_dir_suffix.
23512 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23514 ac_dir_suffix
= ac_top_builddir
=
23518 .
) # No --srcdir option. We are building in place.
23520 if test -z "$ac_top_builddir"; then
23523 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23525 [\\/]* | ?
:[\\/]* ) # Absolute path.
23526 ac_srcdir
=$srcdir$ac_dir_suffix;
23527 ac_top_srcdir
=$srcdir ;;
23528 *) # Relative path.
23529 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23530 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23533 # Do not use `cd foo && pwd` to compute absolute paths, because
23534 # the directories may not exist.
23536 .
) ac_abs_builddir
="$ac_dir";;
23539 .
) ac_abs_builddir
=`pwd`;;
23540 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23541 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23544 case $ac_abs_builddir in
23545 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23547 case ${ac_top_builddir}.
in
23548 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23549 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23550 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23553 case $ac_abs_builddir in
23554 .
) ac_abs_srcdir
=$ac_srcdir;;
23557 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23558 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23559 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23562 case $ac_abs_builddir in
23563 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23565 case $ac_top_srcdir in
23566 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23567 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23568 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23574 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23575 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23578 # Let's still pretend it is `configure' which instantiates (i.e., don't
23579 # use $as_me), people would be surprised to read:
23580 # /* config.h. Generated by config.status. */
23581 if test x
"$ac_file" = x-
; then
23584 configure_input
="$ac_file. "
23586 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23587 sed 's,.*/,,'` by configure."
23589 # First look for the input files in the build tree, otherwise in the
23591 ac_file_inputs
=`IFS=:
23592 for f in $ac_file_in; do
23594 -) echo $tmp/stdin ;;
23596 # Absolute (can't be DOS-style, as IFS=:)
23597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23598 echo "$as_me: error: cannot find input file: $f" >&2;}
23599 { (exit 1); exit 1; }; }
23602 if test -f "$f"; then
23605 elif test -f "$srcdir/$f"; then
23610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23611 echo "$as_me: error: cannot find input file: $f" >&2;}
23612 { (exit 1); exit 1; }; }
23615 done` ||
{ (exit 1); exit 1; }
23617 if test x
"$ac_file" != x-
; then
23618 { echo "$as_me:$LINENO: creating $ac_file" >&5
23619 echo "$as_me: creating $ac_file" >&6;}
23623 cat >>$CONFIG_STATUS <<_ACEOF
23627 cat >>$CONFIG_STATUS <<\_ACEOF
23629 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23630 s
,@configure_input@
,$configure_input,;t t
23631 s
,@srcdir@
,$ac_srcdir,;t t
23632 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23633 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23634 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23635 s
,@builddir@
,$ac_builddir,;t t
23636 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23637 s
,@top_builddir@
,$ac_top_builddir,;t t
23638 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23639 s
,@INSTALL@
,$ac_INSTALL,;t t
23640 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23642 if test x"$ac_file" != x-; then
23643 mv $tmp/out $ac_file
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23654 # CONFIG_HEADER section.
23657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23660 # ac_d sets the value in "#define NAME VALUE" lines.
23661 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23662 ac_dB
='[ ].*$,\1#\2'
23665 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23666 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23667 ac_uB
='$,\1#\2define\3'
23671 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23674 - |
*:- |
*:-:* ) # input from stdin
23676 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23677 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23678 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23679 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23680 * ) ac_file_in
=$ac_file.
in ;;
23683 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23684 echo "$as_me: creating $ac_file" >&6;}
23686 # First look for the input files in the build tree, otherwise in the
23688 ac_file_inputs
=`IFS=:
23689 for f in $ac_file_in; do
23691 -) echo $tmp/stdin ;;
23693 # Absolute (can't be DOS-style, as IFS=:)
23694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23695 echo "$as_me: error: cannot find input file: $f" >&2;}
23696 { (exit 1); exit 1; }; }
23697 # Do quote $f, to prevent DOS paths from being IFS'd.
23700 if test -f "$f"; then
23703 elif test -f "$srcdir/$f"; then
23708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23709 echo "$as_me: error: cannot find input file: $f" >&2;}
23710 { (exit 1); exit 1; }; }
23713 done` ||
{ (exit 1); exit 1; }
23714 # Remove the trailing spaces.
23715 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23719 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23720 # `conftest.undefs', that substitutes the proper values into
23721 # config.h.in to produce config.h. The first handles `#define'
23722 # templates, and the second `#undef' templates.
23723 # And first: Protect against being on the right side of a sed subst in
23724 # config.status. Protect against being in an unquoted here document
23725 # in config.status.
23726 rm -f conftest.defines conftest.undefs
23727 # Using a here document instead of a string reduces the quoting nightmare.
23728 # Putting comments in sed scripts is not portable.
23730 # `end' is used to avoid that the second main sed command (meant for
23731 # 0-ary CPP macros) applies to n-ary macro definitions.
23732 # See the Autoconf documentation for `clear'.
23733 cat >confdef2sed.
sed <<\_ACEOF
23738 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23740 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23743 # If some macros were called several times there might be several times
23744 # the same #defines, which is useless. Nevertheless, we may not want to
23745 # sort them, since we want the *last* AC-DEFINE to be honored.
23746 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23747 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23748 rm -f confdef2sed.sed
23750 # This sed command replaces #undef with comments. This is necessary, for
23751 # example, in the case of _POSIX_SOURCE, which is predefined and required
23752 # on some systems where configure will not decide to define it.
23753 cat >>conftest.undefs <<\_ACEOF
23754 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23757 # Break up conftest.defines because some shells have a limit on the size
23758 # of here documents, and old seds have small limits too (100 cmds).
23759 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23760 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23761 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23762 echo ' :' >>$CONFIG_STATUS
23763 rm -f conftest.tail
23764 while grep . conftest.defines >/dev/null
23766 # Write a limited-size here document to $tmp/defines.sed.
23767 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23768 # Speed up: don't consider the non `#define' lines.
23769 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23770 # Work around the forget-to-reset-the-flag bug.
23771 echo 't clr' >>$CONFIG_STATUS
23772 echo ': clr' >>$CONFIG_STATUS
23773 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23775 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23777 mv $tmp/out $tmp/in
23779 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23780 rm -f conftest.defines
23781 mv conftest.
tail conftest.defines
23783 rm -f conftest.defines
23784 echo ' fi # grep' >>$CONFIG_STATUS
23785 echo >>$CONFIG_STATUS
23787 # Break up conftest.undefs because some shells have a limit on the size
23788 # of here documents, and old seds have small limits too (100 cmds).
23789 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23790 rm -f conftest.
tail
23791 while grep . conftest.undefs
>/dev
/null
23793 # Write a limited-size here document to $tmp/undefs.sed.
23794 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23795 # Speed up: don't consider the non
`#undef'
23796 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23797 # Work around the forget-to-reset-the-flag bug.
23798 echo 't clr' >>$CONFIG_STATUS
23799 echo ': clr' >>$CONFIG_STATUS
23800 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23802 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23804 mv $tmp/out $tmp/in
23806 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23807 rm -f conftest.undefs
23808 mv conftest.tail conftest.undefs
23810 rm -f conftest.undefs
23812 cat >>$CONFIG_STATUS <<\_ACEOF
23813 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23814 # use $as_me), people would be surprised to read:
23815 # /* config.h. Generated by config.status. */
23816 if test x
"$ac_file" = x-
; then
23817 echo "/* Generated by configure. */" >$tmp/config.h
23819 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23821 cat $tmp/in >>$tmp/config.h
23823 if test x
"$ac_file" != x-
; then
23824 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23825 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23826 echo "$as_me: $ac_file is unchanged" >&6;}
23828 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23830 X"$ac_file" : 'X\(//\)[^/]' \| \
23831 X"$ac_file" : 'X\(//\)$' \| \
23832 X"$ac_file" : 'X\(/\)' \| \
23833 . : '\(.\)' 2>/dev/null ||
23835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23837 /^X\(\/\/\)$/{ s//\1/; q; }
23838 /^X\(\/\).*/{ s//\1/; q; }
23840 { if $as_mkdir_p; then
23845 while test ! -d "$as_dir"; do
23846 as_dirs
="$as_dir $as_dirs"
23847 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23849 X"$as_dir" : 'X\(//\)[^/]' \| \
23850 X"$as_dir" : 'X\(//\)$' \| \
23851 X"$as_dir" : 'X\(/\)' \| \
23852 . : '\(.\)' 2>/dev/null ||
23854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23856 /^X\(\/\/\)$/{ s//\1/; q; }
23857 /^X\(\/\).*/{ s//\1/; q; }
23860 test ! -n "$as_dirs" || mkdir
$as_dirs
23861 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23863 { (exit 1); exit 1; }; }; }
23866 mv $tmp/config.h
$ac_file
23870 rm -f $tmp/config.h
23874 cat >>$CONFIG_STATUS <<\_ACEOF
23877 # CONFIG_COMMANDS section.
23879 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23880 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23881 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23882 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23883 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23884 X"$ac_dest" : 'X\(//\)[^/]' \| \
23885 X"$ac_dest" : 'X\(//\)$' \| \
23886 X"$ac_dest" : 'X\(/\)' \| \
23887 . : '\(.\)' 2>/dev/null ||
23889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23891 /^X\(\/\/\)$/{ s//\1/; q; }
23892 /^X\(\/\).*/{ s//\1/; q; }
23894 { if $as_mkdir_p; then
23899 while test ! -d "$as_dir"; do
23900 as_dirs
="$as_dir $as_dirs"
23901 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23903 X"$as_dir" : 'X\(//\)[^/]' \| \
23904 X"$as_dir" : 'X\(//\)$' \| \
23905 X"$as_dir" : 'X\(/\)' \| \
23906 . : '\(.\)' 2>/dev/null ||
23908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23910 /^X\(\/\/\)$/{ s//\1/; q; }
23911 /^X\(\/\).*/{ s//\1/; q; }
23914 test ! -n "$as_dirs" || mkdir
$as_dirs
23915 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23917 { (exit 1); exit 1; }; }; }
23921 if test "$ac_dir" != .
; then
23922 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23923 # A "../" for each directory in $ac_dir_suffix.
23924 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23926 ac_dir_suffix
= ac_top_builddir
=
23930 .
) # No --srcdir option. We are building in place.
23932 if test -z "$ac_top_builddir"; then
23935 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23937 [\\/]* | ?
:[\\/]* ) # Absolute path.
23938 ac_srcdir
=$srcdir$ac_dir_suffix;
23939 ac_top_srcdir
=$srcdir ;;
23940 *) # Relative path.
23941 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23942 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23945 # Do not use `cd foo && pwd` to compute absolute paths, because
23946 # the directories may not exist.
23948 .
) ac_abs_builddir
="$ac_dir";;
23951 .
) ac_abs_builddir
=`pwd`;;
23952 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23953 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23956 case $ac_abs_builddir in
23957 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23959 case ${ac_top_builddir}.
in
23960 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23961 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23962 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23965 case $ac_abs_builddir in
23966 .
) ac_abs_srcdir
=$ac_srcdir;;
23969 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23970 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23971 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23974 case $ac_abs_builddir in
23975 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23977 case $ac_top_srcdir in
23978 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23979 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23980 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23985 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23986 echo "$as_me: executing $ac_dest commands" >&6;}
23990 ### Make the necessary directories, if they don't exist.
23991 for dir
in etc lisp
; do
23992 test -d ${dir} || mkdir
${dir}
23995 # Build src/Makefile from ${srcdir}/src/Makefile.c
23996 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23997 # This must be done after src/config.h is built, since we rely on that file.
23999 # Now get this: Some word that is part of the ${srcdir} directory name
24000 # or the ${configuration} value might, just might, happen to be an
24001 # identifier like `sun4' or `i386' or something, and be predefined by
24002 # the C preprocessor to some helpful value like 1, or maybe the empty
24003 # string. Needless to say consequent macro substitutions are less
24004 # than conducive to the makefile finding the correct directory.
24005 undefs
="`echo $top_srcdir $configuration $canonical |
24006 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24007 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24010 echo creating src
/epaths.h
24011 ${MAKE-make} epaths-force
24013 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24014 # `..' to `. .' unless invoked with -traditional
24016 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24017 CPPFLAGS
="$CPPFLAGS -traditional"
24020 echo creating lib-src
/Makefile
24022 rm -f junk.c junk1.c junk2.c
24023 sed -e '/start of cpp stuff/q' \
24024 < Makefile.c
> junk1.c
24025 sed -e '1,/start of cpp stuff/d'\
24026 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24027 < Makefile.c
> junk.c
24028 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24029 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24030 cat junk1.c junk2.c
> Makefile.new
24031 rm -f junk.c junk1.c junk2.c
24032 chmod 444 Makefile.new
24033 mv -f Makefile.new Makefile
24036 echo creating src
/Makefile
24038 rm -f junk.c junk1.c junk2.c
24039 sed -e '/start of cpp stuff/q' \
24040 < Makefile.c
> junk1.c
24041 sed -e '1,/start of cpp stuff/d'\
24042 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24043 < Makefile.c
> junk.c
24044 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24045 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24046 cat junk1.c junk2.c
> Makefile.new
24047 rm -f junk.c junk1.c junk2.c
24048 chmod 444 Makefile.new
24049 mv -f Makefile.new Makefile
24052 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24053 echo creating src
/.gdbinit
24054 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24057 # This is how we know whether to re-run configure in certain cases.
24058 touch src
/config.stamp
24065 cat >>$CONFIG_STATUS <<\_ACEOF
24067 { (exit 0); exit 0; }
24069 chmod +x
$CONFIG_STATUS
24070 ac_clean_files
=$ac_clean_files_save
24073 # configure is writing to config.log, and then calls config.status.
24074 # config.status does its own redirection, appending to config.log.
24075 # Unfortunately, on DOS this fails, as config.log is still kept open
24076 # by configure, so config.status won't be able to write to it; its
24077 # output is simply discarded. So we exec the FD to /dev/null,
24078 # effectively closing config.log, so it can be properly (re)opened and
24079 # appended to by config.status. When coming back to configure, we
24080 # need to make the FD available again.
24081 if test "$no_create" != yes; then
24083 ac_config_status_args
=
24084 test "$silent" = yes &&
24085 ac_config_status_args
="$ac_config_status_args --quiet"
24087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24090 # would make configure fail if this is the last instruction.
24091 $ac_cs_success ||
{ (exit 1); exit 1; }